/*
 * Neue Startseite letzdine.eu (views/letzdine/main/main_page_modern.php, Schalter config/letzdine_home.php).
 * Gilt nur mit body.letzdine-home-modern; die klassische Startseite nutzt weiter letzdine-homepage.css.
 * Gleiches System wie die übrigen Letzdine-Seiten: gemeinsame Kopfzeile (site_header), Schrift Manrope
 * (letzdine-public-pages.css), Breite wie Wolt: Inhalt höchstens 1536 px, 32 px Rand, Hell/Dunkel über html[data-letzdine-theme].
 */
body.letzdine-home-modern {
    --ldh-sky: #eaf5fb;
    --ldh-bg: #ffffff;
    --ldh-surface: #ffffff;
    --ldh-field: #eaf5fb;
    --ldh-ink: #0a1b2b;
    --ldh-mute: #4a5d70;
    --ldh-line: rgba(10, 27, 43, .12);
    --ldh-chip: #f1f5f8;
    --ldh-hover: #f6fafd;
    --ldh-blue: #169fdb;
    --ldh-blue-ink: #0b6fa8;
    --ldh-navy: #07192a;
    --ldh-navy-ink: #b9c7d4;
    --ldh-shadow: 0 1px 0 rgba(10, 27, 43, .05), 0 44px 90px -40px rgba(7, 25, 42, .5);
    --ldh-card-shadow: 0 1px 0 rgba(10, 27, 43, .04), 0 18px 40px -28px rgba(7, 25, 42, .45);
    --ldh-ease: cubic-bezier(.23, 1, .32, 1);
}

html[data-letzdine-theme="dark"] body.letzdine-home-modern {
    --ldh-sky: #0f2133;
    --ldh-bg: #07111b;
    --ldh-surface: #0f1e2d;
    --ldh-field: #0a1622;
    --ldh-ink: #eef4f9;
    --ldh-mute: #a3b3c2;
    --ldh-line: rgba(255, 255, 255, .11);
    --ldh-chip: #1a2b3c;
    --ldh-hover: #142536;
    --ldh-blue-ink: #6ccdf5;
    --ldh-navy: #0f2639;
    --ldh-navy-ink: #b9c7d4;
    --ldh-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 44px 90px -40px rgba(0, 0, 0, .8);
    --ldh-card-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px -28px rgba(0, 0, 0, .8);
}

body.letzdine-home-modern .ldh {
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ldh-ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body.letzdine-site.letzdine-home-modern .ldh,
body.letzdine-site.letzdine-home-modern .ldh :is(button, input, select, textarea, h1, h2, h3) {
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.letzdine-home-modern .ldh *,
body.letzdine-home-modern .ldh *::before,
body.letzdine-home-modern .ldh *::after {
    box-sizing: border-box;
}

body.letzdine-home-modern .ldh img {
    display: block;
    max-width: 100%;
    height: auto;
}

body.letzdine-home-modern .ldh [hidden] {
    display: none !important;
}

body.letzdine-home-modern .ldh h1,
body.letzdine-home-modern .ldh h2,
body.letzdine-home-modern .ldh p {
    margin: 0;
}

body.letzdine-home-modern .ldh :where(button) {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

body.letzdine-home-modern .ldh :focus-visible {
    outline: 3px solid rgba(22, 159, 219, .4);
    outline-offset: 2px;
}

.ldh-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Gleiche Kante wie das Logo in der Kopfzeile (.container.main-header: 24 px Rand + 12 px Innenabstand) */
.ldh-wrap {
    width: min(1536px, calc(100% - 64px));
    margin: 0 auto;
}

/* Startbereich: Himmelblau läuft weich in den Seitenhintergrund aus, ohne harte Kante */
.ldh-top {
    background:
        radial-gradient(120% 70% at 78% 18%, color-mix(in srgb, var(--ldh-blue) 14%, transparent) 0%, transparent 60%),
        linear-gradient(180deg, var(--ldh-sky) 0%, var(--ldh-sky) 42%, transparent 100%);
}

/* ---------- Startbereich ---------- */
.ldh-hero {
    --ldh-stage: clamp(300px, 34vw, 520px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--ldh-stage));
    gap: 0;
    align-items: center;
    padding: 40px 0 44px;
    /* gleiche Höhe für beide Letzi-Aufbauten, damit beim Wechsel nichts springt */
    min-height: calc(var(--ldh-stage) + 84px);
}

.ldh-where {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ldh-blue-ink);
    margin-bottom: 14px !important;
}

.ldh-where svg {
    width: 16px;
    height: 16px;
}

body.letzdine-home-modern .ldh-h1 {
    font-family: inherit;
    font-size: clamp(72px, 10.4vw, 150px);
    line-height: .86;
    letter-spacing: -.058em;
    font-weight: 800;
    color: var(--ldh-ink);
}

.ldh-h1 span,
.ldh-h1 em {
    display: block;
    white-space: nowrap;
}

.ldh-h1 em {
    font-style: normal;
    color: var(--ldh-blue);
}

.ldh-lead {
    margin-top: 16px !important;
    max-width: 540px;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ldh-mute);
}

.ldh-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    justify-self: end;
}

.ldh-plate {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ldh-plate img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: 50% 100%;
    transition: opacity .18s ease, transform .18s ease;
}

/* Letzi (config letzdine_home 'hero_letzi'): 'sitzt' groß nahe an der Überschrift, 'guckt' über die Suchleiste */
.ldh-hero--sitzt .ldh-stage {
    justify-self: start;
    margin-left: clamp(-110px, -6vw, -24px);
}

.ldh-hero--sitzt .ldh-stage::before {
    content: "";
    position: absolute;
    inset: 8% 6% 4%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 55%, rgba(42, 169, 225, .34), rgba(42, 169, 225, .08) 56%, transparent 72%);
}

.ldh-hero--guckt .ldh-stage {
    align-self: end;
    width: 88%;
    /* bis an die Oberkante der Suchleiste (Abstand unten 44px + 6px unter die Kante) */
    margin-bottom: -50px;
}

.ldh-hero--guckt .ldh-sticker {
    right: auto;
    left: -26%;
    bottom: 24%;
}

/* Bildwechsel beim Klick auf einen Weg (home-modern.js) */
.ldh-plate.is-out img {
    opacity: 0;
    transform: translateY(16px) scale(.94);
}

.ldh-plate.is-in img {
    animation: ldh-letzi-in .46s var(--ldh-ease);
}

@keyframes ldh-letzi-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.92);
    }

    60% {
        opacity: 1;
        transform: translateY(-4px) scale(1.02);
    }

    to {
        transform: none;
    }
}

.ldh-sticker {
    position: absolute;
    z-index: 2;
    right: -6%;
    bottom: 2%;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: var(--ldh-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    transform: rotate(-12deg);
    box-shadow: 0 18px 40px -16px rgba(7, 25, 42, .6);
}

.ldh-sticker b {
    font-size: 40px;
    line-height: .9;
    letter-spacing: -.05em;
    font-weight: 800;
    color: var(--ldh-blue);
}

.ldh-sticker span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 6px;
}

@keyframes ldh-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ---------- Suchleiste ---------- */
.ldh-bar {
    position: relative;
    z-index: 10;
    margin: 0 0 -76px;
}

.ldh-panel {
    background: var(--ldh-surface);
    border-radius: 28px;
    box-shadow: var(--ldh-shadow);
}

.ldh-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--ldh-line);
}

body.letzdine-home-modern .ldh-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 22px 24px;
    border: 0;
    background: transparent;
    text-align: left;
    color: var(--ldh-mute);
    cursor: pointer;
    transition: background-color .2s ease;
}

body.letzdine-home-modern .ldh-tab:first-of-type {
    border-top-left-radius: 28px;
}

body.letzdine-home-modern .ldh-tab:nth-of-type(4) {
    border-top-right-radius: 28px;
}

body.letzdine-home-modern .ldh-tab + .ldh-tab {
    box-shadow: inset 1px 0 0 var(--ldh-line);
}

body.letzdine-home-modern .ldh-tab:hover {
    background: var(--ldh-hover);
}

.ldh-tab-ic {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 14px;
    background: var(--ldh-chip);
    color: var(--ldh-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .25s ease, color .25s ease;
}

.ldh-tab-ic svg {
    width: 22px;
    height: 22px;
}

.ldh-tab.is-active .ldh-tab-ic {
    background: var(--ldh-blue);
    color: #fff;
}

.ldh-tab-txt {
    min-width: 0;
}

.ldh-tab-txt b {
    display: block;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.015em;
    color: var(--ldh-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldh-tab-txt small {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldh-short {
    display: none;
}

.ldh-ind {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 25%;
    height: 3px;
    background: var(--ldh-blue);
    border-radius: 3px;
}

.ldh-panel.is-ready .ldh-ind {
    transition: transform .35s var(--ldh-ease), width .35s var(--ldh-ease);
}

.ldh-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
}

.ldh-addr {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 0 12px 0 22px;
    border-radius: 18px;
    background: var(--ldh-field);
}

.ldh-addr-pin {
    width: 22px;
    height: 22px;
    flex: none;
    color: var(--ldh-blue-ink);
}

.ldh-addr-field,
.ldh-when-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    cursor: text;
}

.ldh-addr-field small,
.ldh-when-field small {
    font-size: 13px;
    font-weight: 600;
    color: var(--ldh-mute);
}

body.letzdine-home-modern .ldh-addr-field input,
body.letzdine-home-modern .ldh-when-input {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    outline: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font: inherit;
    font-size: 20px;
    color: var(--ldh-ink);
    text-overflow: ellipsis;
}

/* Gegen die Feld-Stile aus letzdine-theme.css (Dunkel) und mystyle.css */
html body.letzdine-site.letzdine-home-modern .ldh .ldh-addr-field input,
html body.letzdine-site.letzdine-home-modern .ldh .ldh-when-input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ldh-ink) !important;
    padding: 0 !important;
    height: auto !important;
}

body.letzdine-home-modern .ldh-addr-field input:focus-visible,
body.letzdine-home-modern .ldh-when-input:focus-visible {
    outline: 0;
}

.ldh-addr:focus-within,
.ldh-when-field:focus-within {
    box-shadow: inset 0 0 0 2px var(--ldh-blue);
}

body.letzdine-home-modern .ldh-when-input {
    font-size: 18px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

body.letzdine-home-modern .ldh-addr-field input::placeholder {
    color: var(--ldh-mute);
    opacity: .8;
}

body.letzdine-home-modern .ldh-locate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    flex: none;
    border: 0;
    border-radius: 12px;
    background: var(--ldh-surface);
    color: var(--ldh-ink);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.ldh-locate svg {
    width: 18px;
    height: 18px;
    color: var(--ldh-blue-ink);
}

.ldh-locate.is-busy svg {
    animation: ldh-spin 1s linear infinite;
}

.ldh-when {
    display: flex;
    gap: 12px;
    flex: 0 1 340px;
    min-width: 0;
}

.ldh-when-field {
    min-height: 76px;
    justify-content: center;
    padding: 0 18px;
    border-radius: 18px;
    background: var(--ldh-field);
}

body.letzdine-home-modern .ldh-go {
    min-height: 76px;
    padding: 0 32px;
    flex: none;
    border: 0;
    border-radius: 18px;
    background: var(--ldh-blue);
    color: #fff;
    font-size: 19px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .16s var(--ldh-ease), background-color .2s ease;
}

body.letzdine-home-modern .ldh-go:hover {
    background: #0f8fc8;
}

body.letzdine-home-modern .ldh-go:active {
    transform: scale(.98);
}

.ldh-go svg {
    width: 20px;
    height: 20px;
}

body.letzdine-home-modern .ldh-go.is-loading {
    cursor: progress;
}

body.letzdine-home-modern .ldh-go.is-loading svg {
    display: none;
}

body.letzdine-home-modern .ldh-go.is-loading::after {
    content: "";
    width: 24px;
    height: 24px;
    background: var(--ld-loader-image) center / contain no-repeat;
    animation: ldh-spin .8s linear infinite;
}

.ldh-hint {
    padding: 0 24px 16px;
    margin-top: -4px !important;
    font-size: 14px;
    color: var(--ldh-mute);
}

.ldh-kitchen-hint {
    color: var(--ldh-blue-ink);
    font-weight: 600;
}

/* Vorschläge von Google zur Adresse */
body.letzdine-home-modern .pac-container {
    width: var(--ld-home-pac-width, auto) !important;
    min-width: var(--ld-home-pac-width, auto) !important;
    max-width: calc(100vw - 24px) !important;
    left: var(--ld-home-pac-left, auto) !important;
    margin-top: 10px;
    border: 1px solid var(--ldh-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 48px -20px rgba(7, 25, 42, .45);
    z-index: 1051 !important;
    font-family: "Manrope", system-ui, sans-serif;
}

body.letzdine-home-modern .pac-item {
    display: block;
    min-height: 48px;
    padding: 12px 16px 12px 40px;
    position: relative;
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    cursor: pointer;
    border-top: 1px solid var(--ldh-line);
}

body.letzdine-home-modern .pac-item:first-child {
    border-top: 0;
}

body.letzdine-home-modern .pac-item .pac-icon {
    position: absolute;
    left: 14px;
    top: 15px;
    margin: 0;
}

body.letzdine-home-modern .pac-item-query {
    font-size: 15px;
    padding-right: 4px;
}

body.letzdine-home-modern .pac-item:hover,
body.letzdine-home-modern .pac-item-selected {
    background: var(--ldh-hover);
}

/* ---------- Küchen ---------- */
.ldh-kitchens {
    padding: 148px 0 24px;
}

body.letzdine-home-modern .ldh-h2 {
    font-family: inherit;
    font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 700;
    color: var(--ldh-ink);
}

.ldh-kgrid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

body.letzdine-home-modern .ldh-k {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--ldh-ink);
    cursor: pointer;
}

.ldh-k-ph {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: #eaf5fb;
    box-shadow: 0 0 0 0 var(--ldh-blue);
    transition: transform .3s var(--ldh-ease), box-shadow .2s ease;
}

.ldh-k-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.ldh-k-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldh-k[aria-pressed="true"] .ldh-k-ph {
    box-shadow: 0 0 0 3px var(--ldh-blue);
}

.ldh-k[aria-pressed="true"] .ldh-k-name {
    color: var(--ldh-blue-ink);
}

/* ---------- Restaurants ---------- */
.ldh-rests {
    padding: 64px 0 0;
}

.ldh-row-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.ldh-row-sub {
    margin-top: 10px !important;
    font-size: 16px;
    color: var(--ldh-mute);
}

body.letzdine-home-modern .ldh-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    flex: none;
    border: 1px solid var(--ldh-line);
    border-radius: 14px;
    background: var(--ldh-surface);
    color: var(--ldh-ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ldh-more svg {
    width: 18px;
    height: 18px;
    color: var(--ldh-blue-ink);
}

.ldh-rgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

body.letzdine-site.letzdine-home-modern .ldh .ldh-r {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: var(--ldh-surface);
    border: 1px solid var(--ldh-line);
    box-shadow: var(--ldh-card-shadow);
    color: var(--ldh-ink);
    text-decoration: none;
    transition: transform .3s var(--ldh-ease), box-shadow .3s ease;
}

.ldh-r-ph {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--ldh-sky);
    overflow: hidden;
}

.ldh-r-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ldh-ease);
}

/* Angebots-Schilder (Liste „Restaurants auf Letzdine“): Lieferung / Abholung oben links auf dem Bild */
.ldh-r-ph {
    position: relative;
}

.ldh-r-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ldh-r-tags span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #0a1b2b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(10, 27, 43, .12);
}

.ldh-r-ph--logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.letzdine-home-modern .ldh .ldh-r-ph--logo img {
    width: 42%;
    height: auto;
    max-height: 70%;
    object-fit: contain;
}

.ldh-r-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 16px;
    min-width: 0;
}

body.letzdine-home-modern .ldh .ldh-r-logo {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--ldh-line);
    padding: 3px;
}

.ldh-r-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ldh-r-txt b {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldh-r-txt small {
    margin-top: 2px;
    font-size: 14px;
    color: var(--ldh-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Dein Geld bleibt dort, wo du isst ---------- */
.ldh-fair {
    margin-top: 88px;
    padding: 28px;
    border-radius: 36px;
    background: linear-gradient(180deg, var(--ldh-sky) 0%, color-mix(in srgb, var(--ldh-sky) 35%, transparent) 100%);
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 56px;
    align-items: center;
}

.ldh-fair-ph {
    margin: 0;
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--ldh-surface);
}

body.letzdine-home-modern .ldh .ldh-fair-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ldh-fair-copy {
    padding: 24px 32px 24px 0;
}

.ldh-kick {
    margin-bottom: 14px !important;
    font-size: 15px;
    font-weight: 700;
    color: var(--ldh-blue-ink);
}

body.letzdine-home-modern .ldh-fair-title {
    font-family: inherit;
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 800;
    color: var(--ldh-ink);
    text-wrap: balance;
}

.ldh-fair-text {
    margin-top: 18px !important;
    max-width: 560px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ldh-mute);
}

.ldh-fair-list {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 32px;
}

.ldh-fair-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ldh-mute);
}

.ldh-fair-list svg {
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 14px;
    background: var(--ldh-surface);
    color: var(--ldh-blue);
    box-shadow: var(--ldh-card-shadow);
}

.ldh-fair-list b {
    display: block;
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ldh-ink);
}

/* ---------- Ein Ort für alles ---------- */
.ldh-ways {
    padding: 96px 0 0;
}

.ldh-wgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 56px;
    margin-top: 28px;
    border-top: 1px solid var(--ldh-line);
}

body.letzdine-home-modern .ldh-w {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 0 8px;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: var(--ldh-ink);
    cursor: pointer;
}

body.letzdine-home-modern .ldh-w:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -28px;
    width: 1px;
    background: var(--ldh-line);
}

.ldh-w-name {
    font-size: clamp(24px, 2.1vw, 32px);
    line-height: 1.05;
    overflow-wrap: anywhere;
    hyphens: auto;
    letter-spacing: -.04em;
    font-weight: 700;
}

.ldh-w-txt {
    margin: 10px 0 18px;
    min-height: 48px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ldh-mute);
}

.ldh-w-ph {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: #eaf5fb;
}

.ldh-w-ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ldh-ease);
}

/* ---------- App ---------- */
.ldh-app {
    margin-top: 96px;
    padding: 0 72px;
    border-radius: 36px;
    background: var(--ldh-sky);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    overflow: hidden;
}

.ldh-app-copy {
    padding: 72px 0;
}

.ldh-app-copy p {
    max-width: 440px;
    margin: 18px 0 28px !important;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ldh-mute);
}

.ldh-stores {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ldh-stores img {
    height: 48px !important;
    width: auto !important;
}

.ldh-phone {
    justify-self: center;
    width: 290px;
    padding: 10px;
    margin: 56px 0 -120px;
    border-radius: 48px;
    background: linear-gradient(145deg, #2b3a48, #0b1520);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), 0 40px 80px -30px rgba(7, 25, 42, .55);
    transform: rotate(4deg);
}

.ldh-phone video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    border-radius: 38px;
    background: #000;
}

/* ---------- Für Restaurants ---------- */
.ldh-partner {
    margin: 72px 0 80px;
    padding: 48px 0;
    border-top: 1px solid var(--ldh-line);
    border-bottom: 1px solid var(--ldh-line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}

body.letzdine-home-modern .ldh-partner-title {
    font-family: inherit;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 700;
    color: var(--ldh-ink);
}

.ldh-partner-vals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 16px !important;
    font-size: 16px;
    color: var(--ldh-mute);
}

.ldh-partner-vals b {
    color: var(--ldh-ink);
}

body.letzdine-home-modern .ldh-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 26px;
    border-radius: 14px;
    background: var(--ldh-ink);
    color: var(--ldh-bg);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
}

.ldh-btn svg {
    width: 18px;
    height: 18px;
}

/* ---------- Hover nur mit Maus ---------- */
@media (hover: hover) and (pointer: fine) {
    body.letzdine-site.letzdine-home-modern .ldh .ldh-r:hover {
        transform: translateY(-3px);
    }

    .ldh-r:hover .ldh-r-ph img {
        transform: scale(1.04);
    }

    .ldh-k:hover .ldh-k-ph {
        transform: translateY(-4px);
    }

    .ldh-w:hover .ldh-w-ph img {
        transform: scale(1.05);
    }

    .ldh-w:hover .ldh-w-name {
        color: var(--ldh-blue-ink);
    }
}

/* ---------- Mittlere Breite ---------- */
@media (max-width: 1100px) {
    .ldh-hero {
        --ldh-stage: 300px;
    }

    body.letzdine-home-modern .ldh-h1 {
        font-size: 8.6vw;
    }

    .ldh-sticker {
        width: 96px;
        height: 96px;
        right: -10%;
        bottom: 0;
    }

    .ldh-sticker b {
        font-size: 30px;
    }

    .ldh-sticker span {
        font-size: 10px;
    }
}

@media (max-width: 1180px) {
    .ldh-tab-txt small {
        display: none;
    }

    .ldh-row {
        flex-wrap: wrap;
    }

    .ldh-when {
        flex: 1 1 100%;
        order: 2;
    }

    body.letzdine-home-modern .ldh-go {
        order: 3;
        flex: 1 1 auto;
    }

    .ldh-kgrid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .ldh-rgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ldh-fair {
        grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
        gap: 32px;
    }
}

/* ---------- Handy ---------- */
@media (max-width: 760px) {
    .ldh-wrap {
        width: calc(100% - 32px);
    }

    /* Letzi sitzt bzw. guckt in beiden Aufbauten mittig auf der Suchleiste (fester Platz, nichts springt beim Wechsel) */
    .ldh-hero {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        min-height: 0;
        padding: 16px 0 236px;
    }

    .ldh-hero .ldh-stage {
        position: absolute;
        left: 50%;
        bottom: 2px;
        width: 230px;
        margin: 0;
        transform: translateX(-50%);
    }

    .ldh-hero--guckt .ldh-stage {
        bottom: -6px;
    }

    /* Aufkleber rechts neben den Teller, damit Letzis Pizzastück frei bleibt */
    .ldh-sticker {
        width: 86px;
        height: 86px;
        padding: 8px;
        right: -30%;
        bottom: 0;
    }

    .ldh-sticker b {
        font-size: 26px;
    }

    .ldh-sticker span {
        font-size: 9px;
        margin-top: 4px;
    }

    body.letzdine-home-modern .ldh-h1 {
        font-size: min(17vw, 76px);
    }

    .ldh-lead {
        margin-top: 12px !important;
        font-size: 16px;
    }

    .ldh-bar {
        margin-bottom: -44px;
    }

    .ldh-panel {
        border-radius: 22px;
    }

    body.letzdine-home-modern .ldh-tab {
        flex-direction: column;
        gap: 8px;
        padding: 14px 2px 12px;
        text-align: center;
    }

    body.letzdine-home-modern .ldh-tab:first-of-type {
        border-top-left-radius: 22px;
    }

    body.letzdine-home-modern .ldh-tab:nth-of-type(4) {
        border-top-right-radius: 22px;
    }

    .ldh-tab-ic {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .ldh-tab-txt {
        max-width: 100%;
    }

    .ldh-tab-txt b {
        font-size: 12.5px;
        letter-spacing: -.02em;
    }

    .ldh-full {
        display: none;
    }

    .ldh-short {
        display: inline;
    }

    .ldh-row {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .ldh-addr {
        flex: none;
        min-height: 64px;
        padding: 0 8px 0 16px;
    }

    body.letzdine-home-modern .ldh-addr-field input {
        font-size: 17px;
    }

    body.letzdine-home-modern .ldh-locate {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }

    .ldh-locate span {
        display: none;
    }

    .ldh-when {
        flex: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ldh-when[hidden] {
        display: none !important;
    }

    .ldh-when-field {
        min-height: 64px;
        padding: 0 14px;
    }

    body.letzdine-home-modern .ldh-go {
        min-height: 60px;
        font-size: 18px;
    }

    .ldh-hint {
        padding: 0 16px 14px;
    }

    .ldh-kitchens {
        padding-top: 96px;
    }

    .ldh-kgrid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        margin: 22px -16px 0;
        padding: 0 16px 4px;
        scrollbar-width: none;
    }

    .ldh-kgrid::-webkit-scrollbar {
        display: none;
    }

    body.letzdine-home-modern .ldh-k {
        flex: 0 0 92px;
    }

    .ldh-rests {
        padding-top: 48px;
    }

    .ldh-row-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
    }

    .ldh-rgrid {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        margin: 0 -16px;
        padding: 0 16px 6px;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
    }

    .ldh-rgrid::-webkit-scrollbar {
        display: none;
    }

    body.letzdine-site.letzdine-home-modern .ldh .ldh-r {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .ldh-fair {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin: 56px -8px 0;
        padding: 12px;
        border-radius: 26px;
    }

    .ldh-fair-ph {
        aspect-ratio: 16 / 11;
        border-radius: 18px;
    }

    .ldh-fair-copy {
        padding: 4px 12px 20px;
    }

    .ldh-fair-text {
        font-size: 16px;
    }

    .ldh-fair-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-top: 26px;
    }

    .ldh-ways {
        padding-top: 56px;
    }

    .ldh-wgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
        border-top: 0;
    }

    body.letzdine-home-modern .ldh-w {
        padding: 20px 0 8px;
        border-top: 1px solid var(--ldh-line);
    }

    body.letzdine-home-modern .ldh-w:not(:last-child)::after {
        content: none;
    }

    .ldh-w-name {
        font-size: 26px;
    }

    .ldh-w-txt {
        min-height: 0;
        font-size: 15px;
    }

    .ldh-app {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin: 48px -8px 0;
        padding: 0 24px;
        border-radius: 24px;
    }

    .ldh-app-copy {
        padding: 40px 0 0;
    }

    .ldh-phone {
        width: 220px;
        margin: 24px 0 -90px;
    }

    .ldh-partner {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ldh-locate.is-busy svg {
        animation: none;
    }

    .ldh-panel.is-ready .ldh-ind {
        transition: none;
    }

    .ldh-plate img,
    .ldh-plate.is-out img,
    .ldh-plate.is-in img {
        transition: none;
        animation: none;
        transform: none;
        opacity: 1;
    }
}

/* Fünf Wege mit „Entdecken“ (config/letzdine_restaurant_list.php discover) */
.ldh-tabs.ldh-tabs--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.letzdine-home-modern .ldh-tabs--5 .ldh-tab {
    gap: 12px;
    padding: 20px 18px;
}

body.letzdine-home-modern .ldh-tabs--5 .ldh-tab:nth-of-type(4) {
    border-top-right-radius: 0;
}

body.letzdine-home-modern .ldh-tabs--5 .ldh-tab:nth-of-type(5) {
    border-top-right-radius: 28px;
}

.ldh-tabs--5 .ldh-tab-ic {
    width: 42px;
    height: 42px;
}

.ldh-tabs--5 .ldh-tab-txt b {
    font-size: 16px;
}

.ldh-tabs--5 .ldh-tab-txt small {
    font-size: 13px;
}

/* Handy: Letzi klein neben der Überschrift, die ganze Suche passt in den ersten Bildschirm (375 × 812), kein Text läuft über */
@media (max-width: 760px) {
    body.letzdine-home-modern .ldh-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 104px;
        grid-template-areas: "where where" "h1 stage" "lead lead";
        align-items: center;
        column-gap: 10px;
        padding: 12px 0 14px;
        min-height: 0;
    }

    body.letzdine-home-modern .ldh-hero-copy {
        display: contents;
    }

    body.letzdine-home-modern .ldh-where {
        grid-area: where;
        margin: 0 0 6px;
        font-size: 13px;
    }

    body.letzdine-home-modern .ldh-h1 {
        grid-area: h1;
        font-size: min(13vw, 54px);
        line-height: .98;
    }

    body.letzdine-home-modern .ldh-lead {
        grid-area: lead;
        margin-top: 10px;
        font-size: 14.5px;
        line-height: 1.45;
    }

    body.letzdine-home-modern .ldh-hero .ldh-stage,
    body.letzdine-home-modern .ldh-hero--guckt .ldh-stage {
        grid-area: stage;
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 104px;
        height: 104px;
        margin: 0;
        justify-self: end;
    }

    body.letzdine-home-modern .ldh-hero .ldh-stage img {
        width: 104px;
        height: 104px;
        object-fit: contain;
    }

    body.letzdine-home-modern .ldh-sticker {
        width: 50px;
        height: 50px;
        padding: 4px;
        right: -6px;
        bottom: -6px;
    }

    body.letzdine-home-modern .ldh-sticker b {
        font-size: 15px;
    }

    body.letzdine-home-modern .ldh-sticker span {
        display: none;
    }

    body.letzdine-home-modern .ldh-tabs.ldh-tabs--5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    body.letzdine-home-modern .ldh-tabs--5 .ldh-tab {
        padding: 10px 2px 9px;
        gap: 5px;
        min-width: 0;
    }

    body.letzdine-home-modern .ldh-tabs--5 .ldh-tab-ic {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    body.letzdine-home-modern .ldh-tabs--5 .ldh-tab-txt {
        min-width: 0;
        max-width: 100%;
    }

    body.letzdine-home-modern .ldh-tabs--5 .ldh-tab-txt b {
        font-size: 11px;
        letter-spacing: -.01em;
        white-space: nowrap;
    }

    body.letzdine-home-modern .ldh-tabs--5 .ldh-tab-txt small {
        display: none;
    }
}

/* Küchenbilder aus dem Admin: Speise von oben in ihrem Geschirr, freigestellt (tools/kuechen) – ganz zeigen, ohne Kreis
   dahinter und ohne Beschnitt (Bretter und Formen sind eckig); gewählt = blauer Strich unter dem Namen */
.ldh-k-ph {
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.ldh-k-ph img {
    object-fit: contain;
    padding: 0;
    transform: none;
    filter: drop-shadow(0 6px 10px rgba(7, 25, 42, .16));
}

.ldh-k[aria-pressed="true"] .ldh-k-ph {
    box-shadow: none;
    transform: scale(1.05);
}

.ldh-k[aria-pressed="true"] .ldh-k-name {
    box-shadow: inset 0 -3px 0 var(--ldh-blue);
}
