/* solitärgroß.eu - Aushangfahrplan: gelber Aushang, schwarze Schrift, weißes Lesepapier. */
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/atkinson-next-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/atkinson-next-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/atkinson-next-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --gelb: #ffd400;        /* Aushang */
  --gelb-2: #ffe766;      /* helle Zeile im Aushang */
  --papier: #ffffff;      /* Lesepapier */
  --schwarz: #111111;
  --grau: #3a3a3a;        /* nur Nebentext, 11:1 auf Weiß */
  --linie: #111111;
  --rot: #c0001a;         /* nur Herz und Karo */
  --link: #0b3a8c;
  --mass: 54rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--schwarz);
  font-family: "Atkinson Next", "Atkinson Hyperlegible", Verdana, sans-serif;
  font-size: clamp(1.3125rem, 1.15rem + 0.6vw, 1.5rem);
  line-height: 1.6;
  font-variant-numeric: lining-nums tabular-nums;
  font-synthesis: none;
}
::selection { background: var(--schwarz); color: var(--gelb); }
img, svg { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--link); text-decoration-thickness: 0.1em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.18em; }
:focus-visible { outline: 4px solid var(--schwarz); outline-offset: 3px; box-shadow: 0 0 0 9px var(--gelb); }

.spring { position: absolute; left: -999em; top: 0; }
.spring:focus { left: 1rem; top: 1rem; z-index: 5; background: var(--schwarz); color: var(--gelb); padding: 0.6em 1em; font-weight: 800; }

/* Kopf: der Aushang beginnt ganz oben */
.kopf { background: var(--gelb); border-bottom: 6px solid var(--schwarz); }
.kopf-ind { max-width: 72rem; margin: 0 auto; padding: 1rem var(--rand) 0.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.marke { color: var(--schwarz); text-decoration: none; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.marke b { font-weight: 800; }
.marke span { font-weight: 500; }
.gleis { margin: 0; background: var(--schwarz); color: var(--gelb); padding: 0.15em 0.6em 0.2em; font-size: 0.95em; line-height: 1.3; white-space: nowrap; }
.gleis b { font-size: 1.45em; font-weight: 800; line-height: 1; vertical-align: -0.08em; }

.menu { max-width: 72rem; margin: 0 auto; padding: 0.4rem var(--rand) 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.menu a {
  display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0.35em 0.9em;
  color: var(--schwarz); background: var(--papier); border: 3px solid var(--schwarz);
  font-weight: 700; text-decoration: none; line-height: 1.2;
}
.menu a:hover { background: var(--gelb-2); }
.menu a[aria-current="page"] { background: var(--schwarz); color: var(--gelb); }

/* Titel auf dem Aushang */
.plakat { background: var(--gelb); border-bottom: 3px solid var(--schwarz); }
.plakat-ind { max-width: 72rem; margin: 0 auto; padding: clamp(1.6rem, 4vw, 3.4rem) var(--rand) clamp(1.8rem, 4vw, 3.2rem); }
.plakat h1 { margin: 0; max-width: 16em; font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.einleitung { margin: 0.8em 0 0; max-width: var(--mass); font-size: 1.12em; line-height: 1.5; }

/* Lesepapier */
main { display: block; }
.papier { max-width: 72rem; margin: 0 auto; padding: clamp(1.6rem, 4vw, 3rem) var(--rand) clamp(2.5rem, 5vw, 4rem); }
.papier > * { max-width: var(--mass); }
.papier > .weiter { max-width: 40rem; }
p, ul, ol { margin: 0 0 1em; }
.papier ul, .papier ol:not([class]) { padding-left: 1.3em; }
.papier li { margin-bottom: 0.45em; }
.papier li::marker { font-weight: 800; }
h2 { margin: 2em 0 0.55em; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; padding-top: 0.45em; border-top: 6px solid var(--schwarz); }
.papier > h2:first-child { margin-top: 0; }
h3 { margin: 1.5em 0 0.35em; font-size: 1.2em; font-weight: 800; line-height: 1.25; }
strong, b { font-weight: 800; }

.farbe { white-space: nowrap; font-weight: 700; }
.sym { display: inline-block; width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin-right: 0.15em; }
.sym-rot { fill: var(--rot); }
.sym-schwarz { fill: var(--schwarz); }

/* Fahrplan-Tafel */
.fahrplan { background: var(--gelb); border: 3px solid var(--schwarz); margin: 1.5em 0 1.8em; }
.fahrplan-titel { margin: 0; padding: 0.55em 0.8em; background: var(--schwarz); color: var(--gelb); font-weight: 800; font-size: 1.05em; line-height: 1.25; }
.fahrplan-kopf { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 1rem; padding: 0.45em 0.8em; border-bottom: 3px solid var(--schwarz); font-weight: 700; font-size: 0.8em; }
.fahrplan-liste { list-style: none; margin: 0; padding: 0; }
.fahrplan-liste li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 1rem; align-items: start; margin: 0; padding: 0.7em 0.8em 0.8em; border-top: 2px solid var(--schwarz); }
.fahrplan-liste li:first-child { border-top: 0; }
.fp-nr { font-size: 2.3em; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; }
.fp-text strong { display: block; font-size: 1.05em; line-height: 1.3; margin-bottom: 0.15em; }
.fp-text span { display: block; line-height: 1.5; }
.fahrplan a { color: var(--schwarz); }

/* Hinweis */
.hinweis { border: 3px solid var(--schwarz); padding: 0.75em 0.95em 0.85em; background: var(--papier); margin: 1.4em 0 1.6em; }
.hinweis-wort { display: inline-block; background: var(--schwarz); color: var(--gelb); padding: 0 0.4em; margin-right: 0.3em; font-weight: 800; }

/* Spielfeld-Schema */
.auslage { margin: 1.5em 0 2em; }
.auslage-svg { width: 100%; height: auto; background: var(--papier); border: 3px solid var(--schwarz); }
.auslage-svg .k-zu { fill: url(#schraffur); stroke: var(--schwarz); stroke-width: 3; }
.auslage-svg .k-offen { fill: #fff; stroke: var(--schwarz); stroke-width: 4; }
.auslage-svg .k-leer { fill: var(--gelb-2); stroke: var(--schwarz); stroke-width: 3; stroke-dasharray: 9 7; }
.auslage-svg .marke-nr circle { fill: var(--schwarz); }
.auslage-svg .marke-nr text { fill: var(--gelb); font: 800 26px "Atkinson Next", Verdana, sans-serif; }
.auslage-legende { list-style: none; margin: 0.8em 0 0; padding: 0; }
.auslage-legende li { display: grid; grid-template-columns: 2.2em 1fr; gap: 0.6em; align-items: baseline; margin: 0 0 0.45em; }
.auslage-legende b { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--schwarz); color: var(--gelb); font-size: 0.95em; line-height: 1; }

/* Sehprobe: dieselbe Zeile in vier Größen */
.sehprobe { border: 3px solid var(--schwarz); margin: 1.5em 0 2em; }
.sehprobe-zeile { display: grid; grid-template-columns: 1fr; padding: 0.6em 0.8em 0.7em; border-top: 2px solid var(--schwarz); }
.sehprobe-zeile:first-child { border-top: 0; }
.sehprobe-zeile .probe { font-weight: 800; line-height: 1.15; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.sehprobe-zeile .groesse { font-size: 0.8em; color: var(--grau); }
.sehprobe-zeile:nth-child(4) { background: var(--gelb); }
.sehprobe-zeile:nth-child(4) .groesse { color: var(--schwarz); }

/* Vergleich 1 oder 3 Karten */
.vergleich { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--schwarz); margin: 1.5em 0 2em; }
.vergleich > div { padding: 0.8em 0.9em 1em; }
.vergleich > div + div { border-left: 3px solid var(--schwarz); }
.vergleich h3 { margin: 0 0 0.4em; font-size: 1.15em; }
.vergleich .gross { display: block; font-size: 3em; font-weight: 800; line-height: 1; margin-bottom: 0.1em; }
.vergleich ul { margin: 0; padding-left: 1.1em; }
.vergleich > div:first-child { background: var(--gelb); }

/* Knöpfe */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.knopf { display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0.35em 1em; background: var(--schwarz); color: var(--gelb); border: 3px solid var(--schwarz); font-weight: 800; text-decoration: none; }
.knopf-hell { background: var(--papier); color: var(--schwarz); }
.knopf:hover { text-decoration: underline; text-decoration-thickness: 0.12em; }

/* Weiter */
.weiter { margin-top: 2.8em; }
.weiter a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0.1em 1rem; padding: 0.9em 1em 1em; background: var(--schwarz); color: var(--gelb); text-decoration: none; }
.weiter-wort { font-size: 0.85em; font-weight: 700; color: #fff; }
.weiter-titel { grid-row: 2; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; line-height: 1.15; }
.weiter-pfeil { grid-row: 1 / span 2; grid-column: 2; width: 2.4em; height: 2.4em; }
.weiter a:hover .weiter-titel { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.15em; }
.weiter a:focus-visible { outline-color: var(--schwarz); }

/* Fuß */
.fuss { background: var(--schwarz); color: #fff; border-top: 6px solid var(--gelb); }
.fuss-ind { max-width: 72rem; margin: 0 auto; padding: 2rem var(--rand) 2.6rem; }
.fuss-marke { margin: 0 0 0.3em; color: var(--gelb); font-size: 1.5em; font-weight: 500; }
.fuss-marke b { font-weight: 800; }
.fuss-text { max-width: var(--mass); }
.fuss-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1rem; }
.fuss-nav a { color: var(--gelb); display: inline-flex; align-items: center; min-height: 3rem; font-weight: 700; }
.fuss :focus-visible { outline-color: var(--gelb); box-shadow: none; }

@media (max-width: 40rem) {
  .menu { display: grid; grid-template-columns: 1fr 1fr; }
  .menu a { justify-content: center; text-align: center; padding: 0.3em 0.5em; }
  .fahrplan-kopf { display: none; }
  .fahrplan-liste li { grid-template-columns: 2.6rem 1fr; gap: 0 0.7rem; }
  .fp-nr { font-size: 1.9em; }
  .vergleich { grid-template-columns: 1fr; }
  .vergleich > div + div { border-left: 0; border-top: 3px solid var(--schwarz); }
}

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

@media print {
  .menu, .weiter, .spring, .fuss-nav { display: none; }
  .kopf, .plakat, .fahrplan { background: none; }
}

/* Sehprobe: feste Pixelgrößen, damit die Probe auf jedem Gerät gleich groß ist */
.probe.p1 { font-size: 14px; }
.probe.p2 { font-size: 20px; }
.probe.p3 { font-size: 30px; }
.probe.p4 { font-size: 44px; }
