/* =========================================================
   Sportschule Gröger Bayreuth — Stylesheet
   Architektur analog sandr-it.de: Design Tokens, ein File.
   Farbwelt: Tiefes Petrol/Schiefer + Messing-Akzent.
   ========================================================= */

:root {
    --color-primary:       #1b2a33;
    --color-primary-dark:  #0f1a21;
    --color-accent:        #8a6520;
    --color-accent-light:  #c8a24a;
    --color-accent-strong: #6f501a;
    --color-text:          #23282b;
    --color-text-soft:     #5a6368;
    --color-bg:            #ffffff;
    --color-bg-soft:       #f6f4f0;
    --color-bg-band:       #eef0ee;
    --color-border:        #dfe3e2;
    --color-white:         #ffffff;
    --color-warn-bg:       #fdf6e6;
    --color-warn-border:   #e3c88a;

    --font-base: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

    --max-width: 1120px;
    --radius:    8px;
    --radius-sm: 4px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
    --shadow:    0 3px 14px rgba(27,42,51,.09), 0 1px 4px rgba(0,0,0,.05);
    --trans:     .2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-base);
    font-size: 100%;
    color: var(--color-text);
    background: var(--color-bg-soft);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--trans);
}
a:hover, a:focus { color: var(--color-accent); text-decoration: underline; }

/*
 * Links innerhalb von Textbloecken bekommen eine Unterstreichung.
 * WCAG 1.4.1 (Use of Color): Ein Link darf sich nicht allein durch die
 * Farbe vom umgebenden Text unterscheiden. Navigation, Buttons und Karten
 * sind durch Layout/Form eigenstaendig erkennbar und bleiben ohne Linie.
 */
.content p a,
.content li a,
.content dd a,
.content td a,
.content figcaption a,
.hinweis a,
.small a,
.lead a,
.page-sub a,
.breadcrumb a,
.trust-text a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.content p a.btn,
.content li a.btn,
.content p a.card-link { text-decoration: none; }

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

/* Fokus deutlich sichtbar — Tastaturbedienung */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: .7rem 1.2rem;
    z-index: 1000;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.22);
}

.header-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: .7rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo { flex: 1 1 auto; min-width: 0; }
.header-logo a {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    text-decoration: none;
}
.header-logo a:hover { color: #fff; text-decoration: none; }

/* Turn 74: Marke = Fuji aus img/fuji.svg, vorher das Kamon als Inline-SVG
   in einer goldenen Kachel. Die Kachel entfaellt jetzt: das Fuji bringt
   seine eigene goldene Sonne mit, und die hat exakt den Kachelton
   (#8a6520) — auf Goldgrund waere die halbe Grafik unsichtbar. Das Bild
   steht darum direkt auf dem dunklen Kopfbereich, ohne Flaeche darunter.
   Hoehe fest, Breite automatisch: das Seitenverhaeltnis 335:131 bleibt so
   in jeder Groesse erhalten, ohne Verzerrung. */
.logo-mark {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}
.logo-mark img {
    display: block;
    width: auto;
    height: 40px;
}

.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-text strong {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.logo-text small {
    font-size: .74rem;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-contact { flex: 0 0 auto; }
.contact-link {
    display: inline-block;
    padding: .45rem .9rem;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--trans), border-color var(--trans);
}
.contact-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    text-decoration: none;
}

/* Navigation */
.main-nav {
    background: var(--color-primary-dark);
    border-top: 1px solid rgba(255,255,255,.08);
}
.main-nav ul {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.main-nav li { flex: 0 0 auto; }
/* Turn 57: Menue hat jetzt 11 Punkte (Selbstverteidigung, Kindertraining neu).
   Mit .8rem/1rem brach es bei 1024px auf zwei Zeilen um, dadurch wurde der
   Header 107px hoch statt 54px. Gemessen: mit .7rem passt es bis 1024px
   in einer Zeile (946px von 1024px belegt, 78px Luft). */
.nav-link {
    display: block;
    padding: .7rem .7rem;
    color: rgba(255,255,255,.82);
    font-size: .92rem;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: color var(--trans), border-color var(--trans), background var(--trans);
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-bottom-color: var(--color-accent-light);
    text-decoration: none;
}
.nav-link.active {
    color: #fff;
    border-bottom-color: var(--color-accent);
}

/* Menue-Schalter — nur mobil sichtbar, echtes <button> (tastaturbedienbar) */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    cursor: pointer;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px;
    background: transparent;
    color: #fff;
}
.nav-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
}
.nav-toggle-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 1px;
    transition: transform var(--trans), opacity var(--trans);
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }
.nav-toggle:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 2px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    background:
        linear-gradient(rgba(15,26,33,.82), rgba(15,26,33,.9)),
        var(--color-primary);
    color: #fff;
    padding: 4rem 1.25rem 4.5rem;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 2.6rem;
    align-items: center;
    max-width: 1100px;
}
.hero-text { text-align: left; }
.hero-figure {
    /* Der fast-weisse Bildhintergrund verschwindet in der weissen Karte,
       ohne dass freigestellt werden muss. */
    background: #fff;
    border-radius: var(--radius);
    padding: .5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    line-height: 0;
    overflow: hidden;
}
.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 2px);
}
.hero .kicker {
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero h1 {
    font-size: clamp(1.9rem, 6vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.1rem;
    font-weight: 700;
}
/* Turn 70: Die Zeile "Budo Akademie Bayreuth" unter der Ueberschrift ist
   auf Wunsch doppelt so gross wie vorher (.82rem -> 1.64rem, also
   13,12px -> 26,24px auf dem Schreibtisch). Damit sie auf schmalen
   Bildschirmen nicht ueber den Rand laeuft, waechst sie mit der
   Fensterbreite (4.6vw) und wird oben wie unten begrenzt: unten 1.05rem,
   damit sie nie kleiner wird als vorher, oben 1.64rem als Zielmass.
   Die Sperrung wurde von .16em auf .14em zurueckgenommen — bei doppelter
   Groesse wirkt derselbe Wert sonst auseinandergezogen. */
.hero-subtitle {
    font-size: clamp(1.05rem, 4.6vw, 1.64rem);
    letter-spacing: .14em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--color-accent-light);
    font-weight: 700;
    margin: -.45rem 0 1rem;
}
.hero-sub {
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    color: rgba(255,255,255,.85);
    max-width: 620px;
    margin: 0 0 2rem;
}
.hero-actions {
    display: flex;
    gap: .8rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: .78rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    transition: background var(--trans), color var(--trans), border-color var(--trans);
    border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-strong);
    border-color: var(--color-accent-strong);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.btn-ghost:hover {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

/* =========================================================
   Trust-Band
   ========================================================= */
.trust-band {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.6rem 1.25rem;
}
.trust-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2.5rem;
    justify-content: center;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
}
.trust-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-band);
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
}
.trust-text { display: flex; flex-direction: column; min-width: 0; }
.trust-text strong { font-size: .95rem; }
.trust-text small { font-size: .78rem; color: var(--color-text-soft); }

/* =========================================================
   Page-Head
   ========================================================= */
.page-head {
    background: var(--color-primary);
    color: #fff;
    padding: 2.4rem 1.25rem 2.2rem;
}
.page-head .container { max-width: var(--max-width); margin: 0 auto; }
.page-head .breadcrumb {
    font-size: .82rem;
    color: rgba(255,255,255,.65);
    margin-bottom: .5rem;
}
.page-head .breadcrumb a { color: rgba(255,255,255,.85); }
.page-head .breadcrumb a:hover { color: #fff; }
.page-head h1 {
    font-size: clamp(1.55rem, 4.5vw, 2.2rem);
    line-height: 1.2;
    /*
     * Deutsche Komposita sprengen schmale Displays: "Selbstverteidigungs-
     * lehrgang" ist ein Wort mit 27 Zeichen und passt bei 360 px nicht in
     * die Zeile. Am 22.11.2026 gemessen: Bericht 2008-lg-burgebrach-16-02-08
     * schob die Seite dadurch 22 px in die Breite (scrollWidth 382 statt 360).
     * hyphens trennt sauber an Silbengrenzen, overflow-wrap ist der Notausgang
     * fuer Woerter, die auch damit nicht passen.
     */
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
.page-sub {
    margin-top: .5rem;
    color: rgba(255,255,255,.78);
    font-size: .95rem;
}

/* =========================================================
   Content
   ========================================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.content {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

.content h2 {
    font-size: clamp(1.2rem, 3.4vw, 1.5rem);
    color: var(--color-primary);
    margin: 2.2rem 0 .8rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--color-bg-band);
    line-height: 1.25;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: .45rem;
}
.content p { margin-bottom: 1rem; max-width: 72ch; }
.content ul, .content ol { margin: 0 0 1rem 1.2rem; max-width: 72ch; }
.content li { margin-bottom: .5rem; }

.lead {
    font-size: 1.05rem;
    color: var(--color-text-soft);
    max-width: 70ch;
    margin-bottom: 1.6rem;
}
.small { font-size: .87rem; color: var(--color-text-soft); }

/* Grid-Karten */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.1rem;
    margin: 1.2rem 0 2rem;
}
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.3rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--trans), transform var(--trans), border-color var(--trans);
    display: flex;
    flex-direction: column;
}
.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--color-accent-light);
}
.card h2, .card h3 {
    margin: 0 0 .5rem;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}
.card h2 a, .card h3 a { color: var(--color-primary); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--color-accent); text-decoration: underline; }
.card p {
    font-size: .92rem;
    color: var(--color-text-soft);
    margin-bottom: .9rem;
    flex: 1 1 auto;
}
.card-link {
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-accent);
    align-self: flex-start;
}
.card-link::after { content: " →"; }
.card-link:hover { text-decoration: none; color: var(--color-primary); }

/* Zwei Spalten */
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem 2.5rem;
    margin-top: 1rem;
}

/* Tabellen */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.6rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: .93rem;
}
.table th, .table td {
    text-align: left;
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.table thead th {
    background: var(--color-bg-band);
    color: var(--color-primary);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody th {
    width: 34%;
    font-weight: 600;
    color: var(--color-text-soft);
    background: #fafaf8;
}
.nowrap { white-space: nowrap; }

/* Listen */
.list-check { list-style: none; margin-left: 0; }
.list-check li {
    position: relative;
    padding-left: 1.5rem;
}
.list-check li::before {
    content: "▸";
    position: absolute;
    left: .2rem;
    color: var(--color-accent);
    font-weight: 700;
}

.rules { counter-reset: rule; list-style: none; margin-left: 0; }
.rules li {
    counter-increment: rule;
    position: relative;
    padding: .7rem .8rem .7rem 2.6rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: .55rem;
    font-size: .93rem;
}
.rules li::before {
    content: counter(rule);
    position: absolute;
    left: .7rem;
    top: .7rem;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: .76rem;
    font-weight: 700;
}

.link-list { list-style: none; margin-left: 0; }
.link-list li {
    padding: .7rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem;
}
.link-note { font-size: .87rem; color: var(--color-text-soft); }

/* Definitionsliste (Notwehr-Grundlagen) */
.def-list {
    margin: 0 0 1.8rem;
    display: grid;
    gap: .9rem;
}
.def-list dt {
    font-weight: 700;
    color: var(--color-primary);
    font-size: .95rem;
    letter-spacing: .01em;
}
.def-list dd {
    margin: .15rem 0 0;
    padding-left: 1rem;
    border-left: 3px solid var(--color-border, #d9d3c6);
    font-size: .95rem;
    line-height: 1.65;
}
@media (min-width: 720px) {
    .def-list {
        grid-template-columns: 11rem 1fr;
        gap: .85rem 1.4rem;
        align-items: baseline;
    }
    .def-list dt { text-align: right; }
    .def-list dd { margin: 0; }
}

/* Hinweisbox */
.hinweis {
    background: var(--color-bg);
    border-left: 4px solid var(--color-accent);
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.8rem;
    font-size: .92rem;
    box-shadow: var(--shadow-sm);
}
.hinweis-warnung {
    background: var(--color-warn-bg);
    border-left-color: var(--color-warn-border);
}
.platzhalter {
    background: var(--color-warn-bg);
    border: 1px dashed var(--color-warn-border);
    padding: 0 .3rem;
    font-style: italic;
    color: #8a6d1f;
}

/* CTA-Box */
.cta-box {
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    margin: 2.2rem 0 0;
    max-width: 62ch;
}
.cta-box h3 { color: #fff; margin-bottom: .5rem; }
.cta-box p {
    color: rgba(255,255,255,.85);
    font-size: .93rem;
    margin-bottom: 1rem;
}
.cta-box p:last-child { margin-bottom: 0; }

.back-link { margin-top: 2rem; font-size: .9rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,.72);
    padding: 2.6rem 1.25rem 0;
    margin-top: auto;
    flex-shrink: 0;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-brand .logo-mark { margin-bottom: .8rem; }
.footer-brand strong { color: #fff; }

.footer-col h2,
.footer-heading {
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .8rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .45rem; font-size: .9rem; }
.footer-col a { color: rgba(255,255,255,.72); }
.footer-col a:hover { color: var(--color-accent-light); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 1.2rem 1.25rem;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* =========================================================
   Responsiv
   ========================================================= */
/*
 * Turn 43: Die Umschaltgrenze stand bei 860px. Gemessen brach das Menue mit
 * elf Punkten aber schon zwischen 861 und 1023px auf ZWEI Zeilen um — der
 * Header wurde dann 170px hoch statt 120px, und der Burger war noch nicht da
 * (der erscheint erst unterhalb der Grenze). Ergebnis: eine tote Zone, in der
 * die Navigation unnoetig hoch stand und „Links Kontakt" in eine zweite
 * Zeile rutschten. Grenze auf 1023px gehoben — ab 1024px passt die einzeilige
 * Fassung (in Turn 57 gemessen: 946px von 1024px belegt).
 */
@media (max-width: 1023px) {
    .nav-toggle { display: flex; }
    .header-bar { flex-wrap: nowrap; }
    .header-contact { display: none; }

    /*
     * Ohne JavaScript bleibt das Menue geoeffnet: dann fehlt die Klasse
     * .js-nav am <header>, und die geschlossene Variante greift nicht.
     * Mit JavaScript setzt das Skript .js-nav, und erst dann klappt das
     * Menue zu und laesst sich per Button oeffnen.
     */
    .main-nav {
        max-height: none;
        overflow: visible;
    }
    .site-header.js-nav .main-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height .28s ease;
    }
    .site-header.js-nav .main-nav ul {
        flex-direction: column;
        padding: 0;
    }
    .site-header.js-nav .main-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }
    .main-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
    /* Turn 38: .9rem ergab ~54px je Punkt (11 x 54 = 595px). Mit .75rem
       sind es ~45px — noch über der 44px-Marke fuer Tap-Ziele, aber die
       Liste passt auch auf kurze Geraete ohne Scrollen. */
    /* Turn 39: zurueck auf .8rem (~52px Tap-Ziel). Der Platz kommt jetzt
       aus dem niedrigeren Deckel, nicht aus duennen Zeilen. */
    .nav-link {
        border-bottom: 0;
        padding: .8rem 1.25rem;
    }
    .nav-link.active {
        border-left: 3px solid var(--color-accent);
        background: rgba(255,255,255,.06);
    }
    /*
     * Turn 38: Der Deckel stand auf 32rem (512px). Seit die Menuepunkte
     * Selbstverteidigung und Kindertraining dazugekommen sind, braucht die
     * Liste bei 360px 595px — die letzten beiden Punkte (Links, Kontakt)
     * wurden abgeschnitten und waren nicht antippbar. Gemessen auf
     * 360x640, 390x844, 414x896 und 360x568: überall 9 von 11 sichtbar.
     * Jetzt bis zum unteren Viewportrand; reicht der Platz nicht, scrollt
     * das Menue, statt den Rest zu verschlucken. dvh statt vh, damit die
     * Adressleiste mobiler Browser nicht mitgerechnet wird.
     */
    /*
     * Turn 39: Turn 38 hatte den Deckel auf "Viewport minus Kopfzeile" gesetzt.
     * Auf 360x640 fuellte das Menue damit 609 von 640px — 95% des Schirms.
     * Weil das Menue selbst nicht scrollen musste, schluckte
     * overscroll-behavior:contain jede Wischgeste, und die Seite darunter
     * liess sich nicht mehr scrollen (gemessen: scrollY blieb 0).
     * Jetzt hoechstens 70% der Schirmhoehe, immer scrollbar, und ohne
     * overscroll-behavior, damit die Wischgeste am Listenende auf die Seite
     * durchgereicht wird. Unter dem Menue bleibt sichtbarer Seiteninhalt.
     */
    .site-header.is-open .main-nav {
        max-height: calc(70vh - 3.25rem);
        max-height: calc(70dvh - 3.25rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: auto;
    }
    .site-header.is-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
    .site-header.is-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { padding: 2.8rem 1.25rem 3.2rem; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-text { text-align: center; }
    .hero-sub { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .hero-figure { max-width: 460px; margin: 0 auto; }
    .content { padding-top: 2rem; padding-bottom: 2.5rem; }
    .two-col { gap: 1.6rem; }
}

@media (max-width: 520px) {
    .logo-text strong { font-size: .95rem; }
    .logo-text small { font-size: .68rem; }
    .logo-mark img { height: 26px; }

    /* Turn 74: Auf schmalen Geraeten wird der Name umbrochen statt gekuerzt.
       Die Ellipse (text-overflow) ist bei diesem langen Namen eine
       Notloesung: "Sportschule Groeger Bayr..." ist keine Marke, sondern ein
       Rest. Mit dem Fuji links daneben war das Feld noch schmaler, und der
       Name riss schon ab 400 px ab. Zwei Zeilen sind besser als ein
       abgeschnittener Firmenname. */
    .logo-text strong, .logo-text small {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    /* Enger Zeilenabstand, damit die zwei Namenszeilen als ein Block
       gelesen werden und nicht wie zwei Absaetze. */
    .logo-text strong { line-height: 1.15; }
    .logo-text small { line-height: 1.3; margin-top: .1rem; }

    /* Turn 70: Auf schmalen Geraeten bleibt die Zeile einzeilig, weil die
       Sperrung (.14em) bei doppelter Groesse zu viel Breite frisst. .06em
       haelt sie zusammen, ohne gedraengt zu wirken. */
    .hero-subtitle { letter-spacing: .06em; }

    .trust-items { flex-direction: column; align-items: flex-start; gap: .9rem; }

    .table, .table thead, .table tbody, .table th, .table td, .table tr {
        display: block;
        width: 100%;
    }
    .table thead { display: none; }
    .table tr {
        border-bottom: 1px solid var(--color-border);
        padding: .6rem 0;
    }
    .table tr:last-child { border-bottom: 0; }
    .table th, .table td {
        border-bottom: 0;
        padding: .15rem .85rem;
    }
    .table tbody th { background: transparent; }

    .rules li { padding-left: 2.3rem; }
    .grid-cards { grid-template-columns: 1fr; }
}

@media print {
    .site-header, .site-footer, .hero-actions, .cta-box, .skip-link, .hero-figure { display: none; }
    body { background: #fff; }
    .content { padding-top: 0; }
}

/* --- Markenzeichen Fuji (Turn 43) -------------------------------------
   fuji.svg ist ein Goldbild auf transparentem Grund und wirkt auf weissem
   wie auf dunklem Grund. Deshalb bekommt es KEINEN farbigen Kasten, sondern
   steht frei. Die Proportion 335:131 ist fest, damit nichts springt.
   max-width begrenzt auf 420px — groesser wirkt das Zeichen aufdringlich. */
.brand-mark {
    margin: 3rem auto 1rem;
    max-width: 420px;
    text-align: center;
}
.brand-mark img {
    display: block;
    width: 100%;
    height: auto;
}
.brand-mark figcaption {
    margin-top: .9rem;
    font-size: .85rem;
    color: var(--color-text-soft);
    line-height: 1.5;
}

/* --- Inhaltsbilder (Turn 29: zwei neue Bilder) ------------------------- */
.content-figure {
    margin: 2rem 0 2.5rem;
    line-height: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.content-figure picture { display: block; }
.content-figure img {
    display: block;
    width: 100%;
    height: auto;
}
.content-figure figcaption {
    line-height: 1.5;
    padding: .7rem 1rem .8rem;
    font-size: .85rem;
    color: var(--color-text-soft);
    background: var(--color-bg-soft);
    border-top: 1px solid rgba(0,0,0,.06);
}
/* Schmale Figuren mittig setzen. Vorher stand das Bild linksbuendig mit
   grosser Leerraum-Luecke rechts daneben (Sichtpruefung 22.11.2026). */
.content-figure--narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
/* Hochformat (Turn 18): Querformat-Bilder laufen auf 640 px, ein Hochformat
   wuerde dabei 857 px hoch und nimmt fast den ganzen Bildschirm ein.
   Deshalb 460 px Breite -> 616 px Hoehe. */
.content-figure--portrait { max-width: 460px; }

/* --- Anfahrt / Karte (Turn 55) -----------------------------------------
   Bewusst kein iframe: die Karte wird erst nach Klick extern geoeffnet.
   Native <details>/<summary> - funktioniert auch ohne JavaScript. */
.anfahrt {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin: 1.8rem 0 2.2rem;
    max-width: 62ch;
}
.anfahrt summary {
    cursor: pointer;
    padding: .95rem 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    border-radius: var(--radius);
    list-style-position: inside;
}
.anfahrt summary:hover { background: var(--color-bg-band); }
.anfahrt summary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}
.anfahrt[open] summary {
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius) var(--radius) 0 0;
}
.anfahrt-inhalt { padding: 1.1rem 1.2rem 1.3rem; }
.anfahrt-adresse {
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: .8rem;
}
.anfahrt-links {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
    margin-bottom: 0;
}
.btn-ghost-dunkel {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}
.btn-ghost-dunkel:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
@media (max-width: 520px) {
    .anfahrt-links .btn { width: 100%; text-align: center; }
}
