/*
 * Vereinsorganisator – Stylesheet der öffentlichen Startseite (DESIGN_GUIDELINES.md, Abschnitt „Startseite“).
 *
 * Die Seite sieht aus wie die Pinnwand im Vereinsheim: helle Stoff-Pinnwand aus Leinen mit Leiste aus Aluminium,
 * darauf Aushänge, Zettel, Polaroids und Sticker der Sportfiguren; Akzente in den Logofarben Pink und Petrol,
 * der Einstieg in Hellblau (Entscheidungen des Betreibers vom 2026-11-11 und 2026-11-15).
 *
 * Mobil zuerst, ohne Framework und ohne Fremdschrift. Form und Maße (System-Schrift, Tap-Ziele von 44 px)
 * folgen dem Stylesheet der Anwendung (public/verein/assets/css/app.css).
 *
 * Aufbau dieser Datei:
 *   1. THEMA   – alle Farben und Materialien der Seite. Eine andere Farbfassung ändert nur diesen Block.
 *   2. MASSE   – Abstände, Radien, Schriften (keine Farben).
 *   3. Der Rest nennt keine festen Farben, nur Variablen aus dem THEMA. Die Kontrastwerte stehen im THEMA
 *      neben den Farben und sind nachgerechnet; Text steht nie in Weiß auf einer der drei Logofarben.
 * Inline-SVG in public/index.php trägt Klassen (.fl-…, .li-…, .ball__…, .fig-…), die hier ihre Farbe bekommen.
 */

/* THEMA */
:root {
  /* --- Marke: die drei Farben des Logos --- */
  --hauptfarbe: #33c3f0;             /* Himmelblau. Nur Flächen und Schmuck: weiße Schrift darauf hätte 2,1:1 */
  --kontrast: #f04a7a;               /* Pink. Nur Schmuck: weiße Schrift darauf hätte 3,5:1 */
  --logo-dunkelblau: #1281a3;        /* Petrol. Nur Schmuck: weiße Schrift darauf hätte 4,47:1 */
  --markenband: linear-gradient(90deg, var(--hauptfarbe) 0 33.4%, var(--kontrast) 33.4% 66.7%, var(--logo-dunkelblau) 66.7%);

  /* --- Schrift, Tinte, Linien --- */
  --text: #1f2933;                   /* 14,8:1 auf Weiß, 11,9:1 auf --zettel-gelb, 11,2:1 auf --zettel-rosa */
  --text-neben: #55606b;             /* Nebentext: 6,4:1 auf Weiß, 6,1:1 auf --papier-2 */
  --link: #0a5f7c;                   /* Links und Umriss-Knopf: 7,1:1 auf Weiß, 6,8:1 auf --papier-2, 5,7:1 auf --zettel-gelb, 5,4:1 auf --zettel-rosa */
  --fokus: #0a5f7c;                  /* Fokusrahmen: 5,3:1 auf dem Brett */
  --tinte: #1f2933;                  /* Umrisse der Zeichnungen, Rahmen der Bedienknöpfe */
  --linie: #e6e1d7;                  /* Trennlinien und Kartenränder auf Papier */
  --linie-zart: rgba(31, 41, 51, .22);
  --ja: #1b7f3b;                     /* grüne Haken (wie „Zugesagt“ in der Anwendung) */
  --ja-hell: #bfe8c9;

  /* --- Papier und Flächen --- */
  --papier: #ffffff;                 /* Seitengrund */
  --flaeche: #ffffff;                /* Karten, Aushänge, weiße Zettel */
  --papier-2: #fffae4;               /* abgesetzte Abschnitte (Albumseite): sonniges Papier */
  --papier-2-muster: radial-gradient(rgba(255, 190, 40, .42) 1.3px, transparent 1.8px);
  --papier-2-muster-groesse: 24px 24px;
  --kopf-neutral: #f4f1ea;           /* neu: Kopf der neutralen Karte, Leiste des Fensters, Kreis hinter Symbolen (helles Leinen) */
  --hover: #dff3fb;                  /* Fläche unter dem Mauszeiger (Menü, Fragen, Bedienknöpfe): Hellblau; Text 13,1:1, Links 6,2:1 */
  --bild-grund: #f4f6f8;             /* Fläche hinter einem Bild der Anwendung, solange es lädt */

  /* --- Knöpfe --- */
  --knopf: #d42a5e;                  /* Hauptknopf, weiße Schrift darauf 4,9:1 */
  --knopf-hover: #b81f52;            /* 6,3:1 */
  --knopf-schrift: #ffffff;
  --knopf-naht: rgba(255, 255, 255, .72);
  --knopf-rand: #0a5f7c;             /* Umriss-Knopf: Rand und Schrift */
  --knopf-rand-flaeche: #ffffff;
  --knopf-rand-hover: #e7f5f9;       /* 6,4:1 */
  --knopf-rand-naht: rgba(10, 95, 124, .5);
  --schatten-knopf: 0 2px 0 rgba(31, 41, 51, .14), 0 8px 14px -8px rgba(31, 41, 51, .45);

  /* --- Brett: Pinnwand aus hellem Leinen mit Leiste aus Aluminium (die Buchenleiste biss sich mit Blassgelb und Blau; Betreiber, 2026-11-15) --- */
  --brett: #e2ded3;
  --brett-muster:
    radial-gradient(ellipse 75% 85% at 64% 0, rgba(255, 255, 255, .42), transparent 74%),  /* Licht von oben */
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px),                  /* helle Kettfäden */
    linear-gradient(0deg, rgba(98, 90, 76, .14) 1px, transparent 1px),                    /* Schatten zwischen den Schussfäden */
    linear-gradient(0deg, rgba(255, 255, 255, .35) 1px, transparent 1px),
    linear-gradient(0deg, rgba(98, 90, 76, .07) 2px, transparent 2px),                    /* dickere Fäden, unregelmäßig */
    linear-gradient(90deg, rgba(98, 90, 76, .06) 2px, transparent 2px);
  --brett-muster-groesse: 100% 100%, 3px 3px, 3px 3px, 3px 3px, 100% 29px, 37px 100%;
  --brett-muster-lage: 0 0, 0 0, 0 0, 0 2px, 0 5px, 11px 0;
  --brett-rahmen: #d5dadf;           /* Leiste aus gebürstetem Aluminium */
  /* neu: die Leiste als Bild für border-image: oben Licht, unten Schattenkante */
  --brett-leiste: linear-gradient(180deg,
    #aab2b9 0, #aab2b9 1px, #f6f8f9 1px, #e3e7ea 4px, #cfd5da 8px, #9aa3ab 10px,
    transparent 10px, transparent calc(100% - 10px),
    #aab2b9 calc(100% - 10px), #aab2b9 calc(100% - 9px), #f6f8f9 calc(100% - 9px), #e3e7ea calc(100% - 6px), #cfd5da calc(100% - 2px), #9aa3ab 100%);
  /* neu: Schatten der Leiste auf dem Stoff */
  --brett-tiefe: inset 0 9px 10px -9px rgba(52, 58, 64, .34), inset 0 -9px 10px -9px rgba(52, 58, 64, .24);

  /* --- Zettel, Etikett, Klebestreifen, Reißzwecken --- */
  --zettel-gelb: #ffe680;            /* Haftnotiz in Sonnengelb; Text 11,9:1 */
  --zettel-blau: #d9f2fb;            /* sparsam: einzelne Zettel */
  --zettel-rosa: #ffd6e2;
  --blatt-hinten-1: #a6e3f8;              /* zweites Blatt hinter dem Aushang im Einstieg: Hellblau */
  --held-etikett: #8adaf5;                /* Etikett „Der kostenlose Vereinskalender“ im Einstieg: Hellblau; Text 9,4:1 */
  --held-etikett-kante: rgba(18, 129, 163, .4);
  --held-zettel: var(--zettel-blau);      /* Bildunterschrift im Handy; Text 12,6:1 */
  --blatt-hinten-2: var(--zettel-rosa);   /* neu: zweites Blatt hinter dem Aushang am Schluss */
  --etikett: #ffc83d;                /* gelbes Etikett und Nummern; Text darauf 9,5:1 */
  --etikett-kante: rgba(120, 80, 0, .25);
  --gelb-tinte: #6b4700;             /* Symbol auf gelbem Zettel: 6,7:1 */
  --kontrast-tinte: #a81a49;         /* Symbol auf rosa Zettel: 5,5:1 */
  --heftlinie: rgba(240, 74, 122, .5);  /* Randlinie auf Karteikarte und Collegeblock */
  --ringbindung: #8b8f94;
  --klebeband: repeating-linear-gradient(-45deg, rgba(255, 200, 61, .8) 0 7px, rgba(255, 244, 205, .86) 7px 14px);
  --klebeband-blau: repeating-linear-gradient(-45deg, rgba(18, 129, 163, .6) 0 7px, rgba(255, 255, 255, .78) 7px 14px);
  --klebeband-rosa: repeating-linear-gradient(-45deg, rgba(240, 74, 122, .6) 0 7px, rgba(255, 255, 255, .78) 7px 14px);
  --pin-1: var(--kontrast);
  --pin-2: var(--logo-dunkelblau);
  --pin-3: var(--hauptfarbe);
  --pin-4: var(--etikett);
  --pin-glanz: rgba(255, 255, 255, .85);
  --hinweis-flaeche: rgba(255, 255, 255, .94);  /* Wisch-Hinweis auf dem Brett */

  /* --- Kritzeleien --- */
  --kringel: var(--kontrast);        /* Kringel unter „einfach“ */
  --strich: var(--kontrast);         /* Unterstrich der Abschnittsüberschriften */
  --strich-2: var(--logo-dunkelblau);
  --pfeil: var(--logo-dunkelblau);   /* handgezeichnete Pfeile */
  --notiz: #0a5f7c;                  /* handschriftliche Notiz auf Papier: 6,8:1 auf --papier-2 */

  /* --- Häufige Fragen --- */
  --frage-punkt: var(--zettel-blau); /* Punkt hinter dem Aufklapp-Pfeil */
  --frage-pfeil: #0a5f7c;            /* Aufklapp-Pfeil: 5,9:1 auf --frage-punkt, 7,1:1 auf Weiß */

  /* --- Laufbahn (Tartan) im Abschnitt „Herzstück“; darauf steht kein Text --- */
  --tartan: #dd6238;
  --tartan-rand: #c9532c;
  --tartan-linie: rgba(255, 255, 255, .9);

  /* --- Erklärungen an den Bildern am Computer --- */
  --marke: var(--hauptfarbe);        /* nummerierte Marke im Bild und in der Liste; Ziffer 7,2:1 */
  --marke-schrift: var(--tinte);
  --marke-rand: #ffffff;
  --schatten-marke: 0 1px 2px rgba(31, 41, 51, .45), 0 3px 8px rgba(31, 41, 51, .3);
  --zeiger: var(--logo-dunkelblau);  /* blaue Pfeile von den Zetteln ins Bild; mit weißem Rand auch auf dem Sand gut zu sehen */
  --schleier: rgba(31, 41, 51, .88); /* dunkler Grund hinter der Großansicht eines Bildes */
  --umriss-zeiger: drop-shadow(1.6px 0 0 #ffffff) drop-shadow(-1.6px 0 0 #ffffff) drop-shadow(0 1.6px 0 #ffffff) drop-shadow(0 -1.6px 0 #ffffff);

  /* --- Sandplatz (Abschnitt „Bilder“) --- */
  --sand: #b65431;                   /* Ziegelmehl; weiße Schrift darauf 4,9:1 */
  --sand-muster:
    radial-gradient(rgba(255, 222, 200, .2) 1px, transparent 1.6px),
    radial-gradient(rgba(90, 30, 10, .26) 1px, transparent 1.7px),
    radial-gradient(rgba(255, 235, 215, .12) 1.4px, transparent 2px);
  --sand-muster-groesse: 7px 9px, 11px 6px, 17px 15px;
  --sand-linie: #ffffff;             /* Platzlinien und Pfeile auf dem Sand */

  /* --- Handy und Fenster --- */
  --geraet: #1f2933;
  --geraet-glanz: rgba(255, 255, 255, .7);

  /* --- Bälle, Korb, Tor --- */
  --ball-basket: #f2913d;
  --ball-tennis: #dbe64a;
  --ball-fussball: #ffffff;
  --ball-naht-hell: #ffffff;
  --gymball: var(--hauptfarbe);
  --korb-brett: #ffffff;
  --korb-ziel: var(--kontrast);
  --korb-ring: var(--kontrast);
  --netz: #66727d;
  --tor-pfosten: #ffffff;
  --tor-boden: rgba(31, 41, 51, .08);

  /* --- Bogenschütze, Pfeil und Zielscheibe (Farben des Logos) --- */
  --figur-haut: #f0b392;
  --figur-haar: #263238;
  --figur-hemd: #1d5c6e;
  --figur-hose: #2a8fb0;
  --figur-schuh: #263238;
  --figur-schatten: rgba(31, 41, 51, .16);
  --bogen: var(--kontrast);
  --flugpfeil-feder: var(--kontrast);
  --scheibe-aussen: #ffffff;
  --scheibe-1: var(--kontrast);
  --scheibe-2: #ffffff;
  --scheibe-3: var(--hauptfarbe);
  --scheibe-mitte: var(--logo-dunkelblau);
  --scheibe-rand: #e7d3a8;           /* Stroh an der Seite der Scheibe */

  /* --- Trikots, Pfiff, Sticker --- */
  --trikot-blau: var(--hauptfarbe);  /* Rückennummer in --tinte: 7,2:1 */
  --trikot-gelb: var(--etikett);     /* 9,5:1 */
  --trikot-pink: var(--kontrast);    /* 4,2:1; die Nummer ist groß und nur Schmuck */
  --trikot-petrol: #0b6f90;          /* dunkler als das Petrol des Logos, damit die weiße Nummer 5,7:1 erreicht */
  --trikot-nummer: var(--tinte);
  --trikot-nummer-hell: #ffffff;     /* nur auf --trikot-petrol */
  --pfiff: var(--etikett);
  --pfiff-band: var(--kontrast);
  --sticker-rand: #ffffff;

  /* --- Schatten: warmes Grau, damit weißes Papier auf dem hellen Stoff eine klare Kante hat --- */
  --schatten: 0 1px 2px rgba(62, 50, 34, .1), 0 2px 8px rgba(62, 50, 34, .07);
  --schatten-zettel: 0 0 0 1px rgba(92, 78, 58, .07), 0 1px 2px rgba(62, 50, 34, .18), 0 12px 22px -10px rgba(62, 50, 34, .5);
  --schatten-foto: 0 0 0 1px rgba(92, 78, 58, .08), 0 2px 3px rgba(62, 50, 34, .16), 0 20px 30px -14px rgba(62, 50, 34, .5);
  --schatten-fenster: 0 2px 3px rgba(31, 41, 51, .2), 0 28px 44px -20px rgba(31, 41, 51, .6);
  --schatten-geraet: 0 28px 40px -18px rgba(62, 50, 34, .6), 0 0 0 3px var(--geraet-glanz), 0 0 0 4px rgba(92, 78, 58, .16);
  --schatten-menue: 0 16px 24px -12px rgba(31, 41, 51, .3);
  --schatten-pin: inset -2px -3px 0 rgba(0, 0, 0, .18), 2px 5px 4px -1px rgba(62, 50, 34, .5);
  --schatten-klebeband: 0 1px 2px rgba(62, 50, 34, .16);
  --schatten-sticker: drop-shadow(0 1px 1px rgba(62, 50, 34, .3)) drop-shadow(0 8px 9px rgba(62, 50, 34, .26));
  /* weißer Stanzrand für gezeichnete Sticker (die Sportfiguren bringen ihn im Bild mit) */
  --umriss-sticker: drop-shadow(3px 0 0 var(--sticker-rand)) drop-shadow(-3px 0 0 var(--sticker-rand)) drop-shadow(0 3px 0 var(--sticker-rand)) drop-shadow(0 -3px 0 var(--sticker-rand));

  /* --- Spirale des Collegeblocks: eine Windung als Bild (Loch im Papier, Schatten des Drahts, Draht mit Glanz) --- */
  --spirale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='44' viewBox='0 0 28 44'%3E%3Cdefs%3E%3CradialGradient id='l' cx='.5' cy='.2' r='.9'%3E%3Cstop offset='0' stop-color='%234b5158'/%3E%3Cstop offset='.6' stop-color='%238b9299'/%3E%3Cstop offset='1' stop-color='%23c3c8cd'/%3E%3C/radialGradient%3E%3ClinearGradient id='d' gradientUnits='userSpaceOnUse' x1='10.6' y1='0' x2='15.6' y2='0'%3E%3Cstop offset='0' stop-color='%234f555c'/%3E%3Cstop offset='.38' stop-color='%23f6f8f9'/%3E%3Cstop offset='.7' stop-color='%238d949b'/%3E%3Cstop offset='1' stop-color='%2341464c'/%3E%3C/linearGradient%3E%3ClinearGradient id='h' gradientUnits='userSpaceOnUse' x1='16.6' y1='0' x2='20.6' y2='0'%3E%3Cstop offset='0' stop-color='%233f444a'/%3E%3Cstop offset='.45' stop-color='%239aa1a8'/%3E%3Cstop offset='1' stop-color='%2333383d'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='2' x2='0' y2='9'%3E%3Cstop offset='0' stop-color='%23e9edf0'/%3E%3Cstop offset='.5' stop-color='%238d949b'/%3E%3Cstop offset='1' stop-color='%23555b62'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M18.6 14.6V8' fill='none' stroke='url(%23h)' stroke-width='2.6'/%3E%3Cellipse cx='14' cy='27' rx='4.5' ry='4.9' fill='url(%23l)'/%3E%3Cpath d='M9.7 28.4a4.5 4.9 0 0 0 8.6 0' fill='none' stroke='%23ffffff' stroke-opacity='.85' stroke-width='1'/%3E%3Cpath d='M16.4 26.4C17.2 21.6 16.6 18 16 15' fill='none' stroke='%232b3035' stroke-opacity='.2' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M12.9 8C12.7 13.5 14.6 20.5 14 27.6' fill='none' stroke='url(%23d)' stroke-width='2.8' stroke-linecap='round'/%3E%3Cpath d='M12.9 8.4C12.9 2.6 18.6 2.6 18.6 8.4' fill='none' stroke='url(%23b)' stroke-width='2.8'/%3E%3C/svg%3E");

  /* --- Formen als Masken (Schwarz steht hier nur für „deckend“; die Farbe kommt aus den Variablen oben) --- */
  /* Kerben links und rechts: Knopf in Form einer Eintrittskarte (Kopfzeile, Menü, Einstieg) */
  --karte-kerben: radial-gradient(circle at 0 50%, transparent 6px, #000 6.5px) left / 51% 100% no-repeat,
                  radial-gradient(circle at 100% 50%, transparent 6px, #000 6.5px) right / 51% 100% no-repeat;
  --kritzel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M3 9 C 16 2, 27 2, 39 8 S 63 14, 77 7 S 103 1, 117 7' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  --kritzel-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cpath d='M2 10 C 9 6, 17 6, 26 9 M19 3 L27 9 L19 15' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* MASSE */
:root {
  --radius: 10px;
  --radius-s: 6px;
  --tap: 44px;
  --rand-seite: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Runde Systemschrift für Überschriften (Apple: SF Rounded), sonst die normale Systemschrift */
  --font-rund: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", var(--font);
  /* Handschrift für kurze Notizen, nur aus Systemschriften; fehlt sie, bleibt es bei der runden Schrift */
  --font-hand: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Noteworthy", var(--font-rund);
  /* gerissene Enden eines Klebestreifens */
  --riss: polygon(2% 0, 98% 0, 100% 18%, 97% 34%, 100% 50%, 97% 66%, 100% 82%, 98% 100%, 2% 100%, 0 82%, 3% 66%, 0 50%, 3% 34%, 0 18%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--papier);
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; color: var(--text); }
h1, h2 { font-family: var(--font-rund); font-weight: 800; text-wrap: balance; }
/* Untergrenze so gewählt, dass „Mannschaftstermine“ auch bei 320 px Breite auf dem Aushang in eine Zeile passt */
h1 { font-size: clamp(1.45rem, .5rem + 4.4vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
figure { margin: 0; }

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

.icon { flex: 0 0 auto; width: 24px; height: 24px; }
/* Kräftigere Striche, wo ein Symbol für sich steht (startseite_icon() liefert alle mit Strichstärke 2) */
.haken .icon { stroke-width: 2.4; }
.ablauf__icon .icon { stroke-width: 2.2; }
.ablauf__icon--gruen .icon, .slider__pfeil .icon { stroke-width: 2.6; }

.nur-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vorrat { position: absolute; width: 0; height: 0; overflow: hidden; }

.sprung { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 16px; background: var(--flaeche); color: var(--text); }
.sprung:focus { left: 8px; top: 8px; }

.breite {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(var(--rand-seite), env(safe-area-inset-left));
  padding-right: max(var(--rand-seite), env(safe-area-inset-right));
}

/* ---------- Farbklassen für Inline-SVG ---------- */

.fl-akzent { fill: var(--kontrast); }
.fl-zweit { fill: var(--logo-dunkelblau); }
.fl-hell { fill: var(--hauptfarbe); }
.fl-warm { fill: var(--etikett); }
.li-akzent, .li-zweit { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.li-akzent { stroke: var(--kontrast); }
.li-zweit { stroke: var(--logo-dunkelblau); }

/* Bälle (Symbole im Vorrat) */
.ball__leder { stroke: var(--tinte); stroke-width: 2; }
.ball__leder--fussball { fill: var(--ball-fussball); }
.ball__leder--basket { fill: var(--ball-basket); }
.ball__leder--tennis { fill: var(--ball-tennis); }
.ball__fleck { fill: var(--tinte); }
.ball__naht { fill: none; stroke: var(--tinte); stroke-width: 1.7; }
.ball__naht--tennis { stroke: var(--ball-naht-hell); stroke-width: 2.6; stroke-linecap: round; }
.gymball__flaeche { fill: var(--gymball); stroke: var(--tinte); stroke-width: 3; }
.gymball__streifen { fill: none; stroke: var(--ball-naht-hell); stroke-width: 3; stroke-linecap: round; }

/* Trikot und Pfiff */
.trikot__stoff { fill: var(--trikot-blau); stroke: var(--tinte); stroke-width: 3.5; stroke-linejoin: round; }
.trikot--gelb .trikot__stoff { fill: var(--trikot-gelb); }
.trikot--pink .trikot__stoff { fill: var(--trikot-pink); }
.trikot--petrol .trikot__stoff { fill: var(--trikot-petrol); }
.trikot__kragen { fill: none; stroke: var(--tinte); stroke-width: 3.5; }
.trikot__nummer { fill: var(--trikot-nummer); font-family: var(--font-rund); font-size: 54px; font-weight: 800; }
.trikot--petrol .trikot__nummer { fill: var(--trikot-nummer-hell); }
.pfiff__ton { fill: none; stroke: var(--tinte); stroke-width: 3; stroke-linecap: round; }
.pfiff__koerper { fill: var(--pfiff); stroke: var(--tinte); stroke-width: 3.5; stroke-linejoin: round; }
.pfiff__loch { fill: var(--flaeche); stroke: var(--tinte); stroke-width: 3; }
.pfiff__band { fill: none; stroke: var(--pfiff-band); stroke-width: 3.5; stroke-linecap: round; }

/* ---------- Knöpfe: kräftige Fläche mit gesteppter Innenlinie (wie ein Aufnäher) ---------- */

.knopf {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border: 2px solid transparent; border-radius: var(--radius-s);
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
}
/* Steppnaht */
.knopf::after {
  content: ""; position: absolute; inset: 2px; pointer-events: none;
  border: 1.5px dashed var(--naht); border-radius: 3px;
}
.knopf--haupt { --naht: var(--knopf-naht); background: var(--knopf); color: var(--knopf-schrift); box-shadow: var(--schatten-knopf); }
.knopf--haupt:hover { background: var(--knopf-hover); }
.knopf--rand { --naht: var(--knopf-rand-naht); background: var(--knopf-rand-flaeche); color: var(--knopf-rand); border-color: var(--knopf-rand); }
.knopf--rand:hover { background: var(--knopf-rand-hover); }
.knopf--gross { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.knopf--gross::after { inset: 3px; }

/* Kopfzeile, Menü und Einstieg: Hauptknopf als Eintrittskarte mit Kerben, groß mit Abrisslinie; Umriss-Knopf als
   Aufnäher mit Steppnaht (Betreiber, 2026-11-15). Die Fläche liegt im ::before, damit der Fokusrahmen ganz bleibt. */
.knopf--karte { padding: 0 16px; }
.knopf--karte.knopf--haupt { isolation: isolate; padding: 0 20px; background: transparent; box-shadow: none; }
.knopf--karte.knopf--haupt::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  border-radius: var(--radius-s); background: var(--knopf);
  -webkit-mask: var(--karte-kerben); mask: var(--karte-kerben);
}
.knopf--karte.knopf--haupt:hover { background: transparent; }
.knopf--karte.knopf--haupt:hover::before { background: var(--knopf-hover); }
.knopf--karte.knopf--haupt::after { content: none; }
.knopf--karte.knopf--rand::after { inset: 3px; }
.knopf--karte.knopf--gross { min-height: 52px; padding: 0 24px; }
.knopf--karte.knopf--haupt.knopf--gross { padding: 0 26px 0 44px; }
.knopf--karte.knopf--haupt.knopf--gross::after {
  content: ""; inset: 10px auto 10px 24px; border: 0; border-left: 2px dashed var(--knopf-naht); border-radius: 0;
}

.knoepfe { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 22px; }
@media (max-width: 479px) {
  .knoepfe .knopf { flex: 1 1 100%; }
}

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

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
  padding-top: env(safe-area-inset-top);
}
/* Markenband in den drei Farben des Logos unter der Kopfzeile */
.kopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--markenband); }
.kopf__innen { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.kopf__logo { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: var(--tap); }
.kopf__logo img { width: auto; max-width: 100%; max-height: 24px; }
.kopf__aktionen { flex: 0 0 auto; display: flex; gap: 8px; }
@media (max-width: 359px) { .kopf__aktionen { gap: 6px; } .kopf__aktionen .knopf { padding: 0 10px; } }
.kopf__nav, .kopf__anmelden { display: none; }
.kopf__nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px;
  border-radius: var(--radius-s); color: var(--text); font-size: 1rem; font-weight: 600; text-decoration: none;
}
.kopf__nav a:hover { background: var(--hover); }

.menue { flex: 0 0 auto; }
.menue > summary {
  display: block; min-width: var(--tap); height: var(--tap); padding: 8px;
  border: 2px solid var(--linie); border-radius: var(--radius-s); background: var(--flaeche);
  color: var(--text); font-size: 1rem; font-weight: 700; line-height: 24px; white-space: nowrap; cursor: pointer; list-style: none;
}
.menue > summary .icon { display: inline-block; vertical-align: top; }
.menue > summary::-webkit-details-marker { display: none; }
.menue[open] > summary { background: var(--hover); border-color: var(--tinte); }
.menue__wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.menue__inhalt {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; gap: 4px;
  padding: 8px max(var(--rand-seite), env(safe-area-inset-right)) 16px max(var(--rand-seite), env(safe-area-inset-left));
  background: var(--papier); border-bottom: 1px solid var(--linie);
  box-shadow: var(--schatten-menue);
}
.menue__inhalt a:not(.knopf) {
  display: flex; align-items: center; min-height: 48px; padding: 0 8px;
  border-bottom: 1px dashed var(--linie); color: var(--text); font-weight: 600; text-decoration: none;
}
.menue__inhalt .knopf { margin-top: 12px; }

@media (min-width: 480px) {
  .menue > summary { padding: 8px 12px; }
  .menue__wort { position: static; width: auto; height: auto; margin-left: 6px; overflow: visible; clip: auto; }
}
@media (min-width: 640px) {
  .kopf__innen { min-height: 68px; gap: 12px; }
  .kopf__logo img { max-height: 28px; }
  .kopf__anmelden { display: inline-flex; }
  .menue__inhalt .knopf { display: none; }
}
/* Die Links zu den Abschnitten stehen erst in der Kopfzeile, wenn alle fünf neben Logo und Knöpfen Platz haben;
   darunter bleibt das aufklappbare Menü. Die Kopfzeile ist dann 1088 px breit; Logo, Links und Knöpfe brauchen
   rund 1065 px. Etwas kleinere Schrift und engere Abstände lassen Luft für Geräte mit breiterer System-Schrift. */
@media (min-width: 1200px) {
  .kopf__innen { gap: 10px; }
  .kopf__logo { flex: 0 0 auto; }
  .kopf__nav { display: flex; flex: 1 1 auto; margin-left: 8px; }
  .kopf__nav a { padding: 0 8px; font-size: .9375rem; white-space: nowrap; }
  .menue { display: none; }
}

/* ---------- Bausteine der Pinnwand ---------- */

/* Brett: Grundfarbe und Gewebe aus dem THEMA. Die Klasse heißt nach dem ersten Entwurf (Kork); das Brett ist Leinen. */
.kork {
  background-color: var(--brett);
  background-image: var(--brett-muster);
  background-size: var(--brett-muster-groesse);
  background-position: var(--brett-muster-lage);
  box-shadow: var(--brett-tiefe);
}

/* Reißzwecke: farbiger Kopf mit Glanzpunkt und Schatten */
.pin, .zettel::before {
  content: ""; position: absolute; z-index: 2; top: 9px; left: 50%;
  width: 20px; height: 20px; margin-left: -10px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--pin-glanz) 0 2.5px, transparent 3.5px), var(--pin, var(--pin-1));
  box-shadow: var(--schatten-pin);
}
.pin--blau { --pin: var(--pin-2); }
.pin--links { left: 22px; margin-left: 0; }
.pin--rechts { left: auto; right: 22px; margin-left: 0; }

/* Klebestreifen mit gerissenen Enden */
.foto::before, .karteikarte::before, .fenster-rahmen::before, .fenster-rahmen::after,
.sandplatz .abschnitt__kopf::before, .pinnwand .abschnitt__kopf h2::before {
  content: ""; position: absolute; z-index: 3; top: -13px; left: 50%;
  width: 104px; height: 28px; margin-left: -52px;
  background: var(--klebeband);
  box-shadow: var(--schatten-klebeband);
  transform: rotate(-3deg);
  clip-path: var(--riss);
}

/* Sticker: Sportfigur mit weißem Rand (im Bild), leichtem Schatten und eigener Drehung */
.sticker { position: absolute; z-index: 1; display: block; pointer-events: none; transform: rotate(var(--dreh, 0deg)); }
.sticker img, .sticker svg { display: block; width: 100%; height: auto; filter: var(--schatten-sticker); }
/* Gezeichnete Sticker (Inline-SVG): der weiße Rand entsteht über vier Schatten */
.sticker--trikot svg, .pfiff { filter: var(--umriss-sticker) var(--schatten-sticker); }

/* Handgezeichnete Pfeile */
.pfeil { display: block; fill: none; stroke: var(--pfeil); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* ---------- Einstieg (Hero) ---------- */

.held {
  position: relative; isolation: isolate;
  overflow-x: hidden; overflow-x: clip;
  padding: 26px 0 36px;
  border-bottom: 10px solid var(--brett-rahmen);
  border-image: var(--brett-leiste) 10;
}
.konfetti-grund { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.held__raster { display: grid; gap: 34px; align-items: center; }

/* Der Text hängt als Aushang an der Pinnwand; dahinter ein zweites, farbiges Blatt */
.held__text { position: relative; padding: 36px 20px 24px; background: var(--flaeche); border-radius: 3px; box-shadow: var(--schatten-zettel); }
.held__text::before {
  content: ""; position: absolute; inset: 8px -5px -8px 6px; z-index: -1;
  background: var(--blatt-hinten-1); border-radius: 3px; box-shadow: var(--schatten-zettel); transform: rotate(-2.4deg);
}
.held__text .pin { top: 10px; }
.held__marke { margin: 0 0 14px; }
.held__marke span {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  background: var(--held-etikett); color: var(--text); font-weight: 800;
  box-shadow: 0 2px 0 var(--held-etikett-kante); transform: rotate(-2deg);
}
/* „einfach“ mit Kringel darunter; der Text der Überschrift bleibt unverändert */
.kringel { position: relative; display: inline-block; white-space: nowrap; }
.kringel__linie {
  position: absolute; left: -4%; bottom: -.2em; width: 108%; height: .42em;
  fill: none; stroke: var(--kringel); stroke-width: 4; stroke-linecap: round; overflow: visible; pointer-events: none;
}
.held__einleitung { font-size: 1.15rem; }
.held__mitglied { margin: 0 0 18px; color: var(--text-neben); }
.haken { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.haken li { display: flex; align-items: flex-start; gap: 8px; }
.haken .icon { margin-top: 2px; color: var(--ja); }

/* Handy mit Bildwechsler, Sticker kleben daneben (hinter dem Handy). Am Smartphone ist das Handy 276 px breit:
   So haben Bild, Punkte und „Anhalten“ in einem Fenster von 390 × 844 unter der Kopfzeile gemeinsam Platz
   (Laientest vom 2026-11-15: mit 290 px lag die Bedienleiste knapp darunter). */
.held__bild { --handy: min(276px, calc(100vw - 80px)); position: relative; display: flex; justify-content: center; padding-top: 62px; }
/* Auf dem Smartphone kleben die Sticker oben an den Ecken des Handys (dahinter) */
.sticker--held-basketball { --dreh: -9deg; left: 50%; top: 0; width: 96px; margin-left: calc(var(--handy) / -2 - 34px); }
.sticker--held-hanteln { --dreh: 8deg; left: 50%; top: 2px; width: 100px; margin-left: calc(var(--handy) / 2 - 64px); }
@media (min-width: 640px) {
  .held__bild { --handy: 264px; padding-top: 12px; }
  .sticker--held-basketball { top: -4px; width: 120px; margin-left: calc(var(--handy) / -2 - 120px); }
  .sticker--held-hanteln { top: calc(var(--handy) * 1.55); width: 116px; margin-left: calc(var(--handy) / 2 + 8px); }
}

@media (min-width: 900px) {
  .held { padding: 64px 0 76px; }
  .held__raster { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; }
  .held__text { padding: 46px 40px 34px; }
  .held h1 { font-size: clamp(1.9rem, .4rem + 2.9vw, 2.75rem); }
  .held__bild { --handy: 268px; }
  .sticker--held-basketball { width: 168px; top: -34px; margin-left: calc(var(--handy) / -2 - 150px); }
  .sticker--held-hanteln { width: 150px; top: calc(var(--handy) * 1.5); margin-left: calc(var(--handy) / 2 - 26px); }
}

/* ---------- Bildwechsler (Slider) ---------- */

.slider { position: relative; z-index: 2; display: grid; grid-template-columns: 48px auto 48px; align-items: center; justify-content: center; gap: 10px 6px; }
/* Smartphone: großes Handy, die Knöpfe stehen in der Zeile darunter */
.slider__buehne, .slider__steuerung { display: contents; }
.slider__geraet { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
.slider__pfeil--zurueck { grid-column: 1; grid-row: 2; }
.slider__punkte { grid-column: 2; grid-row: 2; }
.slider__pfeil--weiter { grid-column: 3; grid-row: 2; }
.slider__pause, .slider__hinweis { grid-column: 1 / -1; justify-self: center; }
.geraet {
  flex: 0 0 auto; width: var(--handy);
  border: 9px solid var(--geraet); border-radius: 38px; background: var(--geraet);
  box-shadow: var(--schatten-geraet);
  overflow: hidden;
}
/* Ohne JavaScript eine Bildreihe zum Wischen; gescrollt wird nur sie, nie die Seite */
.slider__bahn {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  border-radius: 29px; background: var(--papier);
}
.slider--js .slider__bahn { scrollbar-width: none; }
.slider--js .slider__bahn::-webkit-scrollbar { display: none; }
.slider__bahn:focus-visible { outline: 4px solid var(--fokus); outline-offset: -4px; }
.slider__bild { flex: 0 0 100%; min-width: 100%; display: flex; flex-direction: column; scroll-snap-align: start; scroll-snap-stop: always; }
.slider__bild img { width: 100%; background: var(--bild-grund); }
/* Bildunterschrift als hellblauer Zettel unten im Handy; alle gleich hoch, damit nichts springt */
.slider__bild figcaption {
  flex: 1 0 auto; min-height: 4.5em; margin: 0; padding: 9px 12px 12px;
  border-top: 2px dashed var(--linie-zart); background: var(--held-zettel);
  color: var(--text); font-size: .875rem; line-height: 1.3; text-align: center;
}

.slider__pfeil {
  flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 2px solid var(--tinte); border-radius: 50%; background: var(--flaeche); color: var(--text);
  box-shadow: 0 3px 0 var(--tinte); cursor: pointer;
}
.slider__pfeil:hover { background: var(--hover); }
.slider__pfeil:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--tinte); }

/* Ab 640 px: Knöpfe links und rechts neben dem Handy, Punkte und Pause darunter */
@media (min-width: 640px) {
  .slider { grid-template-columns: none; justify-items: center; gap: 10px; }
  .slider__buehne { display: flex; align-items: center; gap: 8px; }
  .slider__steuerung { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
  .slider__geraet, .slider__pfeil--zurueck, .slider__punkte, .slider__pfeil--weiter, .slider__pause, .slider__hinweis { grid-column: auto; grid-row: auto; }
}
.slider__punkte { display: flex; }
.slider__punkt { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.slider__punkt::before {
  content: ""; width: 14px; height: 14px; border: 2px solid var(--tinte); border-radius: 7px; background: var(--flaeche);
}
.slider__punkt:hover::before { background: var(--hover); }
.slider__punkt[aria-current="true"]::before { width: 30px; background: var(--knopf); border-color: var(--tinte); }
.slider__pause, .gross__zu {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 16px 0 10px;
  border: 2px solid var(--tinte); border-radius: 999px; background: var(--flaeche); color: var(--text);
  font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
}
.slider__pause:hover, .gross__zu:hover { background: var(--hover); }
/* „Anhalten“ und „Weiter abspielen“ liegen übereinander im selben Feld, sichtbar ist eines davon. So ist der Knopf
   immer so breit wie die längere Beschriftung, und Pfeile und Punkte daneben verrutschen nicht unter dem Finger,
   wenn er nach der ersten eigenen Bedienung auf „Weiter abspielen“ springt. */
.slider__pause { display: inline-grid; justify-items: center; }
.slider__pause > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.slider__pause-aus, .slider--pausiert .slider__pause-an { visibility: hidden; }
.slider--pausiert .slider__pause-aus { visibility: visible; }
/* Unter 360 px passen die Pfeile nicht neben die fünf Punkte (zusammen 328 px): Die Punkte stehen dann allein in
   ihrer Zeile, die Pfeile links und rechts neben „Anhalten“. Alle Tap-Ziele bleiben 44 px groß. */
@media (max-width: 359px) {
  .slider__punkte { grid-column: 1 / -1; justify-self: center; }
  .slider__pfeil--zurueck, .slider__pfeil--weiter, .slider__pause { grid-row: 3; }
  .slider__pause { grid-column: 2; padding: 0 6px; font-size: .8125rem; }
  /* die Sticker an den Ecken des Handys ragten sonst über den Fensterrand */
  .sticker--held-basketball { margin-left: calc(var(--handy) / -2 - 26px); }
  .sticker--held-hanteln { margin-left: calc(var(--handy) / 2 - 76px); }
}
.slider--ruhig .slider__pause { display: none; }
.slider__hinweis {
  margin: 0; padding: 4px 14px; border-radius: 999px;
  background: var(--hinweis-flaeche); color: var(--text); font-size: .95rem; text-align: center;
}
/* Mit Maus und Knöpfen braucht es den Wisch-Hinweis nicht */
@media (hover: hover) and (pointer: fine) {
  .slider--js .slider__hinweis { display: none; }
}

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

.abschnitt { --polster: 56px; position: relative; padding: var(--polster) 0; }
/* Einleitungen nutzen die volle Breite des Abschnitts (Vorgabe vom 2026-11-11) */
.abschnitt__kopf { margin-bottom: 32px; }
.abschnitt__kopf > p:last-of-type { margin-bottom: 0; }
.abschnitt__kopf > h2:last-child { margin-bottom: 0; }
.abschnitt__kopf p { font-size: 1.1rem; }
/* Kritzel-Unterstrich unter jeder Abschnittsüberschrift */
.abschnitt h2::after {
  content: ""; display: block; width: 120px; height: 14px; margin-top: 10px;
  background: var(--strich);
  -webkit-mask: var(--kritzel) no-repeat 0 0 / 100% 100%; mask: var(--kritzel) no-repeat 0 0 / 100% 100%;
}
@media (min-width: 800px) {
  .abschnitt { --polster: 88px; }
  .abschnitt__kopf { margin-bottom: 44px; }
}

/* Überschrift mit Trikot: Das Trikot mit der Rückennummer klebt rechts neben der Überschrift */
.titelzeile { display: flex; align-items: center; gap: 12px; margin-bottom: .6em; }
.titelzeile h2 { min-width: 0; margin: 0; }
.titelzeile .sticker--trikot { position: relative; flex: 0 0 auto; align-self: flex-start; width: 54px; margin: -12px 0 -8px; }
@media (min-width: 640px) { .titelzeile { gap: 16px; } .titelzeile .sticker--trikot { width: 66px; margin: -18px 0 -10px; } }

.raster { display: grid; gap: 16px; }
@media (min-width: 640px) { .raster--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .raster--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

.karte { padding: 20px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); }
.karte > :last-child { margin-bottom: 0; }
.karte__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--kopf-neutral); color: var(--link); }
.karte--symbol { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; align-content: start; }
.karte--symbol h3 { margin: 0; }
.karte--symbol p { grid-column: 1 / -1; margin: 12px 0 0; }

/* ---------- Hauptfunktionen: Doppelseite im Sammelalbum ---------- */

.album {
  background-color: var(--papier-2);
  background-image: var(--papier-2-muster);
  background-size: var(--papier-2-muster-groesse);
}
#hauptfunktionen { overflow-x: hidden; overflow-x: clip; }
#hauptfunktionen .abschnitt__kopf { margin-bottom: 8px; }
#hauptfunktionen .abschnitt__kopf p { font-size: 1.2rem; font-weight: 600; }
/* Sprunglinks zu den beiden Karten: Am Smartphone steht das Familienkonto weit unter der Überschrift */
.spruenge { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 1rem; font-weight: 700; }
.spruenge a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); }
.spruenge .icon { width: 20px; height: 20px; }
.pfeil--start { position: relative; z-index: 4; width: 92px; height: 68px; margin: 0 14% -30px auto; }

/* scroll-margin: Nach einem Sprunglink bleibt das Trikot über der Karte unter der Kopfzeile sichtbar */
.haupt {
  position: relative; display: grid; gap: 34px;
  padding: 30px 18px 26px; border-radius: 8px;
  background: var(--flaeche); box-shadow: var(--schatten-zettel);
  scroll-margin-top: 34px;
}
.haupt--termine { border-top: 8px solid var(--logo-dunkelblau); }
.haupt--familie { border-top: 8px solid var(--kontrast); }
.haupt h3 { font-family: var(--font-rund); font-weight: 800; font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem); }
.haupt__nutzen { font-size: 1.2rem; font-weight: 600; }
.haupt__bild { position: relative; order: -1; padding: 16px 4px 30px; }
.haupt__hinweis { margin: 18px 0 0; padding: 12px 14px; border-left: 4px solid var(--kontrast); border-radius: 0 6px 6px 0; background: var(--papier-2); }
.haupt__mehr { margin: 18px 0 0; font-weight: 600; }

/* Polaroid mit Klebestreifen */
.foto {
  position: relative; max-width: 440px; margin: 0 auto; padding: 12px 12px 14px;
  background: var(--flaeche); box-shadow: var(--schatten-foto);
  transform: rotate(-2deg);
}
.foto--rechts { transform: rotate(2deg); }
.foto::before { background: var(--klebeband-blau); }
.foto--rechts::before { background: var(--klebeband-rosa); transform: rotate(3deg); }
.foto img { width: 100%; border: 1px solid var(--linie); }
/* Platz lassen für den Sticker unten an der Ecke */
.foto figcaption { margin: 12px 0 0; padding: 0 84px 0 4px; color: var(--text); font-family: var(--font-hand); font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.foto--rechts figcaption { padding: 0 4px 0 84px; text-align: right; }

/* Trikots mit fortlaufender Rückennummer: 1 und 2 an den beiden Karten, 3 bis 8 an den Überschriften der Abschnitte */
.sticker--trikot { z-index: 4; width: 70px; }
.sticker--trikot-1 { --dreh: -10deg; top: -14px; left: -10px; }
.sticker--trikot-2 { --dreh: 10deg; top: -14px; right: -6px; }
.sticker--trikot-3 { --dreh: 9deg; right: -44px; bottom: -30px; width: 60px; }
.sticker--trikot-4, .sticker--trikot-6 { --dreh: -8deg; }
.sticker--trikot-5 { --dreh: 9deg; top: -30px; right: 12px; width: 60px; }
.sticker--trikot-7 { --dreh: 8deg; }
.sticker--trikot-8 { --dreh: -10deg; top: -14px; left: -10px; width: 56px; }
.sticker--fussball { --dreh: 6deg; z-index: 4; left: -8px; bottom: -10px; width: 106px; }

/* Ablauf eines Termins in vier Stationen */
.ablauf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.ablauf li { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; font-weight: 700; line-height: 1.3; text-align: center; }
.ablauf__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid var(--tinte); border-radius: 50%;
  color: var(--text); box-shadow: 0 3px 0 var(--tinte);
}
.ablauf__icon .icon { width: 28px; height: 28px; }
@media (max-width: 399px) { .ablauf li { font-size: .9rem; } }
.ablauf__icon--blau { background: var(--hauptfarbe); transform: rotate(-5deg); }
.ablauf__icon--gruen { background: var(--ja-hell); transform: rotate(4deg); }
.ablauf__icon--rosa { background: var(--zettel-rosa); transform: rotate(-3deg); }
.ablauf__icon--gelb { background: var(--etikett); transform: rotate(5deg); }

/* Laufbahn: ein Streifen Tartan mit drei Bahnen, Start- und Ziellinie, leicht schräg aufgeklebt (nach rechts
   abfallend, passend zur Laufrichtung der Figuren). Die Hürdenläuferinnen stehen ohne JavaScript in der Mitte;
   site.js lässt sie beim Scrollen nach unten von links nach rechts laufen. */
.laufbahn {
  position: relative; height: 80px; margin: 30px -4px 2px;
  background:
    linear-gradient(var(--tartan-linie), var(--tartan-linie)) 0 33.3% / 100% 3px no-repeat,
    linear-gradient(var(--tartan-linie), var(--tartan-linie)) 0 66.6% / 100% 3px no-repeat,
    linear-gradient(var(--tartan-linie), var(--tartan-linie)) 26px 0 / 3px 100% no-repeat,
    linear-gradient(var(--tartan-linie), var(--tartan-linie)) calc(100% - 26px) 0 / 3px 100% no-repeat,
    linear-gradient(180deg, var(--tartan-rand), var(--tartan) 18%, var(--tartan) 82%, var(--tartan-rand));
  box-shadow: var(--schatten-zettel);
  transform: rotate(2deg);
}
.laufbahn::before, .laufbahn::after {
  content: ""; position: absolute; z-index: 2; top: -12px; right: -16px; width: 62px; height: 24px;
  background: var(--klebeband); box-shadow: var(--schatten-klebeband); clip-path: var(--riss); transform: rotate(42deg);
}
.laufbahn::after { top: auto; bottom: -12px; right: auto; left: -16px; background: var(--klebeband-blau); }
.laufbahn__figur { position: absolute; z-index: 3; left: 50%; bottom: 6px; width: 96px; margin-left: -48px; }
.laufbahn__figur img { width: 100%; transform: rotate(-2deg); filter: var(--schatten-sticker); }

.punkte { display: grid; }
.haupt--termine .punkt:first-child { border-top: 0; }
.punkt { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; padding: 18px 0 16px; border-top: 2px dashed var(--linie); }
.punkt:last-child { padding-bottom: 0; }
.punkt h4 { margin: 0; font-size: 1.15rem; }
.punkt p { grid-column: 1 / -1; margin: 10px 0 0; }
.punkt__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.punkt__icon--blau { background: var(--zettel-blau); color: var(--link); }
.punkt__icon--gelb { background: var(--zettel-gelb); color: var(--gelb-tinte); }
.punkt__icon--rosa { background: var(--zettel-rosa); color: var(--kontrast-tinte); }

/* Schritte des Familienkontos mit dicken, runden Nummern */
.schritte { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: schritt; }
.schritte li { position: relative; padding-left: 54px; min-height: 40px; counter-increment: schritt; }
.schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--tinte); border-radius: 50%;
  background: var(--etikett); color: var(--text); font-family: var(--font-rund); font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 3px 0 var(--tinte); transform: rotate(-6deg);
}
.schritte li:nth-child(2)::before { background: var(--hauptfarbe); transform: rotate(5deg); }
.schritte li:nth-child(3)::before { background: var(--zettel-rosa); transform: rotate(-3deg); }

.haupt__zwischen { position: relative; z-index: 4; display: flex; align-items: flex-start; justify-content: flex-start; gap: 6px; margin: 30px 0 -18px 4px; color: var(--notiz); }
.haupt__zwischen-text { font-family: var(--font-hand); font-size: 1.05rem; font-weight: 700; white-space: nowrap; transform: rotate(-3deg); }
.pfeil--zwischen { width: 64px; height: 48px; margin-top: 10px; }

@media (min-width: 640px) {
  .ablauf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* kleine Kritzelpfeile zwischen den Stationen */
  .ablauf li:not(:last-child)::after {
    content: ""; position: absolute; top: 20px; right: -16px; width: 22px; height: 14px;
    background: var(--pfeil);
    -webkit-mask: var(--kritzel-pfeil) no-repeat 0 0 / 100% 100%; mask: var(--kritzel-pfeil) no-repeat 0 0 / 100% 100%;
  }
  .punkt p { grid-column: 2; margin-top: 6px; }
  .sticker--fussball { width: 138px; left: -26px; bottom: -18px; }
  .sticker--trikot { width: 86px; }
  .sticker--trikot-1 { top: -30px; left: -34px; }
  .sticker--trikot-2 { top: -30px; right: -34px; }
  .sticker--trikot-3 { width: 72px; right: -56px; bottom: -22px; }
  .sticker--trikot-5 { width: 76px; top: -40px; right: 24px; }
  .sticker--trikot-8 { width: 76px; top: -30px; left: -30px; }
  .laufbahn { height: 96px; margin-top: 44px; }
  .laufbahn__figur { width: 120px; margin-left: -60px; bottom: 8px; }
  .foto figcaption { padding-right: 104px; }
  .foto--rechts figcaption { padding: 0 4px 0 104px; }
}
@media (min-width: 900px) {
  .haupt { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 40px 56px; padding: 48px 48px 44px; }
  .haupt--familie { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .haupt__bild { order: 0; padding: 10px 0 24px; }
  .laufbahn { grid-column: 1 / -1; height: 104px; margin: 34px 0 0; }
  .laufbahn__figur { width: 134px; margin-left: -67px; }
  .punkte { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; padding-top: 8px; border-top: 2px dashed var(--linie); }
  .haupt--termine .punkte { padding-top: 0; border-top: 0; }
  .punkt { padding: 22px 0 0; border-top: 0; }
  .punkt p { grid-column: 1 / -1; margin-top: 12px; }
  .pfeil--start { width: 130px; height: 96px; margin: -36px 30% -40px auto; }
  .haupt__zwischen { margin: 36px 0 -30px 60px; }
  .haupt__zwischen-text { font-size: 1.2rem; }
  .pfeil--zwischen { width: 84px; height: 64px; }
  .sticker--fussball { width: 160px; left: -56px; bottom: -40px; }
}

/* ---------- Das Wichtigste in Kürze: Zettel an der Pinnwand ---------- */

.pinnwand { overflow-x: hidden; overflow-x: clip; border-top: 10px solid var(--brett-rahmen); border-bottom: 10px solid var(--brett-rahmen); border-image: var(--brett-leiste) 10; }
.pinnwand .abschnitt__kopf { position: relative; width: -moz-fit-content; width: fit-content; }
.pinnwand .abschnitt__kopf h2 {
  position: relative; display: block; padding: 14px 20px 12px;
  background: var(--flaeche); border-radius: 2px; box-shadow: var(--schatten-zettel); transform: rotate(-1.2deg);
}
.pinnwand .abschnitt__kopf h2::before { top: -12px; width: 90px; height: 26px; margin-left: -45px; transform: rotate(3deg); }
.sticker--bogen { --dreh: 7deg; z-index: 0; top: -14px; right: 10px; width: 100px; }
/* Auf dem Smartphone bricht die Überschrift um, damit der Sticker daneben Platz hat */
@media (max-width: 639px) {
  .pinnwand .abschnitt__kopf { max-width: calc(100% - 104px); }
  .zettel { transform: rotate(calc(var(--zettel-dreh, 0deg) * .5)); }
}

.fakten { gap: 26px; align-items: start; }
.zettel { position: relative; padding: 36px 20px 22px; border: 0; border-radius: 2px; box-shadow: var(--schatten-zettel); transform: rotate(var(--zettel-dreh, 0deg)); }
.fakten .zettel:nth-child(6n+1) { --zettel-dreh: -1.1deg; --pin: var(--pin-1); background: var(--zettel-gelb); }
.fakten .zettel:nth-child(6n+2) { --zettel-dreh: .9deg; --pin: var(--pin-2); background: var(--flaeche); }
.fakten .zettel:nth-child(6n+3) { --zettel-dreh: -.6deg; --pin: var(--pin-4); background: var(--zettel-rosa); }
.fakten .zettel:nth-child(6n+4) { --zettel-dreh: 1.1deg; --pin: var(--pin-1); background: var(--flaeche); }
.fakten .zettel:nth-child(6n+5) { --zettel-dreh: -.9deg; --pin: var(--pin-2); background: var(--zettel-blau); }
.fakten .zettel:nth-child(6n) { --zettel-dreh: .7deg; --pin: var(--pin-3); background: var(--zettel-gelb); }

@media (min-width: 640px) {
  .sticker--bogen { width: 150px; top: -38px; right: 16px; }
}
@media (min-width: 1024px) {
  .fakten { gap: 34px 30px; }
  .sticker--bogen { width: 190px; top: -64px; right: 24px; }
}

/* ---------- Funktionen als Sammelkarten ---------- */

#funktionen { --strich: var(--strich-2); }
.karten { gap: 22px; }
.sammelkarte {
  --k: var(--zettel-rosa); --k-ink: var(--kontrast-tinte);
  position: relative; padding: 19px 18px 20px; border: 1px solid var(--linie); border-radius: 14px;
  background: linear-gradient(var(--k), var(--k)) 0 0 / 100% 82px no-repeat, var(--flaeche);
  box-shadow: 0 3px 0 var(--linie), var(--schatten);
  transform: rotate(var(--k-dreh, 0deg));
}
.sammelkarte .karte__icon { background: var(--flaeche); color: var(--k-ink); box-shadow: 0 0 0 2px var(--k-ink); }
.sammelkarte p { margin-top: 32px; }
.karten .sammelkarte:nth-child(4n+1) { --k-dreh: -.5deg; }
.karten .sammelkarte:nth-child(4n+2) { --k: var(--kopf-neutral); --k-ink: var(--link); --k-dreh: .5deg; }
.karten .sammelkarte:nth-child(4n+3) { --k: var(--zettel-gelb); --k-ink: var(--gelb-tinte); --k-dreh: -.4deg; }
.karten .sammelkarte:nth-child(4n) { --k: var(--zettel-blau); --k-ink: var(--link); --k-dreh: .4deg; }
.karten__platz { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; min-height: 150px; padding: 10px 0 0; grid-column: 1 / -1; }
.sticker--gymnastik { --dreh: -4deg; position: relative; width: 210px; }
.karten__ball { width: 52px; height: 52px; margin: 0 0 4px -6px; filter: var(--schatten-sticker); }
@media (min-width: 1024px) {
  .karten__platz { grid-column: auto; align-items: center; }
  .sticker--gymnastik { width: 250px; }
}

/* ---------- Bilder: Bildwechsler am Computer auf dem Tennisplatz (Sand) ---------- */

.sandplatz {
  isolation: isolate; overflow-x: hidden; overflow-x: clip;
  background-color: var(--sand);
  background-image: var(--sand-muster);
  background-size: var(--sand-muster-groesse);
}
/* Mittellinie des Aufschlagfelds: läuft vom oberen Rand bis zur Aufschlaglinie (hinter dem Zettel mit dem Link) */
.platz__feld { position: relative; }
.platz__feld::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: calc(-1 * var(--polster)); bottom: 26px;
  width: 5px; margin-left: -2.5px; background: var(--sand-linie);
}
/* Überschrift und Einleitung stehen auf einem Blatt Papier, damit sie auf dem Sand gut lesbar bleiben */
.sandplatz .abschnitt__kopf { position: relative; padding: 26px 20px 22px; background: var(--flaeche); border-radius: 3px; box-shadow: var(--schatten-zettel); }
.sandplatz .abschnitt__kopf::before { left: 28px; margin-left: 0; }

/* Der Bildwechsler: Fenster mit der Bildreihe, darunter Knöpfe und Erklärungen (Bedienung wie beim Handy oben) */
.schau { --rahmen: 880px; position: relative; display: grid; justify-items: center; gap: 14px; }
.fenster-rahmen { position: relative; width: 100%; max-width: var(--rahmen); }
.fenster-rahmen::before { left: 6%; margin-left: 0; transform: rotate(-8deg); }
.fenster-rahmen::after { left: auto; right: 6%; margin-left: 0; transform: rotate(7deg); background: var(--klebeband-rosa); }
.fenster {
  border: 6px solid var(--flaeche); border-radius: 10px; background: var(--flaeche); overflow: hidden;
  box-shadow: var(--schatten-fenster);
}
.fenster__leiste { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: var(--kopf-neutral); border-bottom: 1px solid var(--linie); }
.fenster__leiste span { width: 10px; height: 10px; border-radius: 50%; background: var(--kontrast); }
.fenster__leiste span + span { background: var(--etikett); }
.fenster__leiste span + span + span { background: var(--hauptfarbe); }
.fenster .slider__bahn { border-radius: 0; background: var(--bild-grund); }
.fenster .slider__bild { position: relative; }
.schau__link { display: block; }
.schau__link:focus-visible { outline-offset: -4px; }
.fenster img { width: 100%; background: var(--bild-grund); }

/* Nummerierte Marke im Bild: zeigt die Stelle, zu der die Erklärung mit derselben Nummer gehört */
.marke, .notiz__nr {
  display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--marke-rand); border-radius: 50%;
  background: var(--marke); color: var(--marke-schrift); font-family: var(--font); font-size: .8125rem; font-weight: 800; line-height: 1;
  box-shadow: var(--schatten-marke);
}
/* Die Marke steht NEBEN der Stelle, die sie erklärt, und zeigt mit einer kleinen Nase darauf. Am Smartphone ist
   das Bild nur gut 300 px breit: Eine Marke auf der Stelle verdeckte genau das, was sie erklärt (Laientest vom
   2026-11-15). --x und --y nennen die Stelle in Prozent des Bildes; die Werte stehen im style-Attribut und kommen
   aus den Koordinaten in public/index.php ($computerBilder), ebenso --hoehe der Zettel weiter unten. Die Klasse
   sagt, auf welcher Seite der Stelle die Marke steht; --nase ist der Abstand, den die Nase überbrückt. */
.marke { --nase: 6px; position: absolute; z-index: 1; left: var(--x); top: var(--y); pointer-events: none; }
.marke::after {
  content: ""; position: absolute; z-index: -1; width: 10px; height: 10px;
  border: solid var(--marke-rand); border-width: 2px 2px 0 0; background: var(--marke);
}
.marke--links { transform: translate(calc(-100% - var(--nase)), -50%); }
.marke--links::after { right: -6px; top: 50%; margin-top: -5px; transform: rotate(45deg); }
.marke--rechts { transform: translate(var(--nase), -50%); }
.marke--rechts::after { left: -6px; top: 50%; margin-top: -5px; transform: rotate(-135deg); }
.marke--unten { transform: translate(-50%, var(--nase)); }
.marke--unten::after { top: -6px; left: 50%; margin-left: -5px; transform: rotate(-45deg); }
.marke--oben { transform: translate(-50%, calc(-100% - var(--nase))); }
.marke--oben::after { bottom: -6px; left: 50%; margin-left: -5px; transform: rotate(135deg); }
/* Am Smartphone kleiner, damit die Marke in den freien Rand neben dem Inhalt der Anwendung passt */
@media (max-width: 479px) {
  .marke { width: 20px; height: 20px; font-size: .75rem; }
}

/* Knöpfe auf einem Streifen Papier, damit sie sich vom Sand und von der Mittellinie abheben */
.schau__steuerung {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px;
  padding: 8px 12px; border-radius: 16px; background: var(--flaeche); box-shadow: var(--schatten);
}

/* Erklärungen zum Bild: ein Zettel mit Bildunterschrift und nummerierter Liste.
   Ohne JavaScript stehen die Zettel aller Bilder untereinander; mit JavaScript liegen sie übereinander
   (so springt beim Wechsel nichts), sichtbar ist der Zettel zum aktuellen Bild. */
.erklaerungen { display: grid; gap: 12px; width: 100%; max-width: var(--rahmen); }
.erklaerung { padding: 14px 16px 16px; background: var(--flaeche); border-radius: 3px; box-shadow: var(--schatten-zettel); }
.slider--js .erklaerung { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.slider--js .erklaerung.ist-aktiv { visibility: visible; opacity: 1; }
.erklaerung__titel { margin: 0 0 10px; font-weight: 700; }
.erklaerung__liste { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.notiz { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.notiz__nr { margin-top: -1px; }
.zeiger { display: none; }

.schau__hinweis { margin: 0; padding: 6px 14px; border-radius: 4px; background: var(--flaeche); color: var(--text-neben); font-size: .95rem; text-align: center; box-shadow: var(--schatten); }
/* Der Hinweis sagt, was ein Tipp auf das Bild wirklich tut: mit site.js die Großansicht, sonst ein neuer Tab */
.schau__hinweis-gross, .kann-gross .schau__hinweis-tab { display: none; }
.kann-gross .schau__hinweis-gross { display: inline; }

/* Großansicht eines Bildes (<dialog>, geöffnet von site.js): füllt das ganze Fenster. Oben eine Leiste mit Titel
   und „Schließen“, darunter eine Fläche, in der sich das Bild in beide Richtungen verschieben lässt. Das Bild ist
   mindestens 1000 px breit, damit die Schrift der Anwendung auch am Smartphone lesbar ist, und höchstens so groß
   wie die Anwendung im Bild selbst (1200 px). */
.gross {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: transparent; color: var(--text);
}
.gross[open] { display: flex; flex-direction: column; }
.gross::backdrop { background: var(--schleier); }
.gross__kopf {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px var(--rand-seite); background: var(--flaeche); box-shadow: var(--schatten-menue);
}
.gross__titel { margin: 0; font-weight: 700; line-height: 1.3; }
.gross__hinweis { margin: 2px 0 0; color: var(--text-neben); font-size: .9rem; line-height: 1.3; }
.gross__zu { flex: 0 0 auto; }
.gross__flaeche { flex: 1 1 auto; min-height: 0; padding: 14px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.gross__flaeche:focus-visible { outline: 4px solid var(--fokus); outline-offset: -4px; }
.gross__flaeche img {
  width: clamp(1000px, 100%, 1200px); max-width: none; margin: 0 auto; border-radius: 6px;
  background: var(--bild-grund); box-shadow: var(--schatten-fenster);
}
/* Solange die Großansicht offen ist, scrollt die Seite dahinter nicht mit; der Platz der Bildlaufleiste bleibt,
   damit dahinter nichts springt. */
.gross-offen { overflow: hidden; scrollbar-gutter: stable; }
/* Die Figur klebt unten rechts auf dem Fenster */
.sticker--tennis { --dreh: 6deg; z-index: 4; right: -6px; bottom: 0; width: 64px; }

/* Aufschlaglinie: läuft quer über den Platz, der Zettel mit dem Link klebt darauf */
.bilder__handy { position: relative; display: flex; justify-content: center; margin-top: 34px; }
.bilder__handy::before {
  content: ""; position: absolute; z-index: -1; left: -100vw; right: -100vw; top: 50%;
  height: 5px; margin-top: -2.5px; background: var(--sand-linie);
}
.bilder__handy p {
  position: relative; margin: 0; padding: 14px 20px; border-radius: 3px;
  background: var(--zettel-gelb); box-shadow: var(--schatten-zettel); font-weight: 600; text-align: center; transform: rotate(-.8deg);
}
/* Grundlinie mit Mittelzeichen; darauf springt und rollt der Tennisball */
.ballbahn { position: relative; height: 74px; margin-top: 30px; }
.ballbahn::before {
  content: ""; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 5px; background: var(--sand-linie);
}
.ballbahn::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 20px; margin-left: -2.5px; background: var(--sand-linie);
}
.ball { position: absolute; z-index: 1; left: 0; bottom: 5px; width: 38px; height: 38px; filter: var(--schatten-sticker); }
.ball svg { display: block; width: 100%; height: 100%; }

@media (min-width: 640px) {
  .sandplatz .abschnitt__kopf { padding: 30px 30px 26px; }
  .marke, .notiz__nr { width: 30px; height: 30px; font-size: .9375rem; }
  .notiz { grid-template-columns: 30px minmax(0, 1fr); font-size: 1.125rem; }
  .erklaerung { padding: 18px 22px 20px; }
  .sticker--tennis { width: 112px; right: -10px; bottom: 2px; }
}
/* Ab 1200 px (mit JavaScript): Aus der Liste werden Zettel links und rechts neben dem Bild, von jedem Zettel
   zeigt ein blauer Pfeil auf die Stelle. Die Zettel liegen in einer Ebene, die genau das Bild überdeckt:
   Höhen der Zettel in Prozent der Bildhöhe (--hoehe), die Pfeile sind in Bildpunkten des Bildes gezeichnet
   (viewBox 2400 × 1600) und ragen links und rechts über das Bild hinaus. */
@media (min-width: 1200px) {
  .schau.slider--js { --rahmen: 760px; --zettel: 176px; }
  .schau.slider--js .fenster-rahmen { margin-bottom: 52px; }
  .schau.slider--js .marke { display: none; }
  .schau.slider--js .erklaerungen {
    position: absolute; z-index: 4; left: 50%; top: 32px; display: block;
    width: calc(var(--rahmen) - 12px); max-width: none; margin-left: calc(var(--rahmen) / -2 + 6px);
    aspect-ratio: 3 / 2; pointer-events: none;
  }
  .schau.slider--js .erklaerung { padding: 0; background: none; box-shadow: none; }
  /* Bildunterschrift auf einem Streifen Papier unter dem Fenster */
  .schau.slider--js .erklaerung__titel {
    position: absolute; left: 50%; top: calc(100% + 24px); margin: 0; padding: 6px 14px; border-radius: 4px;
    background: var(--flaeche); color: var(--text); box-shadow: var(--schatten); font-weight: 600; white-space: nowrap; transform: translateX(-50%);
  }
  .schau.slider--js .erklaerung__liste { display: block; }
  .schau.slider--js .notiz {
    position: absolute; top: var(--hoehe); display: block; width: var(--zettel); padding: 11px 13px 12px; border-radius: 2px;
    background: var(--flaeche); color: var(--text); box-shadow: var(--schatten-zettel);
    font-family: var(--font-hand); font-size: 1.1875rem; font-weight: 700; line-height: 1.25;
    transform: translateY(-50%) rotate(calc(var(--schraeg, 0deg) * var(--seite, 1)));
  }
  .schau.slider--js .notiz--links { right: calc(100% + 24px); }
  .schau.slider--js .notiz--rechts { --seite: -1; left: calc(100% + 24px); }
  /* Die Zettel kleben leicht schief, links und rechts gegenläufig */
  .schau.slider--js .notiz:nth-child(3n+1) { --schraeg: -1.6deg; }
  .schau.slider--js .notiz:nth-child(3n+2) { --schraeg: 1.4deg; }
  .schau.slider--js .notiz:nth-child(3n) { --schraeg: -1deg; }
  .schau.slider--js .notiz__nr { display: none; }
  .schau.slider--js .zeiger {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; overflow: visible;
    fill: none; stroke: var(--zeiger); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round;
    filter: var(--umriss-zeiger);
  }
  .sticker--tennis { width: 150px; right: -88px; bottom: 26px; }
}
@media (min-width: 1440px) {
  .schau.slider--js { --rahmen: 880px; --zettel: 218px; }
  .schau.slider--js .zeiger { stroke-width: 12; }
  .schau.slider--js .notiz { font-size: 1.25rem; }
}

/* ---------- Installieren: Karteikarten und Torschuss ---------- */

#installieren { --strich: var(--strich-2); overflow-x: hidden; overflow-x: clip; }
.wege { margin: 0 0 26px; padding: 0; list-style: none; gap: 30px 22px; }
.karteikarte {
  position: relative; padding-top: 30px; border: 0; border-radius: 3px;
  background: linear-gradient(var(--heftlinie), var(--heftlinie)) 0 92px / 100% 2px no-repeat, var(--flaeche);
  box-shadow: var(--schatten-zettel);
}
.karteikarte p { margin-top: 26px; }
.karteikarte:nth-child(1) { transform: rotate(-.8deg); }
.karteikarte:nth-child(2) { transform: rotate(.8deg); }
.karteikarte:nth-child(2)::before { background: var(--klebeband-blau); transform: rotate(2deg); }
.karteikarte:nth-child(3) { transform: rotate(-.6deg); }
.karteikarte:nth-child(3)::before { background: var(--klebeband-rosa); }
/* Der Kreis hinter dem Symbol nimmt die Farbe des Klebestreifens auf */
.karteikarte:nth-child(1) .karte__icon { background: var(--zettel-gelb); color: var(--gelb-tinte); }
.karteikarte:nth-child(2) .karte__icon { background: var(--zettel-blau); }
.karteikarte:nth-child(3) .karte__icon { background: var(--zettel-rosa); color: var(--kontrast-tinte); }

/* Knopf und daneben die Bahn, auf der der Fußball ins Tor rollt */
.wege__fuss { display: grid; gap: 26px; align-items: end; }
.torbahn { --m: 1.05; position: relative; height: calc(78px * var(--m)); margin-bottom: calc(10px * var(--m)); border-bottom: 3px solid var(--tinte); border-radius: 0 0 2px 2px; pointer-events: none; }
.tor__ebene { position: absolute; right: 0; bottom: calc(-9px * var(--m)); width: calc(120px * var(--m)); height: calc(84px * var(--m)); max-width: none; overflow: visible; }
.tor__hinten { z-index: 1; }
.torball { position: absolute; z-index: 2; right: calc(31px * var(--m)); bottom: 0; width: calc(18px * var(--m)); height: calc(18px * var(--m)); }
.torball svg { display: block; width: 100%; height: 100%; }
.tor__vorn { z-index: 3; }
.tor__boden { fill: var(--tor-boden); }
.tor__netz { fill: none; stroke: var(--netz); stroke-width: 1; transform-origin: 22px 80px; }
.tor__pfosten { fill: none; stroke: var(--tinte); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.tor__pfosten-licht { fill: none; stroke: var(--tor-pfosten); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tor__pfosten--hinten { stroke-width: 4.4; }
.tor__pfosten-licht--hinten { stroke-width: 1.8; }
@media (min-width: 640px) {
  .wege__fuss { grid-template-columns: auto minmax(0, 1fr); gap: 44px; }
  .torbahn { --m: 1.4; }
}

/* ---------- Häufige Fragen: Collegeblock und Korbwurf ---------- */

#fragen { --strich: var(--strich-2); overflow-x: hidden; overflow-x: clip; }
/* Der Korb hängt rechts neben der Überschrift; die Einleitung darunter nutzt die volle Breite */
.abschnitt__kopf--korb { position: relative; }
.abschnitt__kopf--korb .titelzeile { max-width: calc(100% - 100px); gap: 8px; }
/* z-index: Der Ball fliegt vor dem Trikot neben der Überschrift vorbei, nicht dahinter */
.korb { --m: .8; position: absolute; z-index: 5; right: 2px; top: -48px; width: calc(120px * var(--m)); height: calc(150px * var(--m)); pointer-events: none; }
.korb__ebene { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.korb__hinten { z-index: 1; filter: var(--schatten-sticker); }
.korb__ball { position: absolute; z-index: 2; left: calc(57px * var(--m)); top: calc(95px * var(--m)); width: calc(30px * var(--m)); height: calc(30px * var(--m)); }
.korb__ball svg { display: block; width: 100%; height: 100%; }
.korb__vorn { z-index: 3; }
.korb__brett { fill: var(--korb-brett); stroke: var(--tinte); stroke-width: 3; }
.korb__ziel { fill: none; stroke: var(--korb-ziel); stroke-width: 3; }
.korb__ring { fill: none; stroke: var(--korb-ring); stroke-width: 4.5; stroke-linecap: round; }
.korb__netz { fill: none; stroke: var(--netz); stroke-width: 1.6; stroke-linecap: round; transform-origin: 72px 70px; }
.korb__schwung { transform-origin: 72px 70px; }
@media (min-width: 640px) {
  .korb { --m: 1.15; top: -78px; right: 10px; }
  .abschnitt__kopf--korb .titelzeile { max-width: calc(100% - 170px); gap: 16px; }
}

/* Collegeblock: liniertes Blatt mit Randlinie, oben gelocht und von einer Drahtspirale gehalten */
.block {
  position: relative; margin-top: 30px; padding: 40px 14px 12px 34px; border: 1px solid var(--linie); border-radius: 4px;
  background: linear-gradient(90deg, transparent 0 22px, var(--heftlinie) 22px 24px, transparent 24px), var(--flaeche);
  box-shadow: var(--schatten-zettel);
}
/* Spirale: je Windung ein gestanztes Loch im Papier und ein Drahtbogen, der vorn aus dem Loch kommt, über die
   Oberkante läuft und dahinter verschwindet. Die Windungen verteilen sich gleichmäßig über die Breite (space),
   am Rand wird nie eine angeschnitten. Die Oberkante des Blatts liegt 14 px unter der Oberkante des Bildes. */
.block::before {
  content: ""; position: absolute; top: -15px; left: 14px; right: 14px; height: 44px; pointer-events: none;
  background: var(--spirale) 0 0 / 24px 44px space no-repeat;
}
.fragen { display: grid; }
.frage { border-bottom: 2px dashed var(--linie); }
.frage:last-child { border-bottom: 0; }
.frage > summary { display: block; position: relative; padding: 16px 48px 16px 4px; border-radius: var(--radius-s); cursor: pointer; list-style: none; }
.frage > summary::-webkit-details-marker { display: none; }
.frage > summary:hover { background: var(--hover); }
.frage > summary h3 { margin: 0; font-size: 1.0625rem; }
/* Pfeil rechts in einem hellblauen Punkt: zeigt nach unten, bei geöffneter Frage nach oben */
.frage > summary::before { content: ""; position: absolute; right: 8px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--frage-punkt); }
.frage > summary:hover::before { background: var(--flaeche); }
.frage > summary::after {
  content: ""; position: absolute; right: 19px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2.5px solid var(--frage-pfeil); border-bottom: 2.5px solid var(--frage-pfeil); transform: rotate(45deg);
}
.frage[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.frage__antwort { padding: 2px 4px 18px; }
.frage__antwort > :last-child { margin-bottom: 0; }
/* Ein Link, der allein in einer Zeile steht, bekommt 44 px Tap-Höhe. Die negativen Ränder gleichen das aus, damit
   die Zeile bleibt, wo sie war; sie reichen nur in den leeren Abstand zum Absatz darüber. */
.frage__link, .frage__antwort > .frage__link:last-child { margin: -9px 0; }
.frage__link a { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (min-width: 800px) {
  .block { padding: 46px 32px 16px 72px; background: linear-gradient(90deg, transparent 0 46px, var(--heftlinie) 46px 48px, transparent 48px), var(--flaeche); }
  .block::before { left: 26px; right: 26px; background-size: 26px 44px; }
}

/* ---------- Abschluss an der Pinnwand: Bogenschuss, Aushang, Mannschaft ---------- */

.abschluss { isolation: isolate; overflow-x: hidden; overflow-x: clip; text-align: center; border-top: 10px solid var(--brett-rahmen); border-image: var(--brett-leiste) 10; }

/* Bogenschuss. --m ist der Maßstab der Zeichnung (1 = 150 px breiter Schütze); site.js liest ihn aus der Größe. */
.zielbahn { --m: .62; position: relative; width: min(100%, 700px); height: calc(190px * var(--m)); margin: 0 auto 34px; pointer-events: none; }
.schuetze, .scheibe { position: absolute; top: 0; height: 100%; max-width: none; overflow: visible; }
.schuetze { z-index: 1; left: 0; width: calc(150px * var(--m)); filter: var(--umriss-sticker) var(--schatten-sticker); }
.scheibe { right: 0; width: calc(90px * var(--m)); }
.scheibe--hinten { z-index: 1; filter: var(--umriss-sticker) var(--schatten-sticker); }
.scheibe--vorn { z-index: 3; }
/* Der Pfeil liegt in seiner Endlage: Die Spitze steckt 6 Einheiten tief in der Mitte der Scheibe (38|56),
   der Schaft kommt mit 9° Gefälle von links. Drehpunkt für site.js ist die Spitze. */
.pfeilflug {
  position: absolute; z-index: 2; right: calc(43.07px * var(--m)); top: calc(41.94px * var(--m));
  width: calc(68px * var(--m)); height: calc(20px * var(--m)); transform-origin: 95.59% 75%;
}
.pfeilflug__pfeil { display: block; width: 100%; height: 100%; max-width: none; overflow: visible; transform-origin: 95.59% 75%; }
.zielbahn__konfetti { position: absolute; z-index: 4; right: calc(-48px * var(--m)); top: calc(-44px * var(--m)); width: calc(200px * var(--m)); height: calc(200px * var(--m)); max-width: none; overflow: visible; }
.zielbahn__stoss { transform-origin: 100px 100px; }
.zielbahn__notiz {
  position: absolute; z-index: 1; left: 50%; bottom: 0; padding: 3px 10px; border-radius: 3px;
  background: var(--zettel-gelb); color: var(--text); box-shadow: var(--schatten-zettel);
  font-family: var(--font-hand); font-size: .9rem; font-weight: 700; white-space: nowrap; transform: translateX(-50%) rotate(-3deg);
}

.fig-schatten { fill: var(--figur-schatten); }
.fig-papier { fill: var(--sticker-rand); }
.fig-haut { fill: var(--figur-haut); }
.fig-haar { fill: var(--figur-haar); }
.fig-hemd { fill: var(--figur-hemd); }
.fig-hose { fill: var(--figur-hose); }
.fig-schuh { fill: var(--figur-schuh); }
.fig-aermel { fill: none; stroke: var(--figur-hemd); stroke-width: 12; stroke-linecap: round; }
.fig-arm { fill: none; stroke: var(--figur-haut); stroke-width: 8; stroke-linecap: round; }
.bogen { fill: none; stroke: var(--bogen); stroke-width: 4.5; stroke-linecap: round; }
.sehne { fill: none; stroke: var(--tinte); stroke-width: 1.4; stroke-linejoin: round; }
/* Ruhelage: Der Pfeil ist verschossen, die Sehne gerade. Gespannt ist der Bogen nur, solange site.js .ist-gespannt setzt. */
.sehne--gespannt { opacity: 0; }
.ist-gespannt .sehne--gespannt { opacity: 1; }
.ist-gespannt .sehne--locker { opacity: 0; }
.flugpfeil__schaft { fill: none; stroke: var(--tinte); stroke-width: 2.6; stroke-linecap: round; }
.flugpfeil__spitze { fill: var(--tinte); }
.flugpfeil__feder { fill: var(--flugpfeil-feder); }
.scheibe__bein { fill: none; stroke: var(--tinte); stroke-width: 4.5; stroke-linecap: round; }
.scheibe__bein--hinten { stroke-width: 3.5; }
.scheibe__rand { fill: var(--scheibe-rand); stroke: var(--tinte); stroke-width: 2.5; }
.scheibe__ring--aussen { fill: var(--scheibe-aussen); stroke: var(--tinte); stroke-width: 2.5; }
.scheibe__ring--1 { fill: var(--scheibe-1); }
.scheibe__ring--2 { fill: var(--scheibe-2); }
.scheibe__ring--3 { fill: var(--scheibe-3); }
.scheibe__ring--mitte { fill: var(--scheibe-mitte); }

/* Aushang mit Überschrift und Knöpfen; dahinter ein farbiges Blatt */
.abschluss__zettel {
  position: relative; max-width: 780px; margin: 0 auto; padding: 46px 20px 30px;
  background: var(--flaeche); border-radius: 3px; box-shadow: var(--schatten-zettel);
}
.abschluss__zettel::before {
  content: ""; position: absolute; inset: 8px 6px -8px -5px; z-index: -1;
  background: var(--blatt-hinten-2); border-radius: 3px; box-shadow: var(--schatten-zettel); transform: rotate(1.6deg);
}
.abschluss__zettel .pin { top: 10px; }
.abschluss__zettel h2::after { margin-left: auto; margin-right: auto; }
.abschluss__zettel > p { font-size: 1.1rem; }
.abschluss .knoepfe { justify-content: center; margin-bottom: 0; }
.pfiff { position: absolute; z-index: 2; top: -12px; right: -8px; width: 74px; height: 50px; overflow: visible; transform: rotate(16deg); }
.mannschaft { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 10px 0; margin-top: 44px; }
.sticker--team { position: relative; height: 70px; margin: 0 3px; }
.sticker--team img { width: auto; height: 100%; }
.mannschaft .sticker:nth-child(odd) { --dreh: -5deg; }
.mannschaft .sticker:nth-child(even) { --dreh: 5deg; }
@media (min-width: 640px) {
  .zielbahn { --m: .9; margin-bottom: 40px; }
  .zielbahn__notiz { font-size: 1.05rem; bottom: 6px; }
  .abschluss__zettel { padding: 52px 40px 38px; }
  .pfiff { top: -16px; right: -30px; width: 100px; height: 67px; }
  .sticker--team { height: 96px; margin: 0 -1px; }
}
@media (min-width: 1024px) {
  .zielbahn { --m: 1; }
  .sticker--team { height: 120px; }
}

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

.fuss { padding: 32px 0 max(32px, env(safe-area-inset-bottom)); background: var(--papier); color: var(--text-neben); font-size: .95rem; text-align: center; }
.fuss::before { content: ""; display: block; height: 4px; margin-top: -32px; margin-bottom: 32px; background: var(--markenband); }
.fuss p { margin-bottom: .25em; }
.fuss__logo { width: 200px; margin: 0 auto 12px; }
.fuss__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 0 0 12px; padding: 0; list-style: none; }
.fuss__links a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); }

/* ---------- Bewegung ----------
 * Nur ohne „Bewegung reduzieren“. Die Klasse .bewegt setzt site.js; ohne JavaScript steht alles still und ist
 * vollständig sichtbar: Der Ball steckt im Netz, der Fußball liegt im Tor, der Pfeil steckt in der Scheibe.
 * site.js ändert nur transform (Sticker, Läuferinnen, Bälle, Netze, Pfeil); Klassen lösen einmalige Bewegungen
 * aus (Hüpfen, Zeichnen, Netz schwingt, Pfeil wippt, Konfetti). Die einmaligen Bewegungen laufen bewusst ruhig.
 */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .knopf, .kopf__nav a, .frage > summary, .slider__pfeil, .slider__pause { transition: background-color .15s ease, border-color .15s ease, transform .1s ease, box-shadow .1s ease; }
  .knopf--haupt:hover, .knopf--rand:hover { transform: translateY(-1px); }
  .knopf--haupt:active, .knopf--rand:active { transform: translateY(1px); }
  .knopf--karte.knopf--haupt:hover { transform: rotate(-1.2deg); }
  .frage > summary::after { transition: transform .15s ease; }
  .slider__punkt::before { transition: width .25s ease, background-color .25s ease; }
  .sammelkarte { transition: transform .2s ease; }
  /* Erklärungen blenden beim Bildwechsel über */
  .slider--js .erklaerung { transition: opacity .3s ease, visibility 0s linear .3s; }
  .slider--js .erklaerung.ist-aktiv { transition: opacity .3s ease .12s; }

  /* Pfeile und Kringel zeichnen sich, sobald sie gut zur Hälfte im Bild sind (.wartet setzt site.js) */
  .bewegt [data-zeichnen] path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.6, 0, .3, 1); }
  .bewegt [data-zeichnen] path + path { transition-duration: .5s; transition-delay: 1.35s; }
  .bewegt [data-zeichnen].wartet path { stroke-dashoffset: 1; transition: none; }
  /* Pfeile der Erklärungen am Computer-Bild: zeichnen sich, wenn der Bildwechsler ins Bild kommt und bei jedem neuen Bild */
  .bewegt .schau.slider--js .zeiger path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .bewegt .schau.slider--im-bild .erklaerung.ist-aktiv .zeiger path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .3, 1) .4s; }
  .bewegt .schau.slider--im-bild .erklaerung.ist-aktiv .zeiger path + path { transition-duration: .35s; transition-delay: 1.2s; }

  /* Sticker hüpfen ins Bild */
  .bewegt .sticker img, .bewegt .sticker svg, .bewegt .laufbahn__figur, .bewegt [data-ball], .bewegt [data-pfeil] { will-change: transform; }
  .bewegt .sticker--wartet { opacity: 0; transform: rotate(var(--dreh, 0deg)) translateY(40px) scale(.8); }
  .bewegt .sticker--hops { animation: hops 1.15s cubic-bezier(.3, 1.4, .5, 1) var(--verzoegerung, 0s) both; }
  .mannschaft .sticker:nth-child(2) { --verzoegerung: .12s; }
  .mannschaft .sticker:nth-child(3) { --verzoegerung: .24s; }
  .mannschaft .sticker:nth-child(4) { --verzoegerung: .36s; }
  .mannschaft .sticker:nth-child(5) { --verzoegerung: .48s; }
  .mannschaft .sticker:nth-child(6) { --verzoegerung: .6s; }

  /* Korb: Das Netz schwingt nach, sobald der Ball durch den Ring gefallen ist */
  .bewegt .korb.ist-im-netz .korb__schwung { animation: netz-schwingt 1.2s ease-out; }
  /* Scheibe: Der Pfeil wippt nach dem Einschlag, das Konfetti platzt auf */
  .bewegt .zielbahn.ist-am-ziel .pfeilflug__pfeil { animation: pfeil-wippt .9s ease-out; }
  .bewegt .zielbahn__stoss { transition: transform 1s cubic-bezier(.2, 1.4, .4, 1), opacity .3s ease; }
  .bewegt .zielbahn:not(.ist-am-ziel) .zielbahn__stoss { opacity: 0; transform: scale(.12); transition-duration: .15s; }
  .bewegt .sehne { transition: opacity .08s linear; }

  @media (hover: hover) and (pointer: fine) {
    .sammelkarte:hover { transform: rotate(0deg) translateY(-4px); }
  }
}

@keyframes hops {
  from { opacity: 0; transform: rotate(calc(var(--dreh, 0deg) - 14deg)) translateY(40px) scale(.8); }
  40% { opacity: 1; }
  to { opacity: 1; transform: rotate(var(--dreh, 0deg)); }
}
@keyframes netz-schwingt {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(7deg); }
  45% { transform: rotate(-5deg); }
  70% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}
@keyframes pfeil-wippt {
  0% { transform: rotate(0deg); }
  18% { transform: rotate(-5deg); }
  42% { transform: rotate(3.5deg); }
  66% { transform: rotate(-2deg); }
  100% { transform: rotate(0deg); }
}

@media print {
  .kopf, .sprung, .spruenge, .knoepfe, .abschluss, .sticker, .konfetti-grund, .slider__steuerung, .slider__pfeil, .korb, .torbahn, .ballbahn, .laufbahn, .marke { display: none !important; }
  .abschnitt { padding: 24px 0; }
  .karte, .fenster, .geraet, .zettel, .haupt, .erklaerung { box-shadow: none; transform: none; }
}
