/* ==========================================================
   Loitzer Ruderklub e.V. (KK19) – Design-System
   ========================================================== */

/* Schriften lokal eingebunden (SIL Open Font License, siehe assets/fonts/).
   Es werden keine Schriften von externen Servern geladen. */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/fraunces-latin-500-normal.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: 'Fraunces';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/fraunces-latin-700-normal.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: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-latin-400-normal.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: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/inter-latin-500-normal.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: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-latin-600-normal.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;
}

:root {
    --tiefsee: #0B3D5C;
    --ostsee: #1C7293;
    --sand: #F4EFE6;
    --bronze: #B5793B;
    --text: #1A2B33;
    --weiss: #FFFFFF;
    --max-width: 1080px;
    --radius: 6px;
}

* { box-sizing: border-box; }

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--weiss);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Sorgt dafür, dass der Footer bei kurzen Seiten (Kontakt, leere Galerie
   usw.) trotzdem am unteren Rand bleibt, statt darüber zu "schweben". */
.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

footer.site-footer {
    flex-shrink: 0;
}

h1, h2, h3 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1em; max-width: 65ch; }

a { color: var(--ostsee); }

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

/* ---------- Header / Navigation ---------- */

header.site-header {
    background: var(--tiefsee);
    color: var(--weiss);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Sobald etwas gescrollt wurde: leicht transparent und mit Blur,
   wie bei vielen modernen Seiten üblich. */
header.site-header.ist-transparent {
    background: rgba(11,61,92,0.82);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-row .site-logo {
    height: 56px;
    width: auto;
    background: var(--weiss);
    padding: 6px 10px;
    border-radius: var(--radius);
    display: block;
}

nav.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav.main-nav a {
    color: var(--weiss);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    border-color: var(--bronze);
}

/* ---------- Dropdown (Wettkämpfe) ---------- */

.main-nav > ul > li.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    /* top statt margin-top: schließt die Lücke zum Menüpunkt,
       damit :hover beim Rüberfahren nicht verloren geht. */
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--tiefsee);
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    padding: 8px 0;
    flex-direction: column;
    gap: 0;
    z-index: 50;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    display: flex;
}

.dropdown li { width: 100%; }

.dropdown a {
    display: block;
    padding: 10px 18px;
    border-bottom: none;
    white-space: nowrap;
}

.dropdown a:hover,
.dropdown a.active {
    background: rgba(255,255,255,0.08);
    border-color: transparent;
}

/* ---------- Hero + Wave Divider ---------- */

.hero {
    background: linear-gradient(180deg, var(--tiefsee) 0%, var(--ostsee) 100%);
    color: var(--weiss);
    padding: 64px 0 0;
    position: relative;
    text-align: left;
}

.hero .container { padding-bottom: 48px; }

.hero p { color: rgba(255,255,255,0.88); }

.hero .btn { margin-top: 8px; }

/* Startseite: Hauptbild hinter dem Slogan (nur .hero-mit-bild) */
.hero-mit-bild {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--tiefsee);
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* Das Bild liegt auf einer eigenen Ebene, damit es sanft zoomen kann,
   ohne Text und Welle mitzubewegen. */
.hero-mit-bild::before {
    content: '';
    position: absolute;
    /* oben 20 % Reserve, damit das Bild beim Parallax-Scrollen nie eine Lücke zeigt */
    top: -20%;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    /* Parallax: --hero-versatz wird per JS (index.php) beim Scrollen gesetzt.
       Die eigene Eigenschaft "translate" kombiniert sich mit der Zoom-Animation (transform). */
    translate: 0 var(--hero-versatz, 0px);
    background:
        linear-gradient(180deg, rgba(11,61,92,0.04) 0%, rgba(11,61,92,0.18) 100%),
        url('img/hero-kutter.jpg') center 35% / cover no-repeat;
    filter: saturate(1.25) contrast(1.08) brightness(1.04);
    transform-origin: center 35%;
    animation: hero-zoom 28s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mit-bild::before { animation: none; translate: none; }
}

.hero-mit-bild .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Glas-Balken sitzt im unteren Bereich des Bildes */
    align-items: flex-start;
    padding-bottom: 40px;
}

/* Frost-Glas-Balken um Überschrift, Text und Button – wie der Hero-Textbalken
   auf stadtwerke-loitz.de: ruhiger Blur, keine Farbverläufe oder Glanzstreifen. */
.hero-glas {
    background: rgba(11,61,92,0.45);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 28px;
    padding: 32px 40px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    max-width: 44em;
}

.hero-glas h1,
.hero-glas p {
    text-shadow: none;
}

.hero-glas p {
    max-width: 100%;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero-glas { background: rgba(11,61,92,0.78); }
}

@media (max-width: 640px) {
    .hero-glas {
        padding: 24px 24px;
        border-radius: 20px;
    }
}

/* Gleiches Prinzip für normale Absätze, wo etwas mehr Breite gut aussieht
   (z.B. der Vereinstext auf der Startseite) – Klasse statt globaler Änderung,
   damit Karten & Co. bei der schmaleren Lesebreite bleiben. */
.text-breit {
    max-width: 52em;
}

/* ---------- Geschichte: Zeitmarke + mehr Textbreite ---------- */

.geschichte {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.geschichte-marke {
    flex: 0 0 auto;
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.geschichte-jahr {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--bronze);
    white-space: nowrap;
}

.geschichte-linie {
    width: 2px;
    flex: 1 1 auto;
    min-height: 60px;
    margin-top: 14px;
    background: linear-gradient(var(--bronze), transparent);
}

.geschichte-text {
    flex: 1 1 auto;
    min-width: 0;
}

.geschichte-text p.text-breit {
    max-width: 62em;
}

/* ---------- Alleinstehendes Ergebnisliste-Bild (z.B. Deutsche Meisterschaft) ---------- */

.ergebnisliste-bild {
    display: block;
    max-width: 420px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: 0 8px 24px rgba(11,61,92,0.15);
    transition: transform 0.18s ease;
}

.ergebnisliste-bild:hover {
    transform: translateY(-4px);
}

.ergebnisliste-bild img {
    width: 100%;
    display: block;
}

/* ---------- Mannschaftsfotos (2 pro Reihe, immer alle sichtbar) ---------- */

.team-fotos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.team-foto {
    margin: 0;
}

.team-foto a.lightbox {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
    transition: transform 0.18s ease;
}

.team-foto a.lightbox:hover {
    transform: translateY(-4px);
}

.team-foto img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.team-foto a.lightbox:hover img {
    transform: scale(1.04);
}

.team-foto figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.team-foto-name {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--tiefsee);
}

.team-foto figcaption .tag {
    margin-bottom: 0;
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .team-fotos {
        grid-template-columns: 1fr;
    }
    .team-foto img {
        height: 260px;
    }
}

/* Senkrechte Akzentlinie links neben Textblöcken (z.B. "Der Verein" auf der Startseite) */
.akzent-block {
    border-left: 3px solid var(--bronze);
    padding-left: 24px;
}

.geschichte-zeitstrahl {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.geschichte-zeitstrahl .geschichte:last-child .geschichte-linie {
    display: none;
}

.geschichte-slogan {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--bronze);
    margin-top: 1.4em;
}

@media (max-width: 640px) {
    .geschichte { gap: 16px; }
    .geschichte-jahr { font-size: 1.8rem; }
    .geschichte-linie { display: none; }
}

@media (max-width: 720px) {
    .hero-mit-bild { min-height: 420px; }
}

.wave-divider {
    display: block;
    width: 100%;
    height: 80px;
    line-height: 0;
    overflow: hidden;
}

.wave-divider svg {
    display: block;
    width: 200%;
    height: 100%;
    animation: wave-scroll 14s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .wave-divider svg { animation: none; }
}

/* ---------- Mini-Hero für Unterseiten ---------- */

.page-header {
    background: linear-gradient(180deg, var(--tiefsee) 0%, var(--ostsee) 100%);
    color: var(--weiss);
    padding: 40px 0 0;
}

.page-header .container { padding-bottom: 28px; }
.page-header h1 { margin-bottom: 0; }
.page-header p { color: rgba(255,255,255,0.88); margin-top: 8px; }

/* ---------- Buttons ---------- */

/* ---------- Liquid-Glass-Buttons ---------- */

.btn {
    display: inline-block;
    background: rgba(181,121,59,0.75);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    color: var(--weiss);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 6px 18px rgba(11,61,92,0.22);
    transition: filter 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    filter: brightness(1.08);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(11,61,92,0.28);
}

.btn-outline {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .btn { background: var(--bronze); }
    .btn-outline { background: rgba(255,255,255,0.15); }
}

/* ---------- Sections ---------- */

section { padding: 56px 0; }

.section-alt { background: var(--sand); }

.grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(11,61,92,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11,61,92,0.18);
}

.section-alt .card {
    background: rgba(255,255,255,0.45);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card, .section-alt .card { background: var(--weiss); }
}

.termin-card .datum {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    color: var(--ostsee);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--sand);
    color: var(--tiefsee);
    margin-bottom: 10px;
}

.tag-vergangen { background: rgba(11,61,92,0.08); color: var(--tiefsee); }
.tag-bestaetigt { background: rgba(28,114,147,0.12); color: var(--ostsee); }
.tag-vorlaeufig { background: rgba(181,121,59,0.15); color: var(--bronze); }
.tag-offen { background: rgba(176,0,32,0.10); color: #B00020; }

.ergebnisse-grid { align-items: start; }

.ergebnis-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ergebnis-liste li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(11,61,92,0.1);
    font-size: 0.92rem;
}

.ergebnis-liste li:last-child { border-bottom: none; }

.platz-nr {
    flex: 0 0 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: var(--sand);
    color: var(--tiefsee);
    font-weight: 700;
    font-size: 0.8rem;
}

.platz-1 .platz-nr { background: var(--bronze); color: var(--weiss); }
.platz-2 .platz-nr { background: var(--ostsee); color: var(--weiss); }
.platz-3 .platz-nr { background: var(--tiefsee); color: var(--weiss); }

.team-name { flex: 1 1 auto; }

.team-zeit {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    color: var(--tiefsee);
    white-space: nowrap;
}

/* Ergebnislisten: Zeiten in klarer Schrift mit gleich breiten, gleich hohen Ziffern,
   damit sie sauber untereinander stehen und gut lesbar sind. */
.ergebnis-liste .team-zeit {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: 0.01em;
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    transition: transform 0.2s ease;
}

/* ---------- "Aus dem Verein"-Bilderstreifen (Startseite) ---------- */

.verein-slider {
    display: flex;
    gap: 20px;
    overflow-x: hidden; /* Scrollen nur per Skript, nicht per Maus/Touch */
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.verein-slider::-webkit-scrollbar { display: none; }

.verein-slider .verein-slide {
    flex: 0 0 calc((100% - 40px) / 3); /* 3 Bilder sichtbar, 2 Lücken à 20px */
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
    transition: transform 0.18s ease;
}

.verein-slider .verein-slide:hover {
    transform: translateY(-4px);
}

.verein-slider .verein-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.verein-slider .verein-slide:hover img {
    transform: scale(1.05);
}

@media (max-width: 860px) {
    .verein-slider .verein-slide {
        flex-basis: calc((100% - 20px) / 2); /* 2 Bilder sichtbar */
    }
}

@media (max-width: 560px) {
    .verein-slider .verein-slide {
        flex-basis: 100%; /* 1 Bild sichtbar */
    }
    .verein-slider .verein-slide img { height: 220px; }
}

.gallery-grid a.lightbox {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
    transition: transform 0.18s ease;
}

.gallery-grid a.lightbox:hover {
    transform: translateY(-4px);
}

.gallery-grid a.lightbox:hover img {
    transform: scale(1.05);
}

/* ---------- Scroll-nach-oben-Button ---------- */

#scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 150;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11,61,92,0.78);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--weiss);
    box-shadow: 0 8px 20px rgba(11,61,92,0.3);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

#scroll-top-btn:hover {
    transform: translateY(-3px);
    background: rgba(11,61,92,0.92);
    box-shadow: 0 12px 26px rgba(11,61,92,0.35);
}

#scroll-top-btn[hidden] {
    display: none;
}

@media (max-width: 600px) {
    #scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ---------- Lightbox ---------- */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(6,26,38,0.94);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* display:flex nur, wenn NICHT hidden – sonst gewinnt das hidden-Attribut
   nicht gegen die Klasse und das Overlay bliebe immer sichtbar. */
.lightbox-overlay:not([hidden]) {
    display: flex;
}

.lightbox-overlay img {
    max-width: min(90vw, 1100px);
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: var(--weiss);
    margin: 16px 0 0;
    text-align: center;
    max-width: 70ch;
    font-size: 0.95rem;
}

.lightbox-schliessen {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: var(--weiss);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-pfeil {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--weiss);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
}

.lightbox-pfeil:hover { background: rgba(255,255,255,0.24); }

.lightbox-zurueck { left: 16px; }
.lightbox-weiter { right: 16px; }

@media (max-width: 600px) {
    .lightbox-pfeil { width: 38px; height: 38px; }
}

/* ---------- CTA Band ---------- */

.cta-band {
    background: var(--tiefsee);
    color: var(--weiss);
    text-align: center;
}

.cta-band h2 { color: var(--weiss); }
.cta-band p { margin-left: auto; margin-right: auto; }

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

footer.site-footer {
    background: var(--tiefsee);
    color: rgba(255,255,255,0.85);
    padding: 40px 0 24px;
    font-size: 0.9rem;
}

footer.site-footer a { color: var(--weiss); }

.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 24px;
}

.footer-note {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 16px;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ---------- Cookie-Hinweis ---------- */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--tiefsee);
    color: var(--weiss);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}

.cookie-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-inner p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    max-width: 60ch;
}

/* ---------- 404-Fehlerseite ---------- */

.fehlerseite {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fehler-illustration {
    width: 100%;
    max-width: 800px;
    max-height: 600px;
    height: auto;
    margin: 0 auto 24px;
}

.fehlerseite-aktionen {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

/* ---------- Eingebettetes YouTube-Video (16:9, responsiv) ---------- */

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 860px;
    padding-top: 56.25%; /* 16:9 */
    margin: 0 0 32px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(11,61,92,0.15);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Kontakt-Karten (mittig) ---------- */

.kontakt-grid .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.kontakt-grid .card p {
    max-width: none;
}

/* Kontakt: 2 x 2 statt 4 schmale Spalten – mehr Luft, Buttons sitzen unten */
.kontakt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
.kontakt-grid .card {
    padding: 36px 40px;
    justify-content: flex-start;
}
.kontakt-grid .card h3 { margin-bottom: 14px; }
.kontakt-grid .card .btn { margin-top: auto; }
.kontakt-grid .card .btn-zeile { margin-top: auto; padding-top: 8px; }
.kontakt-grid .google-karte small { display: block; line-height: 1.5; opacity: 0.8; }
@media (max-width: 720px) {
    .kontakt-grid { grid-template-columns: 1fr; }
    .kontakt-grid .card { padding: 28px 24px; }
}

/* ---------- Kalender-Abo (Termine-Seite) ---------- */

.kalender-abo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 4px 0 28px;
}

.kalender-abo-alternative {
    font-size: 0.9rem;
}

/* ---------- Mannschaftsliste ---------- */

.team-liste-label {
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ostsee);
}

.team-liste {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.team-liste li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(11,61,92,0.1);
    font-weight: 500;
    color: var(--tiefsee);
}

.team-liste li:last-child { border-bottom: none; }

/* ---------- Satzung (Akkordeon) ---------- */

.satzung-aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 20px 0 28px;
    max-width: none;
}

.btn-sekundaer {
    background: rgba(11,61,92,0.08);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(11,61,92,0.35);
    color: var(--tiefsee);
    font: inherit;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-sekundaer:hover {
    background: rgba(11,61,92,0.85);
    color: var(--weiss);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11,61,92,0.25);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .btn-sekundaer { background: var(--weiss); }
}

.satzung-paragraph {
    background: var(--weiss);
    border: 1px solid rgba(11,61,92,0.12);
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.satzung-paragraph summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 48px 14px 18px;
    position: relative;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    color: var(--tiefsee);
}

.satzung-paragraph summary::-webkit-details-marker { display: none; }

.satzung-paragraph summary::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ostsee);
    border-bottom: 2px solid var(--ostsee);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.satzung-paragraph[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.satzung-paragraph summary:hover { color: var(--ostsee); }

.para-nr {
    display: inline-block;
    min-width: 3.2em;
    color: var(--bronze);
}

.satzung-text {
    padding: 0 18px 14px;
    border-top: 1px solid rgba(11,61,92,0.08);
    padding-top: 14px;
}

.satzung-text p { max-width: 75ch; }

.satzung-unterpunkte {
    list-style: none;
    margin: 0 0 1em;
    padding-left: 1.4em;
    max-width: 75ch;
}

.satzung-unterpunkte li { margin-bottom: 0.4em; }

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

.rechtstext { max-width: 820px; }

.rechtstext h2 {
    font-size: 1.3rem;
    margin-top: 1.8em;
}

.rechtstext h2:first-child { margin-top: 0; }

.rechtstext p,
.rechtstext li { max-width: none; }

.rechtstext ul { padding-left: 1.3em; margin: 0 0 1em; }

.rechtstext li { margin-bottom: 0.5em; }

.footer-note a { color: rgba(255,255,255,0.85); }
.footer-note a:hover { color: var(--weiss); }

.cookie-banner-inner p a { color: var(--weiss); }

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
    nav.main-nav > ul { gap: 14px; }
    section { padding: 40px 0; }
}

/* ---------- Karte (Kontaktseite, wird erst nach Klick geladen) ---------- */

.karte-box {
    position: relative;
    min-height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(11,61,92,0.06);
    border: 1px solid rgba(11,61,92,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.karte-hinweis {
    max-width: 520px;
    padding: 24px;
    text-align: center;
}

.karte-hinweis p {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

.karte-box iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.karte-box.karte-geladen {
    display: block;
    min-height: 0;
    background: none;
}

@media (max-width: 600px) {
    .karte-box iframe { height: 320px; }
}


/* ---------- Google-Seite / Bewertungssterne ---------- */
.google-sterne {
    display: inline-flex;
    gap: 2px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--bronze);
    letter-spacing: 0;
}
.google-sterne .stern-leer { color: rgba(181,121,59,0.35); }
.google-sterne .stern-teil {
    background: linear-gradient(90deg, var(--bronze) var(--fuellung, 50%), rgba(181,121,59,0.35) var(--fuellung, 50%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.google-karte .google-wert { margin: 8px 0 14px; color: var(--tiefsee); }
.footer-google { white-space: nowrap; }
.footer-google .google-sterne { font-size: 1rem; color: #E3B67A; vertical-align: -1px; margin-left: 4px; }
.footer-google .google-sterne .stern-leer { color: rgba(255,255,255,0.35); }
