/* =========================================
   Startseite mit Fotos (Ute Johann)
   Lädt nach theme-v2.css und nutzt dessen Farben.
   Bilder kommen aus public/assets/images/photos/ (WebP, zwei Größen),
   laden erst beim Hinscrollen und blenden weich ein (js/photos.js).
   ========================================= */

/* Weiches Einblenden nachgeladener Bilder */
html.lz-ready img.lz { opacity: 0; transition: opacity .8s ease; }
html.lz-ready img.lz.is-loaded { opacity: 1; }

.kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--t2-gold-dark);
    margin-bottom: 12px;
}

/* ---------- Hero: großes Foto, kaum Weichzeichner ---------- */
.hero.hero-photo {
    min-height: 92vh;
    min-height: 92svh;
    height: auto;
    background: #1a2e25;
    padding: 110px 20px 120px;
}
.hero.hero-photo::before { display: none; }
.hero.hero-photo::after {
    background:
        linear-gradient(180deg, rgba(14, 24, 19, .50) 0%, rgba(14, 24, 19, .18) 38%, rgba(14, 24, 19, .28) 62%, rgba(14, 24, 19, .72) 100%),
        radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, 0) 62%);
}
.hero .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 62%;
    z-index: -2;
    animation: heroZoom 16s cubic-bezier(.2, .6, .3, 1) forwards;
}
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }

.hero-scroll {
    position: absolute !important;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(232, 212, 155, .6);
    color: var(--t2-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    animation: heroBounce 2.4s ease-in-out infinite;
}
@media (max-width: 700px) { .hero.hero-photo { padding: 90px 18px 110px; } }
.hero-scroll:hover { color: #fff; border-color: #fff; }
@keyframes heroBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------- Intro: Text + Bildcollage ---------- */
.intro-split {
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}
.intro-text h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.15;
    margin: 0 0 18px;
}
.intro-text p { color: var(--t2-ink-soft); font-size: 1.08rem; margin: 0; }
.intro-collage { position: relative; padding: 0 0 64px 0; }
.intro-collage figure { margin: 0; overflow: hidden; border-radius: 16px; background: var(--t2-cream-deep); }
.intro-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-main { aspect-ratio: 4 / 3; box-shadow: var(--t2-shadow-lg); }
.ic-side {
    position: absolute;
    left: -48px;
    bottom: 0;
    width: 40%;
    aspect-ratio: 2 / 3;
    border: 6px solid var(--t2-cream);
    box-shadow: var(--t2-shadow-lg);
}

/* ---------- Vollbreite Fotobänder ---------- */
.photo-band,
.lift-notice {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #1a2e25;
}
.band-img {
    position: absolute;
    left: 0;
    top: -10%;
    width: 100%;
    height: 120%;          /* Reserve für den Parallax-Versatz */
    object-fit: cover;
    z-index: -2;
    will-change: transform;
}
.photo-band {
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 24px 72px;
}
.photo-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 24, 19, 0) 35%, rgba(14, 24, 19, .78) 100%);
    z-index: -1;
}
.band-content { max-width: 1180px; width: 100%; margin: 0 auto; color: #fff; }
.band-content .kicker { color: var(--t2-gold-light); }
.band-content h2 {
    color: #fff;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.1;
    max-width: 760px;
    margin: 0 0 14px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.band-content p { max-width: 560px; font-size: 1.1rem; opacity: .92; margin: 0; }

/* Hinweis zur Talfahrt: Karte über dem Sessellift-Foto */
.lift-notice { padding: 110px 24px; display: flex; justify-content: center; }
.lift-notice::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 24, 19, .35), rgba(14, 24, 19, .55));
    z-index: -1;
}
.lift-notice-card {
    max-width: 720px;
    background: rgba(250, 246, 236, .95);
    border-radius: 18px;
    padding: 40px 44px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    border-top: 4px solid var(--t2-gold);
}
.lift-notice-icon { font-size: 2rem; color: var(--t2-gold-dark); display: block; margin-bottom: 10px; }
.lift-notice-card h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 12px; }
.lift-notice-card p { margin: 0; color: var(--t2-ink); font-weight: 700; line-height: 1.6; }

/* Foto in der Sessellift-Karte */
.info-card .card-photo {
    margin: -32px -26px 22px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
    background: var(--t2-cream-deep);
}
.info-card .card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.info-card:hover .card-photo img { transform: scale(1.04); }

/* Private Events & Speisekarte: Foto unter dunklem Grün */
.private-events-banner,
.menu-banner { position: relative; overflow: hidden; isolation: isolate; }
.private-events-banner::before,
.menu-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(26, 46, 37, .9) 0%, rgba(45, 74, 62, .78) 100%);
}
.menu-banner { padding: 110px 24px; }
.menu-banner h4 { color: var(--t2-gold-light); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* ---------- Kulinarik-Mosaik ---------- */
.food-section { max-width: 1280px; margin: 0 auto; padding: 96px 24px 88px; }
.food-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.food-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 14px; }
.food-head p { color: var(--t2-ink-soft); font-size: 1.05rem; margin: 0; }
.food-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    gap: 14px;
}
.food-mosaic figure {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 1 / 1;
    background: var(--t2-cream-deep);
}
.food-mosaic .fm-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.food-mosaic .fm-tall { grid-row: span 2; aspect-ratio: auto; }
.food-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s cubic-bezier(.25, 1, .5, 1), opacity .8s ease;
}
.food-mosaic figure:hover img { transform: scale(1.06); }

/* ---------- Bierpartner ---------- */
.feature-split {
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.fs-media {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 640px;
    background: var(--t2-cream-deep);
    box-shadow: var(--t2-shadow-lg);
}
.fs-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-logo { display: block; width: min(220px, 60%); height: auto; margin: 4px 0 22px; }
.fs-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; margin: 0 0 16px; }
.fs-text p { color: var(--t2-ink-soft); font-size: 1.06rem; margin: 0 0 28px; }
.fs-text .btn {
    background: linear-gradient(135deg, var(--t2-gold-light), var(--t2-gold));
    color: var(--t2-green-deepest);
    border: 0;
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: .86rem;
    text-decoration: none;
    display: inline-block;
}
.fs-text .btn:hover { background: linear-gradient(135deg, var(--t2-gold), var(--t2-gold-dark)); color: var(--t2-cream); }

/* Galerie: Folien 5:4 — Hochformate (Personen, Schloss) zeigen den oberen Teil.
   Ein Klick öffnet jedes Foto ungeschnitten in der Vollansicht. */
.gallery-carousel { padding-top: 40px; padding-bottom: 56px; }
.gc-slide { background: var(--t2-cream-deep); aspect-ratio: 5 / 4; }
.gc-slide.gc-portrait img { object-position: 50% 22%; }
.gc-zoom {
    display: block; width: 100%; height: 100%; padding: 0; margin: 0;
    border: 0; background: none; cursor: zoom-in;
}
.gc-zoom:focus-visible { outline: 3px solid rgba(201, 166, 107, .8); outline-offset: -3px; }

/* ---------- Vollansicht ---------- */
.gc-lightbox {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(10, 16, 13, .95);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s ease;
    touch-action: pan-y;
}
.gc-lightbox.open { opacity: 1; }
.gc-lightbox[hidden] { display: none; }
.gc-lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 94vw; }
.gc-lb-img {
    max-width: 94vw; max-height: 82vh; max-height: 82svh;
    width: auto; height: auto; object-fit: contain; display: block;
    border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    transition: opacity .2s ease;
}
.gc-lb-img.loading { opacity: .25; }
.gc-lb-caption { color: #f3ead6; font-size: .92rem; margin-top: 14px; text-align: center; opacity: .85; }
.gc-lb-caption span { color: var(--t2-gold-light); margin-right: 10px; }
.gc-lb-btn {
    position: absolute; width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid rgba(232, 212, 155, .45); background: rgba(26, 46, 37, .6);
    color: #f3ead6; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s ease, color .2s ease;
}
.gc-lb-btn:hover { background: var(--t2-gold); color: var(--t2-green-deepest); }
.gc-lb-btn:focus-visible { outline: 3px solid var(--t2-gold-light); outline-offset: 2px; }
.gc-lb-close { top: 18px; right: 18px; }
.gc-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.gc-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
    .gc-lb-prev, .gc-lb-next { top: auto; bottom: 18px; transform: none; }
    .gc-lb-prev { left: calc(50% - 64px); }
    .gc-lb-next { right: calc(50% - 64px); }
    .gc-lb-img { max-height: 74vh; max-height: 74svh; }
}
@media (prefers-reduced-motion: reduce) { .gc-lightbox, .gc-lb-img { transition: none; } }

/* Einblenden beim Scrollen (photos.js setzt .in) */
html.lz-ready .rise { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .3, 1); }
html.lz-ready .rise.in { opacity: 1; transform: none; }

/* ---------- Tablet & Handy ---------- */
@media (max-width: 860px) {
    .intro-split, .feature-split { grid-template-columns: 1fr; gap: 40px; padding: 72px 20px 64px; }
    .intro-text { text-align: center; }
    .intro-collage { padding: 0 0 48px 24px; }
    .ic-side { left: 0; width: 38%; }
    .feature-split .fs-media { aspect-ratio: 4 / 4.4; }
    .fs-text { text-align: center; }
    .fs-logo { margin-left: auto; margin-right: auto; }
}
@media (max-width: 768px) {
    .photo-band { min-height: 64vh; padding: 90px 20px 48px; }
    .lift-notice { padding: 72px 16px; }
    .lift-notice-card { padding: 30px 22px; }
    .menu-banner { padding: 80px 20px; }
    .food-section { padding: 72px 14px 64px; }
    /* Handy: oben ein breites Bild, darunter drei Reihen mit je zwei Quadraten —
       feste Seitenverhältnisse, damit keine Lücken entstehen */
    .food-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 10px; }
    .food-mosaic figure { aspect-ratio: 1 / 1; }
    .food-mosaic .fm-big { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
    .food-mosaic .fm-tall { grid-row: auto; aspect-ratio: 1 / 1; }
    .food-mosaic .fm-last { display: none; }   /* sonst stünde ein Bild allein in der letzten Reihe */
}
@media (max-width: 700px) { .info-card .card-photo { margin: -26px -22px 18px; } }
@media (max-width: 400px) { .info-card .card-photo { margin: -22px -18px 16px; } }
@media (prefers-reduced-motion: reduce) {
    .hero .hero-img, .hero-scroll { animation: none; }
    html.lz-ready .rise { opacity: 1; transform: none; transition: none; }
    .food-mosaic img, .info-card .card-photo img { transition: none; }
}

/* ---------- Speisekarten-Seite (QR-Code): Appetit-Fotos über der Sprachwahl ---------- */
.speisekarte-photos {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 10px;
    margin: 0 0 28px;
}
.speisekarte-photos img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: var(--t2-shadow);
}
@media (max-width: 420px) { .speisekarte-photos img { height: 150px; } }

/* ---------- Kontaktformular: Schließzeiten ---------- */
.closure-notice {
    display: flex; gap: 12px; align-items: flex-start; text-align: left;
    margin: 0 0 22px; padding: 14px 16px; border-radius: 12px;
    background: #fbf3e2; border: 1px solid #e3c98f; color: #5a4520;
    font-size: .95rem; line-height: 1.5;
}
.closure-notice i { font-size: 1.25rem; color: var(--t2-gold-dark); flex: 0 0 auto; margin-top: 1px; }
.date-closed {
    margin: 6px 0 0; font-size: .85rem; line-height: 1.4; color: #a3392c; text-align: left;
}
