/**
 * Hero-Bereich Online-Speisekarte (/menu) — Gemini „Food Menu“ Stil, Light/Dark via data-lp-color-scheme.
 */
.iro-food-menu-hero-root {
    --iro-fmh-text: #0f172a;
    --iro-fmh-subtle: #64748b;
    --iro-fmh-bg: transparent;
    --iro-fmh-orb-opacity: 0.2;
    /* Einheitliche Schrift wie /menu — unabhängig vom LP-Body (Inter) */
    font-family: 'Outfit', system-ui, sans-serif;
    letter-spacing: normal;
    position: relative;
    z-index: 1;
    /* Full-Bleed Hack: Bricht aus Containern aus, sicherer als 100vw wegen Scrollbars */
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    /* Negativer margin-top, um unter den Header und das Wrapper-Padding zu rutschen */
    margin: -100px 0 2rem 0;
    /* Ausgleichendes Padding, damit der Text nicht hinter dem Header klebt */
    padding: calc(-21px + clamp(3rem, 6vw, 4rem)) 0 clamp(2rem, 4vw, 3rem);
    border-radius: 0;
    overflow: hidden;
    background: var(--iro-fmh-bg);
    box-sizing: border-box;
}

html[data-lp-color-scheme="dark"] .iro-food-menu-hero-root {
    --iro-fmh-text: #f8fafc;
    --iro-fmh-subtle: #94a3b8;
    --iro-fmh-orb-opacity: 0.14;
}

/* Landing: globale #brief-ai-lp h1-Regeln nicht auf diesen Hero anwenden */
body.cms-landing-theme #brief-ai-lp .iro-food-menu-hero-root h1.iro-fmh-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1;
    margin: 0;
}

.iro-fmh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: var(--iro-fmh-orb-opacity);
    pointer-events: none;
    animation: iro-fmh-orb-float 8s ease-in-out infinite;
}

.iro-fmh-orb-1 { background: #4796e3; width: min(500px, 90vw); height: min(500px, 90vw); top: -10%; left: -5%; animation-delay: 0s; }
.iro-fmh-orb-2 { background: #9177c7; width: min(400px, 75vw); height: min(400px, 75vw); bottom: -15%; right: -10%; animation-delay: 1s; }
.iro-fmh-orb-3 { background: #ca6673; width: min(350px, 65vw); height: min(350px, 65vw); top: 50%; right: 20%; animation-delay: 2s; }
.iro-fmh-orb-4 { background: #f8dc32; width: min(300px, 55vw); height: min(300px, 55vw); bottom: 30%; left: 10%; animation-delay: 3s; }

@keyframes iro-fmh-orb-float {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.12) translate(20px, -20px); }
}

.iro-fmh-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    /* Oben bündig auf allen Seiten: Tagline → Titel → Linie → optional Untertitel,
       unabhängig von ein- oder zweizeiligem Titel (kein vertikales „Mitte wandert“). */
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    min-height: min(29vh, 520px);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(0.5rem, 2.5vmin, 1.75rem) 10px clamp(1.25rem, 4vmin, 2.5rem);
    box-sizing: border-box;
}

.iro-fmh-tagline {
    font-family: 'Manrope', 'Outfit', system-ui, sans-serif;
    font-size: clamp(0.7rem, 1.8vw, 0.875rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--iro-fmh-subtle);
    margin: 0 0 1rem 0;
}

.iro-fmh-title {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iro-fmh-title .iro-fmh-line {
    display: block;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 300;
    letter-spacing: -0.05em;
    color: var(--iro-fmh-text);
    line-height: 0.85;
    font-size: clamp(4.5rem, 20vw, 8.5rem);
    transition: color 0.5s ease;
    background-size: 200% auto;
    background-repeat: repeat;
}

@media (min-width: 768px) {
    .iro-fmh-title {
        flex-direction: row;
        justify-content: center;
        gap: 0.25em;
    }
    .iro-fmh-title .iro-fmh-line {
        display: inline-block;
        font-size: clamp(4rem, 10vw, 7rem);
    }
}

@media (min-width: 1024px) {
    .iro-fmh-title .iro-fmh-line { font-size: 7.5rem; }
}

.iro-fmh-title.is-hovering .iro-fmh-w1.text-food,
.iro-fmh-title.is-hovering .iro-fmh-w2.text-menu {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: iro-fmh-gradient-pan 3s linear infinite;
}

.iro-fmh-title.is-hovering .iro-fmh-w1.text-food {
    background-image: linear-gradient(to right, #4796e3, #9177c7, #ca6673, #f8dc32, #4796e3);
}

.iro-fmh-title.is-hovering .iro-fmh-w2.text-menu {
    background-image: linear-gradient(to right, #f8dc32, #ca6673, #9177c7, #4796e3, #f8dc32);
}

.iro-fmh-subtitle {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.55;
    color: var(--iro-fmh-subtle);
    margin: 1.5rem auto 0 auto;
    max-width: 36rem;
    padding: 0 12px;
    text-align: center;
}

.iro-fmh-deco-line {
    margin: 2rem auto 0 auto;
    height: 3px;
    background-image: linear-gradient(to right, #4796e3, #9177c7, #ca6673, #f8dc32, #4796e3);
    background-size: 200% auto;
    background-repeat: repeat;
    width: 0;
    animation:
        iro-fmh-expand-line 1.2s ease-out 0.8s forwards,
        iro-fmh-gradient-pan 3s linear infinite;
}

@keyframes iro-fmh-gradient-pan {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes iro-fmh-expand-line {
    to { width: 120px; }
}

.iro-fmh-fade-in {
    opacity: 0;
    animation: iro-fmh-fade-in-up 0.85s ease-out forwards;
}

.iro-fmh-fade-in--sub { animation-delay: 0.15s; }
.iro-fmh-fade-in--title { animation-duration: 1s; animation-delay: 0.35s; }

@keyframes iro-fmh-fade-in-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .iro-fmh-orb,
    .iro-fmh-title.is-hovering .iro-fmh-w1.text-food,
    .iro-fmh-title.is-hovering .iro-fmh-w2.text-menu,
    .iro-fmh-deco-line {
        animation: none !important;
    }
    .iro-fmh-fade-in,
    .iro-fmh-subtitle {
        opacity: 1;
        animation: none;
    }
    .iro-fmh-deco-line {
        width: 120px;
    }
}

/**
 * Subsite-Hero im LP-CMS (ohne public-style.css): gleicher Abstand unter dem Site-Header wie /menu
 * (vgl. .iro-online-shop-page.inhouse-menu-wrapper in public-style.css).
 * iro-fmh-hero-only-page: kein Warenkorb — weniger padding-bottom als beim vollen Shop.
 */
.inhouse-menu-wrapper.iro-online-shop-page.iro-fmh-hero-only-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    padding-top: 50px !important;
    padding-bottom: 1rem !important;
    box-sizing: border-box;
}

body.cms-landing-theme .inhouse-menu-wrapper.iro-online-shop-page.iro-fmh-hero-only-page {
    padding-top: 6.75rem !important;
}

@media (max-width: 520px) {
    body.cms-landing-theme .inhouse-menu-wrapper.iro-online-shop-page.iro-fmh-hero-only-page {
        padding-top: 7.25rem !important;
    }
}

html:has(body.cms-landing-theme .iro-fmh-hero-only-page) {
    scroll-padding-top: calc(7rem + env(safe-area-inset-top, 0px));
}

@media (max-width: 520px) {
    html:has(body.cms-landing-theme .iro-fmh-hero-only-page) {
        scroll-padding-top: calc(7.25rem + env(safe-area-inset-top, 0px));
    }
}
