/* =========================================================
   Schattenschreck – öffentliche Startseite

   Inhalt:
    1. Schriften & Design-Tokens
    2. Basis
    3. Buttons & Links
    4. Header & Navigation
    5. Hero (Fotos, Nebel, Countdown)
    6. Flatterband
    7. Abschnitte allgemein
    8. Dein Besuch
    9. Erlebnis
   10. Galerie (Bildraster + Overlay)
   11. Newsletter
   12. FAQ
   13. WhatsApp & Mitmachen
   14. Footer
   15. Dialoge (Impressum, Datenschutz)
   16. Cookie-Banner & Nach-oben-Button
   17. Intro
   18. Einblenden beim Scrollen
   19. Bedienhilfen (Bewegung, Kontrast)
========================================================= */

/* =========================================================
   1. SCHRIFTEN & DESIGN-TOKENS
========================================================= */

/* Lokal gehostete Variable Fonts (SIL Open Font License) */
@font-face {
    font-family: "Oswald";
    src: url("/fonts/oswald.woff2") format("woff2");
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("/fonts/dm-sans.woff2") format("woff2");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

/* Metrisch abgestimmte Fallbacks gegen Layoutverschiebungen beim Font-Swap */
@font-face {
    font-family: "DM Sans Fallback";
    src: local("Arial"), local("Roboto"), local("Helvetica Neue");
    ascent-override: 99%;
    descent-override: 31%;
    line-gap-override: 0%;
    size-adjust: 100.5%;
}

@font-face {
    font-family: "Oswald Fallback";
    src: local("Arial Narrow"), local("Roboto Condensed"), local("Arial");
    ascent-override: 118%;
    descent-override: 29%;
    line-gap-override: 0%;
    size-adjust: 83%;
}

:root {
    /* Nacht, Knochen, Nebel, Bengalo-Rot: aus den Fotos des Gartens abgeleitet */
    --bg: #060505;
    --bg-2: #0b0909;
    --panel: #100d0d;
    --panel-light: #171313;

    --white: #f3ede2;
    --text: #dcd5ca;
    --muted: #a9a198;
    --muted-subtle: #948c84;

    --red: #c20d18;
    --red-hover: #e4141f;
    --red-glow: #ff3b3b;
    --red-border: rgba(228, 20, 31, 0.55);
    --ember: rgba(170, 8, 18, 0.16);
    --error: #ff8a8a;

    --whatsapp: #25d366;
    --whatsapp-text: #4be383;

    --border: rgba(243, 237, 226, 0.14);
    --border-light: rgba(243, 237, 226, 0.08);
    --border-strong: rgba(243, 237, 226, 0.28);

    --font-sans: "DM Sans", "DM Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Oswald", "Oswald Fallback", "Arial Narrow", sans-serif;

    --max-width: 1240px;
    --gutter: 32px;
    --header-height: 72px;
    --section-space: clamp(72px, 10vw, 136px);
    --scroll-offset: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 20px);
    --modal-padding-compensation: 0px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.18s;
    --dur: 0.28s;
}

/* =========================================================
   2. BASIS
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: var(--bg);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    scrollbar-color: #322b2b var(--bg);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    padding-right: var(--modal-padding-compensation);
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

body.overlay-locked,
html.intro-pending body,
body.intro-active {
    overflow: hidden;
}

::selection {
    background: var(--red);
    color: #ffffff;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

button,
a,
summary,
[data-gallery-open] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--red-glow);
    outline-offset: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

main[tabindex="-1"]:focus-visible,
section[tabindex="-1"]:focus-visible {
    outline: none;
}

[hidden] {
    display: none !important;
}

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

.skip-link {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 16px;
    z-index: 7000;
    padding: 12px 18px;
    background: var(--red);
    color: #ffffff;
    font-weight: 600;
    border: 1px solid #ffffff;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Schräges Flatterband und gedrehtes Foto dürfen keinen seitlichen Scrollbalken erzeugen */
main {
    overflow-x: clip;
}

.container {
    width: min(calc(100% - var(--gutter) * 2), var(--max-width));
    margin: 0 auto;
}

main[id],
section[id],
footer[id],
div[id] {
    scroll-margin-top: var(--scroll-offset);
}

/* Bild-Fallbacks: Text statt kaputtem Bild */
.img-fallback-text {
    display: none;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.img-broken {
    display: none !important;
}

.img-broken + .img-fallback-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   3. BUTTONS & LINKS
========================================================= */

.primary-button,
.secondary-button,
.whatsapp-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background var(--dur-fast) ease,
        border-color var(--dur-fast) ease,
        color var(--dur-fast) ease,
        box-shadow var(--dur) var(--ease-out),
        transform var(--dur) var(--ease-out);
}

.primary-button {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--red-hover);
    border-color: var(--red-hover);
}

.secondary-button {
    border-color: var(--border-strong);
    background: rgba(6, 5, 5, 0.45);
    color: var(--white);
}

.secondary-button:hover,
.secondary-button:focus-visible {
    border-color: var(--white);
    background: rgba(243, 237, 226, 0.08);
}

.primary-button:active,
.secondary-button:active,
.whatsapp-button:active,
.gallery-nav-button:active,
.gallery-tab:active,
.intro-enter-btn:active,
.back-top:active {
    transform: translate3d(0, 1px, 0) scale(0.985);
    transition-duration: 0.06s;
}

@media (hover: hover) and (pointer: fine) {
    .primary-button:hover {
        transform: translate3d(0, -2px, 0);
        box-shadow: 0 12px 34px rgba(194, 13, 24, 0.38);
    }
}

/* Textlinks: unterstrichen, Linie wird beim Hover rot und kräftiger */
.text-link,
.faq-answer-inner a,
.countdown-fallback a,
.modal-body a,
.nl-consent a,
.nl-error a,
.footer-email,
.footer-credit-link,
.footer-legal-link,
.cookie-banner-text a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: rgba(243, 237, 226, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition:
        color var(--dur-fast) ease,
        text-decoration-color var(--dur-fast) ease;
}

.text-link:hover,
.faq-answer-inner a:hover,
.countdown-fallback a:hover,
.modal-body a:hover,
.nl-consent a:hover,
.nl-error a:hover,
.footer-email:hover,
.footer-credit-link:hover,
.footer-legal-link:hover,
.cookie-banner-text a:hover {
    color: #ffffff;
    text-decoration-color: var(--red-glow);
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
}

/* =========================================================
   4. HEADER & NAVIGATION
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: var(--modal-padding-compensation);
    background: linear-gradient(rgba(6, 5, 5, 0.85), rgba(6, 5, 5, 0));
    border-bottom: 1px solid transparent;
}

.header.transitions-ready {
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        opacity 0.35s ease;
}

.header.scrolled {
    background: rgba(6, 5, 5, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    width: 176px;
    flex-shrink: 0;
}

.header-logo {
    width: 100%;
    height: auto;
}

.logo-link .img-fallback-text {
    font-size: 18px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 30px);
}

.desktop-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    background: var(--red-hover);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="true"] {
    color: #ffffff;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="true"]::after {
    transform: scaleX(1);
}

.desktop-nav .nav-cta {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--red-border);
    background: rgba(194, 13, 24, 0.16);
    color: #ffffff;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.desktop-nav .nav-cta::after {
    display: none;
}

.desktop-nav .nav-cta:hover,
.desktop-nav .nav-cta:focus-visible,
.desktop-nav .nav-cta[aria-current="true"] {
    background: var(--red);
    border-color: var(--red);
}

.menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--border-strong);
    background: rgba(6, 5, 5, 0.5);
    color: var(--white);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.menu-button:hover,
.menu-button:focus-visible {
    border-color: var(--white);
}

.menu-icon {
    position: relative;
    width: 20px;
    height: 14px;
}

.menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition:
        transform 0.2s ease,
        top 0.2s ease,
        opacity 0.2s ease;
}

.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 6px; }
.menu-icon span:nth-child(3) { top: 12px; }

.menu-button[aria-expanded="true"] .menu-icon span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-icon span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* Mobiles Menü: vollflächig unter dem Header */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu.open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-background {
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-menu.open .mobile-menu-background {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    transform: translateY(-8px);
    opacity: 0;
    transition:
        transform 0.25s var(--ease-out),
        opacity 0.25s ease;
}

.mobile-menu.open .mobile-menu-panel {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-label {
    display: none;
}

.mobile-menu-panel a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(26px, 7.5vw, 34px);
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a:focus-visible {
    color: var(--red-glow);
}

.mobile-menu-panel .mobile-nav-sub {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    text-align: right;
    color: var(--muted);
}

/* =========================================================
   5. HERO (FOTOS, NEBEL, COUNTDOWN)
========================================================= */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding:
        calc(var(--header-height) + env(safe-area-inset-top, 0px) + 32px)
        0
        44px;
    overflow: hidden;
    isolation: isolate;
}

/* Drei Hochformat-Aufnahmen, gestaffelt, links ins Schwarz auslaufend */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 58%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
    mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}

.hero-photo {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.hero-photo-1 { margin: 16vh 0 9vh; }
.hero-photo-2 { margin: 0 0 20vh; }
.hero-photo-3 { margin: 26vh 0 0; }

.hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06) brightness(0.86);
}

/* Abdunklung nach unten, damit Countdown und Flatterband ruhig stehen */
.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 5, 5, 0.55) 0%, rgba(6, 5, 5, 0) 22%, rgba(6, 5, 5, 0) 62%, var(--bg) 100%);
    pointer-events: none;
}

/* Bodennebel: zwei langsam ziehende Schwaden (einzige Dauerbewegung der Seite) */
.hero-fog {
    position: absolute;
    left: -30%;
    right: -30%;
    bottom: -6%;
    height: 58%;
    pointer-events: none;
}

.hero-fog::before,
.hero-fog::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 36% 46% at 22% 72%, rgba(232, 218, 214, 0.2), transparent 70%),
        radial-gradient(ellipse 30% 40% at 58% 60%, rgba(255, 110, 110, 0.14), transparent 70%),
        radial-gradient(ellipse 34% 50% at 84% 78%, rgba(232, 218, 214, 0.17), transparent 70%);
    filter: blur(22px);
    animation: fogDrift 46s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-fog::after {
    transform: scaleX(-1);
    opacity: 0.8;
    animation-name: fogDriftBack;
    animation-duration: 62s;
}

@keyframes fogDrift {
    from { transform: translate3d(-7%, 0, 0); }
    to { transform: translate3d(7%, -3%, 0); }
}

@keyframes fogDriftBack {
    from { transform: scaleX(-1) translate3d(-6%, 2%, 0); }
    to { transform: scaleX(-1) translate3d(8%, -2%, 0); }
}

.hero.is-offscreen .hero-fog::before,
.hero.is-offscreen .hero-fog::after {
    animation-play-state: paused;
}

.hero-inner {
    position: relative;
}

.hero-date {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
}

.hero-date::before {
    content: "";
    width: 34px;
    height: 2px;
    flex-shrink: 0;
    background: var(--red-hover);
}

.hero-title {
    max-width: 7.4em;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(46px, min(5.8vw, 9.8vh), 104px);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.012em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 2px 30px rgba(6, 5, 5, 0.7);
}

.hero-description {
    max-width: 60ch;
    margin-top: 22px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.65;
    text-wrap: pretty;
    text-shadow: 0 1px 16px rgba(6, 5, 5, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.hero-facts li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.hero-facts li::before {
    content: "";
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background: var(--red-hover);
    transform: rotate(45deg);
}

/* Auch im Galerie-Overlay genutzt (Hinweis „Neue Bilder“) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--red-border);
    background: rgba(194, 13, 24, 0.16);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

/* Countdown */
.countdown-section {
    margin-top: clamp(28px, 4.5vh, 56px);
}

.countdown-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 12px;
}

.countdown-title {
    color: var(--muted);
    font-size: 15px;
}

.countdown-status {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
}

.countdown-fallback {
    max-width: 520px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: rgba(6, 5, 5, 0.6);
    color: var(--muted);
    font-size: 15px;
}

.countdown {
    display: none;
    gap: clamp(22px, 4vw, 52px);
}

/* js-enabled wird im <head> gesetzt: Countdown-Platz ist ab dem ersten Paint reserviert */
html.js-enabled:not(.countdown-failed) .countdown-fallback {
    display: none;
}

html.js-enabled:not(.countdown-failed) .countdown {
    display: flex;
}

.countdown-item {
    min-width: 2.4ch;
}

.countdown-number {
    display: block;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-item:first-child .countdown-number {
    color: var(--red-glow);
}

.countdown-label {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

/* =========================================================
   6. FLATTERBAND (wie die Absperrung im Garten)
========================================================= */

.tape {
    position: relative;
    z-index: 2;
    height: 16px;
    margin: -8px -2vw 0;
    background: repeating-linear-gradient(
        -45deg,
        #e9e2d6 0 22px,
        var(--red) 22px 44px
    );
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transform: rotate(-0.7deg);
}

/* =========================================================
   7. ABSCHNITTE ALLGEMEIN
========================================================= */

.section {
    padding: var(--section-space) 0 0;
}

.section-title,
.newsletter-title,
.whatsapp-title,
.modal-title {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
}

.section-title {
    max-width: 14em;
    font-size: clamp(38px, 5.4vw, 72px);
}

.section-text {
    max-width: 58ch;
    margin-top: 20px;
    color: var(--muted);
    font-size: 18px;
    text-wrap: pretty;
}

/* =========================================================
   8. DEIN BESUCH
========================================================= */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 clamp(20px, 3vw, 40px);
    margin: clamp(32px, 5vw, 56px) 0 0;
}

.quick-item {
    min-width: 0;
    padding-top: 20px;
    border-top: 2px solid var(--red);
}

.quick-label {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 15px;
}

.quick-value {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 500;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.quick-sub {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-wrap: pretty;
}

.visit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-top: 40px;
}

/* =========================================================
   9. ERLEBNIS
========================================================= */

.experience-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 7vw, 104px);
    align-items: start;
}

.experience-intro {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}

.experience-photo {
    max-width: 400px;
    margin-top: 36px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.experience-photo img,
.join-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

.experience-item {
    padding: clamp(24px, 3vw, 36px) 0;
    border-bottom: 1px solid var(--border);
}

.experience-item h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
}

.experience-item p {
    max-width: 52ch;
    margin-top: 10px;
    color: var(--muted);
    text-wrap: pretty;
}

/* =========================================================
   10. GALERIE (BILDRASTER + OVERLAY)
========================================================= */

/* Ohne JavaScript lässt sich das Overlay nicht öffnen: Bilder bleiben sichtbar, Buttons entfallen */
html:not(.js-enabled) .gallery-year-buttons,
html:not(.js-enabled) .gallery-more,
html:not(.js-enabled) #galleryModal,
html.modal-failed #galleryModal {
    display: none;
}

.gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 40px;
}

.gallery-year-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-year-buttons .secondary-button {
    min-height: 44px;
    padding: 0 18px;
}

.shots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: clamp(28px, 4vw, 48px);
}

.shot {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: var(--panel);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    cursor: zoom-in;
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.6s var(--ease-out),
        filter 0.3s ease;
}

.shot-year {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 6px 12px;
    background: rgba(6, 5, 5, 0.82);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.shot:focus-visible {
    outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
    .shot:hover img {
        transform: scale(1.05);
        filter: brightness(1.12);
    }
}

.gallery-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* ---- Overlay (nutzt die .modal-Basis aus Abschnitt 15) ---- */
html.js-enabled:not(.modal-failed) #galleryModal .modal-content {
    width: min(760px, 100%);
}

.gallery-modal-title {
    margin-bottom: 18px;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-tab,
.gallery-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.gallery-tab:hover,
.gallery-tab:focus-visible,
.gallery-nav-button:hover,
.gallery-nav-button:focus-visible {
    border-color: var(--border-strong);
    background: rgba(243, 237, 226, 0.07);
    color: #ffffff;
}

.gallery-tab.is-active {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

.gallery-note {
    margin-top: 14px;
}

/* Bühne im Hochformat, weil alle Aufnahmen hochkant sind */
.gallery-stage {
    position: relative;
    width: 100%;
    height: min(52vh, 640px);
    height: min(52dvh, 640px);
    margin-top: 18px;
    background: #000000;
    overflow: hidden;
    touch-action: pan-y;
}

/* Lade-Hinweis, solange die Bühne .stage-busy trägt (per JS gesetzt) */
.gallery-stage::before {
    content: "Bild wird geladen …";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--muted);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-stage.stage-busy::before {
    opacity: 1;
    animation: galleryLoadingPulse 1.6s ease-in-out infinite;
}

@keyframes galleryLoadingPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

.gallery-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-stage img.is-loaded {
    opacity: 1;
}

.gallery-stage .img-fallback-text {
    position: absolute;
    inset: 0;
    padding: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--muted);
}

.gallery-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.gallery-counter {
    min-width: 0;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}

.gallery-counter-num {
    color: var(--white);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.gallery-counter-year::before {
    content: ", ";
}

.gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.gallery-download {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 15px;
    text-decoration: underline;
    text-decoration-color: rgba(243, 237, 226, 0.3);
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.gallery-download:hover,
.gallery-download:focus-visible {
    color: #ffffff;
}

/* =========================================================
   11. NEWSLETTER
========================================================= */

.newsletter-section {
    padding: var(--section-space) 0 0;
}

.newsletter-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(28px, 5vw, 64px);
    background:
        radial-gradient(ellipse 60% 90% at 0% 100%, var(--ember), transparent 70%),
        var(--panel);
    border-top: 2px solid var(--red);
}

.newsletter-title {
    font-size: clamp(36px, 4.6vw, 60px);
}

.newsletter-text {
    max-width: 52ch;
    margin-top: 18px;
    color: var(--muted);
    text-wrap: pretty;
}

.newsletter-perks {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.newsletter-perks li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    line-height: 1.5;
}

.newsletter-perks li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 0.55em;
    width: 7px;
    height: 7px;
    background: var(--red-hover);
    transform: rotate(45deg);
}

.newsletter-form-wrap {
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--border);
    background: var(--bg);
}

.nl-field {
    margin: 0 0 18px;
}

.nl-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.nl-field input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 0;
    background: var(--bg-2);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 17px; /* ≥ 16px verhindert Auto-Zoom auf iOS */
    -webkit-appearance: none;
    appearance: none;
    transition:
        border-color var(--dur-fast) ease,
        box-shadow var(--dur-fast) ease;
}

.nl-field input:hover {
    border-color: var(--white);
}

.nl-field input:focus {
    border-color: var(--red-glow);
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 20, 31, 0.28);
}

.nl-field input[aria-invalid="true"],
.nl-consent input[aria-invalid="true"] {
    border-color: var(--error);
    outline: 1px solid var(--error);
}

.nl-field-err {
    margin: 6px 0 0;
    color: var(--error);
    font-size: 14px;
}

.nl-field-err:empty {
    display: none;
}

/* Honeypot: aus dem sichtbaren Bereich geschoben (nicht display:none, das erkennen manche Bots) */
.nl-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.nl-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 0;
}

.nl-consent input {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    accent-color: var(--red-hover);
    cursor: pointer;
}

.nl-consent label {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    cursor: pointer;
    text-wrap: pretty;
}

.nl-consent-err {
    margin-left: 34px;
}

.nl-error {
    margin: 18px 0 0;
    color: var(--error);
    font-size: 15px;
}

.nl-error:empty {
    display: none;
}

.nl-error:not(:empty) {
    padding: 10px 12px;
    border-left: 3px solid var(--error);
    background: rgba(255, 138, 138, 0.08);
}

.newsletter-submit {
    gap: 10px;
    width: 100%;
    margin-top: 22px;
}

.newsletter-submit:disabled {
    opacity: 0.75;
    cursor: progress;
}

.newsletter-submit.is-busy::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: nl-spin 0.8s linear infinite;
}

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

.nl-note {
    margin: 12px 0 0;
    color: var(--muted-subtle);
    font-size: 14px;
    text-align: center;
}

.newsletter-success {
    padding: 8px 0 4px;
    text-align: center;
}

.newsletter-success:focus {
    outline: none;
}

.newsletter-success-icon {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border: 1px solid var(--red-border);
    background: rgba(194, 13, 24, 0.16);
    color: var(--white);
}

.newsletter-success-title {
    margin: 0 0 12px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 38px);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.newsletter-success-lead {
    max-width: 340px;
    margin: 0 auto;
    color: var(--text);
    text-wrap: balance;
}

.newsletter-success-sent {
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.newsletter-success-sent strong {
    color: var(--white);
    font-weight: 600;
}

.nl-retry {
    margin: 16px 0 0;
    padding: 8px 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 15px;
    text-decoration: underline;
    text-decoration-color: var(--red-hover);
    text-underline-offset: 3px;
    cursor: pointer;
}

.nl-retry:hover {
    color: #ffffff;
}

/* =========================================================
   12. FAQ (NATIVE DETAILS + ANIMATION PER JS)
========================================================= */

.faq-list {
    max-width: 900px;
    margin-top: clamp(28px, 4vw, 48px);
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    gap: 20px;
    color: var(--white);
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    content: "";
}

.faq-question:focus-visible {
    outline-offset: 2px;
}

.faq-question-text {
    min-width: 0;
    font-size: clamp(19px, 2vw, 22px);
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
    transition: color var(--dur-fast) ease;
}

.faq-plus {
    position: relative;
    width: 32px;
    height: 32px;
    justify-self: end;
    border: 1px solid var(--border-strong);
    transition:
        border-color var(--dur-fast) ease,
        background-color var(--dur-fast) ease;
}

.faq-plus::before,
.faq-plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--white);
    transform: translate(-50%, -50%);
}

.faq-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform var(--dur) var(--ease-out);
}

.faq-item[open] .faq-plus {
    border-color: var(--red);
    background-color: var(--red);
}

.faq-item[open] .faq-plus::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

@media (hover: hover) and (pointer: fine) {
    .faq-question:hover .faq-plus {
        border-color: var(--red-hover);
    }

    .faq-question:hover .faq-question-text {
        color: #ffffff;
    }
}

.faq-answer {
    overflow: hidden;
}

.faq-answer-inner p {
    max-width: 62ch;
    padding: 0 40px 26px 0;
    color: var(--muted);
    text-wrap: pretty;
}

/* =========================================================
   13. WHATSAPP & MITMACHEN
========================================================= */

.whatsapp-section {
    padding: var(--section-space) 0 0;
}

.whatsapp-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px 48px;
    padding: clamp(28px, 5vw, 56px);
    background: var(--panel);
    border-top: 2px solid var(--whatsapp);
}

.whatsapp-title {
    font-size: clamp(32px, 4.2vw, 52px);
}

.whatsapp-text {
    max-width: 56ch;
    margin-top: 14px;
    color: var(--muted);
    text-wrap: pretty;
}

.whatsapp-button {
    border-color: var(--whatsapp);
    background: rgba(37, 211, 102, 0.1);
    color: #ffffff;
    white-space: nowrap;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
    background: rgba(37, 211, 102, 0.22);
    border-color: var(--whatsapp-text);
}

.join {
    padding-bottom: var(--section-space);
}

.join-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}

.join-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-top: 32px;
}

.join-photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 30px 80px rgba(194, 13, 24, 0.22);
}

/* =========================================================
   14. FOOTER
========================================================= */

footer {
    border-top: 1px solid var(--border);
    background: #030303;
    padding: 56px 0 calc(32px + env(safe-area-inset-bottom, 0px));
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    min-width: 0;
}

.footer-logo-frame {
    width: 145px;
    margin-bottom: 18px;
}

.footer-logo {
    width: 100%;
    height: auto;
}

.footer-logo-frame .img-fallback-text {
    font-size: 18px;
}

.footer-description {
    max-width: 44ch;
    color: var(--muted);
    font-size: 15px;
}

.footer-contact {
    text-align: right;
}

.footer-contact-label {
    color: var(--muted);
    font-size: 15px;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    color: var(--muted);
    font-size: 14px;
}

.footer-credit-heart {
    display: inline-block;
    margin: 0 2px;
    color: var(--red-hover);
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.footer-legal-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

button.footer-legal-link {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
}

/* =========================================================
   15. DIALOGE (OHNE JS REGULÄRE ABSCHNITTE, MIT JS OVERLAYS)
========================================================= */

.modal {
    padding: 0 0 60px;
    background: #030303;
}

.modal-content {
    position: relative;
    width: min(calc(100% - var(--gutter) * 2), var(--max-width));
    margin: 0 auto;
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid var(--border);
    background: var(--panel);
}

.modal-close {
    display: none;
}

/* js-enabled wird im <head> gesetzt: Dialoge liegen sofort außerhalb des Flusses (kein Höhensprung) */
html.js-enabled:not(.modal-failed) .modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.86);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

html.js-enabled:not(.modal-failed) .modal.transitions-ready {
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

html.js-enabled:not(.modal-failed) .modal.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

html.js-enabled:not(.modal-failed) .modal .modal-content {
    width: min(760px, 100%);
    margin: 0;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    transform: translateY(10px);
}

html.js-enabled:not(.modal-failed) .modal.transitions-ready .modal-content {
    transition: transform 0.25s var(--ease-out);
}

html.js-enabled:not(.modal-failed) .modal.open .modal-content {
    transform: translateY(0);
}

html.js-enabled:not(.modal-failed) .modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    color: var(--white);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

html.js-enabled:not(.modal-failed) .modal .modal-close:hover,
html.js-enabled:not(.modal-failed) .modal .modal-close:focus-visible {
    border-color: var(--red);
    background: var(--red);
}

.modal-label {
    padding-right: 60px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 15px;
}

.modal-title {
    padding-right: 60px;
    margin: 0 0 24px;
    font-size: clamp(32px, 5vw, 48px);
}

.modal-body {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.modal-body p {
    margin: 0 0 18px;
    text-wrap: pretty;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: var(--white);
}

.modal-body h3 {
    margin: 32px 0 10px;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.modal-body ul {
    margin: 0 0 18px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body code {
    padding: 1px 6px;
    background: rgba(243, 237, 226, 0.08);
    color: var(--white);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    word-break: break-all;
}

.modal-body .cookie-inline-button {
    min-height: 46px;
    margin-top: 4px;
}

/* =========================================================
   16. COOKIE-BANNER & NACH-OBEN-BUTTON
========================================================= */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 4500;
    width: min(calc(100% - 32px), 720px);
    padding: 20px 22px;
    border: 1px solid var(--border-strong);
    background: rgba(16, 13, 13, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translate(-50%, 16px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cookie-banner-title {
    margin: 0 0 6px;
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.cookie-banner-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* Beide Entscheidungen gleich groß und gleich gut erreichbar */
.cookie-banner-actions .primary-button,
.cookie-banner-actions .secondary-button {
    flex: 1 1 0;
    min-height: 46px;
    padding: 0 12px;
    font-size: 15px;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-strong);
    background: var(--panel);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.back-top.transitions-ready {
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover,
.back-top:focus-visible {
    background: var(--red);
    border-color: var(--red);
}

/* =========================================================
   17. INTRO (FORTSCHRITT WIRD PER JS ÜBER CSS-VARIABLEN GESETZT)
========================================================= */

.intro-screen {
    --intro-bg-opacity: 1;
    --intro-logo-scale: 1;
    --intro-logo-y: 0px;
    --intro-logo-opacity: 1;
    --intro-glow-scale: 1;
    --intro-glow-opacity: 0.65;
    --intro-hint-opacity: 1;
    --intro-hint-y: 0px;
    --intro-skip-opacity: 1;
    --intro-progress: 0;

    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* intro-pending kommt aus dem <head>: Intro steht beim Erstaufruf ab dem ersten Frame */
html.intro-pending .intro-screen,
body.intro-active .intro-screen {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html.intro-pending .header,
body.intro-active .header {
    opacity: 0;
    pointer-events: none;
}

.intro-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 44%, rgba(170, 8, 18, 0.2), rgba(3, 3, 3, 0.98) 62%),
        #030303;
    opacity: var(--intro-bg-opacity);
    will-change: opacity;
}

.intro-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 680px;
}

/* Feste Proportion des Logos (485 × 83) verhindert Rutschen beim Laden */
.intro-logo-wrap {
    position: relative;
    width: min(520px, 84vw);
    aspect-ratio: 485 / 83;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 56px;
    opacity: var(--intro-logo-opacity);
    transform: translate3d(0, var(--intro-logo-y), 0) scale(var(--intro-logo-scale));
    transform-origin: center center;
    will-change: transform, opacity;
}

.intro-logo-wrap::before {
    content: "";
    position: absolute;
    width: 120%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 10, 22, 0.26), transparent 65%);
    opacity: var(--intro-glow-opacity);
    transform: scale(var(--intro-glow-scale));
    pointer-events: none;
    will-change: transform, opacity;
}

.intro-logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

.intro-title-fallback {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(28px, 6vw, 44px);
}

.intro-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: min(300px, 82vw);
    text-align: center;
}

.intro-status-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    opacity: var(--intro-hint-opacity);
    transform: translate3d(0, var(--intro-hint-y), 0);
    will-change: transform, opacity;
}

.intro-progress-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(243, 237, 226, 0.16);
    overflow: hidden;
}

.intro-progress-fill {
    width: 100%;
    height: 100%;
    background: var(--red-hover);
    transform: scaleX(var(--intro-progress));
    transform-origin: left center;
    will-change: transform;
}

.intro-hint {
    color: var(--text);
    font-size: 15px;
}

.intro-enter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--border-strong);
    background: rgba(16, 13, 13, 0.85);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: var(--intro-skip-opacity);
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.intro-enter-btn:hover,
.intro-enter-btn:focus-visible {
    background: var(--red);
    border-color: var(--red);
}

/* =========================================================
   18. EINBLENDEN BEIM SCROLLEN
   Nur Elemente, die beim Laden unterhalb des Viewports liegen, erhalten .reveal-pending
========================================================= */

.reveal.reveal-pending {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
}

.reveal.reveal-animate {
    transition:
        opacity 0.5s var(--ease-out),
        transform 0.5s var(--ease-out);
}

/* =========================================================
   TABLET (MAX 1000PX)
========================================================= */

@media (max-width: 1000px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    /* Ein Foto als Hintergrund: Hochformat passt zum Hochformat-Bildschirm */
    .hero-visual {
        left: 0;
        width: 100%;
        display: block;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-photo-1,
    .hero-photo-3 {
        display: none;
    }

    .hero-photo-2 {
        position: absolute;
        inset: 0;
        margin: 0;
    }

    .hero-photo-2 img {
        object-position: 50% 30%;
        filter: saturate(1.05) brightness(0.62);
    }

    .hero-visual::after {
        background: linear-gradient(to bottom, rgba(6, 5, 5, 0.7) 0%, rgba(6, 5, 5, 0.25) 26%, rgba(6, 5, 5, 0.72) 62%, var(--bg) 100%);
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px clamp(20px, 4vw, 40px);
    }

    .newsletter-card {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MOBIL (MAX 760PX)
========================================================= */

@media (max-width: 760px) {
    :root {
        --gutter: 18px;
        --header-height: 64px;
    }

    body {
        font-size: 16px;
    }

    .logo-link {
        width: 150px;
    }

    .hero {
        padding-bottom: 44px;
    }

    .hero-date {
        font-size: 15px;
    }

    .hero-title {
        font-size: clamp(42px, 13vw, 68px);
    }

    .hero-description,
    .section-text {
        font-size: 17px;
    }

    .experience-layout,
    .join-layout {
        grid-template-columns: 1fr;
    }

    .experience-intro {
        position: static;
    }

    .experience-photo {
        max-width: none;
        aspect-ratio: 4 / 3;
    }

    .shots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    /* Sechs statt acht Vorschaubilder halten den Abschnitt auf dem Handy kompakt */
    .shot:nth-child(n + 7) {
        display: none;
    }

    .whatsapp-card {
        grid-template-columns: 1fr;
    }

    .whatsapp-button {
        width: 100%;
    }

    .join-photo {
        width: min(260px, 70%);
        justify-self: center;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-contact {
        text-align: left;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   KLEINES HANDY (MAX 520PX)
========================================================= */

@media (max-width: 520px) {
    .hero-actions,
    .visit-actions,
    .join-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .primary-button,
    .hero-actions .secondary-button,
    .visit-actions .secondary-button,
    .join-actions .primary-button,
    .gallery-more .primary-button {
        width: 100%;
    }

    .visit-actions .text-link,
    .join-actions .text-link {
        justify-content: center;
    }

    .hero-facts {
        gap: 6px 18px;
        font-size: 14px;
    }

    .countdown {
        justify-content: space-between;
        gap: 12px;
    }

    .quick-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .gallery-year-buttons {
        width: 100%;
    }

    .gallery-year-buttons .secondary-button {
        flex: 1 1 0;
        padding: 0 6px;
    }

    .faq-question {
        padding: 20px 0;
    }

    .faq-answer-inner p {
        padding-right: 0;
    }

    /* Lange deutsche Komposita brechen auf schmalen Displays sauber um */
    .experience-item p,
    .faq-answer-inner p,
    .modal-body p,
    .section-text,
    .quick-sub {
        -webkit-hyphens: auto;
        hyphens: auto;
    }

    html.js-enabled:not(.modal-failed) .modal {
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    html.js-enabled:not(.modal-failed) .modal .modal-content {
        max-height: 96vh;
        max-height: 96dvh;
        padding: 22px 16px;
    }

    html.js-enabled:not(.modal-failed) .modal .modal-close {
        top: 10px;
        right: 10px;
    }

    .gallery-stage {
        height: min(54vh, 560px);
        height: min(54dvh, 560px);
    }

    .gallery-tab {
        flex: 1 1 auto;
        padding: 0 10px;
    }

    .gallery-controls {
        gap: 8px;
    }

    .gallery-nav-button {
        padding: 0 12px;
    }

    .gallery-counter-num,
    .gallery-counter-year {
        display: block;
    }

    .gallery-counter-year::before {
        content: none;
    }

    .cookie-banner {
        width: calc(100% - 20px);
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        padding: 16px;
    }

    .back-top {
        right: 12px;
    }
}

/* Flache Querformat-Displays: Hero darf wachsen statt zu quetschen */
@media (max-height: 560px) {
    .hero {
        min-height: 0;
    }
}

/* =========================================================
   19. BEDIENHILFEN (BEWEGUNG, KONTRAST)
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-fog::before,
    .hero-fog::after {
        animation: none;
    }

    .reveal.reveal-pending {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-contrast: more) {
    :root {
        --muted: #cbc4ba;
        --muted-subtle: #bdb6ac;
        --border: rgba(243, 237, 226, 0.34);
        --border-light: rgba(243, 237, 226, 0.24);
    }
}

@media (forced-colors: active) {
    :focus-visible {
        outline: 2px solid CanvasText;
    }

    .primary-button,
    .secondary-button,
    .hero-badge,
    .nl-field input,
    .newsletter-form-wrap {
        border: 1px solid ButtonText;
    }

    .tape {
        background: CanvasText;
    }
}
