/* Startseite Schulschach Düsseldorf (Entwurf G, entwuerfe/g-mischung im Projekt). Modus über html[data-theme] aus theme.js. */
/* Schulschach Düsseldorf · Entwurf E „E-Sport“ · handgeschrieben, ohne Baukasten */

@font-face { font-family: "Saira Condensed"; src: url("../fonts/saira-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("../fonts/saira-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Stadtfarben nach duesseldorf.de: Rot, Weiß, Anthrazit, Blau als Akzent */
  --rot: #cd1316;
  --rot-hell: #ff5558;      /* rote Schrift auf dunklem Grund */
  --blau: #009fdf;
  --blau-hell: #5cc8f5;
  --nacht: #0b0b0c;
  --flaeche: #151516;
  --flaeche-2: #1f1f20;
  --weiss: #ffffff;
  --grau: #c4c4c2;
  --linie: rgba(255, 255, 255, .16);
  --schau: "Saira Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --rand: clamp(16px, 4vw, 56px);
  --schnitt: 16px;
  --kante: polygon(0 0, calc(100% - var(--schnitt)) 0, 100% var(--schnitt), 100% 100%, var(--schnitt) 100%, 0 calc(100% - var(--schnitt)));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--nacht); color: var(--weiss); font: 400 1.0625rem/1.55 var(--text); overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
.lager { position: absolute; }
.rahmen { width: min(1240px, 100% - 2 * var(--rand)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--blau-hell); outline-offset: 3px; }
.sprung { position: absolute; left: 12px; top: -80px; z-index: 30; background: var(--weiss); color: var(--nacht); padding: 12px 18px; font-weight: 600; }
.sprung:focus { top: 12px; }

h1, h2, h3, .knopf, .marke-wort, .menue, .kennung, .chip, .anzeige, .stempel, .vermerk, .spiel-nr, .nr, .werte dd, .werte dt, .fuss-marke, .live, .raetsel-art, .mehr {
  font-family: var(--schau); text-transform: uppercase;
}

/* Knöpfe mit schräg geschnittenen Ecken */
.knopf {
  --schnitt: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 6px 22px;
  font-weight: 800; font-size: 1.1875rem; letter-spacing: .04em; line-height: 1.1; text-decoration: none; white-space: nowrap;
  clip-path: var(--kante); transition: background-color .15s, color .15s, transform .15s;
}
.knopf .pf, .mehr .pf { width: 1em; height: 1em; flex: none; transition: transform .2s; }
.knopf:hover .pf, .mehr:hover .pf { transform: translateX(4px); }
.knopf.rot { background: var(--rot); color: #fff; }
.knopf.rot:hover { background: #fff; color: var(--nacht); }
.knopf.linie { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.knopf.linie:hover { background: #fff; color: var(--nacht); }
.knopf.klein { min-height: 44px; padding-inline: 16px; font-size: 1.0625rem; }
.knopf.gross { min-height: 60px; padding-inline: 30px; font-size: 1.4375rem; }

/* 1 Statuszeile */
.status { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.status-innen { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-block: 8px; }
.status-text { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 1rem; line-height: 1.35; color: var(--grau); }
.status-text strong { color: #fff; font-weight: 600; }
.status-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.0625rem; letter-spacing: .08em; color: var(--rot-hell); white-space: nowrap; }
.live-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--rot-hell); box-shadow: 0 0 0 0 rgba(255, 85, 88, .7); animation: puls 1.8s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 9px rgba(255, 85, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 85, 88, 0); } }

/* 2 Kopf */
.kopf { position: relative; z-index: 5; border-bottom: 1px solid var(--linie); background: rgba(11, 11, 12, .92); }
.kopf-innen { display: flex; align-items: center; gap: 12px 28px; padding-block: 12px; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.marke-bild { width: 46px; height: 46px; flex: none; }
.marke-bild .schild { fill: var(--rot); }
.marke-bild use { fill: #fff; }
.marke-wort { font-weight: 800; font-size: 1.4375rem; letter-spacing: .05em; line-height: 1; }
.marke-wort b { color: var(--rot-hell); font-weight: 800; }
.menue ul { display: flex; gap: 4px 26px; flex-wrap: wrap; }
.menue a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 1.125rem; letter-spacing: .07em; text-decoration: none; border-bottom: 3px solid transparent; }
.menue a:hover { border-bottom-color: var(--rot); }
.ruhe { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1rem; color: var(--grau); cursor: pointer; }
.ruhe input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ruhe-bahn { width: 42px; height: 22px; background: var(--flaeche-2); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); position: relative; flex: none; }
.ruhe-bahn::after { content: ""; position: absolute; top: 5px; left: 5px; width: 12px; height: 12px; background: #fff; transition: left .15s; }
.ruhe input:checked + .ruhe-bahn { background: var(--rot); }
.ruhe input:checked + .ruhe-bahn::after { left: 25px; }
.ruhe input:focus-visible + .ruhe-bahn { outline: 3px solid var(--blau-hell); outline-offset: 3px; }

/* 3 Auftakt */
.auftakt { position: relative; overflow: hidden; border-bottom: 1px solid var(--linie);
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(205, 19, 22, .34), transparent 70%),
    radial-gradient(40% 50% at 96% 8%, rgba(0, 159, 223, .22), transparent 70%),
    linear-gradient(var(--nacht), #111112); }
.auftakt::before { /* feine Rasterlinien */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .025) 3px 4px);
}
.auftakt-innen { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: auto auto; column-gap: 32px; padding-block: clamp(36px, 6vw, 84px) clamp(40px, 6vw, 80px); }
.auftakt-text { grid-row: 1 / 3; align-self: center; position: relative; z-index: 2; }
.kennung { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 1.1875rem; letter-spacing: .16em; color: var(--grau); }
.kennung::before { content: ""; width: 44px; height: 4px; background: var(--rot); flex: none; }
.kennung-jahr { background: var(--rot); color: #fff; font-weight: 800; letter-spacing: .06em; padding: 1px 10px; --schnitt: 6px; clip-path: var(--kante); }
h1 { margin-top: 18px; font-weight: 800; font-style: italic; font-size: clamp(4rem, 10.4vw, 9.75rem); line-height: .9; letter-spacing: -.01em; }
h1 span { display: block; }
h1 .t2 { margin-top: .07em; color: var(--rot); -webkit-text-stroke: 1px var(--rot-hell); text-shadow: 0 0 38px rgba(205, 19, 22, .8); }
.vorspann { margin-top: 26px; max-width: 34rem; font-size: 1.25rem; line-height: 1.5; color: #ededeb; }
.ruf { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; scroll-margin-top: 20px; }
.ruf-fakten { flex-basis: 100%; margin: 4px 0 0; font-weight: 600; font-size: 1.0625rem; }
.ruf-hinweis { margin-top: 14px; font-size: 1rem; color: var(--grau); max-width: 32rem; }

/* Arena: leuchtendes Brett in Perspektive, davor der Springer */
.arena { grid-column: 2; grid-row: 1; position: relative; min-height: clamp(300px, 34vw, 470px); }
.boden {
  position: absolute; left: -30%; right: -30%; bottom: -8%; height: 70%; overflow: hidden;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 96%); mask-image: linear-gradient(to top, #000 15%, transparent 96%);
}
/* Das Muster liegt auf einer Fläche, die um die Hälfte höher ist als der Boden, und wandert um genau eine
   Wiederholung (ein Drittel dieser Fläche): Ende und Anfang der Bewegung sehen gleich aus, nichts springt. */
.boden::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 85, 88, .85) 0 2px, transparent 2px 12.5%),
    repeating-linear-gradient(0deg, rgba(92, 200, 245, .7) 0 2px, transparent 2px 16.6667%),
    repeating-conic-gradient(rgba(255, 255, 255, .09) 0 25%, transparent 0 50%) 0 0 / 25% 33.3333%;
  animation: fahrt 2.4s linear infinite; will-change: transform;
}
@keyframes fahrt { to { transform: translateY(33.3333%); } }
.lichtkegel { position: absolute; left: 50%; top: -12%; width: 78%; height: 105%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 46%, rgba(205, 19, 22, .5), transparent 72%); filter: blur(6px); }
.emblem { position: absolute; left: 50%; bottom: 3%; width: min(74%, 380px); transform: translateX(-50%); overflow: visible; }
.emblem-schein { fill: none; stroke: var(--rot); stroke-width: 5; stroke-linejoin: miter; filter: blur(7px); opacity: .95; }
.emblem-figur { fill: #0d0d0e; stroke: #fff; stroke-width: 1.6; stroke-linejoin: miter; filter: drop-shadow(0 0 5px rgba(255, 85, 88, .95)); animation: flimmern 5s infinite; }
@keyframes flimmern { 0%, 91%, 100% { opacity: 1; } 93% { opacity: .55; } 95% { opacity: 1; } 97% { opacity: .75; } }
.ecke { position: absolute; width: 34px; height: 34px; border: 3px solid var(--blau-hell); }
.e1 { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.e2 { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.e3 { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.e4 { right: 0; bottom: 0; border-left: 0; border-top: 0; }

.anzeige { grid-column: 2; grid-row: 2; justify-self: end; margin-top: 18px; display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 18px; position: relative; z-index: 2; }
.anzeige-kopf { grid-column: 1 / -1; font-weight: 600; letter-spacing: .2em; font-size: 1.0625rem; color: var(--blau-hell); }
.anzeige-zahl { font-weight: 800; font-style: italic; font-size: clamp(4.2rem, 7.6vw, 6.75rem); line-height: .82; font-variant-numeric: tabular-nums; }
.anzeige-zahl span { font-size: .36em; letter-spacing: .08em; margin-left: .2em; color: var(--rot-hell); }
.anzeige-fuss { font-family: var(--text); text-transform: none; font-size: 1rem; line-height: 1.35; color: var(--grau); max-width: 15rem; padding-bottom: 4px; }
.stempel { position: absolute; right: 0; top: 16px; z-index: 3; font-weight: 600; font-size: 1rem; letter-spacing: .14em; color: #fff; background: rgba(11, 11, 12, .82); border: 1px dashed var(--blau-hell); padding: 5px 12px; }

/* Abschnitte */
.block { padding-block: clamp(46px, 6.5vw, 88px); position: relative; }
.block.dunkel { background: var(--flaeche); border-block: 1px solid var(--linie); }
.titel { display: flex; align-items: center; gap: 16px; font-weight: 800; font-style: italic; font-size: clamp(2.4rem, 5vw, 4rem); line-height: .95; letter-spacing: .01em; }
.nr { font-style: normal; font-weight: 800; font-size: max(.4em, 1rem); letter-spacing: .08em; background: var(--rot); color: #fff; padding: 5px 10px 4px; --schnitt: 7px; clip-path: var(--kante); }
.titelzeile { display: flex; align-items: end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.mehr { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 1.1875rem; letter-spacing: .08em; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.vermerk { font-weight: 600; font-size: 1.0625rem; letter-spacing: .16em; border: 1px dashed var(--blau-hell); padding: 4px 12px; }


/* 6 Termine */
.spielplan { margin-top: 30px; border-top: 2px solid #fff; }
.spiel { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto 220px; align-items: center; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid var(--linie); position: relative; scroll-margin-top: 20px; }
.spiel.ist-offen::before { content: ""; position: absolute; left: calc(-1 * var(--rand)); top: 0; bottom: 0; width: 6px; background: var(--rot); box-shadow: 0 0 18px var(--rot); }
.spiel-nr { font-weight: 800; font-style: italic; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); }
.ist-offen .spiel-nr { color: var(--rot-hell); -webkit-text-stroke: 0; }
.spiel h3 { font-weight: 800; font-size: 1.75rem; line-height: 1.05; letter-spacing: .02em; }
.spiel-was p { margin-top: 4px; color: var(--grau); font-size: 1rem; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.0625rem; letter-spacing: .12em; padding: 5px 12px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); white-space: nowrap; justify-self: start; }
.chip.offen { background: rgba(205, 19, 22, .25); box-shadow: inset 0 0 0 1.5px var(--rot-hell); color: #fff; }
.chip.blau { box-shadow: inset 0 0 0 1.5px var(--blau-hell); color: var(--blau-hell); }
.spiel .knopf { width: 100%; }

/* 7 Rätsel */
.raetsel-innen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 30px clamp(30px, 6vw, 90px); align-items: center; }
.raetsel-art { margin-top: 14px; font-weight: 600; font-size: 1.1875rem; letter-spacing: .14em; color: var(--blau-hell); }
.raetsel-text > p { margin-top: 14px; max-width: 34rem; }
.raetsel-text > p:first-of-type { margin-top: 14px; }
.meldung { min-height: 1.6em; font-weight: 600; color: var(--grau); }
.meldung.gut { color: #fff; background: var(--rot); padding: 8px 14px; --schnitt: 8px; clip-path: var(--kante); }
.loesung { margin-top: 12px; max-width: 34rem; }
.loesung summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.loesung p { margin-top: 8px; border-left: 4px solid var(--rot); padding: 4px 0 4px 16px; color: #ededeb; }
.raetsel-text .knopf { margin-top: 8px; }
.brett-rahmen { position: relative; }
.brett { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); width: 100%; aspect-ratio: 1; border: 2px solid #fff; box-shadow: 0 0 0 6px var(--nacht), 0 0 0 8px var(--rot), 0 0 60px rgba(205, 19, 22, .55); }
.f { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; padding: 0; border: 0; font: inherit; color: inherit; }
.f.h { background: #3b3b3c; }
.f.d { background: #19191a; }
.ko { position: absolute; font: 600 .75rem/1 var(--text); color: var(--grau); pointer-events: none; }
.kr { left: 4px; top: 4px; }
.kl { right: 4px; bottom: 3px; }
.fig { position: absolute; left: 11%; top: 11%; width: 78%; height: 78%; overflow: visible; }
.fig.w { fill: #fff; }
.fig.s { fill: #0b0b0c; stroke: var(--rot-hell); stroke-width: 5; stroke-linejoin: miter; }
.f.zuletzt { background-image: linear-gradient(rgba(92, 200, 245, .2), rgba(92, 200, 245, .2)); }
.f.gewaehlt { box-shadow: inset 0 0 0 3px var(--blau-hell); }
.f.gewaehlt .fig { filter: drop-shadow(0 0 6px rgba(92, 200, 245, .9)); }
button.f:enabled { cursor: pointer; }
.punkt { position: relative; z-index: 2; width: 26%; height: 26%; background: var(--blau-hell); rotate: 45deg; opacity: .85; transition: scale .15s; pointer-events: none; }
.f.ziel:hover .punkt, .f.ziel:focus-visible .punkt { scale: 1.5; opacity: 1; }
button.f:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.f.mattfeld { background: var(--rot); }
.brett.geloest .punkt { display: none; }
.raetsel-quelle { margin-top: 14px; font-size: 1rem; color: var(--grau); }
.brett-rahmen figcaption { margin-top: 22px; font-size: 1rem; color: var(--grau); }

/* 8 Zahlen */
.werte { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #fff; }
.werte > div { padding: 22px 24px 4px; border-left: 1px solid var(--linie); }
.werte > div:first-child { padding-left: 0; border-left: 0; }
.werte dd { font-weight: 800; font-style: italic; font-size: clamp(4.6rem, 11vw, 9.5rem); line-height: .86; font-variant-numeric: tabular-nums; }
.werte > div:nth-child(2) dd { color: var(--rot-hell); text-shadow: 0 0 40px rgba(205, 19, 22, .7); }
.werte dt { margin-top: 10px; font-weight: 600; font-size: 1.1875rem; letter-spacing: .12em; color: var(--grau); }

/* 9 Partner */
.partner { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.partner li { border-top: 2px solid #fff; padding-top: 12px; display: grid; gap: 4px; }
.partner a { font-family: var(--schau); text-transform: uppercase; font-weight: 800; font-size: 1.75rem; letter-spacing: .03em; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--rot-hell); }
.partner a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.partner span { color: var(--grau); font-size: 1rem; }

/* 10 Fuß */
.fuss { background: var(--flaeche); border-top: 4px solid var(--rot); padding-block: 34px 30px; }
.fuss-marke { font-weight: 800; font-style: italic; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: .02em; }
.fuss-marke b { color: var(--rot-hell); font-weight: 800; }
.fuss-liste { margin-top: 16px; display: flex; gap: 2px 28px; flex-wrap: wrap; }
.fuss-liste a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 5px; }
.fuss-liste a:hover { text-decoration-color: var(--rot); text-decoration-thickness: 3px; }
.fuss-klein { margin-top: 14px; font-size: 1rem; color: var(--grau); max-width: 46rem; }

/* Bewegung aus: Schalter (auch ohne Skript über :has), gespeicherte Wahl, Systemeinstellung */
html[data-bewegung="aus"] *, html[data-bewegung="aus"] *::before, html[data-bewegung="aus"] *::after { animation: none !important; transition: none !important; }
html[data-bewegung="aus"] { scroll-behavior: auto; }
html:has(#ruhe:checked) *, html:has(#ruhe:checked) *::before, html:has(#ruhe:checked) *::after { animation: none !important; transition: none !important; }
html:has(#ruhe:checked) { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Schmaler */
@media (max-width: 1040px) {
  .spiel { grid-template-columns: 60px minmax(0, 1fr) 200px; }
  .spiel .chip { grid-column: 2; grid-row: 2; }
  .spiel .knopf { grid-column: 3; grid-row: 1 / 3; }
  .spiel-nr { font-size: 2.6rem; }
}
@media (max-width: 860px) {
  .auftakt-innen { grid-template-columns: minmax(0, 1fr); }
  .auftakt-text { grid-row: auto; }
  .arena { grid-column: 1; grid-row: auto; min-height: 300px; margin-top: 30px; }
  .anzeige { grid-column: 1; grid-row: auto; justify-self: start; }
  .stempel { position: static; justify-self: start; margin-top: 18px; }
  .partner { grid-template-columns: minmax(0, 1fr); }
  .raetsel-innen { grid-template-columns: minmax(0, 1fr); }
  .menue { order: 5; flex-basis: 100%; }
  .menue ul { gap: 0 20px; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 17.4vw; }
  /* Lange Beschriftungen („Grundschulmannschaft anmelden“) brechen um statt abgeschnitten zu werden. */
  .knopf.gross { width: 100%; padding-inline: 20px; white-space: normal; text-align: center; hyphens: auto; overflow-wrap: anywhere; }
  .status-knoepfe { width: 100%; }
  .status-knoepfe .knopf { flex: 1; }
  .spiel { grid-template-columns: 44px minmax(0, 1fr); }
  .spiel-nr { font-size: 2rem; align-self: start; }
  .spiel .chip, .spiel .knopf { grid-column: 2; grid-row: auto; }
  .spiel h3 { font-size: 1.5rem; }
  .werte { grid-template-columns: minmax(0, 1fr); }
  .werte > div { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--linie); padding-bottom: 14px; }
  .marke-wort { font-size: 1.25rem; }
  .ko { font-size: .625rem; }
}

/* ===== E2: Düsseldorfer Bezug ===== */
/* Skyline am Horizont des Auftakts */
.auftakt-innen { padding-bottom: clamp(10px, 2vw, 24px); }
.horizont { position: relative; height: clamp(170px, 21vw, 290px); margin-top: -10px;
  background: radial-gradient(60% 90% at 50% 100%, rgba(205, 19, 22, .5), transparent 70%), linear-gradient(to top, rgba(0, 159, 223, .16), transparent 30%); }
.sky { display: block; width: 100%; height: 100%; overflow: visible; }
.sky path, .sky circle { vector-effect: non-scaling-stroke; }
.sky .haus path { fill: #0d0d0e; stroke: #fff; stroke-width: 1.5; stroke-linejoin: miter; }
.sky .haus .fenster { fill: var(--rot-hell); stroke: none; opacity: .9; }
.sky .bruecke path { fill: none; stroke: #fff; stroke-width: 1.5; }
.sky .bruecke .seil { stroke: var(--grau); stroke-width: 1; }
.sky .turm path { fill: #0d0d0e; stroke: var(--rot-hell); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(255, 85, 88, .95)); }
.sky .licht { fill: var(--blau-hell); animation: lichtpegel 4.4s infinite; animation-delay: calc(var(--i) * -.4s); }
@keyframes lichtpegel { 0%, 45% { opacity: 1; } 55%, 100% { opacity: .18; } }
.sky .boden-linie { fill: none; stroke: var(--rot-hell); stroke-width: 2; filter: drop-shadow(0 0 8px var(--rot)); }
.sky .rhein { fill: none; stroke: var(--blau-hell); stroke-width: 2; opacity: .85; filter: drop-shadow(0 0 6px rgba(0, 159, 223, .9)); }

/* Stadtbezirke */
.bezirke { margin-top: 38px; }
.bezirke h3 { font-weight: 600; font-size: 1.1875rem; letter-spacing: .12em; color: var(--grau); }
.bz-liste { margin-top: 14px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.bz-liste li { --schnitt: 9px; clip-path: var(--kante); background: var(--flaeche-2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); padding: 10px 8px 9px; display: grid; gap: 2px; }
.bz-nr { font-family: var(--schau); font-weight: 800; font-style: italic; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
.bz-stand { font-size: 1rem; line-height: 1.2; color: var(--grau); }
.bz-liste .dabei { background: var(--rot); box-shadow: none; }
.bz-liste .dabei .bz-stand { color: #fff; }

/* Radschläger im Fuß */
.fuss .rahmen { position: relative; }
.radschlag { position: absolute; right: 0; top: 0; width: clamp(64px, 9vw, 104px); height: auto; fill: none; stroke: var(--rot-hell); stroke-width: 3; stroke-linecap: square; }
.radschlag circle:first-child { stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; stroke-dasharray: 4 6; }
.radschlag .kopf-rs { fill: var(--rot); stroke: #fff; stroke-width: 2; }

@media (max-width: 860px) { .bz-liste { grid-template-columns: repeat(5, minmax(0, 1fr)); } .horizont { height: 170px; } }
@media (max-width: 480px) { .bz-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fuss-marke { padding-right: 76px; } }
.kennung { letter-spacing: .1em; }
.radschlag { stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* Logo „Schulschach in Düsseldorf“ (von Andre geliefert, 2026-10-06) */
.logo-marke { display: block; flex: none; width: clamp(54px, 5.4vw, 70px); height: auto; }
.logo-fuss { display: block; width: clamp(104px, 12vw, 156px); height: auto; margin-bottom: 14px; }
.fuss .rahmen { position: relative; }
.logo-fuss { position: absolute; right: 0; top: 0; margin: 0; }
@media (max-width: 640px) { .logo-fuss { position: static; margin-bottom: 14px; } }

/* ===== G: Mischung aus A (Rheinkarte) und D (Stadtmodell) im E-Sport-Design ===== */
/* Auftakt: gerendertes Stadtmodell auf dem leuchtenden Boden (die Skyline aus E2 entfällt) */
.auftakt-innen { padding-bottom: clamp(40px, 6vw, 80px); }
.buehne { grid-column: 2; grid-row: 1; position: relative; align-self: center; padding: 10px 6px 0; }
.buehne::before { content: ""; position: absolute; inset: 6% 4% 10%; filter: blur(10px);
  background: radial-gradient(50% 46% at 46% 62%, rgba(205, 19, 22, .5), transparent 74%), radial-gradient(38% 36% at 76% 22%, rgba(0, 159, 223, .34), transparent 76%); }
.buehne .boden { left: -6%; right: -6%; bottom: -4%; height: 46%; opacity: .55; }
.buehne img { position: relative; display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .buehne { grid-column: 1; grid-row: auto; margin-top: 26px; } }

/* Meldekarte: Rheinkarte aus A als Leuchtlinien-Karte */
.lage { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.karten-rahmen { margin: 0; }
.karten-rahmen figcaption { margin-top: 12px; font-size: 1rem; color: var(--grau); }
.stadtkarte { display: block; width: 100%; height: auto; }
.stadtkarte .k-grund { fill: #0d0d0e; }
.stadtkarte .k-felder { fill: rgba(255, 255, 255, .05); }
.stadtkarte .k-bezirk { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .7); stroke-width: 2.5; stroke-linejoin: miter; }
.stadtkarte .k-bezirk[data-dabei] { fill: rgba(205, 19, 22, .5); stroke: var(--rot-hell); }
.stadtkarte .k-rahmen-innen { fill: none; stroke: #fff; stroke-width: 3; }
.stadtkarte .k-rahmen-aussen { fill: none; stroke: var(--rot); stroke-width: 4; filter: drop-shadow(0 0 10px var(--rot)); }
.stadtkarte .k-rhein, .stadtkarte .k-rhein-wellen { fill: none; stroke-linejoin: round; }
.stadtkarte .k-rhein-saum { stroke: var(--blau); stroke-width: 40; opacity: .5; filter: blur(9px); }
.stadtkarte .k-rhein-wasser { stroke: var(--blau-hell); stroke-width: 20; }
.stadtkarte .k-rhein-wellen { stroke: #0b0b0c; stroke-width: 3; stroke-dasharray: 10 26; animation: stroemen 3.2s linear infinite; }
@keyframes stroemen { to { stroke-dashoffset: -72; } }
.stadtkarte .k-bruecke-rand { stroke: #0b0b0c; stroke-width: 12; }
.stadtkarte .k-bruecke-bahn { stroke: #fff; stroke-width: 5; }
.stadtkarte .k-zahlen text { font-family: var(--schau); font-style: italic; font-weight: 800; font-size: 62px; fill: #fff; text-anchor: middle; paint-order: stroke; stroke: #0b0b0c; stroke-width: 8; stroke-linejoin: round; }
.stadtkarte .k-orte text { font-family: var(--schau); text-transform: uppercase; font-weight: 600; font-size: 25px; letter-spacing: .14em; fill: var(--grau); text-anchor: middle; }
.stadtkarte .k-koordinaten text { font-family: var(--text); font-weight: 600; font-size: 21px; fill: var(--blau-hell); text-anchor: middle; }
.k-marke circle, .leg circle { fill: #0b0b0c; stroke: #fff; stroke-width: 3; }
.k-marke use, .leg use { fill: #fff; }
.k-marke.dabei circle, .leg.dabei circle { fill: var(--rot); stroke: #fff; }
.stadtkarte .k-marke.dabei { filter: drop-shadow(0 0 8px rgba(255, 85, 88, .95)); }
.lage .bezirke { margin-top: 0; }
.lage .bezirke p { margin-top: 10px; color: var(--grau); max-width: 30rem; }
.legende { margin-top: 18px; display: grid; gap: 10px; }
.legende li { display: flex; align-items: center; gap: 12px; }
.leg { width: 34px; height: 34px; flex: none; }
.lage .bz-liste { margin-top: 24px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 860px) { .lage { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .lage .bz-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== G: Hell- und Dunkelmodus =====
   Dunkel ist die Grundfassung (Regeln oben). Hell überschreibt sie, sobald <html data-theme="light"> gesetzt ist:
   nach gespeicherter Wahl, sonst nach der Systemeinstellung (kleines Skript im Kopf der Seite). Farben aus E3. */
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
.thema { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--grau); font: inherit; font-size: 1rem; cursor: pointer; }
.thema-bild { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.thema:hover { color: var(--weiss); }
/* Einstieg Eltern: zwei Knöpfe untereinander */
/* Platz für den zweiten Schalter in der Kopfzeile; Überschrift wie in F etwas kleiner, damit sie in beiden Modi neben dem Modell steht */
.kopf-innen { column-gap: 14px; }
.menue ul { column-gap: 14px; }
.schalter { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.schalter .thema, .schalter .ruhe { gap: 8px; padding: 0; }
h1 { font-size: clamp(3.6rem, 8.1vw, 7.5rem); }
@media (max-width: 640px) { h1 { font-size: 16.6vw; } }
/* Grautöne leicht ins Warme gezogen statt bläulich (Probe, Andre 2026-10-11) – Rot und Blau unverändert. */
html[data-theme="light"] {
  --tinte: #1b1917;
  --nacht: #f5f3ef;        /* Seitengrund */
  --flaeche: #ffffff;
  --flaeche-2: #ebe7e0;
  --weiss: #1b1917;        /* Vordergrund (in E Weiß, hier Anthrazit) */
  --grau: #57524c;
  --linie: rgba(27, 25, 23, .16);
  --rot-hell: #cd1316;     /* auf hellem Grund reicht das Stadtrot selbst */
  --blau-hell: #006c9e;    /* dunkleres Stadtblau für Schrift */
}
/* Statuszeile und Fuß bleiben dunkel und behalten die Werte aus E */
html[data-theme="light"] .status, html[data-theme="light"] .fuss { --weiss: #fff; --grau: #d1ccc5; --rot-hell: #ff6b6e; --blau-hell: #5cc8f5; --linie: rgba(255, 255, 255, .16); background: #1b1917; color: #fff; }
html[data-theme="light"] .status .knopf.linie { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
html[data-theme="light"] .status .knopf.linie:hover, html[data-theme="light"] .status .knopf.rot:hover { background: #fff; color: var(--tinte); }
html[data-theme="light"] .knopf.rot:hover { background: var(--tinte); color: #fff; }
html[data-theme="light"] .knopf.linie { background: #fff; color: var(--tinte); box-shadow: inset 0 0 0 2px var(--tinte); }
html[data-theme="light"] .knopf.linie:hover { background: var(--tinte); color: #fff; }
html[data-theme="light"] .kopf { background: rgba(255, 255, 255, .94); }
html[data-theme="light"] .ruhe-bahn { background: #fff; box-shadow: inset 0 0 0 2px var(--tinte); }
html[data-theme="light"] .ruhe-bahn::after { background: var(--tinte); }
html[data-theme="light"] .ruhe input:checked + .ruhe-bahn::after { background: #fff; }
html[data-theme="light"] .auftakt { background:
    radial-gradient(60% 70% at 78% 45%, rgba(205, 19, 22, .17), transparent 70%),
    radial-gradient(40% 50% at 96% 8%, rgba(0, 159, 223, .2), transparent 70%),
    linear-gradient(#ffffff, #efebe5); }
/* Kein Karomuster im Hellmodus: Es ließ den Auftakt wie Zeichenpapier wirken (Andre, 2026-10-11). */
html[data-theme="light"] .auftakt::before { display: none; }
html[data-theme="light"] h1 .t2 { -webkit-text-stroke: 0; text-shadow: 0 12px 34px rgba(205, 19, 22, .3); }
html[data-theme="light"] .vorspann, html[data-theme="light"] .loesung p { color: #2e2b28; }
html[data-theme="light"] .boden { background:
    repeating-linear-gradient(90deg, rgba(205, 19, 22, .75) 0 2px, transparent 2px 12.5%),
    repeating-linear-gradient(0deg, rgba(0, 159, 223, .65) 0 2px, transparent 2px 25%),
    repeating-conic-gradient(rgba(27, 25, 23, .08) 0 25%, transparent 0 50%) 0 0 / 25% 50%; }
html[data-theme="light"] .ecke { border-color: var(--blau); }
html[data-theme="light"] .stempel { color: var(--tinte); background: rgba(255, 255, 255, .88); }
html[data-theme="light"] .spielplan, html[data-theme="light"] .werte, html[data-theme="light"] .partner li { border-top-color: var(--tinte); }
html[data-theme="light"] .spiel.ist-offen::before { box-shadow: 0 0 14px rgba(205, 19, 22, .5); }
html[data-theme="light"] .spiel-nr { -webkit-text-stroke: 1.5px rgba(27, 25, 23, .55); }
html[data-theme="light"] .chip { box-shadow: inset 0 0 0 1.5px rgba(27, 25, 23, .55); }
html[data-theme="light"] .chip.offen { background: rgba(205, 19, 22, .1); color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--rot); }
html[data-theme="light"] .chip.blau { box-shadow: inset 0 0 0 1.5px var(--blau-hell); }
html[data-theme="light"] .brett { border-color: var(--tinte); box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--rot), 0 26px 50px rgba(205, 19, 22, .28); }
html[data-theme="light"] .f.h { background: #ffffff; }
html[data-theme="light"] .f.d { background: #d3d9df; }
html[data-theme="light"] .f.zuletzt { background-image: linear-gradient(rgba(20, 110, 190, .22), rgba(20, 110, 190, .22)); }
html[data-theme="light"] .f.mattfeld { background: var(--rot); }
html[data-theme="light"] button.f:focus-visible { outline-color: var(--tinte); }
html[data-theme="light"] .fig.w { fill: #fff; stroke: var(--tinte); stroke-width: 5; stroke-linejoin: miter; }
html[data-theme="light"] .fig.s { fill: var(--tinte); stroke: none; }
html[data-theme="light"] button.ziel:focus-visible { outline-color: var(--tinte); }
html[data-theme="light"] .werte > div:nth-child(2) dd { text-shadow: 0 10px 30px rgba(205, 19, 22, .28); }
html[data-theme="light"] .partner a:hover { color: var(--tinte); }
html[data-theme="light"] .bz-liste li { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(27, 25, 23, .3); }
html[data-theme="light"] .bz-liste .dabei { background: var(--rot); box-shadow: none; color: #fff; }
/* Stadtmodell: im hellen Modus als dunkles Bühnenfenster (wie in F), weil das Bild ein Nachtbild ist */
html[data-theme="light"] .buehne { padding: 14px; }
html[data-theme="light"] .buehne::before, html[data-theme="light"] .buehne .boden { display: none; }
html[data-theme="light"] .buehne img { --schnitt: 34px; clip-path: var(--kante); background:
    radial-gradient(55% 45% at 50% 62%, rgba(205, 19, 22, .5), transparent 75%),
    radial-gradient(45% 40% at 78% 18%, rgba(0, 159, 223, .4), transparent 75%),
    linear-gradient(#17191d, #0b0c0e); }
/* Meldekarte hell */
html[data-theme="light"] .stadtkarte .k-grund { fill: #fff; }
html[data-theme="light"] .stadtkarte .k-felder { fill: rgba(27, 25, 23, .07); }
html[data-theme="light"] .stadtkarte .k-bezirk { fill: rgba(27, 25, 23, .05); stroke: rgba(27, 25, 23, .75); }
html[data-theme="light"] .stadtkarte .k-bezirk[data-dabei] { fill: rgba(205, 19, 22, .3); stroke: var(--rot); }
html[data-theme="light"] .stadtkarte .k-rahmen-innen { stroke: var(--tinte); }
html[data-theme="light"] .stadtkarte .k-rahmen-aussen { filter: none; }
html[data-theme="light"] .stadtkarte .k-rhein-saum { stroke: #fff; opacity: 1; filter: none; stroke-width: 30; }
html[data-theme="light"] .stadtkarte .k-rhein-wasser { stroke: var(--blau); }
html[data-theme="light"] .stadtkarte .k-rhein-wellen { stroke: #fff; }
html[data-theme="light"] .stadtkarte .k-bruecke-rand { stroke: var(--tinte); }
html[data-theme="light"] .stadtkarte .k-zahlen text { fill: var(--tinte); stroke: #fff; }
html[data-theme="light"] .k-marke circle, html[data-theme="light"] .leg circle { fill: #fff; stroke: var(--tinte); }
html[data-theme="light"] .k-marke use, html[data-theme="light"] .leg use { fill: var(--tinte); }
html[data-theme="light"] .k-marke.dabei circle, html[data-theme="light"] .leg.dabei circle { fill: var(--rot); stroke: var(--tinte); }
html[data-theme="light"] .k-marke.dabei use, html[data-theme="light"] .leg.dabei use { fill: #fff; }
html[data-theme="light"] .stadtkarte .k-marke.dabei { filter: none; }

/* ===== G: Nachbesserungen nach der UX-Zweitprüfung (SSD-P03-G-UX, 2026-10-08) ===== */
/* Fokus: Knöpfe sind mit clip-path beschnitten, ein Rahmen außen würde abgeschnitten – deshalb innen */
.knopf:focus-visible { outline: 3px solid currentColor; outline-offset: -7px; }
/* Modusknopf ohne Skript wirklich ausblenden (display oben überschrieb das hidden-Attribut) */
.thema[hidden] { display: none; }
/* Rätsel: Zielfelder sind ohne Skript gesperrt; Rückmeldung steht unter dem Brett und hat festen Platz */
button.ziel:disabled { cursor: default; }
button.ziel:disabled .punkt { opacity: .4; }
.brett-rahmen .meldung { margin-top: 20px; min-height: 3.2em; }
.brett-rahmen .meldung.gut { display: block; }
.brett-rahmen figcaption { margin-top: 10px; }
/* Zahlen: im HTML steht der Begriff vor dem Wert, gezeigt wird der Wert oben */
.werte > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
/* Schmale und mittlere Breiten: Etiketten und Knöpfe dürfen umbrechen, Karten und Rätsel stellen früher um */
@media (max-width: 1100px) {
  .raetsel-innen { grid-template-columns: minmax(0, 1fr); }
  .brett-rahmen { max-width: 520px; }
}
@media (max-width: 640px) {
  .chip { white-space: normal; }
  .spiel .knopf { white-space: normal; }
}

/* ===== G: offene Funde der UX-Zweitprüfung, von Andre freigegeben (2026-10-08) ===== */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nur-schmal { display: none; }
/* Ausschreibungen als Textlinks (es gibt zwei: Grundschulen und weiterführende Schulen) */
.ausschreibungen { margin-top: 16px; color: var(--grau); }
.ausschreibungen a, .textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--weiss); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.textlink { min-height: 0; padding-block: 4px; }
/* Ergebnisse: letzter Endstand oben im Abschnitt */
.stand { margin-top: 30px; }
.stand-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.stand-kopf h3 { font-weight: 800; font-size: 1.75rem; line-height: 1.1; letter-spacing: .02em; }
.tabelle { width: 100%; margin-top: 14px; border-collapse: collapse; border-top: 2px solid var(--weiss); font-variant-numeric: tabular-nums; }
.tabelle th, .tabelle td { padding: 12px 14px 12px 0; text-align: left; border-bottom: 1px solid var(--linie); font-weight: 400; }
.tabelle thead th { font-family: var(--schau); text-transform: uppercase; font-weight: 600; font-size: 1.0625rem; letter-spacing: .12em; color: var(--grau); }
.tabelle tbody th { font-weight: 600; }
.tabelle td:first-child { width: 4.5rem; font-family: var(--schau); font-weight: 800; font-style: italic; font-size: 1.75rem; line-height: 1; }
.tabelle .erster td:first-child { color: var(--rot-hell); }
.tabelle .zahl { text-align: right; padding-right: 0; padding-left: 14px; width: 7.5rem; }
.stand .mehr { margin-top: 10px; }
.werte { margin-top: 44px; }
/* Meldekarte: Titel steht vor Karte und Kacheln */
.lage-titel { margin-top: 44px; font-weight: 600; font-size: 1.1875rem; letter-spacing: .12em; color: var(--grau); }
.lage { margin-top: 18px; }
.lage .legende { margin-top: 0; }
.bz-stand { overflow-wrap: anywhere; }
/* Handy: Kopfzone kompakt, damit „Mannschaft anmelden“ in der ersten Bildschirmhöhe liegt */
@media (max-width: 640px) {
  h1 { font-size: calc(1rem + 11.6vw); }   /* wächst beim Vergrößern der Schrift mit */
  .nur-breit, .status-lang, .tabelle .brettpunkte { display: none; }
  .nur-schmal { display: inline; }
  .status-innen { padding-block: 8px; }
  .kopf-innen { padding-block: 6px; row-gap: 0; }
  .marke-wort { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menue a { letter-spacing: .03em; }
  .menue ul { column-gap: 16px; row-gap: 0; }
  .auftakt-innen { padding-top: 22px; }
  .vorspann { margin-top: 14px; }
  .ruf { margin-top: 18px; }
  .lage .bz-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Betrieb im Portal: Zustände, die der Entwurf nicht hatte ===== */
.leer { margin-top: 24px; color: var(--grau); max-width: 40rem; }
.verweise { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
.spiel h3 a { color: inherit; text-decoration: none; }
.spiel h3 a:hover { text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 3px; text-underline-offset: 5px; }


/* ===== Vorschau Layout (02.11.2026, noch nicht freigegeben) ===== */
/* Typografie: Schauschrift nur für große Überschriften; Menü, Knöpfe und Etiketten in der Textschrift ohne Großbuchstaben. */
.knopf, .menue, .chip, .mehr { font-family: var(--text); text-transform: none; }
.knopf { font-weight: 600; font-size: 1.0625rem; letter-spacing: .01em; }
.knopf.gross { font-size: 1.25rem; }
.knopf.klein { font-size: 1rem; }
.menue a { font-size: 1.0625rem; letter-spacing: 0; }
.chip { font-size: .9375rem; letter-spacing: .02em; }
.mehr { letter-spacing: .01em; font-weight: 600; }
.spiel h3 { text-transform: none; letter-spacing: .01em; }

/* Fremde Termine: „Anmeldung beim Veranstalter“ ist ein Hinweis, kein Knopf. */
.spiel-hinweis { font-size: .9375rem; color: var(--grau); text-align: right; }
@media (max-width: 1040px) { .spiel .spiel-hinweis { grid-column: 2; grid-row: 2; text-align: left; } }
@media (max-width: 640px) { .spiel .spiel-hinweis { grid-column: 2; grid-row: auto; } }

/* Schachuhr: links die Zeit bis zum Meldeschluss, rechts bis zum Turniertag; die laufende Seite ist rot. */
.schachuhr { display: grid; grid-template-columns: 1fr 1fr; background: var(--flaeche); box-shadow: inset 0 0 0 2px var(--weiss); clip-path: var(--kante); }
.uhr-seite { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 26px 12px 14px; text-align: center; }
.uhr-seite + .uhr-seite { box-shadow: inset 2px 0 0 var(--linie); }
.uhr-seite::before { content: ""; position: absolute; top: 2px; left: 50%; width: 52px; height: 7px; transform: translateX(-50%); background: var(--grau); opacity: .45; }
.uhr-seite.an::before { height: 11px; background: var(--rot); opacity: 1; }
.uhr-kopf { font-family: var(--schau); text-transform: uppercase; font-weight: 600; font-size: .9375rem; letter-spacing: .16em; color: var(--blau-hell); display: inline-flex; align-items: center; gap: 8px; }
.uhr-seite.an .uhr-kopf { color: var(--rot-hell); }
.uhr-seite.an .uhr-kopf::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rot-hell); box-shadow: 0 0 0 0 rgba(255, 85, 88, .7); animation: puls 1.8s infinite; }
.schachuhr .uhr-zahl { font-family: var(--schau); text-transform: uppercase; font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 4.4vw, 3.7rem); line-height: .95; font-variant-numeric: tabular-nums; margin-top: 4px; }
.schachuhr .uhr-zahl span { font-size: .4em; margin-left: .15em; letter-spacing: .06em; color: var(--rot-hell); }
.uhr-seite:not(.an) .uhr-zahl, .uhr-seite:not(.an) .uhr-zahl span { color: var(--grau); }
.schachuhr .uhr-offen { font-size: 1.6rem; padding-block: .45em; }
.uhr-fuss { font-size: .875rem; color: var(--grau); }
.anzeige.uhr-anzeige { display: block; width: min(100%, 420px); }
.uhr-anzeige .anzeige-fuss { margin-top: 10px; max-width: none; }

/* Plätze als Schachbrett: jedes Feld ein Mannschaftsplatz, belegte Felder mit Turm. */
.plaetze { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); width: min(100%, 300px); margin-top: 10px; box-shadow: 0 0 0 2px var(--weiss); }
.pf { aspect-ratio: 1; display: grid; place-items: center; }
.pf.ph { background: #3b3b3c; }
.pf.pd { background: #19191a; }
.pf svg { width: 72%; height: 72%; fill: var(--rot-hell); animation: setzen .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes setzen { from { transform: translateY(-40%); opacity: 0; } }
html[data-theme="light"] .pf.ph { background: #ffffff; }
html[data-theme="light"] .pf.pd { background: #d3d9df; }
html[data-theme="light"] .pf svg { fill: var(--rot); }

/* Siegerpodest der jüngsten Stadtmeisterschaft */
.sieger { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 48px; align-items: end; margin-top: 30px; }
.sieger-was { font-family: var(--schau); text-transform: uppercase; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.05; }
.sieger-zahlen { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 18px; }
.sieger-zahlen dt { font-size: .9375rem; color: var(--grau); }
.sieger-zahlen dd { font-family: var(--schau); font-weight: 800; font-style: italic; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.sieger .verweise { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.podest-bild { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
.stufe { display: grid; }
.stufe-1 { order: 2; } .stufe-2 { order: 1; } .stufe-3 { order: 3; }
.stufe-namen { display: grid; gap: 8px; padding-bottom: 12px; text-align: center; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.stufe-namen strong { display: block; font-weight: 600; }
.stufe-namen span { color: var(--grau); font-size: .875rem; }
.stufe-block { display: grid; place-items: center; font-family: var(--schau); font-style: italic; font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem); color: #fff; transform-origin: bottom; }
.stufe-1 .stufe-block { height: 160px; background: var(--rot); box-shadow: 0 0 30px rgba(205, 19, 22, .35); }
.stufe-2 .stufe-block { height: 116px; background: #4a4c50; }
.stufe-3 .stufe-block { height: 84px; background: #35373a; }
html[data-theme="light"] .stufe-2 .stufe-block { background: #6d6862; }
html[data-theme="light"] .stufe-3 .stufe-block { background: #948d85; }
@media (max-width: 860px) { .sieger { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .stufe-1 .stufe-block { height: 120px; } .stufe-2 .stufe-block { height: 88px; } .stufe-3 .stufe-block { height: 64px; } .stufe-namen { font-size: .875rem; } }
