/* TuS Süddorf/Edewechterdamm – Stylesheet der Website.
   Vereinsblau und Work Sans aus dem Terminplaner, Überschriften in Rubik, Flächen in Blautönen. */

@font-face {
    font-family: "Rubik";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/rubik-latin-700.woff2") format("woff2");
}
@font-face {
    font-family: "Work Sans";
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/work-sans-variable.woff2") format("woff2");
}
:root {
    /* Vereinsfarben: Blau RAL 5005 und Akzent Pantone Pro Blue C */
    --club: #2a56a3;
    --club-dark: #1f4284;
    --accent: #0083cb;

    --accent-dark: #006aa6;   /* Akzent als Fläche unter weißer Schrift (5,6:1) */
    --sky-light: #9fd3f3;     /* Akzent auf dunkelblauem Grund */

    /* Grund: ein Hauch Blau statt Grau oder Beige */
    --paper: #f6f9fd;
    --paper-2: #e8f0fa;
    --card: #ffffff;
    --ink: #1a2333;
    --muted: #536075;
    --line: #d5e0ee;

    /* Spartenfarben aus der Blau-Familie: hell als Fläche, dunkel als Text darauf */
    --t-blue: #e3ebf8;    --t-blue-ink: #1f4284;

    /* Spartenfarben: hier darf es bunt werden – hell als Fläche, dunkel als Text darauf */
    --sp-fussball: #dcefd8;   --sp-fussball-ink: #22602a;   /* Rasengrün */
    --sp-turnen: #fde2d2;     --sp-turnen-ink: #9a3d10;     /* Orange */
    --sp-badminton: #d3eef0;  --sp-badminton-ink: #0d5c63;  /* Petrol */
    --sp-gym: #f2def0;        --sp-gym-ink: #7a2870;        /* Beere */

    --font-head: "Rubik", "Work Sans", system-ui, sans-serif;
    --head-weight: 700;
    --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 18px;
    --shadow: 0 1px 2px rgb(16 36 80 / 6%), 0 4px 14px rgb(16 36 80 / 7%);
    --shadow-lg: 0 14px 34px rgb(16 36 80 / 15%);
    --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Sonst schlägt display: flex/grid der Klassen das hidden-Attribut */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.6 var(--font-body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--club); }
a:hover { color: var(--club-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
p { margin: 0 0 1rem; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    letter-spacing: -.015em;
    line-height: 1.1;
    margin: 0;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .9rem;
    color: var(--club);
    margin-bottom: .7rem;
}
.kicker::before {
    content: "";
    width: 1.6rem;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 3rem;
    padding: .7rem 1.3rem;
    border-radius: 999px;
    font: 600 1rem/1.2 var(--font-body);
    text-decoration: none;
    border: 2px solid transparent;
    white-space: nowrap;
    transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--club { background: var(--club); color: #fff; }
.btn--club:hover { background: var(--club-dark); color: #fff; }
.btn--line { border-color: var(--club); color: var(--club); }
.btn--line:hover { background: var(--t-blue); }
.btn--white { background: #fff; color: var(--club); }
.btn--white:hover { background: var(--t-blue); color: var(--club-dark); }

.more {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- Kopf */

/* Laufschrift: zwei gleiche Gruppen nebeneinander, die Spur wandert um eine Gruppe (-50 %) und beginnt nahtlos neu */
.notice {
    background: var(--club);
    color: #fff;
    font-size: .92rem;
    padding: .55rem 0;
    overflow: hidden;
    white-space: nowrap;
}
.notice a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.notice__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.notice:hover .notice__track, .notice:focus-within .notice__track { animation-play-state: paused; }
.notice__group { display: flex; }
.notice__item { padding: 0 2.5rem; }
.notice__item::after { content: "✦"; margin-left: 5rem; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .notice { text-align: center; padding: .55rem 16px; white-space: normal; }
    .notice__track { width: auto; justify-content: center; }
    .notice__group[aria-hidden], .notice__item[aria-hidden] { display: none; }
    .notice__item::after { content: none; }
}

.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(246 249 253 / 92%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.top__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--club);
    text-decoration: none;
    min-width: 0;
}
.brand img { height: 3.1rem; width: auto; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.05rem; line-height: 1.1; }
.brand__name small {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .78rem;
    color: var(--muted);
}
.nav { display: none; align-items: center; gap: .15rem; }
.nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem .8rem;
    border-radius: 999px;
}
.nav a:hover { background: var(--paper-2); color: var(--club); }
/* fünf Menüpunkte plus Button: nicht umbrechen, bei knapper Breite enger setzen */
.nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1139px) { .nav a { padding: .5rem .55rem; font-size: .9rem; } .nav .btn { margin-left: .25rem; padding: .45rem .9rem; } }
.nav .btn { margin-left: .5rem; min-height: 2.6rem; padding: .45rem 1.1rem; color: #fff; }
.nav .btn:hover { background: var(--club-dark); color: #fff; }
.menu-btn {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--club);
    cursor: pointer;
}
.menu-btn .icon { width: 1.5rem; height: 1.5rem; }
/* Menü auf schmalen Bildschirmen: klappt unter dem Kopf auf */
.top { position: sticky; }
@media (max-width: 1023px) {
    .nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: .75rem 16px 1.25rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
    }
    .nav.is-open a { padding: .8rem 1rem; font-size: 1.05rem; }
    .nav.is-open .btn { margin: .5rem 0 0; justify-content: center; }
}
.nav a[aria-current="page"] { color: var(--club); background: var(--paper-2); }
@media (min-width: 1024px) {
    .nav { display: flex; }
    .menu-btn { display: none; }
    .brand__name { font-size: 1.2rem; }
}

/* ---------------------------------------------------------------- Begrüßung */

/* ---------------------------------------------------------------- Hero mit Illustration */

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: clamp(2.25rem, 5vw, 4rem);
    /* Himmel wie im Hero-Bild: oben etwas kräftiger, ab Bildoberkante genau dessen Farbe */
    background: linear-gradient(180deg, #a8c9f1 0, #b5d2f4 9rem) #b5d2f4;
}
.hero__text { position: relative; z-index: 2; max-width: 56rem; margin: 0 auto; padding: 0 16px; }
.hero__club {
    display: inline-block;
    font-family: var(--font-body);
    letter-spacing: normal;
    line-height: 1.6;
    margin: 0 0 1rem;
    padding: .3rem .9rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 70%);
    color: var(--club-dark);
    font-weight: 600;
    font-size: .9rem;
}
.hero__title {
    margin: 0;
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    font-size: clamp(2.5rem, 7.4vw, 5.6rem);
    line-height: 1;
    letter-spacing: -.025em;
    color: var(--club-dark);
}
.hero__title span { color: var(--club); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 1.1rem auto 1.6rem; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
@media (max-width: 480px) { .hero__club { font-size: .8rem; } .hero__actions .btn { min-height: 2.75rem; padding: .55rem 1.1rem; } }
.btn--glass { background: rgb(255 255 255 / 75%); color: var(--club-dark); }
.btn--glass:hover { background: #fff; color: var(--club-dark); }

/* Szene: auf schmalen Bildschirmen breiter als der Viewport, Ausschnitt um Brücke und Platz */
.hero__scene {
    position: relative;
    z-index: 1;
    display: block;
    width: max(100%, 900px);
    height: auto;
    margin-left: calc((100% - max(100%, 900px)) * .36);
    margin-top: clamp(-210px, -12vw, -95px);
}
.cloud { animation: drift 60s ease-in-out infinite alternate; }
.cloud--b { animation-duration: 80s; animation-direction: alternate-reverse; }
.cloud--c { animation-duration: 45s; }
@keyframes drift { to { translate: 60px 0; } }
.ship { animation: bob 3.5s ease-in-out infinite; }
.duck { animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 1.5px; } }
.glint { animation: glint 3s ease-in-out infinite; }
.glint--1 { animation-delay: -.8s; } .glint--2 { animation-delay: -1.6s; } .glint--3 { animation-delay: -2.3s; }
@keyframes glint { 50% { opacity: .1; } }
.hop { animation: hop 1.4s ease-in-out infinite; }
@keyframes hop { 40% { translate: 0 -6px; } 60% { translate: 0 -6px; } }

.hero__chips {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
    max-width: 52rem;
    margin: .5rem auto 0;
    padding: 0 16px;
}
@media (min-width: 720px) { .hero__chips { grid-template-columns: repeat(4, 1fr); margin-top: -1.6rem; } }
.hero__chips a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem .9rem .4rem .4rem;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s;
}
.hero__chips a:hover { transform: translateY(-2px); color: var(--tint-ink); }
.hero__chips span {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--tint);
    color: var(--tint-ink);
}
.hero__chips svg { width: 1.5rem; height: 1.5rem; }

/* ---------------------------------------------------------------- Begrüßung */

.hello { padding: 3rem 0 3.5rem; }
.hello__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
    .hello { padding: 4rem 0 5rem; }
    .hello__grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}
.hello h2 {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    color: var(--club);
}
.hello h2 span { display: block; color: var(--ink); }
.hello__lead { font-size: 1.15rem; margin: 1.3rem 0 1.8rem; max-width: 33rem; }
.hello__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Foto wie ein eingeklebtes Bild, mit Stempel „seit 1927“ */
.photo {
    position: relative;
    margin: 0 .5rem 1.5rem;
}
.photo__frame {
    background: #fff;
    padding: .7rem .7rem 0;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    transform: rotate(1.5deg);
}
.photo__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.photo__frame figcaption {
    padding: .65rem .2rem .75rem;
    font-size: .9rem;
    color: var(--muted);
    padding-right: 11rem;
}
@media (max-width: 520px) { .photo__frame figcaption { padding-right: .2rem; padding-bottom: 3.5rem; } }
.stamp {
    position: absolute;
    left: -.75rem;
    top: -1.25rem;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    background: var(--club);
    color: #fff;
    border: 3px solid #fff;
    display: grid;
    place-content: center;
    text-align: center;
    transform: rotate(-12deg);
    box-shadow: var(--shadow);
    font-weight: 700;
    font-size: .8rem;
    line-height: 1.05;
}
.stamp strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.7rem; display: block; }

/* „Als Nächstes“ – als Zettel unter dem Foto */
.next {
    position: absolute;
    right: -.25rem;
    bottom: -1.75rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 19rem;
    padding: .8rem 1rem;
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    color: inherit;
    text-decoration: none;
    transform: rotate(-1.5deg);
}
.next:hover { color: inherit; box-shadow: 0 0 0 2px var(--club), var(--shadow-lg); }
.next__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: var(--club);
    color: #fff;
}
.next__text { display: grid; line-height: 1.25; min-width: 0; }
.next__label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.next__when { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.1rem; color: var(--club); }
.next__what { font-size: .88rem; }

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

.section { padding: 4.5rem 0; }
.section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}
.section__head h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
.section__head p { margin: .7rem 0 0; color: var(--muted); max-width: 36rem; }

/* Wellenkante wie ein Horizont über dem Acker */
/* Welle zwischen Abschnitten: 1px Überlappung, damit beim Runden keine helle Fuge entsteht */
.wave { display: block; width: 100%; height: 40px; color: var(--paper-2); margin-bottom: -1px; position: relative; }
.wave--down { transform: scaleY(-1); margin: -1px 0 0; }
.band { background: var(--paper-2); }

/* ---------------------------------------------------------------- Sportangebot */

.sports {
    display: grid;
    gap: 1.1rem;
}
@media (min-width: 560px) { .sports { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sports { grid-template-columns: repeat(4, 1fr); } }
.sport {
    --tint: var(--t-blue);
    --tint-ink: var(--t-blue-ink);
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.4rem 1.4rem 1.3rem;
    background: var(--tint);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.sport:hover { color: var(--ink); transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.sport--fussball, .is-fussball { --tint: var(--sp-fussball); --tint-ink: var(--sp-fussball-ink); }
.sport--turnen, .is-turnen { --tint: var(--sp-turnen); --tint-ink: var(--sp-turnen-ink); }
.sport--badminton, .is-badminton { --tint: var(--sp-badminton); --tint-ink: var(--sp-badminton-ink); }
.sport--gym, .is-gym { --tint: var(--sp-gym); --tint-ink: var(--sp-gym-ink); }
.sport__pic {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--tint-ink);
    margin-bottom: .4rem;
}
.sport__pic svg { width: 2.4rem; height: 2.4rem; }
.sport h3 { font-size: 1.6rem; color: var(--tint-ink); }
.sport p { margin: 0; font-size: .96rem; }
/* Sparten-Karten (Startseite, unten auf den Sparten-Seiten): gemalte Szene oben statt des runden Icons */
.sport--szene { padding-top: 0; overflow: hidden; }
.sport__scene { display: block; margin: 0 -1.4rem .5rem; aspect-ratio: 2 / 1; overflow: hidden; }
.sport__scene .sport-scene { display: block; width: 100%; height: 100%; margin: 0; }
.sport__when {
    margin-top: auto;
    padding-top: .8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--tint-ink);
}

/* ---------------------------------------------------------------- Wochenplan */

.week__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.day {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.3rem 1.35rem;
}
.day[data-today] { box-shadow: 0 0 0 3px var(--club), var(--shadow-lg); }
.day__name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    font-size: 1.45rem;
    margin-bottom: .8rem;
}
.day__badge {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    background: var(--accent-dark);
    color: #fff;
    padding: .2rem .6rem;
    border-radius: 999px;
}
.slots { list-style: none; margin: 0; padding: 0; }
.slot {
    display: grid;
    grid-template-columns: 3.8rem 1fr;
    gap: .75rem;
    align-items: baseline;
    padding: .6rem 0;
    border-top: 1px dashed var(--line);
}
.slot:first-child { border-top: 0; padding-top: 0; }
.slot time { font-family: var(--font-head); font-weight: var(--head-weight); color: var(--club); font-size: 1.1rem; }
.slot strong { display: block; font-weight: 600; }
.slot span { font-size: .88rem; color: var(--muted); }
.week__foot { margin: 1.25rem 0 0; font-size: .92rem; color: var(--muted); }

/* ---------------------------------------------------------------- Aktuelles & Termine */

.board { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .board { grid-template-columns: 1.5fr 1fr; gap: 2rem; } }
.posts { display: grid; gap: 1rem; }
.post {
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    gap: 1.1rem;
    align-items: start;
    padding: 1.2rem 1.3rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
}
.post:hover { color: inherit; box-shadow: 0 0 0 2px var(--club), var(--shadow); }
.date {
    display: grid;
    text-align: center;
    border-radius: 12px;
    background: var(--t-blue);
    color: var(--club-dark);
    padding: .45rem 0 .5rem;
    line-height: 1;
}
.date b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.6rem; }
.date small { font-weight: 700; font-size: .75rem; text-transform: uppercase; margin-top: .25rem; }
.post__meta { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .2rem; }
.post h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.post p { margin: 0; color: var(--muted); font-size: .95rem; }

.events {
    background: var(--club);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    align-self: start;
}
.events h3 { font-size: 1.45rem; margin-bottom: 1rem; }
.events ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .25rem; }
.events li {
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    gap: .9rem;
    align-items: start;
    padding: .75rem 0;
    border-top: 1px solid rgb(255 255 255 / 18%);
}
.events li:first-child { border-top: 0; }
.events .date { background: rgb(255 255 255 / 14%); color: #fff; }
.events strong { display: block; font-size: 1.05rem; }
.events span { font-size: .9rem; opacity: .85; }
.events .highlight .date { background: #fff; color: var(--club); }

.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; align-items: center; }
.social p { margin: 0 .5rem 0 0; font-weight: 600; }
.social a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
}
.social a:hover { box-shadow: 0 0 0 2px var(--club); }

/* ---------------------------------------------------------------- Gesichter */

.people {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .people { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.person {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
/* Porträt im Hochformat 4:5. In Kirby: Bildfeld an der Person, Zuschnitt per Fokuspunkt. */
.person__photo {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    background: var(--t-blue);
}
.person__placeholder {
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: end center;
    position: relative;
    background: linear-gradient(180deg, var(--t-blue), #cddbf1);
    color: #a9bfe3;
    overflow: hidden;
}
.person__placeholder svg { width: 78%; height: auto; aspect-ratio: 100 / 90; }
.person__placeholder span {
    position: absolute;
    top: .75rem;
    left: .75rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--club-dark);
    background: rgb(255 255 255 / 85%);
    padding: .15rem .55rem;
    border-radius: 999px;
}
.person__body { padding: .9rem 1rem 1.1rem; display: grid; gap: .35rem; justify-items: start; }
.person strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.15rem; line-height: 1.2; }
.person__role {
    font-size: .8rem;
    font-weight: 600;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: var(--tint, var(--t-blue));
    color: var(--tint-ink, var(--t-blue-ink));
}
.person a { font-size: .9rem; font-weight: 600; text-decoration: none; margin-top: .2rem; }
.person a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Mitmachen */

.join {
    display: grid;
    gap: 1.25rem;
}
@media (min-width: 900px) { .join { grid-template-columns: 1.15fr 1fr; } }
.join__card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--club);
    color: #fff;
    padding: 2.2rem 1.9rem;
}
.join__card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 250px;
    height: 310px;
    background: url("../img/wappen.svg") center / contain no-repeat;
    opacity: .13;
    transform: rotate(-10deg);
}
.join__card h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: .9rem; }
.join__card p { max-width: 28rem; opacity: .92; }
.join__card ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; }
.join__card li { display: flex; gap: .6rem; align-items: flex-start; }
.join__card li .icon { color: var(--sky-light); margin-top: .25rem; }
.join__card .btn { position: relative; z-index: 1; }

.place {
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
}
.place img { width: 100%; height: 190px; object-fit: cover; }
.place__body { padding: 1.4rem 1.5rem 1.5rem; }
.place h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.place address { font-style: normal; color: var(--muted); margin-bottom: 1rem; }
.place__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

.links {
    margin-top: 1.25rem;
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.links a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .95rem 1.1rem;
    border: 2px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    color: var(--ink);
}
.links a:hover { border-color: var(--club); color: var(--club); background: var(--card); }
.links .icon { color: var(--club); width: 1.35rem; height: 1.35rem; }

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

.foot {
    background: var(--club-dark);
    color: rgb(255 255 255 / 85%);
    padding: 3.25rem 0 1.5rem;
    font-size: .95rem;
}
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot__brand { display: flex; gap: .9rem; align-items: flex-start; }
.foot__brand img { height: 4.25rem; width: auto; }
.foot__brand strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.1rem; color: #fff; line-height: 1.2; display: block; margin-bottom: .4rem; }
.foot h3 { font-family: var(--font-body); font-size: .95rem; color: var(--sky-light); margin-bottom: .6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot address { font-style: normal; }
.foot__bar {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / 15%);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    font-size: .85rem;
}
.foot__bar nav { display: flex; gap: 1.25rem; }
.foot__made { display: inline-block; white-space: nowrap; }
@media (min-width: 720px) { .foot__made::before { content: "· "; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- Ergänzungen für Kirby */

.section--tight-top { padding-top: 1.5rem; }
.section--after-wave { padding-top: 2.5rem; }
.section--band-top { padding-top: 3.5rem; }
.section--no-top { padding-top: 0; }
.kicker--light { color: #fff; }
.day__text { margin: 0 0 1rem; }

/* Porträt vorhanden: gleiche Fläche wie der Platzhalter */
.person__photo { display: block; }

/* Einfache Inhaltsseiten (bis eigene Templates folgen) */
.page-head { padding: 3rem 0 1.5rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--club); }
.prose { max-width: 44rem; padding-bottom: 4rem; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose img { border-radius: var(--radius); }
.hello__lead p:last-child { margin-bottom: 0; }
/* Sprungziele nicht unter dem klebenden Kopf verstecken */
[id] { scroll-margin-top: 6rem; }

/* ---------------------------------------------------------------- Seitenkopf allgemein */

.page-head__lead { max-width: 40rem; font-size: 1.12rem; margin-top: 1rem; }
.page-head__lead p:last-child { margin-bottom: 0; }
.page-foot { margin: 2rem 0 4rem; }

/* ---------------------------------------------------------------- Sparten-Seite */

.sport-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: clamp(2rem, 4.5vw, 3.5rem);
}
.sport-hero--outdoor { background: linear-gradient(180deg, #bcd7f5 0%, #d6e7fa 55%, #eaf3fd 100%); }
.sport-hero--indoor { background: linear-gradient(180deg, #e8f0fa 0%, #dde8f6 100%); }
.sport-hero__text { position: relative; z-index: 2; padding: 0 16px; display: grid; justify-items: center; }
.sport-hero__back {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .25rem .8rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 75%);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}
.sport-hero__back::before { content: "← "; }
.sport-hero__title {
    margin: 0;
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    letter-spacing: -.015em;
    line-height: 1.1;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
    color: var(--tint-ink, var(--club-dark));
}
.sport-hero__audience {
    display: inline-block;
    margin: .9rem 0 0;
    padding: .35rem 1rem;
    border-radius: 999px;
    background: var(--tint, var(--t-blue));
    color: var(--tint-ink, var(--club-dark));
    font-weight: 700;
}
.sport-scene {
    position: relative;
    z-index: 1;
    display: block;
    width: max(100%, 760px);
    height: auto;
    margin: clamp(-60px, -3vw, -10px) 0 0 calc((100% - max(100%, 760px)) * .5);
}

/* kleine Bewegungen in den Szenen */
.bounce { animation: bounce 1.1s cubic-bezier(.3, 0, .7, 1) infinite; }
@keyframes bounce { 50% { translate: 0 -34px; } }
.sway { animation: sway 3s ease-in-out infinite; }
@keyframes sway { 25% { rotate: -4deg; } 75% { rotate: 4deg; } }
.stepper { animation: stepper .9s ease-in-out infinite; }
.stepper--1 { animation-delay: -.45s; }
@keyframes stepper { 50% { translate: 0 -9px; } }
.keeper { animation: keeper 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes keeper { 0%, 30% { translate: 0 0; } 42% { translate: -10px -6px; rotate: -12deg; } 55%, 100% { translate: 0 0; rotate: 0deg; } }
.note { animation: note 2.4s ease-out infinite; opacity: 0; }
.note--1 { animation-delay: .8s; } .note--2 { animation-delay: 1.6s; }
@keyframes note { 0% { opacity: 0; translate: 0 0; } 20% { opacity: 1; } 100% { opacity: 0; translate: -18px -60px; } }
.flag { animation: flag 3s ease-in-out infinite; }
.flag--1 { animation-delay: -1s; } .flag--2 { animation-delay: -2s; }
@keyframes flag { 50% { rotate: 6deg; } }

.sport-layout {
    display: grid;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}
@media (min-width: 900px) { .sport-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; align-items: start; } }
.prose--lead { font-size: 1.1rem; padding-bottom: 0; }

.facts {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
@media (min-width: 900px) { .facts { position: sticky; top: 6.5rem; } }
.facts h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.facts dl { margin: 0 0 1.25rem; display: grid; gap: .9rem; }
.facts dl > div { display: grid; gap: .15rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.facts dt { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tint-ink, var(--club)); }
.facts dd { margin: 0; }
.facts__slots { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.facts .btn { width: 100%; justify-content: center; }

/* Kontakt als runde Symbole (Telefon, WhatsApp, E-Mail) */
.person__icons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
/* Umrandet statt gefüllt, damit sie sich von der Funktion (gefüllte Pille) abheben */
.person a.person__icon { --brand: var(--club); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: 0; border-radius: 50%; background: #fff; border: 1.5px solid color-mix(in srgb, var(--brand) 35%, #fff); color: var(--brand); transition: background .2s, color .2s, border-color .2s; }
.person a.person__icon:hover { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }
.person a.person__icon:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.person__icon .icon { width: 1.25rem; height: 1.25rem; }
.person__note { font-size: .88rem; color: var(--muted); }
.people--page { margin-bottom: 4rem; }

.others { padding: 1rem 16px 4rem; text-align: center; }
.others h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.hero__chips--inline { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 auto; padding: 0; }
.hero__chips--inline a { flex: 0 1 12.5rem; }

/* ---------------------------------------------------------------- Spielgemeinschaft (angelehnt an das CI der SG) */

.partner {
    margin-top: 2.5rem;
    border-radius: var(--radius);
    background: #00426a;
    color: #fff;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}
.partner__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
.partner__logo { width: 4.5rem; height: auto; flex: none; }
.partner__kicker { margin: 0 0 .2rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #feda24; }
.partner h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.partner__text { color: rgb(255 255 255 / 88%); }
.partner__text a { color: #feda24; }
.partner__teams {
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}
.partner__teams a, .partner__teams li > strong:first-child {
    color: inherit;
}
.partner__teams a, .partner__teams li:not(:has(a)) {
    display: grid;
    gap: .15rem;
    height: 100%;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: rgb(255 255 255 / 9%);
    text-decoration: none;
    transition: background .15s;
}
.partner__teams a:hover { background: rgb(255 255 255 / 16%); color: #fff; }
.partner__teams strong { text-transform: uppercase; letter-spacing: .02em; }
.partner__teams span { font-size: .85rem; opacity: .8; }
.partner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.partner__btn {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: .7rem 1.3rem;
    border-radius: 6px;
    background: #feda24;
    color: #00426a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-decoration: none;
}
.partner__btn:hover { background: #fff; color: #00426a; }
.partner__link { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.partner__link:hover { color: #feda24; }

/* ---------------------------------------------------------------- Downloads */

.downloads { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; gap: .75rem; max-width: 44rem; }
.downloads a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
}
.downloads a:hover { box-shadow: 0 0 0 2px var(--club), var(--shadow); }
.downloads__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--t-blue); color: var(--club); flex: none; }
.downloads__text { display: grid; }
.downloads__text span { font-size: .88rem; color: var(--muted); }
.downloads__arrow { margin-left: auto; color: var(--club); }

/* ---------------------------------------------------------------- Mitglied werden */

.fees { margin-bottom: 3rem; }
.fees h2, .apply h2, .paper h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.fees__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
/* Beitragskarten in Blautönen: Titel und Zusatzinfo oben, Betrag groß unten */
.fees__list li {
    --tint: #e3ebf8; --tint-ink: #1f4284;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1.3rem 1.3rem 1.2rem;
    border-radius: var(--radius);
    background: var(--tint);
    transition: transform .2s, box-shadow .2s;
}
.fees__list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fees__list li:nth-child(4n+2) { --tint: #d9edf9; --tint-ink: #005d8f; }
.fees__list li:nth-child(4n+3) { --tint: #e2e5f6; --tint-ink: #2f3f8f; }
.fees__list li:nth-child(4n+4) { --tint: #d5eef4; --tint-ink: #0b5872; }
/* Illustration oben in der Karte, randlos; ihr Hintergrund hat genau den Ton der Karte (tools/beitraege/bilder.py) */
.fees__pic { display: block; width: calc(100% + 2.6rem); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: -1.3rem -1.3rem .5rem; border-radius: var(--radius) var(--radius) 0 0; }
@media (max-width: 559px) { .fees__pic { aspect-ratio: 7 / 5; object-position: 50% 55%; } }
.fees__name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.25rem; line-height: 1.15; color: var(--tint-ink); }
.fees__note { font-size: .9rem; color: var(--muted); }
.fees__price { margin-top: auto; padding-top: 1rem; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 2.6rem; line-height: 1; color: var(--tint-ink); }
.fees__period { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tint-ink); opacity: .8; }
.fees__text { max-width: 44rem; color: var(--muted); font-size: .95rem; }

.join-ways { display: grid; gap: 2rem; padding-bottom: 4rem; }
@media (min-width: 960px) { .join-ways { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.apply { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.apply__intro { color: var(--muted); }
.paper { padding: 1.5rem; border-radius: var(--radius); background: var(--paper-2); }
.paper .btn { margin-top: .25rem; }
.paper__text { margin-top: 1.25rem; font-size: .95rem; }

.form { display: grid; gap: 1.5rem; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; min-width: 0; }
.form legend { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.15rem; margin-bottom: .75rem; color: var(--club-dark); }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: .7rem .8rem;
    border: 1px solid #8a97a9;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    min-height: 3rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--club); }
[aria-invalid="true"] { border-color: #b3261e !important; }
.field__error { margin: .1rem 0 0; color: #b3261e; font-size: .9rem; font-weight: 600; }
.choices { display: grid; gap: .5rem; }
.choices--sports { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.choice {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .7rem .9rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--tint-ink, var(--club)); background: var(--tint, var(--t-blue)); }
.choice input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--club); flex: none; }
.choice--block { background: none; border: 0; padding: .25rem 0; }
.choice--block:has(input:checked) { background: none; }
.consents { display: grid; gap: .5rem; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.notice-box { padding: 1rem 1.2rem; border-radius: 12px; background: var(--t-blue); color: var(--club-dark); margin-bottom: 1.25rem; }
.notice-box p:last-child { margin-bottom: 0; }
.notice-box--ok { background: #e2f0dc; color: #22602a; }
.notice-box--error { background: #fbe4e2; color: #8c1d18; }

/* ---------------------------------------------------------------- Verein, Personen, Sportzentrum */

.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.jump a { padding: .4rem .9rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; text-decoration: none; }
.jump a:hover { box-shadow: 0 0 0 2px var(--club); }
.people-group { margin-bottom: 3rem; }
.people-group h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.people__item { display: flex; }
.people__item > .person { flex: 1; }

.stats { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.stats li { display: grid; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.stats strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.05; color: var(--club); }
.stats span { color: var(--muted); font-weight: 600; }
.tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: 4rem; }
.tiles a { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--card); }
.tiles a:hover { border-color: var(--club); color: var(--club); }
.tiles .icon { color: var(--club); width: 1.35rem; height: 1.35rem; }

.volunteer p { max-width: 36rem; opacity: .92; }

.venue { display: grid; gap: 2rem; margin-bottom: 3.5rem; align-items: start; }
@media (min-width: 900px) { .venue { grid-template-columns: 1fr 1fr; } }
.facilities { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.facilities li { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.facilities__icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--t-blue); color: var(--club); }
.facilities__icon .icon { width: 1.6rem; height: 1.6rem; }
.facilities div { display: grid; }
.facilities span { color: var(--muted); font-size: .95rem; }
.venue__photo { margin: 0; }
.venue__photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.section__text { margin-top: .7rem; color: var(--muted); max-width: 36rem; }
.section__text p:last-child { margin-bottom: 0; }

.map { position: relative; display: grid; gap: 1rem; }
.map__svg { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.map__card { display: grid; gap: .5rem; justify-items: start; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-lg); }
.map__card address { font-style: normal; color: var(--muted); }
@media (min-width: 900px) { .map__card { position: absolute; right: 1.25rem; bottom: 1.25rem; max-width: 18rem; } }
.pin-bounce { animation: pin 1.6s ease-in-out infinite; }
@keyframes pin { 50% { translate: 0 -8px; } }
.light { filter: drop-shadow(0 0 4px #fff3c4); }

.page-head__meta { margin: .5rem 0 0; color: var(--muted); }
.legal h2 { font-size: 1.45rem; margin: 2.25rem 0 .75rem; }
.legal h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.legal h4 { font-size: 1rem; margin: 1.25rem 0 .4rem; }

/* Lange deutsche Wörter (z. B. „Jahreshauptversammlung“) auf schmalen Bildschirmen trennen statt überlaufen */
h1, h2, h3, .hero__title, .post p, .person strong { hyphens: auto; overflow-wrap: break-word; }
.post > div, .slot > div, .person__body, .board > *, .week__grid > *, .people > * { min-width: 0; }
.post { grid-template-columns: 4.25rem minmax(0, 1fr); }
.events li { grid-template-columns: 4.25rem minmax(0, 1fr); }
.events strong, .slot strong, .facts dd { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 360px) {
    .hero__chips { grid-template-columns: 1fr; }
}
.sport-layout > *, .join-ways > *, .venue > *, .club > *, .join > * { min-width: 0; }
.partner h2 { overflow-wrap: anywhere; }
.partner__teams { grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); }
@media (max-width: 380px) { .partner { padding: 1.25rem; } .partner__logo { width: 3.5rem; } }

/* ---------------------------------------------------------------- Aktuelles */

.is-blue { --tint: var(--t-blue); --tint-ink: var(--t-blue-ink); }
.is-event { --tint: #d9eefa; --tint-ink: #005d8f; }
/* Bereich als Pill */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .7rem;
    border-radius: 999px;
    background: var(--tint, var(--t-blue));
    color: var(--tint-ink, var(--club-dark));
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}
a.chip:hover { color: var(--tint-ink, var(--club-dark)); box-shadow: 0 0 0 2px var(--tint-ink, var(--club)); }
.chip--pin { background: var(--club); color: #fff; }
.chip--pin svg { width: .85rem; height: .85rem; }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.filter a {
    padding: .4rem .95rem;
    border-radius: 999px;
    background: var(--card);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
}
.filter a:hover { box-shadow: 0 0 0 2px var(--tint-ink, var(--club)); }
.filter a[aria-current] { background: var(--tint-ink, var(--club)); color: #fff; }
.empty-note { color: var(--muted); margin-bottom: 4rem; }

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card__media { aspect-ratio: 3 / 2; background: var(--tint, var(--t-blue)); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tint-ink, var(--club)); }
.news-card__fallback svg { width: 34%; height: 34%; opacity: .85; }
.news-card__body { display: grid; gap: .5rem; align-content: start; padding: 1.1rem 1.25rem 1.35rem; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.news-card h3 { font-size: 1.2rem; }
.news-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.news-card--lead { margin-bottom: 3rem; }
@media (min-width: 860px) {
    .news-card--lead { display: grid; grid-template-columns: 1.2fr 1fr; }
    .news-card--lead .news-card__media { aspect-ratio: auto; min-height: 20rem; }
    .news-card--lead .news-card__body { padding: 2rem 2.2rem; align-content: center; }
}
.news-card--lead h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.news-card--lead p { font-size: 1.05rem; }

.news-year { margin-bottom: 3rem; }
.news-year h2 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--club); }
.news-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }

.article { max-width: 52rem; padding-top: 2.5rem; padding-bottom: 4rem; }
.article__head { display: grid; gap: .8rem; justify-items: start; margin-bottom: 1.75rem; }
.article__head h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--club-dark); }
.article__cover { margin: 0 0 2rem; }
.article__cover img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.article__text { max-width: none; font-size: 1.08rem; padding-bottom: 1rem; }
.article__text figure { margin: 1.5rem 0; }
.article__text figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.article__text table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.article__text th, .article__text td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article__text th { color: var(--club-dark); }
.article__nav { display: grid; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .article__nav { grid-template-columns: 1fr 1fr; } }
.article__nav a { display: grid; gap: .2rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
.article__nav a:hover { box-shadow: 0 0 0 2px var(--club), var(--shadow); }
.article__nav span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.article__next { text-align: right; grid-column: 2; }
@media (max-width: 639px) { .article__next { grid-column: auto; } }

/* ---------------------------------------------------------------- Trainingszeiten & Termine */

.slot { position: relative; padding-left: .75rem; }
.slot::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    bottom: .55rem;
    width: 4px;
    border-radius: 2px;
    background: var(--tint-ink, var(--club));
}
.slot:first-child::before { top: 0; }
.slot.is-extern { --tint-ink: #a9b4c2; }
.slot.is-extern time, .slot.is-extern strong { color: var(--muted); font-weight: 600; }
.slot time { color: var(--tint-ink, var(--club)); }

.matches { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); }
.match { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.match .date { background: var(--sp-fussball); color: var(--sp-fussball-ink); }
.match__body { display: grid; gap: .15rem; }
.match__meta { font-size: .85rem; font-weight: 600; color: var(--muted); }
.match strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.1rem; line-height: 1.25; }
.match__place { font-size: .85rem; color: var(--muted); }
.facts__hint { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }

/* Illustrationen 2 px über die Unterkante ihres Abschnitts hinausragen lassen: Der Abschnitt schneidet
   pixelgenau ab, sonst scheinen am Rand Kanal/Wiese durch die Welle (feine Linie). */
.hero__scene, .sport-scene { margin-bottom: -2px; }
.slot__link { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .2s; }
.slot__link:hover { color: var(--tint-ink, var(--club)); background-size: 100% 2px; }
.slot__link::after { content: " →"; font-weight: 400; opacity: .55; }
.week__foot a { font-weight: 600; }
.match .slot__link::after { content: none; }

/* Sparten: Gruppenfoto und Überschrift über der Beschreibung */
.group-photo { margin: 0 0 1.75rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; }
.group-photo img { width: 100%; height: 100%; object-fit: cover; }
.group-photo--placeholder {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .75rem;
    background: var(--tint, var(--t-blue));
    color: var(--tint-ink, var(--club));
    box-shadow: none;
    border: 2px dashed color-mix(in srgb, var(--tint-ink, var(--club)) 35%, transparent);
}
.group-photo--placeholder svg { width: 5rem; height: 5rem; opacity: .7; }
.group-photo--placeholder span { font-weight: 700; }
.sport-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--tint-ink, var(--club-dark)); margin-bottom: 1rem; }

/* Weitere Sparten unten auf der Sparten-Seite: drei Karten nebeneinander */
@media (min-width: 900px) { .sports--few { grid-template-columns: repeat(3, 1fr); } }
.others { text-align: left; padding-top: 3rem; padding-bottom: 4.5rem; }

/* ---------------------------------------------------------------- Sportangebot-Übersicht */

.features { display: grid; gap: 1.5rem; margin-bottom: 4rem; }
@media (min-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.feature__scene { display: block; overflow: hidden; aspect-ratio: 3 / 1; }
.feature__scene--outdoor { background: linear-gradient(180deg, #bcd7f5 0%, #d6e7fa 55%, #eaf3fd 100%); }
.feature__scene--indoor { background: linear-gradient(180deg, #e8f0fa 0%, #dde8f6 100%); }
.feature__scene .sport-scene { width: 100%; height: 100%; margin: 0; }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.feature h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.feature h2 a { color: var(--tint-ink, var(--club)); text-decoration: none; }
.feature h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature p { margin: 0; color: var(--muted); }
.feature__times { list-style: none; margin: .25rem 0 .5rem; padding: 0; display: grid; gap: .3rem; font-size: .92rem; font-weight: 600; }
.feature__times li { display: flex; align-items: center; gap: .45rem; }
.feature__times .icon { color: var(--tint-ink, var(--club)); }
.feature__more { color: var(--muted); font-weight: 500; padding-left: 1.6rem; }
.feature .btn { margin-top: auto; background: var(--tint-ink, var(--club)); }
.feature .btn:hover { filter: brightness(1.1); }

.steps { margin-bottom: 4rem; }
.steps > h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 1.5rem; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 860px) { .steps ol { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; display: grid; gap: .5rem; align-content: start; padding: 1.5rem 1.4rem 1.4rem; border-radius: var(--radius); background: var(--paper-2); }
.steps__num {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--club);
    color: #fff;
    font-family: var(--font-head);
    font-weight: var(--head-weight);
    font-size: 1.3rem;
}
.steps h3 { font-size: 1.35rem; }
.steps p { margin: 0; color: var(--muted); }
.join__card--wide { max-width: none; }
.join__card--wide ul { display: grid; gap: .5rem; }
@media (min-width: 860px) { .join__card--wide ul { grid-template-columns: repeat(3, auto); justify-content: start; gap: .5rem 2rem; } }

/* ---------------------------------------------------------------- Verein: Unterseiten als Karten */

/* gleiche Karten wie die Sparten, aber in Blautönen des Vereins */
.sports--club { margin-bottom: 1rem; }
.sports--club > :nth-child(6n+1) { --tint: #e3ebf8; --tint-ink: #1f4284; }
.sports--club > :nth-child(6n+2) { --tint: #d9edf9; --tint-ink: #005d8f; }
.sports--club > :nth-child(6n+3) { --tint: #e2e5f6; --tint-ink: #2f3f8f; }
.sports--club > :nth-child(6n+4) { --tint: #d5eef4; --tint-ink: #0b5872; }
.sports--club > :nth-child(6n+5) { --tint: #e6eefa; --tint-ink: #2a56a3; }
.sports--club > :nth-child(6n+6) { --tint: #d7e4f6; --tint-ink: #183a73; }
.sports--club .sport__pic .icon { width: 2rem; height: 2rem; }
.sport__title { font-size: 1.6rem; color: var(--tint-ink); }

/* ---------------------------------------------------------------- Jubiläum */

.jubilee-section--home { padding: 2.5rem 0 0; }
.jubilee-section--club { padding: 3rem 0 4.5rem; }
.jubilee {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 1.6rem;
    border-radius: var(--radius);
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgb(255 255 255 / 22%) 0 3px, transparent 4px),
        radial-gradient(circle at 78% 12%, #9fd3f3 0 4px, transparent 5px),
        radial-gradient(circle at 90% 70%, rgb(255 255 255 / 30%) 0 3px, transparent 4px),
        radial-gradient(circle at 40% 88%, #9fd3f3 0 3px, transparent 4px),
        radial-gradient(circle at 62% 30%, rgb(255 255 255 / 18%) 0 5px, transparent 6px),
        linear-gradient(135deg, var(--club-dark) 0%, var(--club) 60%, var(--accent-dark) 100%);
}
@media (min-width: 760px) { .jubilee { grid-template-columns: auto 1fr; gap: 2.5rem; padding: 2.4rem 2.6rem; } }
.jubilee__badge {
    display: grid;
    place-items: center;
    align-content: center;
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 50%;
    background: #fff;
    color: var(--club);
    box-shadow: 0 0 0 8px rgb(255 255 255 / 18%);
    transform: rotate(-8deg);
}
.jubilee__badge b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 3.6rem; line-height: 1; }
.jubilee__badge span { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.jubilee__body { display: grid; gap: .7rem; justify-items: start; }
.jubilee h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: #fff; }
.jubilee p { margin: 0; max-width: 34rem; opacity: .92; }
.jubilee__facts { list-style: none; margin: .2rem 0 .4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jubilee__facts li { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: rgb(255 255 255 / 14%); font-weight: 600; font-size: .92rem; }
.jubilee__facts .icon { color: var(--sky-light); }
.jubilee__date { font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.1; opacity: 1 !important; }
.jubilee--page { margin-bottom: 3.5rem; }
.jubilee-program { margin-bottom: 3rem; }
.jubilee-program > h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.2rem; }
.jubilee-program .empty-note { margin-bottom: 0; }
.jubilee-program .day__badge { font-size: .85rem; }
.slot.is-highlight strong { color: var(--club); }
.jubilee-text { margin-bottom: 3rem; }
.jubilee-help { margin: 3rem 0 2rem; }
.jubilee-back { margin: 0 0 4.5rem; }

/* ---------------------------------------------------------------- Social Media in (gedämpften) Markenfarben */
/* Klassen bewusst „kanal--…“ statt „social--fb“ o. ä.: solche Namen stehen in Filterlisten (z. B. Brave Shields) und würden ausgeblendet. */

.kanal--insta { --brand: #a3346f; --brand-tint: #f6e2ee; }
.kanal--wa { --brand: #1d7f47; --brand-tint: #dcf1e4; }
.kanal--fb { --brand: #2c62c4; --brand-tint: #e0eafa; }
.social a.social__link { background: var(--brand); color: #fff; box-shadow: none; }
.social a.social__link:hover { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px var(--brand-tint); filter: brightness(1.08); }
.social-box {
    display: grid;
    gap: .25rem 2rem;
    align-items: center;
    margin: 0 0 3.5rem;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius);
    background: var(--paper-2);
}
@media (min-width: 860px) { .social-box { grid-template-columns: 1fr auto; } }
.social-box h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: .3rem; }
.social-box p { margin: 0; color: var(--muted); }
.social-box .social { margin-top: .75rem; }
@media (min-width: 860px) { .social-box .social { margin-top: 0; justify-content: flex-end; } }
.foot__social { display: inline-flex; align-items: center; gap: .5rem; }
.foot__social .icon { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; background: var(--brand); color: #fff; }
.person a.person__icon.kanal--wa { --brand: #1d7f47; }

/* ---------------------------------------------------------------- Instagram (lokal zwischengespeichert) */

.instagram { padding-bottom: 4.5rem; }
.instagram .more.kanal--insta { color: var(--brand); }
/* Polaroids wie das Luftbild oben: weißer Rahmen, breiter Rand unten, leicht schräg */
.insta-grid { list-style: none; margin: 0; padding: .5rem 0 0; display: grid; gap: 1.6rem 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .insta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.insta-post {
    display: block;
    padding: .6rem .6rem 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    text-decoration: none;
    transform: rotate(var(--tilt, 1.5deg));
    transition: transform .25s, box-shadow .25s;
}
.insta-grid li:nth-child(4n+1) .insta-post { --tilt: -1.8deg; }
.insta-grid li:nth-child(4n+2) .insta-post { --tilt: 1.2deg; }
.insta-grid li:nth-child(4n+3) .insta-post { --tilt: -.8deg; }
.insta-grid li:nth-child(4n+4) .insta-post { --tilt: 2deg; }
.insta-post:hover { color: var(--ink); transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgb(16 36 80 / 20%); }
.insta-post__photo { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.insta-post__photo img { width: 100%; height: 100%; object-fit: cover; }
.insta-post__badge { position: absolute; top: .45rem; right: .45rem; padding: .1rem .5rem; border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff; font-size: .72rem; font-weight: 700; }
.insta-post__caption { display: grid; gap: .1rem; min-height: 4.4rem; padding: .55rem .2rem .8rem; font-size: .85rem; line-height: 1.35; color: var(--muted); }
.insta-post__caption time { font-weight: 700; color: var(--brand, #a3346f); font-size: .78rem; }
.insta-post__caption span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.instagram .insta-post { --brand: #a3346f; }
@media (prefers-reduced-motion: reduce) { .insta-post, .insta-post:hover { transition: none; } }

/* ---------------------------------------------------------------- Kontakt */

.contact-aside { display: grid; gap: .6rem; align-content: start; }
.contact-aside h2 { font-size: 1.3rem; margin: .4rem 0 0; }
.contact-aside h2 ~ h2 { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.contact-aside p, .contact-aside address { margin: 0; font-style: normal; }
.contact-aside .btn { justify-self: start; }
.contact-aside__join { font-size: .95rem; color: var(--muted); }
.contact-aside .social { margin-top: .4rem; }
.page-head__note { margin: .9rem 0 0; color: var(--muted); }
/* einzelne Karte in der letzten Reihe (z. B. Kontakt) über die ganze Breite, quer */
@media (min-width: 900px) {
    .sports--club > :last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 1.5rem; }
    .sports--club > :last-child:nth-child(3n+1) .sport__pic { margin: 0; }
    .sports--club > :last-child:nth-child(3n+1) .sport__when { margin: 0; padding: 0; gap: 1rem; }
}

/* ---------------------------------------------------------------- Häufige Fragen */

.faq { padding-bottom: 1rem; }
.faq__list { display: grid; gap: .75rem; }
@media (min-width: 900px) { .faq__list { grid-template-columns: 1fr 1fr; align-items: start; } }
.faq__item { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 1.1rem; color: var(--club-dark); }
.faq__item summary .icon { color: var(--club); transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item summary:hover h3 { color: var(--club); }
.faq__answer { padding: 0 1.2rem 1.1rem; color: var(--ink); }
.faq__answer p:last-child { margin-bottom: 0; }

/* Sprunglink für Tastatur: erst beim Fokus sichtbar */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: 999px; background: var(--club); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; color: #fff; }
#inhalt:focus { outline: none; }

/* ---------------------------------------------------------------- Untermenüs (Sportangebot, Verein) */

/* Name und Pfeil bilden eine gemeinsame Pille */
.dd { position: relative; display: flex; align-items: center; border-radius: 999px; }
.dd:hover, .dd.is-open, .dd:has(> .dd__link[aria-current]) { background: var(--paper-2); }
.dd:hover > .dd__link, .dd.is-open > .dd__link, .dd > .dd__link[aria-current] { color: var(--club); }
.nav .dd__link { padding-right: .15rem; background: none; }
.dd__toggle { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .35rem; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.dd:hover > .dd__toggle, .dd.is-open > .dd__toggle, .dd:has(> .dd__link[aria-current]) > .dd__toggle { color: var(--club); }
.dd__toggle .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.dd.is-open > .dd__toggle .icon { transform: rotate(180deg); color: var(--club); }
.dd__panel { display: none; }
.nav .dd__panel a { white-space: normal; border-radius: 12px; }
.dd-sport { display: flex; align-items: center; gap: .8rem; padding: .75rem .8rem; background: var(--tint); color: var(--ink); text-decoration: none; }
.nav .dd-sport:hover { background: var(--tint); color: var(--ink); transform: translateY(-2px); }
.dd-sport__pic { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; flex: none; border-radius: 50%; background: #fff; color: var(--tint-ink); }
.dd-sport__pic svg { width: 1.6rem; height: 1.6rem; }
.dd-sport strong { display: block; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.1rem; line-height: 1.2; color: var(--tint-ink); }
.dd-sport small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.nav .dd__all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; font-size: .9rem; color: var(--club); }
.dd__panel--cols a { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; }
.dd__panel--cols .icon { width: 1.15rem; height: 1.15rem; color: var(--club); }

@media (min-width: 1024px) {
    .dd__panel {
        position: absolute;
        top: calc(100% + .7rem);
        left: -.5rem;
        z-index: 30;
        padding: .7rem;
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow-lg);
    }
    /* unsichtbare Brücke, damit das Panel beim Wechsel mit der Maus offen bleibt */
    .dd__panel::after { content: ""; position: absolute; left: 0; right: 0; top: -.9rem; height: .9rem; }
    .dd__panel::before { content: ""; position: absolute; top: -6px; left: 2.2rem; width: 14px; height: 14px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
    .dd.is-open > .dd__panel, .dd:hover > .dd__panel { display: grid; }
    .dd:hover > .dd__toggle .icon { transform: rotate(180deg); color: var(--club); }
    .dd__panel--sports { grid-template-columns: repeat(2, minmax(15rem, 1fr)); gap: .5rem; width: 36rem; }
    .dd__panel--cols { grid-template-columns: 1fr 1fr; gap: .1rem .3rem; width: 27rem; }
    .dd__panel--cols .dd__all { margin-top: .3rem; border-top: 1px dashed var(--line); border-radius: 0 0 12px 12px; }
}

/* Mobil: Name führt zur Übersicht, Pfeil klappt die Unterseiten darunter auf */
@media (max-width: 1023px) {
    .nav.is-open .dd { flex-wrap: wrap; border-radius: 14px; }
    .nav.is-open .dd__link { flex: 1; }
    .nav.is-open .dd { border-radius: 14px; }
    .nav.is-open .dd:hover:not(.is-open):not(:has(> .dd__link[aria-current])) { background: none; }
    .nav.is-open .dd__toggle { width: 2.6rem; height: 2.6rem; margin: 0 .2rem 0 0; }
    .nav.is-open .dd.is-open > .dd__panel { display: grid; flex-basis: 100%; gap: .15rem; padding: 0 .5rem .6rem 1rem; }
    .nav.is-open .dd__panel a { padding: .6rem .8rem; font-size: 1rem; }
    .nav.is-open .dd-sport { gap: .7rem; background: none; }
    .nav.is-open .dd-sport:hover { background: #fff; transform: none; }
    .nav.is-open .dd-sport__pic { width: 2rem; height: 2rem; }
    .nav.is-open .dd-sport__pic svg { width: 1.2rem; height: 1.2rem; }
    .nav.is-open .dd-sport strong { font-size: 1rem; }
    .nav.is-open .dd__all { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .dd__toggle .icon { transition: none; } .nav .dd-sport:hover { transform: none; } }
/* aktuelle Seite im Untermenü: Farbe behalten, dezenter Ring */
.nav .dd-sport[aria-current="page"] { background: var(--tint); color: var(--ink); box-shadow: inset 0 0 0 2px var(--tint-ink); }
.nav .dd__panel--cols a[aria-current="page"] { background: var(--paper-2); color: var(--club); }
@media (max-width: 1023px) { .nav.is-open .dd-sport[aria-current="page"] { background: #fff; box-shadow: none; } }
.nav .dd > .dd__link:hover, .nav .dd > .dd__link[aria-current] { background: none; }

/* Handy: Personen einspaltig, Porträt links neben Name und Kontakt */
@media (max-width: 559px) {
    .people { grid-template-columns: 1fr; }
    .person { flex-direction: row; align-items: stretch; }
    .person__photo, .person__placeholder { width: 7.5rem; flex: none; height: auto; }
    .person__placeholder span { top: .5rem; left: .5rem; font-size: .68rem; }
    .person__body { align-content: center; padding: .9rem 1rem; }
}

/* Hero-Bild: oben weich in den Himmel des Kopfbereichs übergehen lassen */
.hero__scene--bild { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
/* Sparten-Bilder: oben sanft in den Hintergrund des Kopfbereichs übergehen */
.sport-scene--bild { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%); mask-image: linear-gradient(180deg, transparent 0, #000 8%); }
/* Animierte Teile der gemalten Szenen erst zeigen, wenn der Hintergrund geladen ist (site.js setzt .is-geladen).
   Nur mit JavaScript ausblenden, sonst blieben sie unsichtbar. */
@media (scripting: enabled) {
    .szene-teile { opacity: 0; transition: opacity .6s ease; }
    .is-geladen .szene-teile { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .szene-teile { transition: none; } }

/* Kopfbereich der Sparten: Hintergrund wie die Wand bzw. der Himmel am oberen Rand des Bildes,
   damit der weiche Übergang nahtlos ist. Die Breite folgt dem Bild (mindestens 760 px, mittig). */
.sport-hero--badminton, .sport-hero--gym, .sport-hero--turnen { background-size: max(100%, 760px) 100%; background-position: 50% 0; background-repeat: no-repeat; }
.feature__scene--badminton, .feature__scene--gym, .feature__scene--turnen { background-size: 100% 100%; }
.sport-hero--badminton, .feature__scene--badminton {
    background-color: #c9cdd8;
    --wall: linear-gradient(90deg, #b4bbcb 0%, #bdc3d1 12%, #c2c8d4 25%, #c9cdd8 37%, #caccd8 50%, #c9cdd8 62%, #c5cad5 75%, #bdc3d1 87%, #b5bdca 100%);
    background-image: var(--wall);
}
.sport-hero--gym, .feature__scene--gym {
    background-color: #cdd0d9;
    --wall: linear-gradient(90deg, #b6bac6 0%, #c7c9d4 12%, #ced1da 25%, #cfd2d9 38%, #cdd0d9 50%, #c9ccd5 62%, #c2c4cf 75%, #b7b9c6 88%, #abb0bc 100%);
    background-image: var(--wall);
}
.sport-hero--turnen, .feature__scene--turnen {
    background-color: #dce3ed;
    --wall: linear-gradient(90deg, #e9f0f8 0%, #e9f0f8 12%, #e6edf5 25%, #e2eaf3 38%, #dce3ed 50%, #d6dee7 62%, #d1d7e3 75%, #cbd2dd 88%, #c6ced9 100%);
    background-image: var(--wall);
}
.sport-hero--fussball { background: linear-gradient(180deg, #bcdaf0 0, #d5e8f1 7rem) #d5e8f1; }
.feature__scene--fussball { background: #d5e8f1; }

/* Bis Tablet-Breite füllen Kopfleiste und Hero zusammen die Bildschirmhöhe (100svh).
   Das Bild füllt den Platz unter dem Text: Es wird größer (höchstens doppelt so groß wie sonst) und links und
   rechts beschnitten, der Ausschnitt folgt --focus (0 = linker Rand, 1 = rechter Rand). Bleibt danach noch Platz,
   steht der Text mittig darin. Passt der Text nicht hinein (Handy quer), wird der Hero höher.
   Die Wand-Verläufe der Hallen wachsen mit dem Bild mit. */
:root { --top-h: calc(5rem + 1px); }
body:has(> .notice) { --top-h: calc(5rem + 1px + 1.1rem + .92rem * 1.6); }  /* Hinweisleiste darüber */
.hero { --ratio: calc(2000 / 848); --nat: max(100vw, 900px); --overlap: clamp(95px, 12vw, 210px); --focus: .36; }
.sport-hero { --nat: max(100vw, 760px); --overlap: clamp(10px, 3vw, 60px); --focus: .5; }
.sport-hero--badminton { --ratio: calc(2000 / 667); --focus: .1; }
.sport-hero--fussball { --ratio: calc(2000 / 667); }
.sport-hero--gym { --ratio: calc(2000 / 780); }
.sport-hero--turnen { --ratio: calc(2000 / 797); --focus: .6; }
@media (max-width: 1023px) {
    .hero, .sport-hero:has(> .sport-hero__stage) { display: flex; flex-direction: column; min-height: calc(100svh - var(--top-h)); }
    .hero__text, .sport-hero__text { margin-block: auto; }
    .hero__stage, .sport-hero__stage {
        --scene-w: max(100cqw, (100cqh + var(--overlap) + 2px) * var(--ratio));
        position: relative;
        flex: 1 0 10rem;
        max-height: calc(var(--nat) * 2 / var(--ratio) - var(--overlap) - 2px);
        container-type: size;
    }
    .hero__stage .hero__scene, .sport-hero__stage .sport-scene, .sport-hero__stage::before {
        position: absolute;
        bottom: -2px;
        left: calc((100cqw - var(--scene-w)) * var(--focus));
        width: var(--scene-w);
        height: calc(100cqh + var(--overlap) + 2px);
        margin: 0;
    }
    .sport-hero__stage::before {
        content: "";
        z-index: -1;
        height: 200svh;
        background-image: var(--wall);
        background-size: 100% 100%;
    }
}

/* ---------------------------------------------------------------- Geschichte als horizontaler Zeitstrahl (Karussell) */
/* Jahresleiste: Jedes Jahr zeichnet sein Stück der Linie und seinen Punkt selbst, beide auf derselben Höhe (--dot-y) */
.history { --gap: 1rem; --dot-y: .8rem; }
.history__years { display: flex; overflow-x: auto; scrollbar-width: none; padding-top: .5rem; margin-bottom: 1.25rem; }
.history__years::-webkit-scrollbar { display: none; }
.history__year { position: relative; flex: 1 0 auto; min-width: 4.4rem; padding: .3rem .4rem calc(var(--dot-y) * 2 + .6rem); text-align: center; font-family: var(--font-head); font-weight: var(--head-weight); color: var(--muted); text-decoration: none; transition: color .2s; }
.history__year::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--dot-y) - 1.5px); height: 3px; background: rgb(42 86 163 / 18%); }
.history__year:first-child::before { left: 50%; }
.history__year:last-child::before { right: 50%; }
.history__year::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--dot-y) - 7px); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--card); border: 3px solid rgb(42 86 163 / 35%); transition: transform .2s, background .2s, border-color .2s; }
@media (hover: hover) { .history__year:hover { color: var(--club); } }
.history__year[aria-current] { color: var(--club-dark); }
.history__year[aria-current]::after { background: var(--club); border-color: var(--club); transform: scale(1.35); }
.history__year:focus-visible { outline: 3px solid var(--club); outline-offset: 2px; border-radius: 6px; }
.history__track { list-style: none; margin: 0; padding: .25rem 0 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(23rem, 86%); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.history__track::-webkit-scrollbar { display: none; }
.history__track:focus-visible { outline: 3px solid var(--club); outline-offset: 4px; border-radius: var(--radius); }
.history__card { --tint: #e3ebf8; --tint-ink: #1f4284; position: relative; overflow: hidden; scroll-snap-align: start; padding: 1.4rem 1.4rem 1.3rem; border-radius: var(--radius); background: var(--tint); }
/* Am Handy nur so hoch wie der eigene Text, sonst hätten kurze Etappen viel Leerraum */
/* Pfeile dort über den Karten, sonst hängen sie unter der höchsten Karte weit unten */
@media (max-width: 559px) {
    .history { display: flex; flex-direction: column; }
    .history__track { align-items: start; overflow-y: hidden; transition: height .3s; }
    .history__nav { order: -1; margin: -.5rem 0 .75rem; }
    .history__years { order: -2; }
}
/* Foto (freiwillig) randlos oben in der Karte */
.history__pic { display: block; width: calc(100% + 2.8rem); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: -1.4rem -1.4rem 1rem; }
/* Etappe ohne Bild: Wappen als Wasserzeichen auf etwas dunklerem Kartenton */
.history__pic--leer { position: relative; background: color-mix(in srgb, var(--tint-ink) 9%, var(--tint)); }
.history__pic--leer::after { content: ""; position: absolute; inset: 0; background: url(../img/wappen.svg) center / auto 62% no-repeat; filter: grayscale(1); mix-blend-mode: multiply; opacity: .16; }
.history__card:nth-child(4n+2) { --tint: #d9edf9; --tint-ink: #005d8f; }
.history__card:nth-child(4n+3) { --tint: #e2e5f6; --tint-ink: #2f3f8f; }
.history__card:nth-child(4n+4) { --tint: #d5eef4; --tint-ink: #0b5872; }
.history__num { display: block; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 3.2rem; line-height: 1; color: var(--tint-ink); opacity: .9; margin-bottom: .6rem; }
.history__card h3 { font-size: 1.2rem; color: var(--tint-ink); margin-bottom: .4rem; }
.history__card p { margin: 0 0 .5rem; color: var(--ink); font-size: .96rem; }
.history__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .25rem; }
.history__btn { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--club); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s; }
.history__btn:hover { background: var(--club-dark); }
.history__btn:disabled { opacity: .35; cursor: default; }
.history__btn[data-dir="-1"] .icon { transform: scaleX(-1); }
.history__count { min-width: 3.5rem; text-align: center; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (scripting: none) { .history__nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .history__track { scroll-behavior: auto; transition: none; } }

/* ---------------------------------------------------------------- Fehlerseite (404) */
.lost { display: grid; gap: 1.5rem; align-items: center; padding: 2.5rem 0 3rem; }
@media (min-width: 900px) { .lost { grid-template-columns: 5fr 6fr; gap: 3rem; padding-top: 3.5rem; } }
.lost__text h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; color: var(--club); margin: .4rem 0 1rem; text-wrap: balance; }
.lost__text p { margin: 0; font-size: 1.1rem; color: var(--muted); max-width: 32rem; }
.lost__scene { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 618; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
/* Ball wippt im Wasser, die Welle zieht leicht mit */
.lost__bob { transform-box: fill-box; transform-origin: 50% 80%; animation: lost-bob 3.2s ease-in-out infinite; }
.lost__ripple { transform-box: fill-box; transform-origin: center; opacity: .55; animation: lost-ripple 3.2s ease-in-out infinite; }
@keyframes lost-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(3px) rotate(5deg); } }
@keyframes lost-ripple { 0%, 100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.18); opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .lost__bob, .lost__ripple { animation: none; } }

.lost-tiles { padding-bottom: 4.5rem; }
.lost-tiles h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 1.1rem; }
.lost-tiles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.lost-tiles li { --tint: #e3ebf8; --tint-ink: #1f4284; }
.lost-tiles li:nth-child(4n+2) { --tint: #d9edf9; --tint-ink: #005d8f; }
.lost-tiles li:nth-child(4n+3) { --tint: #e2e5f6; --tint-ink: #2f3f8f; }
.lost-tiles li:nth-child(4n+4) { --tint: #d5eef4; --tint-ink: #0b5872; }
.lost-tiles a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: .9rem; row-gap: .15rem; align-items: center; height: 100%; padding: 1.1rem 2.6rem 1.1rem 1.1rem; border-radius: var(--radius); background: var(--tint); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.lost-tiles a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.lost-tiles__icon { grid-row: 1 / 3; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #fff; color: var(--tint-ink); }
.lost-tiles__icon .icon { width: 1.35rem; height: 1.35rem; }
.lost-tiles strong { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.15rem; color: var(--tint-ink); }
.lost-tiles a > span:not(.lost-tiles__icon) { font-size: .9rem; color: var(--muted); }
.lost-tiles__arrow { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; color: var(--tint-ink); transition: transform .2s; }
.lost-tiles a:hover .lost-tiles__arrow { transform: translateX(3px); }
