/* ==========================================================================
   Öffentliche Vereins-Website (_SiteLayout)
   Für alle Vereine gleich; je Verein kommt nur --site-accent aus den
   Website-Einstellungen. Schrift und Radien wie in brand.css, aber ohne
   Bootstrap und ohne die dichtere 14px-Basis der Verwaltung.
   Bewegung (Einblenden, Zähler, Laufband, Bildzoom) ist Zugabe: ohne
   JavaScript und bei "weniger Bewegung" steht alles sofort da.
   ========================================================================== */

@font-face {
    font-family: "Saira";
    src: url("../fonts/saira-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --site-accent: #005428;
    /* Abstufungen der Vereinsfarbe. Diese zwei Zeilen sind der Rückfall für ältere Browser;
       darunter werden sie im selben Farbton berechnet (siehe @supports). */
    --site-accent-dark: color-mix(in srgb, var(--site-accent) 62%, #000);
    --site-accent-bright: color-mix(in srgb, var(--site-accent) 68%, #fff);
    --site-accent-soft: color-mix(in srgb, var(--site-accent) 8%, #fff);
    --site-accent-line: color-mix(in srgb, var(--site-accent) 26%, #fff);
    --site-ink: #06110b;
    --site-ink-muted: #9db3a4;
    --site-text: #0f1a14;
    --site-text-muted: #56675d;
    --site-page: #fbfcfb;
    --site-band: #f3f6f3;
    --site-border: #dce5de;
    --site-radius: 18px;
    --site-radius-sm: 12px;
    --site-shadow: 0 18px 44px -18px rgb(6 17 11 / 0.28);
    /* Schriften wie bei ClubSector: Saira für Überschriften und Beschriftungen, Manrope für Fließtext */
    --site-font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --site-font-display: "Saira", "Arial Narrow", system-ui, sans-serif;
    --site-width: 1180px;
    /* Höhe der Kopfleiste: so weit zieht sich der Hero unter sie */
    --site-head-space: 78px;
    --site-ease: cubic-bezier(0.22, 1, 0.36, 1);
    /* feines Korn, das auf den farbigen Flächen liegt und die Verläufe weniger glatt wirken lässt */
    --site-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

/* Tief und hell aus der Vereinsfarbe selbst: gleicher Farbton, nur Helligkeit und Sättigung
   verschoben. So bleibt ein Grün ein Grün (und ein Blau ein Blau), statt ins Gelbliche oder
   Graue zu kippen wie beim Mischen mit Schwarz und Weiß. */
@supports (color: oklch(from red l c h)) {
    :root {
        --site-accent-dark: oklch(from var(--site-accent) calc(l * 0.6) calc(c * 0.92) h);
        --site-accent-bright: oklch(from var(--site-accent) calc(l + 0.15) c h);
    }
}

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

html { scroll-behavior: smooth; }

body.site {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--site-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--site-text);
    background: var(--site-page);
    -webkit-font-smoothing: antialiased;
}

.site main { flex: 1; }

/* Schrift --------------------------------------------------------------------
   Überschriften wie auf clubsector.com: Saira, sehr fett, in Großbuchstaben, eng gesetzt.
   Alles, was beschriftet (Menü, Schaltflächen, Kennzahlen, Datumsangaben), nimmt ebenfalls Saira. */
.site h1,
.site h2,
.site h3,
.site-screen h1,
.site-screen h2,
.site-eyebrow,
.site-brand,
.site-nav-link,
.site-nav-group > button,
.site-btn,
.site-more,
.site-hero-link,
.site-stats b,
.site-dock-text strong,
.site-dock-icon b,
.site-dock-icon small,
.site-date,
.site-person-role,
.site-person-photo,
.site-event-day,
.site-table th,
.site-plan-bar strong,
.site-screen-head small,
.site-foot strong {
    font-family: var(--site-font-display);
}

.site h1,
.site h2,
.site-screen h1 {
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.98;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.site h3 { font-weight: 700; letter-spacing: 0.01em; }

/* Hintergrund ---------------------------------------------------------------
   Zwei feste Ebenen hinter dem Inhalt, beide ohne Bilder:
   ::before  weiche Farbwolken in der Vereinsfarbe, die sehr langsam wandern
   ::after   ein Hauch Korn über allem
   Karten bleiben weiß und heben sich davon ab. */
body.site::before,
body.site::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
}

body.site::before {
    inset: -25%;
    background:
        radial-gradient(34% 30% at 14% 18%, color-mix(in srgb, var(--site-accent) 26%, transparent) 0%, transparent 100%),
        radial-gradient(30% 28% at 88% 30%, color-mix(in srgb, var(--site-accent-bright) 30%, transparent) 0%, transparent 100%),
        radial-gradient(36% 32% at 72% 86%, color-mix(in srgb, var(--site-accent) 22%, transparent) 0%, transparent 100%),
        radial-gradient(28% 26% at 22% 78%, color-mix(in srgb, var(--site-accent-bright) 20%, transparent) 0%, transparent 100%);
    animation: site-drift 48s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes site-drift {
    from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
    to { transform: translate3d(4%, 3%, 0) rotate(7deg) scale(1.08); }
}

body.site::after {
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
}

.site img { max-width: 100%; }

.site a { color: var(--site-accent); }
.site a:hover { color: var(--site-accent-dark); }

.site ::selection { background: var(--site-accent); color: #fff; }

.site :focus-visible {
    outline: 3px solid color-mix(in srgb, var(--site-accent) 55%, #fff);
    outline-offset: 2px;
    border-radius: 4px;
}

.site-wrap {
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-skip {
    position: absolute;
    left: -9999px;
}
.site-skip:focus {
    left: 16px;
    top: 12px;
    z-index: 100;
    padding: 8px 14px;
    background: #fff;
    border-radius: 8px;
}

/* Einblenden beim Scrollen: nur wenn das Skript läuft (html.site-js).
   Als Animation statt Transition, damit die eigenen Übergänge der Elemente (Überfahren) unberührt bleiben. */
.site-js [data-reveal] { opacity: 0; }

.site-js [data-reveal].is-in {
    opacity: 1;
    animation: site-reveal 0.75s var(--site-ease) backwards;
    animation-delay: var(--site-reveal-delay, 0ms);
}

@keyframes site-reveal {
    from { opacity: 0; transform: translateY(24px); }
}

/* Kopfzeile ---------------------------------------------------------------- */

/* Die Kopfzeile ist eine randlose Glasleiste über die ganze Breite.
   Feste Höhe: Die Glasfläche wird beim Scrollen niedriger, der Platz in der Seite bleibt gleich.
   Sonst verschiebt das Schrumpfen den Inhalt, die Scrollposition springt über die Schwelle
   zurück und die Leiste samt Logo zappelt. */
.site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 78px;
    view-transition-name: site-head;
}

/* die Glasfläche selbst, von Rand zu Rand */
.site-head::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 78px;
    background: rgb(255 255 255 / 0.56);
    backdrop-filter: saturate(1.8) blur(18px);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 -1px 0 rgb(6 17 11 / 0.14) inset, 0 16px 34px -26px rgb(6 17 11 / 0.5);
    transition: height 0.3s var(--site-ease), background-color 0.3s, box-shadow 0.3s;
}

.site-head.is-scrolled::before {
    height: 62px;
    background: rgb(255 255 255 / 0.87);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, 0 -1px 0 rgb(6 17 11 / 0.14) inset, 0 22px 44px -26px rgb(6 17 11 / 0.6);
}

.site-head-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 78px;
    transition: min-height 0.3s var(--site-ease);
}

.site-head.is-scrolled .site-head-inner { min-height: 62px; }

/* Lesefortschritt als feine Linie am unteren Rand der Leiste */
.site-progress {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--site-accent), var(--site-accent-bright));
    transform: scaleX(var(--site-progress, 0));
    transform-origin: left;
    pointer-events: none;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--site-accent);
}

.site-brand img {
    height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: height 0.3s var(--site-ease), transform 0.3s var(--site-ease);
}

.site-head.is-scrolled .site-brand img { height: 42px; }
.site-brand:hover img { transform: scale(1.04); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.site-nav-link,
.site-nav-group > button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    background: none;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--site-text);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.site a.site-nav-link { color: var(--site-text); }

.site-nav-link:hover,
.site-nav-group > button:hover,
.site-nav-group:focus-within > button {
    background: var(--site-accent-soft);
    color: var(--site-accent-dark);
}

.site a.site-nav-link.is-active,
.site-nav-group.is-active > button {
    background: var(--site-accent);
    color: #fff;
}

.site-nav-group { position: relative; }

.site-nav-group > button i { transition: transform 0.25s var(--site-ease); }
.site-nav-group:hover > button i,
.site-nav-group:focus-within > button i { transform: rotate(180deg); }

.site-nav-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    box-shadow: var(--site-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.25s var(--site-ease), visibility 0.2s;
}

/* unsichtbare Brücke, damit das Menü beim Weg vom Knopf nach unten offen bleibt */
.site-nav-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 8px;
}

.site-nav-group:hover .site-nav-menu,
.site-nav-group:focus-within .site-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-nav-menu .site-nav-link { justify-content: flex-start; border-radius: 8px; }

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
}

.site-burger {
    display: none;
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: #fff;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--site-accent);
    cursor: pointer;
}

/* Schaltflächen ------------------------------------------------------------ */

.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--site-accent);
    border-radius: 999px;
    background: var(--site-accent);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--site-ease), box-shadow 0.2s;
}

.site a.site-btn { color: #fff; }

.site-btn:hover,
.site a.site-btn:hover {
    background: var(--site-accent-dark);
    border-color: var(--site-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px var(--site-accent);
}

.site-btn:active { transform: none; }

/* Pfeil, der beim Überfahren ein Stück vorrückt */
.site-btn .bi-arrow-right,
.site-more .bi-arrow-right { transition: transform 0.25s var(--site-ease); }
.site-btn:hover .bi-arrow-right,
.site-more:hover .bi-arrow-right { transform: translateX(4px); }

.site-btn--ghost,
.site a.site-btn--ghost {
    background: transparent;
    color: var(--site-accent);
}

.site-btn--light,
.site a.site-btn--light {
    background: rgb(255 255 255 / 0.08);
    border-color: rgb(255 255 255 / 0.8);
    color: #fff;
    backdrop-filter: blur(4px);
}

.site-btn--light:hover,
.site a.site-btn--light:hover,
.site-btn--white:hover,
.site a.site-btn--white:hover {
    background: #fff;
    border-color: #fff;
    color: var(--site-accent-dark);
    box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.5);
}

.site-btn--white,
.site a.site-btn--white {
    background: #fff;
    border-color: #fff;
    color: var(--site-accent-dark);
}

/* Hero ----------------------------------------------------------------------
   Der erste Bildschirm trägt alles, wofür ein Gast kommt. Das Bild läuft randlos über die ganze
   Breite und unter der schwebenden Kopfleiste durch. Darauf die Begrüßung, die Kennzahlen und unten
   das Dock mit den Wegen (Platz buchen, Mitglied werden, Termine, Kontakt); das Dock ragt zur Hälfte
   über die untere Bildkante. Ohne Bilder trägt ein Verlauf in der Vereinsfarbe allein.
   Der Hero ist um diesen Überhang niedriger als der Bildschirm, damit das Dock ohne Scrollen ganz
   zu sehen ist. Folgt nichts mehr (keine Neuigkeiten, Termine, Sponsoren), bleibt das Dock im Bild,
   sonst würde der Fußbereich seine untere Hälfte verdecken (site-hero--alone). */

.site-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    /* unter die Kopfleiste ziehen: so hoch wie deren Platz in der Seite */
    margin-top: calc(var(--site-head-space) * -1);
    min-height: min(calc(100svh - 48px), 780px);
    padding-top: calc(var(--site-head-space) + 24px);
    isolation: isolate;
    color: #fff;
    background:
        var(--site-grain),
        radial-gradient(70% 90% at 0% 100%, var(--site-accent) 0%, transparent 70%),
        radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--site-accent-bright) 70%, transparent) 0%, transparent 65%),
        var(--site-ink);
}

/* Verlauf über dem Bild: oben hell genug für die Kopfleiste, unten und links dunkel für die Schrift */
.site-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        var(--site-grain),
        radial-gradient(80% 90% at 0% 100%, color-mix(in srgb, var(--site-accent-dark) 94%, transparent) 0%, transparent 64%),
        linear-gradient(180deg, rgb(6 17 11 / 0.28) 0%, rgb(6 17 11 / 0.08) 30%, rgb(6 17 11 / 0.78) 100%);
}

.site-hero--plain::before { background: var(--site-grain); }

.site-hero--alone { min-height: min(100svh, 780px); padding-bottom: clamp(24px, 4vw, 48px); }
.site-hero--alone .site-dock { margin-bottom: 0; }
/* ohne Bild gibt es oben nichts zu sehen: dann nur so hoch, wie der Inhalt Luft braucht */
.site-hero--plain { min-height: min(72svh, 620px); }

.site-slider {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

/* Das Bild ist etwas größer als sein Rahmen und weicht dem Mauszeiger ein paar Pixel aus
   (--px/--py von -1 bis 1 aus club-site.js); beim Scrollen wandert es langsamer als die Seite. */
.site-slide {
    position: absolute;
    inset: -40px -30px;
    margin: 0;
    opacity: 0;
    transform: translate3d(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px + var(--site-parallax, 0px)), 0);
    transition: opacity 1.2s ease, transform 0.6s var(--site-ease);
}

.site-slide.is-active { opacity: 1; }

.site-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* langsamer Zoom auf dem sichtbaren Bild */
.site-slide.is-active img { animation: site-kenburns 9s ease-out forwards; }

@keyframes site-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.site-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 26px 32px;
}

.site-hero-main { display: grid; justify-items: start; gap: clamp(14px, 2.2vw, 22px); min-width: 0; }

/* kleine Zeile über der Begrüßung mit pulsierendem Punkt */
.site-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.85);
}

.site-eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--site-accent-bright);
    box-shadow: 0 0 0 0 var(--site-accent-bright);
    animation: site-pulse 2.4s ease-out infinite;
}

@keyframes site-pulse {
    to { box-shadow: 0 0 0 14px transparent; }
}

.site-hero h1 {
    max-width: 14em;
    margin: 0;
    /* auch nach der Bildschirmhöhe: auf niedrigen Laptops bleibt sonst kein Platz für Kennzahlen und Dock */
    font-size: clamp(2rem, min(5.2vw, 8.5svh), 4.4rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: #fff;
}

/* Kennzahlen: eine Zeile heller Plättchen mit der Zahl in der Vereinsfarbe; beim Überfahren hebt sich eines hervor */
.site-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-stats li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 11px;
    border: 1px solid rgb(255 255 255 / 0.6);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.88);
    backdrop-filter: blur(14px) saturate(1.5);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--site-ink);
    transition: transform 0.3s var(--site-ease), background-color 0.3s, box-shadow 0.3s;
}

.site-stats li:hover {
    transform: translateY(-3px) scale(1.04);
    background: #fff;
    box-shadow: 0 14px 28px -14px rgb(6 17 11 / 0.6);
}

/* Zahl am Zeilenanfang groß, sie zählt beim Einblenden hoch */
.site-stats b {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--site-accent);
}

.site-stats li > i { font-size: 1.05rem; color: var(--site-accent); }

.site a.site-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.site a.site-hero-link:hover { color: #fff; }
.site-hero-link i { transition: transform 0.25s var(--site-ease); }
.site-hero-link:hover i { transform: translateX(5px); }

.site-slider-nav { display: flex; align-items: center; gap: 10px; }

.site-slider-nav > button {
    width: 40px;
    height: 40px;
    border: 1px solid rgb(255 255 255 / 0.35);
    border-radius: 50%;
    background: rgb(6 17 11 / 0.35);
    backdrop-filter: blur(8px);
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s var(--site-ease);
}

.site-slider-nav > button:hover { background: var(--site-accent); transform: scale(1.1); }

.site-slider-dots { display: flex; gap: 6px; }

.site-slider-dots button {
    position: relative;
    width: 28px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: rgb(255 255 255 / 0.35);
    cursor: pointer;
}

.site-slider-dots button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.site-slider-dots button.is-active::after { animation: site-dot 6s linear forwards; }

@keyframes site-dot {
    to { transform: scaleX(1); }
}

/* Dock: die Wege für Gäste in einer Zeile. Es hängt zur Hälfte unter der Bildkante.
   Ein Leuchtfeld gleitet zu dem Eintrag, auf dem der Mauszeiger steht (--x/--y/--w/--h aus club-site.js). */
.site-dock {
    position: relative;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(var(--site-dock-n, 4), minmax(0, 1fr));
    gap: 4px;
    margin-bottom: -42px;
    padding: 8px;
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 26px;
    background: rgb(6 17 11 / 0.72);
    backdrop-filter: blur(24px) saturate(1.6);
    box-shadow: 0 30px 60px -28px rgb(6 17 11 / 0.7);
}

.site-dock-glow {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--w, 0px);
    height: var(--h, 0px);
    border-radius: 19px;
    background: linear-gradient(135deg, var(--site-accent), var(--site-accent-bright));
    opacity: 0;
    transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
    transition: transform 0.45s var(--site-ease), width 0.45s var(--site-ease), height 0.45s var(--site-ease), opacity 0.3s;
    pointer-events: none;
}

.site-dock.is-hot .site-dock-glow { opacity: 1; }

.site a.site-dock-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 19px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.25s;
}

/* ohne Mauszeiger (Tastatur, kein Skript) zeigt der Eintrag selbst, dass er gemeint ist */
.site a.site-dock-item:focus-visible,
.site-dock:not(.is-hot) a.site-dock-item:hover { background: rgb(255 255 255 / 0.1); }

.site-dock-icon {
    display: grid;
    place-items: center;
    align-content: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 15px;
    font-size: 1.3rem;
    line-height: 1;
    background: rgb(255 255 255 / 0.12);
    transition: transform 0.45s var(--site-ease), background-color 0.3s;
}

.site-dock-icon b { font-size: 1.15rem; font-weight: 800; }
.site-dock-icon small { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.site-dock-item:hover .site-dock-icon,
.site-dock-item:focus-visible .site-dock-icon { transform: rotate(-8deg) scale(1.1); background: rgb(255 255 255 / 0.22); }

.site-dock-text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }

.site-dock-text strong {
    overflow: hidden;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-dock-text small {
    overflow: hidden;
    font-size: 0.8rem;
    color: rgb(255 255 255 / 0.72);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pfeil fährt beim Überfahren von unten links herein */
.site-dock-arrow {
    flex: none;
    font-size: 1.05rem;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: transform 0.4s var(--site-ease), opacity 0.3s;
}

.site-dock-item:hover .site-dock-arrow,
.site-dock-item:focus-visible .site-dock-arrow { opacity: 1; transform: none; }

/* Der Abschnitt nach dem Hero lässt Platz für die untere Hälfte des Docks */
.site-section--first { padding-top: 96px; }

/* Neuigkeiten und Termine nebeneinander */
.site-duo {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.site-duo .site-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Abschnitte --------------------------------------------------------------- */

.site-section { padding: 52px 0; }
/* Band: leicht getönt und durchscheinend, damit der Hintergrund weiterläuft */
.site-section--band {
    background: color-mix(in srgb, var(--site-accent) 5%, rgb(255 255 255 / 0.5));
    border-block: 1px solid color-mix(in srgb, var(--site-accent) 10%, transparent);
    backdrop-filter: blur(6px);
}

.site-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.site h2,
.site-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--site-accent);
}

/* Abschnittstitel: groß und dunkel, mit einem Punkt in der Vereinsfarbe */
.site .site-section-head h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--site-ink);
}

.site-section-head h2::after {
    content: ".";
    color: var(--site-accent-bright);
}

.site-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.site-page-head {
    position: relative;
    overflow: hidden;
    margin: 14px 16px 0;
    padding: 32px 0 28px;
    border-radius: 24px;
    isolation: isolate;
    color: #fff;
    background:
        var(--site-grain),
        radial-gradient(60% 140% at 100% 0%, color-mix(in srgb, var(--site-accent-bright) 60%, transparent) 0%, transparent 65%),
        linear-gradient(120deg, var(--site-accent-dark), var(--site-accent));
}

/* weiches Licht rechts statt harter Linien */
.site-page-head::before,
.site-page-head::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.site-page-head::before {
    right: -6%;
    top: -70%;
    width: 420px;
    height: 420px;
    background: color-mix(in srgb, var(--site-accent-bright) 75%, transparent);
    animation: site-float 16s ease-in-out infinite;
}

.site-page-head::after {
    left: 18%;
    bottom: -110%;
    width: 360px;
    height: 360px;
    background: rgb(255 255 255 / 0.14);
}

.site-page-head .site-wrap { position: relative; z-index: 1; }

/* Die Bilder der Startseite laufen auch hier durch, aber nur als Schimmer hinter der Vereinsfarbe. */
.site-page-head .site-slider {
    z-index: 0;
    opacity: 0.3;
    mix-blend-mode: luminosity;
}

.site-page-head h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #fff;
}

.site-page-head p {
    max-width: 720px;
    margin: 6px 0 0;
    font-size: 0.98rem;
    color: rgb(255 255 255 / 0.86);
}

.site-page-head .site-date { color: rgb(255 255 255 / 0.86); }

.site-muted { color: var(--site-text-muted); }

.site-empty {
    padding: 36px 28px;
    border: 1px dashed var(--site-accent-line);
    border-radius: var(--site-radius);
    background: rgb(255 255 255 / 0.6);
    text-align: center;
    color: var(--site-text-muted);
}

/* Karten: News, Vorstand, Sponsoren ---------------------------------------- */

.site-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 26px;
}

.site-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: #fff;
}

.site a.site-card {
    color: var(--site-text);
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.3s var(--site-ease), border-color 0.25s;
}

.site a.site-card:hover {
    border-color: var(--site-accent-line);
    box-shadow: var(--site-shadow);
    transform: translateY(-6px);
}

.site-card-media { overflow: hidden; background: var(--site-accent-soft); }

.site-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--site-ease);
}

.site a.site-card:hover .site-card-img { transform: scale(1.07); }

.site-card-body { padding: 22px; }

.site-card-body h3 {
    margin: 6px 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s;
}

.site a.site-card:hover h3 { color: var(--site-accent); }

.site-card-body p { margin: 0; font-size: 0.95rem; color: var(--site-text-muted); }

.site-date {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--site-accent);
}

.site-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.site-person {
    position: relative;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: #fff;
    transition: box-shadow 0.25s, transform 0.3s var(--site-ease), border-color 0.25s;
}

.site-person::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--site-accent), var(--site-accent-bright));
    transform: scaleX(0.22);
    transform-origin: left;
    transition: transform 0.5s var(--site-ease);
}

.site-person:hover {
    border-color: var(--site-accent-line);
    box-shadow: var(--site-shadow);
    transform: translateY(-5px);
}

.site-person:hover::before { transform: scaleX(1); }

.site-person-photo {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 24px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(140deg, var(--site-accent), var(--site-accent-bright));
    box-shadow: 0 12px 22px -12px var(--site-accent);
}

.site-person-photo img { width: 100%; height: 100%; object-fit: cover; }

.site-person-role {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--site-accent);
}

.site-person h3 { margin: 2px 0 12px; font-size: 1.2rem; font-weight: 600; }

.site-person-contact {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.93rem;
}

.site-person-contact li { display: flex; gap: 10px; align-items: baseline; overflow-wrap: anywhere; }
.site-person-contact i { color: var(--site-accent); }
.site .site-person-contact a { color: var(--site-text); text-decoration: none; }
.site .site-person-contact a:hover { color: var(--site-accent); text-decoration: underline; }

.site-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.site .site-logo {
    display: grid;
    place-items: center;
    min-height: 120px;
    padding: 20px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--site-text);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s var(--site-ease);
}

.site-logo img {
    max-height: 76px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 0.35s, opacity 0.35s, transform 0.35s var(--site-ease);
}

.site .site-logo:hover { border-color: var(--site-accent-line); box-shadow: var(--site-shadow); transform: translateY(-4px); }
.site-logo:hover img { filter: none; opacity: 1; transform: scale(1.05); }

/* Größe nach Sponsorenpaket: große Pakete bekommen mehr Fläche */
.site-logos--large { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.site-logos--large .site-logo { min-height: 190px; padding: 30px; }
.site-logos--large .site-logo img { max-height: 120px; filter: none; opacity: 1; }
.site-logos--small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.site-logos--small .site-logo { min-height: 92px; padding: 14px; }
.site-logos--small .site-logo img { max-height: 54px; }

/* Laufband der Sponsoren auf der Startseite: die Liste steht zweimal hintereinander */
.site-marquee {
    overflow: hidden;
    padding: 8px 0 14px;
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.site-marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: site-marquee var(--site-marquee-time, 50s) linear infinite;
}

.site-marquee:hover .site-marquee-track,
.site-marquee:focus-within .site-marquee-track { animation-play-state: paused; }

.site-marquee .site-logo { width: 176px; min-height: 96px; padding: 16px; flex-shrink: 0; }
.site-marquee .site-logo img { max-height: 60px; }

@keyframes site-marquee {
    to { transform: translateX(calc(-50% - 9px)); }
}

/* Termine ------------------------------------------------------------------ */

.site-events { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.site-event {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: #fff;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s var(--site-ease);
}

.site-event:hover {
    border-color: var(--site-accent-line);
    box-shadow: var(--site-shadow);
    transform: translateX(6px);
}

.site-event-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    min-height: 68px;
    flex-shrink: 0;
    border-radius: 18px;
    line-height: 1.1;
    color: #fff;
    background: linear-gradient(150deg, var(--site-accent), var(--site-accent-dark));
    box-shadow: 0 10px 20px -12px var(--site-accent);
}

.site-event-day b { font-size: 1.6rem; font-weight: 700; }
.site-event-day span { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.site-event h3 { margin: 0 0 2px; font-size: 1.12rem; font-weight: 600; }
.site-event p { margin: 4px 0 0; font-size: 0.95rem; color: var(--site-text-muted); }

.site-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.9rem;
    color: var(--site-text-muted);
}

/* langsames Schweben der Lichtflecken */
@keyframes site-float {
    50% { transform: translateY(-22px) rotate(8deg); }
}

/* Fließtext ---------------------------------------------------------------- */

.site-prose { max-width: 760px; font-size: 1.06rem; }
.site-prose h2 { margin: 1.8em 0 0.5em; font-size: 1.5rem; }
.site-prose h3 { margin: 1.5em 0 0.4em; font-size: 1.15rem; font-weight: 600; }
.site-prose p { margin: 0 0 1.1em; }
.site-prose ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.site-prose li::marker { color: var(--site-accent); }
.site-prose > :first-child { margin-top: 0; }

.site-article-img {
    width: 100%;
    max-width: 760px;
    max-height: 440px;
    margin-bottom: 30px;
    border-radius: var(--site-radius);
    object-fit: cover;
    box-shadow: var(--site-shadow);
}

.site-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.site-panel {
    padding: 28px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: rgb(255 255 255 / 0.7);
    backdrop-filter: blur(10px);
    box-shadow: var(--site-shadow);
}

/* Tabellen und Listen ------------------------------------------------------ */

.site-table {
    width: 100%;
    max-width: 760px;
    border-collapse: collapse;
    font-size: 1rem;
}

.site-table th,
.site-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--site-border);
    text-align: left;
}

.site-table tbody tr { transition: background-color 0.2s; }
.site-table tbody tr:hover { background: var(--site-accent-soft); }

.site-table th {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--site-text-muted);
}

.site-table .site-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.site-files { display: grid; gap: 12px; max-width: 760px; margin: 0 0 36px; padding: 0; list-style: none; }

.site .site-files a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px 14px 14px;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);
    background: #fff;
    font-weight: 500;
    color: var(--site-text);
    text-decoration: none;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s var(--site-ease);
}

.site .site-files a:hover {
    border-color: var(--site-accent-line);
    box-shadow: var(--site-shadow);
    transform: translateX(6px);
    color: var(--site-accent-dark);
}

.site-files i:first-child {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--site-accent);
    background: var(--site-accent-soft);
    transition: background-color 0.25s, color 0.25s;
}

.site-files a:hover i:first-child { background: var(--site-accent); color: #fff; }
.site-files i:last-child { margin-left: auto; color: var(--site-text-muted); transition: transform 0.3s var(--site-ease); }
.site-files a:hover i:last-child { transform: translateY(3px); color: var(--site-accent); }

/* Formular ----------------------------------------------------------------- */

.site-form { display: grid; gap: 18px; }

.site-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.site-field input,
.site-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #c3d0c7;
    border-radius: var(--site-radius-sm);
    background: #fff;
    font: inherit;
    color: var(--site-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-field textarea { min-height: 170px; resize: vertical; }

.site-field input:focus,
.site-field textarea:focus {
    outline: none;
    border-color: var(--site-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-accent) 16%, transparent);
}

.site-field-error { margin-top: 4px; font-size: 0.87rem; color: #b42318; }

/* Auswahlfelder: Kästchen links, Text daneben */
fieldset.site-field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.site-field legend { margin-bottom: 6px; padding: 0; font-size: 0.9rem; font-weight: 600; }

.site-field label.site-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 400;
    font-size: 0.95rem;
    cursor: pointer;
}

.site-field .site-check input {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;
    padding: 0;
    accent-color: var(--site-accent);
}

/* Feld, das nur Formular-Bots ausfüllen */
.site-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-alert {
    padding: 16px 20px;
    border-radius: var(--site-radius-sm);
    border: 1px solid var(--site-accent-line);
    background: var(--site-accent-soft);
}

.site-alert--error { border-color: #f3c0ba; background: #fdf1ef; color: #8a1c12; }

.site-contact-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.site-contact-list li { display: flex; gap: 14px; align-items: center; }

.site-contact-list i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(140deg, var(--site-accent), var(--site-accent-bright));
}

/* Fußzeile ----------------------------------------------------------------- */

.site-foot {
    position: relative;
    padding: 60px 0 26px;
    font-size: 0.95rem;
    color: var(--site-ink-muted);
    background:
        radial-gradient(50% 80% at 100% 0%, color-mix(in srgb, var(--site-accent) 40%, transparent) 0%, transparent 70%),
        var(--site-ink);
}

.site-foot::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--site-accent-dark), var(--site-accent-bright), var(--site-accent-dark));
}

.site-foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.site-foot h2 {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.site-foot strong { font-size: 1.15rem; font-weight: 600; color: #fff; }
.site-foot ul { margin: 0; padding: 0; list-style: none; }
.site-foot li { margin-bottom: 6px; }
.site-foot p { margin: 8px 0 0; }
.site .site-foot a { color: #eef5ef; text-decoration: none; transition: color 0.2s; }
.site .site-foot a:hover { color: var(--site-accent-bright); }

.site-foot-social { display: flex; gap: 10px; margin-top: 16px; }

.site .site-foot-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 12px;
    font-size: 1.15rem;
    transition: background-color 0.2s, transform 0.25s var(--site-ease), border-color 0.2s;
}

.site .site-foot-social a:hover {
    background: var(--site-accent);
    border-color: var(--site-accent);
    color: #fff;
    transform: translateY(-3px);
}

.site-foot-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    font-size: 0.85rem;
}

.site-powered { display: inline-flex; align-items: center; gap: 10px; }
.site-powered img { height: 22px; width: auto; }

/* Licht und Bewegung ----------------------------------------------------- */

@keyframes site-shimmer {
    to { background-position: 100% 0; }
}

/* Lichtschein, der dem Mauszeiger über den Hintergrund folgt (club-site.js setzt die Position) */
.site-glow {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -1;
    width: 720px;
    height: 720px;
    margin: -360px 0 0 -360px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle, color-mix(in srgb, var(--site-accent-bright) 26%, transparent) 0%, transparent 62%);
    transform: translate3d(var(--site-glow-x, 50vw), var(--site-glow-y, 30vh), 0);
    transition: opacity 0.6s, transform 0.5s var(--site-ease);
    will-change: transform;
}

.site-glow.is-on { opacity: 1; }

/* Leuchtender Rand, der auf Karten dem Mauszeiger folgt (--mx/--my aus club-site.js) */
.site-card::after,
.site-person::after,
.site .site-logo::after,
.site-event::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1.5px;
    border-radius: inherit;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--site-accent-bright), transparent 72%);
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.site-card,
.site .site-logo,
.site-event { position: relative; }

.site a.site-card:hover::after,
.site-person:hover::after,
.site .site-logo:hover::after,
.site-event:hover::after { opacity: 1; }

/* Weicher Wechsel zwischen den Seiten; die Kopfleiste bleibt dabei stehen */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }

    ::view-transition-old(root) { animation: site-page-out 0.22s ease both; }
    ::view-transition-new(root) { animation: site-page-in 0.45s var(--site-ease) both; }
}

@keyframes site-page-out {
    to { opacity: 0; transform: translateY(-10px); }
}

@keyframes site-page-in {
    from { opacity: 0; transform: translateY(18px); }
}

/* Sponsoren-Bildschirm (/sponsoren/screen) ---------------------------------
   Vollbild für einen Fernseher im Clubhaus: dunkel, ohne Navigation, Größen in vw/vh,
   damit es auf jedem Bildschirm gleich aussieht. */

body.site-screen {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--site-font);
    color: #fff;
    background:
        var(--site-grain),
        radial-gradient(60% 70% at 100% 0%, color-mix(in srgb, var(--site-accent-bright) 45%, transparent) 0%, transparent 70%),
        radial-gradient(50% 60% at 0% 100%, color-mix(in srgb, var(--site-accent) 70%, transparent) 0%, transparent 70%),
        var(--site-ink);
}

.site-screen-head {
    display: flex;
    align-items: center;
    gap: 2.2vw;
    padding: 3.2vh 4vw 0;
}

.site-screen-head img {
    height: 9vh;
    width: auto;
    padding: 1.2vh 1.2vw;
    border-radius: 1.4vh;
    background: #fff;
}

.site-screen-head small {
    display: block;
    font-size: 1.9vh;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-accent-bright);
}

.site-screen-head h1 { margin: 0; font-size: 4.6vh; font-weight: 700; line-height: 1.1; }

.site-screen-stage { position: relative; flex: 1; }

.site-screen-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3vh;
    padding: 3vh 4vw 6vh;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 1s ease, transform 1.2s var(--site-ease);
}

.site-screen-slide.is-active { opacity: 1; transform: none; }

.site-screen-slide h2 {
    margin: 0;
    font-size: 2.6vh;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.72);
}

.site-screen-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4vh 1.8vw;
    align-content: center;
}

.site-screen-slide--large .site-screen-logos { grid-template-columns: repeat(2, 1fr); }
.site-screen-slide--small .site-screen-logos { grid-template-columns: repeat(4, 1fr); }

.site-screen-logo {
    display: grid;
    place-items: center;
    height: 26vh;
    padding: 3vh 2vw;
    border-radius: 2.4vh;
    background: #fff;
    box-shadow: 0 3vh 6vh -3vh rgb(0 0 0 / 0.7);
    font-size: 3.4vh;
    font-weight: 700;
    text-align: center;
    color: var(--site-text);
}

.site-screen-slide--large .site-screen-logo { height: 46vh; font-size: 5vh; }
.site-screen-slide--small .site-screen-logo { height: 17vh; font-size: 2.4vh; }
.site-screen-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.site-screen-empty { margin: auto; padding-top: 30vh; font-size: 3vh; text-align: center; color: rgb(255 255 255 / 0.7); }

/* Balken, der bis zum nächsten Wechsel durchläuft */
.site-screen-bar { height: 0.7vh; background: rgb(255 255 255 / 0.12); }

.site-screen-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--site-accent), var(--site-accent-bright));
    transform-origin: left;
    animation: site-dot 9s linear forwards;
}

/* Platzbelegung als Ebene über der Seite ---------------------------------- */

html.site-plan-open { overflow: hidden; }

.site-plan {
    width: min(1280px, calc(100vw - 32px));
    height: min(900px, calc(100vh - 32px));
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: 22px;
    background: var(--site-ink);
    box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.8);
}

.site-plan[open] {
    display: flex;
    flex-direction: column;
    animation: site-plan-in 0.35s var(--site-ease);
}

.site-plan::backdrop {
    background: rgb(6 17 11 / 0.62);
    backdrop-filter: blur(6px);
}

@keyframes site-plan-in {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
}

.site-plan-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px 10px 20px;
    color: #fff;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.site-plan-bar strong { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 600; }
.site-plan-bar strong i { color: var(--site-accent-bright); }

.site .site-plan-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgb(255 255 255 / 0.75);
    text-decoration: none;
}

.site .site-plan-open:hover { color: #fff; }

.site-plan-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 50%;
    background: transparent;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s var(--site-ease);
}

.site-plan-close:hover { background: rgb(255 255 255 / 0.14); transform: rotate(90deg); }

.site-plan iframe {
    flex: 1;
    width: 100%;
    border: 0;
    background: var(--site-ink);
    transition: opacity 0.3s;
}

/* Solange die Seite lädt: Rahmen unsichtbar, in der Mitte dreht sich ein Ring */
.site-plan.is-loading iframe { opacity: 0; }

.site-plan.is-loading::after {
    content: "";
    position: absolute;
    left: calc(50% - 20px);
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
    border: 3px solid rgb(255 255 255 / 0.18);
    border-top-color: var(--site-accent-bright);
    border-radius: 50%;
    animation: site-layer-spin 0.8s linear infinite;
}

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

@media (max-width: 700px) {
    /* auf dem Handy füllt die Ebene den ganzen Bildschirm */
    .site-plan { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
    .site-plan-open span { display: none; }
}

/* Schmale Bildschirme ------------------------------------------------------ */

@media (max-width: 1020px) {
    /* das aufgeklappte Menü ragt aus der festen Höhe heraus und legt sich über die Seite */
    :root { --site-head-space: 62px; }
    .site-head,
    .site-head::before { height: 62px; }
    .site-head-inner,
    .site-head.is-scrolled .site-head-inner { min-height: 62px; flex-wrap: wrap; }

    /* das aufgeklappte Menü ragt aus der Leiste heraus und bringt deshalb seine eigene Fläche mit */
    .site-nav.is-open {
        margin: 4px -8px 0;
        padding: 10px !important;
        border-radius: 20px;
        background: rgb(255 255 255 / 0.97);
        box-shadow: var(--site-shadow);
    }
    .site-brand img,
    .site-head.is-scrolled .site-brand img { height: 44px; }
    .site-burger { display: inline-flex; }

    .site-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 8px 0 18px;
    }

    .site-nav.is-open { display: flex; animation: site-nav-in 0.3s var(--site-ease); }

    .site-nav-link,
    .site-nav-group > button { padding: 11px 14px; font-size: 1rem; border-radius: 10px; }

    .site-nav-group > button { display: none; }

    .site-nav-menu {
        position: static;
        min-width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav-menu .site-nav-link { border-radius: 10px; }

    .site-nav-actions { margin: 12px 0 0; flex-wrap: wrap; }
    .site-nav-actions .site-btn { flex: 1; }
}

@keyframes site-nav-in {
    from { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 860px) {
    .site-page-head { margin: 10px 10px 0; border-radius: 22px; }
    /* Auf dem Handy hängt das Dock nicht über die Bildkante: es steht unten im Bild und ist so
       auf dem ersten Bildschirm ganz zu sehen, egal ob es eine oder zwei Reihen hat */
    .site-hero,
    .site-hero--alone { min-height: 100svh; padding-bottom: 16px; }
    .site-hero--plain { min-height: 72svh; }
    .site-hero-content { grid-template-columns: minmax(0, 1fr); gap: 18px; }

    /* Kennzahlen als Zeile zum Wischen statt mehrerer Reihen */
    .site-stats {
        flex-wrap: nowrap;
        width: calc(100% + 24px);
        padding-right: 24px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .site-stats::-webkit-scrollbar { display: none; }
    .site-stats li { flex: none; }

    /* Dock als zwei mal zwei */
    .site-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; border-radius: 22px; }
    .site a.site-dock-item { gap: 10px; padding: 10px; }
    .site-dock-icon { width: 40px; height: 40px; border-radius: 13px; font-size: 1.15rem; }
    .site-dock-arrow { display: none; }
    /* zu schmal für Titel und Zusatz in einer Zeile: der Titel darf umbrechen, der Zusatz entfällt */
    .site-dock-text strong { font-size: 0.95rem; line-height: 1.15; white-space: normal; }
    .site-dock-text small { display: none; }
    .site-duo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .site-split { grid-template-columns: 1fr; gap: 32px; }
    .site-foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-section { padding: 40px 0; }
    .site-section--first { padding-top: 40px; }
    .site-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .site-page-head { padding: 24px 0 20px; }
}

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

    .site *,
    .site *::before,
    .site *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .site-js [data-reveal] { opacity: 1; transform: none; }
    .site-glow { display: none; }

    /* ohne Laufband: die Logos als Raster, die zweite Kopie entfällt */
    .site-marquee { mask-image: none; }
    .site-marquee-track { flex-wrap: wrap; width: auto; }
    .site-marquee .site-logo[aria-hidden="true"] { display: none; }
}
