/* ==========================================================================
   Herbst / Hereno — Landing Page
   Umsetzung des Design-Handoffs (CD/design_handoff_herbst_hereno_landing).
   Alle Masse des Logos leiten sich aus --logo-h ab, damit es proportional
   skaliert, ohne dass ein transform: scale() Layout-Luecken hinterlaesst.
   ========================================================================== */

/* --- Fonts (selbst gehostet, kein Google-CDN) ----------------------------- */

/* Jost ist eine Variable Font: eine Datei deckt 400-700 ab. */
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/jost-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/jost-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                   U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/spacemono-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/spacemono-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                   U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/spacemono-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/spacemono-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                   U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design-Tokens -------------------------------------------------------- */

:root {
    --bg: #000000;
    --bg-tiefe: radial-gradient(1200px 700px at 50% 32%, #1a1a1f 0%, #0b0b0d 55%, #000000 100%);
    --weiss: #ffffff;
    --text-sekundaer: #b0b0b0;
    --text-tertiaer: #6a6a6a;
    --linie: #1e1e1e;
    --outline-hero: #1f1f1f;
    --outline-band: #222222;
    --hover-flaeche: #111111;

    --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --spalte: 860px;

    /* Logo-Grundmass. Desktop 132px, skaliert auf schmalen Viewports mit. */
    --logo-h: clamp(56px, 12vw, 132px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--weiss);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--weiss); text-decoration: none; }

::selection { background: var(--weiss); color: #000000; }

:focus-visible { outline: 2px solid var(--weiss); outline-offset: 3px; }

/* Fuer Screenreader sichtbar, visuell versteckt. */
.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;
}

/* --- Keyframes ------------------------------------------------------------ */

@keyframes ticker    { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes tickerRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

@keyframes sweep {
      0% { transform: translateX(-120vw) rotate(-68deg); }
     60% { transform: translateX(120vw) rotate(-68deg); }
    100% { transform: translateX(120vw) rotate(-68deg); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
}

/* Die beiden Logo-Haelften gleiten entlang der Schnittrichtung gegeneinander,
   damit die diagonale Kante parallel bleibt. */
@keyframes shiftL {
    0%, 100% { transform: translate(var(--shift-x), calc(var(--shift-y) * -1)); }
        50%  { transform: translate(calc(var(--shift-x) * -1), var(--shift-y)); }
}

@keyframes shiftR {
    0%, 100% { transform: translate(calc(var(--shift-x) * -1), var(--shift-y)); }
        50%  { transform: translate(var(--shift-x), calc(var(--shift-y) * -1)); }
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* --- Grundgeruest --------------------------------------------------------- */

.seite {
    background: var(--bg-tiefe);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

/* --- Ticker-Leiste -------------------------------------------------------- */

.ticker {
    overflow: hidden;
    border-bottom: 1px solid var(--linie);
    padding: 12px 0;
    flex: none;
}

.ticker__lauf {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: ticker 14s linear infinite;
}

.ticker__text {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--text-tertiaer);
    padding-right: 48px;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    gap: 56px;
    position: relative;
    overflow: hidden;
}

.hero__hintergrund {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    opacity: 0.9;
    pointer-events: none;
}

.hero__bahn {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.hero__bahn--1 { animation: ticker 20s linear infinite; }
.hero__bahn--2 { animation: tickerRev 24s linear infinite; }
.hero__bahn--3 { animation: ticker 28s linear infinite; }

.hero__outline {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(60px, 9vw, 120px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--outline-hero);
    padding-right: 50px;
}

.hero__sweep {
    position: absolute;
    top: -20%;
    left: 0;
    width: 140px;
    height: 140%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: sweep 5s ease-in-out infinite;
    pointer-events: none;
}

/* --- Logo ----------------------------------------------------------------- */

.logo {
    position: relative;
    animation: fadeUp 1.2s ease-out both;

    /* Alle Masse als Vielfache der Logo-Hoehe — Referenz: 132px Basis. */
    --logo-fs:        calc(var(--logo-h) * 0.4848); /*  64px */
    --logo-pad-aussen: calc(var(--logo-h) * 0.2576); /*  34px */
    --logo-pad-innen:  calc(var(--logo-h) * 0.1970); /*  26px */
    --logo-luecke:     calc(var(--logo-h) * 0.6364); /*  84px */
    --schnitt-innen:   calc(var(--logo-h) * 0.1212); /*  16px */
    --schnitt-aussen:  calc(var(--logo-h) * 0.2879); /*  38px */
    --shift-x:         calc(var(--logo-h) * 0.0303); /*   4px */
    --shift-y:         calc(var(--logo-h) * 0.0758); /*  10px */
}

.logo__balken {
    display: flex;
    align-items: stretch;
    background: var(--weiss);
    height: var(--logo-h);
}

/* Unsichtbarer Klon: haelt den Platz, damit die beiden absoluten Kopien
   darueber liegen koennen. */
.logo__mass {
    visibility: hidden;
}

.logo__teil {
    position: absolute;
    inset: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* Der Slash ist KEIN gemaltes Element, sondern die diagonale Luecke
   zwischen den beiden Clip-Pfaden — der Hintergrund scheint durch. */
.logo__teil--links {
    animation: shiftL 6s ease-in-out infinite;
    clip-path: polygon(0 0,
                       calc(50% + var(--schnitt-innen)) 0,
                       calc(50% - var(--schnitt-aussen)) 100%,
                       0 100%);
}

.logo__teil--rechts {
    animation: shiftR 6s ease-in-out infinite;
    clip-path: polygon(calc(50% + var(--schnitt-aussen)) 0,
                       100% 0,
                       100% 100%,
                       calc(50% - var(--schnitt-innen)) 100%);
}

.logo__wort {
    display: flex;
    align-items: center;
    font-family: var(--sans);
    font-weight: 700;
    font-size: var(--logo-fs);
    line-height: 1;
    letter-spacing: 0.02em;
    color: #000000;
}

.logo__wort--links  { padding: 0 var(--logo-pad-innen) 0 var(--logo-pad-aussen); }
.logo__wort--rechts { padding: 0 var(--logo-pad-aussen) 0 var(--logo-pad-innen); }

.logo__spalt {
    width: var(--logo-luecke);
    background: var(--weiss);
    flex: none;
}

/* --- Next-Zeile ----------------------------------------------------------- */

.next {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    animation: fadeUp 1s ease-out 0.3s both;
}

.next__punkt {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--weiss);
    animation: blink 1.2s ease-in-out infinite;
    flex: none;
}

.next__text {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-sekundaer);
}

/* --- Outline-Marquee-Band ------------------------------------------------- */

.band {
    overflow: hidden;
    border-top: 1px solid var(--linie);
    padding: 28px 0;
    flex: none;
}

.band__lauf {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: tickerRev 18s linear infinite;
}

.band__text {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(56px, 8.2vw, 110px);
    line-height: 1;
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1px var(--outline-band);
    padding-right: 60px;
}

/* --- Sektionen ------------------------------------------------------------ */

.sektion {
    border-top: 1px solid var(--linie);
    flex: none;
}

.sektion__inhalt {
    max-width: var(--spalte);
    margin: 0 auto;
    padding: 72px 24px;
}

.sektion__titel {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-tertiaer);
    padding-bottom: 28px;
}

/* --- Dates ---------------------------------------------------------------- */

.termine {
    display: flex;
    flex-direction: column;
}

.termin {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 22px 8px;
    border-top: 1px solid var(--linie);
    transition: background 0.15s ease;
}

.termin:last-child { border-bottom: 1px solid var(--linie); }

a.termin:hover { background: var(--hover-flaeche); }

.termin__datum {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-tertiaer);
    width: 110px;
    flex: none;
}

.termin__venue {
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--weiss);
    flex: 1;
}

.termin__stadt {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--text-tertiaer);
}

.termine__leer {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--text-tertiaer);
    border-top: 1px solid var(--linie);
    border-bottom: 1px solid var(--linie);
    padding: 22px 8px;
}

/* --- Newsletter ----------------------------------------------------------- */
/* Im Handoff nicht vorgesehen — bewusst im Hairline-Vokabular der Dates-Liste
   gehalten: kein Kasten, nur eine Unterlinie. */

.newsletter__zeile {
    display: flex;
    align-items: stretch;
    gap: 16px;
    border-top: 1px solid var(--linie);
    border-bottom: 1px solid var(--linie);
    padding: 8px 8px;
}

.newsletter__feld {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: var(--weiss);
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 14px 0;
}

.newsletter__feld::placeholder {
    color: var(--text-tertiaer);
    letter-spacing: 0.14em;
}

.newsletter__feld:focus { outline: none; }

.newsletter__zeile:focus-within { background: var(--hover-flaeche); }

.newsletter__knopf {
    flex: none;
    background: transparent;
    border: 0;
    color: var(--text-sekundaer);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 14px 8px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.newsletter__knopf:hover { color: var(--weiss); }

.newsletter__hinweis {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    line-height: 1.8;
    color: var(--text-tertiaer);
    padding-top: 18px;
    max-width: 60ch;
}

.newsletter__meldung {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    line-height: 1.7;
    padding-top: 18px;
}

.newsletter__meldung--ok    { color: var(--weiss); }
.newsletter__meldung--fehler { color: var(--text-sekundaer); }

/* --- Footer --------------------------------------------------------------- */

.fuss__inhalt {
    max-width: var(--spalte);
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.fuss__links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.fuss__link {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-sekundaer);
    transition: color 0.15s ease;
}

.fuss__link:hover { color: var(--weiss); }

.fuss__booking {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiaer);
    transition: color 0.15s ease;
}

.fuss__booking:hover { color: var(--weiss); }

.fuss__rechtlich {
    max-width: var(--spalte);
    margin: 0 auto;
    padding: 0 24px 40px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.fuss__rechtlich a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: #4a4a4a;
    transition: color 0.15s ease;
}

.fuss__rechtlich a:hover { color: var(--text-sekundaer); }

/* --- Statusseiten (Bestaetigung, Abmeldung, Fehler) ----------------------- */

.status {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px;
    gap: 24px;
}

.status__titel {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(32px, 6vw, 56px);
    letter-spacing: 0.02em;
    margin: 0;
}

.status__text {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    line-height: 2;
    color: var(--text-sekundaer);
    max-width: 52ch;
    margin: 0;
}

.status__zurueck {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiaer);
    transition: color 0.15s ease;
}

.status__zurueck:hover { color: var(--weiss); }

/* --- Textseiten (Impressum, Datenschutz) ---------------------------------- */

.text-seite {
    max-width: var(--spalte);
    margin: 0 auto;
    padding: 72px 24px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 2;
    color: var(--text-sekundaer);
}

.text-seite h1 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(28px, 5vw, 44px);
    letter-spacing: 0.02em;
    color: var(--weiss);
    margin: 0 0 40px;
}

.text-seite h2 {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-tertiaer);
    margin: 48px 0 12px;
}

.text-seite a { color: var(--weiss); text-decoration: underline; text-underline-offset: 4px; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 720px) {
    .hero { padding: 72px 20px; gap: 40px; }

    .sektion__inhalt { padding: 56px 20px; }

    /* Datum und Stadt oben nebeneinander, Venue darunter. */
    .termin {
        flex-wrap: wrap;
        gap: 6px 16px;
        align-items: baseline;
    }

    .termin__datum { width: auto; }

    .termin__venue {
        flex: 0 0 100%;
        font-size: 20px;
        order: 3;
    }

    .termin__stadt { margin-left: auto; }

    .newsletter__zeile { flex-wrap: wrap; gap: 0; }

    .newsletter__feld { flex: 1 0 100%; }

    .newsletter__knopf { margin-left: auto; padding-left: 0; }

    .fuss__inhalt { flex-direction: column; align-items: flex-start; gap: 20px; }

    .fuss__links { gap: 20px; }
}

/* --- Bewegungsreduktion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .ticker__lauf,
    .hero__bahn,
    .band__lauf,
    .hero__sweep,
    .logo__teil--links,
    .logo__teil--rechts,
    .next__punkt {
        animation: none !important;
    }

    /* Ohne Animation muessen die Logo-Haelften in ihrer Ruhelage stehen. */
    .logo__teil--links  { transform: translate(var(--shift-x), calc(var(--shift-y) * -1)); }
    .logo__teil--rechts { transform: translate(calc(var(--shift-x) * -1), var(--shift-y)); }

    .logo, .next { animation: none !important; opacity: 1; transform: none; }

    .hero__sweep { display: none; }

    * { transition: none !important; }
}
