/* Layout: Turnierbrett – tiefes Brettgrün als Bühne, helles Papier für Inhalte,
   Rosenrot (Rosenstadt Sangerhausen) nur für Akzente, Koordinaten a–h / 1–8 als Rahmen. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/sourceserif.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/sourceserif-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plexmono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f3f5f1;
  --surface: #ffffff;
  --ink: #16211b;
  --muted: #56665d;
  --line: #d6ded8;
  --board: #23503c;
  --board-deep: #183a2b;
  --on-board: #eef4ef;
  --on-board-muted: #b9cdbf;
  --sq-light: #e6ede6;
  --sq-dark: #c3d3c7;
  --rose: #b3204a;
  --rose-soft: #f7e3e8;
  --brass: #9a7a2c;
  --focus: #b3204a;
  --shadow: 0 1px 2px rgba(22, 33, 27, .06), 0 8px 24px rgba(22, 33, 27, .08);

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem);

  --wrap: 1600px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1511; --surface: #142019; --ink: #e6eee8; --muted: #9fb3a7; --line: #26372e;
    --board: #1a3d2e; --board-deep: #10291e; --on-board: #e9f1eb; --on-board-muted: #a9c2b2;
    --sq-light: #17251e; --sq-dark: #1e3128; --rose: #ec6a8b; --rose-soft: #3a1823; --brass: #d4b46a;
    --focus: #ec6a8b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1511; --surface: #142019; --ink: #e6eee8; --muted: #9fb3a7; --line: #26372e;
  --board: #1a3d2e; --board-deep: #10291e; --on-board: #e9f1eb; --on-board-muted: #a9c2b2;
  --sq-light: #17251e; --sq-dark: #1e3128; --rose: #ec6a8b; --rose-soft: #3a1823; --brass: #d4b46a;
  --focus: #ec6a8b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: var(--step-0); line-height: 1.6;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--board-deep); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 112%; }
h2 { font-size: var(--step-3); font-weight: 780; font-stretch: 108%; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.mono { font-family: var(--f-mono); }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Kopf */
.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--board-deep); color: var(--on-board); border-bottom: 1px solid rgba(255,255,255,.08); }
.kopf .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.marke { display: flex; align-items: center; gap: 12px; color: var(--on-board); text-decoration: none; margin-right: auto; }
.marke svg { width: 40px; height: 46px; flex: none; }
.marke b { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.12rem; letter-spacing: .01em; line-height: 1.05; }
.marke small { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-board-muted); }
.nav { display: flex; align-items: center; gap: 2px; font-family: var(--f-ui); font-size: .95rem; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a, .nav button.sub { display: block; padding: 10px 12px; color: var(--on-board); text-decoration: none; border-radius: 4px; font: inherit; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button.sub:hover, .nav li:focus-within > a { background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--rose); }
.nav .drop { position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px; margin: 0; list-style: none; background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease; }
.nav li:hover > .drop, .nav li:focus-within > .drop { opacity: 1; visibility: visible; transform: none; }
.nav li.has-drop:nth-last-child(-n+2) > .drop { left: auto; right: 0; }
.nav .drop a { color: var(--ink); padding: 9px 12px; }
.nav .drop a:hover { background: var(--sq-light); }
.nav .drop a span { display: block; font-size: .8rem; color: var(--muted); }
.nav .has-drop > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 4px; font-family: var(--f-ui); font-weight: 650; font-size: .97rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { filter: brightness(1.08); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(127,127,127,.12); }
.btn-small { padding: 8px 13px; font-size: .9rem; }
.kopf .btn-rose { padding: 9px 15px; }
.menue-knopf { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: var(--on-board); border-radius: 4px; padding: 8px 12px; font-family: var(--f-ui); font-size: .95rem; cursor: pointer; }
@media (max-width: 1040px) {
  .menue-knopf { display: inline-flex; gap: 8px; align-items: center; }
  .nav { display: none; position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 0 0; background: var(--board-deep); overflow-y: auto; padding: 12px var(--gut-r) 40px var(--gut); flex-direction: column; align-items: stretch; }
  .nav.offen { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav a, .nav button.sub { padding: 13px 8px; font-size: 1.08rem; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .nav .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 14px; min-width: 0; }
  .nav .drop a { color: var(--on-board); font-size: 1rem; }
  .nav .drop a:hover { background: rgba(255,255,255,.06); }
  .nav .drop a span { color: var(--on-board-muted); }
  .nav .has-drop > a::after { display: none; }
  .nav .btn-rose { margin-top: 16px; justify-content: center; }
  body.menue-offen { overflow: hidden; }
}

/* ---------- Abschnitte */
.band { padding-block: clamp(48px, 7vw, 88px); }
.band-board { background: var(--board); color: var(--on-board); }
.band-board .eyebrow, .band-board .lead { color: var(--on-board-muted); }
.band-board a:not(.btn) { color: var(--on-board); }
.band-surface { background: var(--surface); border-block: 1px solid var(--line); }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.kopfzeile > div { display: grid; gap: 8px; min-width: 0; }
.mehr { font-family: var(--f-ui); font-weight: 600; text-decoration: none; white-space: nowrap; }
.mehr::after { content: " →"; }

/* ---------- Startseite: Bühne mit Brettkoordinaten */
.buehne { background: var(--board-deep); color: var(--on-board); padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.buehne .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.buehne h1 { font-size: clamp(2.5rem, 1.2rem + 3.6vw, 4.4rem); font-stretch: 110%; line-height: .98; letter-spacing: -.02em; }
.buehne h1 em { font-style: normal; color: var(--rose); }
.buehne .lead { color: var(--on-board-muted); margin-top: 20px; }
.buehne .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.buehne .eyebrow { color: var(--on-board-muted); margin-bottom: 18px; display: block; }
.schachbuehne { position: relative; width: 100%; max-width: 100%; aspect-ratio: 1 / .9; }
.schachbuehne canvas { position: absolute; top: -6%; bottom: -6%; left: -8%; right: -8%; width: 116%; height: 112%; display: block; }
.zug-anzeige { position: absolute; right: 0; bottom: 2%; margin: 0; display: grid; gap: 2px; text-align: right; pointer-events: none; font-family: var(--f-mono); }
.zug-anzeige span { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--on-board-muted); }
.zug-anzeige b { font-size: clamp(1.15rem, .9rem + .8vw, 1.6rem); font-weight: 500; color: var(--on-board); font-variant-numeric: tabular-nums; }
.zug-karte { display: grid; gap: 2px; margin-top: 28px; max-width: 360px; padding: 12px 16px; border-left: 3px solid var(--rose); background: rgba(255,255,255,.06); border-radius: 0 var(--radius) var(--radius) 0; color: var(--on-board); text-decoration: none; font-family: var(--f-ui); transition: background .2s; }
.zug-karte:hover { background: rgba(255,255,255,.1); }
.buehne .zug-karte .eyebrow { margin: 0; font-size: .7rem; }
.zug-karte b { font-size: 1rem; line-height: 1.3; }
.zug-karte small { color: var(--on-board-muted); font-size: .84rem; }
@media (min-width: 861px) {
  .buehne .wrap { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); }
  .schachbuehne { margin-block: -24px; max-height: min(78vh, 720px); }
}
@media (max-width: 860px) {
  .buehne .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .schachbuehne { order: -1; aspect-ratio: 1 / .78; }
  .schachbuehne canvas { top: -4%; bottom: -4%; left: 0; right: 0; width: 100%; height: 108%; }
  .zug-anzeige { bottom: 0; }
}

/* ---------- Termine */
.termine { list-style: none; margin: 0; padding: 0; display: grid; }
.termin { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.termin:first-child { border-top: 1px solid var(--line); }
.datum { font-family: var(--f-mono); line-height: 1.1; text-align: center; border: 1px solid var(--line); border-radius: 4px; padding: 7px 4px; background: var(--surface); }
.datum b { display: block; font-size: 1.45rem; font-weight: 500; }
.datum small { display: block; font-size: .64rem; color: var(--muted); margin-top: 2px; }
.datum span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.termin h3 { font-size: 1.06rem; font-weight: 650; font-family: var(--f-ui); line-height: 1.3; }
.termin h3 a { color: var(--ink); text-decoration: none; }
.termin h3 a:hover { color: var(--rose); text-decoration: underline; }
.termin .ort { font-family: var(--f-ui); font-size: .9rem; color: var(--muted); }
.chip { display: inline-block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; background: var(--surface); }
.chip[data-art="Vereinsturnier"] { border-color: var(--board); color: var(--board); }
.chip[data-art="Turnier"], .chip[data-art="Für alle"] { border-color: var(--rose); color: var(--rose); }
.chip[data-art="Jugend"], .chip[data-art="Kinderschach"] { border-color: var(--brass); color: var(--brass); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[data-art="Vereinsturnier"] { border-color: var(--on-board-muted); color: var(--on-board-muted); } }
:root[data-theme="dark"] .chip[data-art="Vereinsturnier"] { border-color: var(--on-board-muted); color: var(--on-board-muted); }
.termin.vorbei { opacity: .55; }
.termin.heute .datum { background: var(--rose); color: #fff; border-color: var(--rose); }
.termin.heute .datum span, .termin.heute .datum small { color: #fff; }
@media (max-width: 560px) { .termin { grid-template-columns: 64px minmax(0, 1fr); } .termin .chip { grid-column: 2; justify-self: start; } }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.abend { background: var(--board); color: var(--on-board); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.abend .eyebrow { color: var(--on-board-muted); }
.abend .gross { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 2rem; line-height: 1.05; }
.abend dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font-family: var(--f-ui); font-size: .95rem; }
.abend dt { color: var(--on-board-muted); }
.abend dd { margin: 0; }
.abend .hinweis { font-size: .88rem; color: var(--on-board-muted); font-family: var(--f-ui); border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }

/* ---------- Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kacheln { grid-template-columns: minmax(0, 1fr); } }
.kachel { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.kachel:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kachel .bild { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sq-dark); }
.kachel .bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kachel:hover .bild img { transform: scale(1.04); }
.kachel .text { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; }
.kachel h3 { font-size: 1.2rem; }
.kachel p { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.kachel .eyebrow { font-size: .7rem; }
.symbol { position: absolute; top: 10px; right: 10px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; padding: 3px 7px; border-radius: 3px; }

/* ---------- Rosenturnier-Band */
.rose-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.rose-band .bild { border-radius: 3px; overflow: hidden; aspect-ratio: 4/3; max-width: 100%; }
.rose-band .bild img { width: 100%; height: 100%; object-fit: cover; }
.zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; overflow: hidden; margin-top: 24px; }
.zahlen div { background: var(--board); padding: 14px 16px; }
.zahlen b { display: block; font-family: var(--f-display); font-stretch: 115%; font-size: 1.9rem; font-weight: 800; line-height: 1; }
.zahlen span { font-family: var(--f-ui); font-size: .82rem; color: var(--on-board-muted); }
@media (max-width: 860px) { .rose-band { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .zahlen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Seitenkopf Unterseiten */
.seitenkopf { background: var(--board-deep); color: var(--on-board); padding-block: clamp(28px, 4vw, 52px); }
.seitenkopf .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.seitenkopf.ohne-bild .wrap { grid-template-columns: minmax(0, 1fr); }
.seitenkopf h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.8rem); font-stretch: 118%; }
.seitenkopf .lead { color: var(--on-board-muted); margin-top: 14px; }
.seitenkopf .bild { border-radius: 3px; overflow: hidden; aspect-ratio: 3/2; max-width: 100%; position: relative; }
.seitenkopf .bild img { width: 100%; height: 100%; object-fit: cover; }
.krume { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .05em; color: var(--on-board-muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.krume a { color: var(--on-board-muted); text-decoration: none; }
.krume a:hover { color: var(--on-board); text-decoration: underline; }
.krume span[aria-hidden] { opacity: .5; }
.seitenkopf .knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 860px) { .seitenkopf .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Fließtext & Inhalt */
.inhalt { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw, 360px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.inhalt > * { min-width: 0; }
@media (max-width: 960px) { .inhalt { grid-template-columns: minmax(0, 1fr); } }
.prosa { max-width: 68ch; display: grid; gap: 1em; }
.prosa h2 { font-size: var(--step-2); margin-top: .8em; }
.prosa h3 { margin-top: .6em; }
.prosa ul, .prosa ol { margin: 0; padding-left: 1.2em; display: grid; gap: .3em; }
.seitenleiste { display: grid; gap: 16px; position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); }
@media (max-width: 960px) { .seitenleiste { position: static; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; font-family: var(--f-ui); font-size: .95rem; }
.box h3 { font-size: 1.05rem; }
.box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.box dl { margin: 0; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 12px; }
.box dt { color: var(--muted); }
.box dd { margin: 0; }
.abschnitt { display: grid; gap: 22px; }
.abschnitt + .abschnitt { margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-block: 6px; max-width: 100%; }
.table-wrap .table-wrap { border: 0; margin: 0; background: transparent; }
table { border-collapse: collapse; width: 100%; font-family: var(--f-ui); font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-weight: 650; background: var(--sq-light); white-space: nowrap; }
th.cap { background: var(--board); color: var(--on-board); font-family: var(--f-mono); font-weight: 500; font-size: .8rem; letter-spacing: .04em; white-space: normal; }
tr:last-child > td { border-bottom: 0; }
tbody tr:hover > td, table tr:hover > td { background: color-mix(in srgb, var(--sq-light) 60%, transparent); }
td strong { font-weight: 650; }
.tab-einfach td:first-child { white-space: nowrap; font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }
.sprung { display: flex; flex-wrap: wrap; gap: 8px; }
.sprung a { font-family: var(--f-ui); font-size: .88rem; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; }
.sprung a:hover { border-color: var(--rose); color: var(--rose); }
.anker { scroll-margin-top: 96px; }

/* ---------- Karten, Listen */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; font-family: var(--f-ui); }
.karte h3 { font-size: 1.1rem; }
.karte p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.karte .kontakt { display: grid; gap: 2px; font-size: .95rem; }
.karte .kontakt a { word-break: break-word; }
.liste-meister { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 32px; font-family: var(--f-ui); }
.liste-meister li { break-inside: avoid; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.liste-meister li span { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }

/* ---------- Ehrentafel Rosenturnier */
.ehrentafel { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.jahrgang { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; font-family: var(--f-ui); }
.jahrgang:hover { border-color: var(--rose); transform: translateY(-2px); }
.jahrgang .nr { grid-row: span 3; font-family: var(--f-mono); font-size: .78rem; color: var(--rose); padding-top: 4px; min-width: 42px; }
.jahrgang b { font-family: var(--f-display); font-stretch: 115%; font-size: 1.5rem; line-height: 1; }
.jahrgang span { font-size: .93rem; line-height: 1.35; }
.jahrgang small { color: var(--muted); font-size: .8rem; }

/* ---------- Chronik */
.filter { display: grid; gap: 12px; margin-bottom: 26px; }
.filter .reihe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter button { font-family: var(--f-ui); font-size: .88rem; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--board); color: var(--on-board); border-color: var(--board); }
.filter input[type="search"] { font: inherit; font-family: var(--f-ui); font-size: 1rem; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: min(100%, 420px); }
.filter .zaehler { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.chronik { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.eintrag { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; font-family: var(--f-ui); }
.eintrag .bild { aspect-ratio: 4 / 3; background: var(--sq-light); display: block; overflow: hidden; position: relative; border: 0; padding: 0; width: 100%; cursor: pointer; }
.eintrag .bild img { width: 100%; height: 100%; object-fit: cover; }
.eintrag .bild.dok img { object-fit: cover; object-position: top; }
.eintrag .bild .anzahl { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font-family: var(--f-mono); font-size: .7rem; padding: 3px 8px; border-radius: 3px; }
.eintrag .text { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.eintrag time { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.eintrag h3 { font-size: 1.02rem; font-family: var(--f-ui); font-weight: 650; line-height: 1.3; }
.eintrag .dokumente { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .88rem; margin-top: 4px; }
.extern::after { content: "↗"; display: inline-block; margin-left: 3px; font-size: .85em; }
.leer { padding: 40px; text-align: center; color: var(--muted); font-family: var(--f-ui); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Galerie + Leuchtkasten */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.galerie button { border: 0; padding: 0; background: var(--sq-light); cursor: zoom-in; border-radius: 3px; overflow: hidden; aspect-ratio: 4/3; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.galerie button:hover img { transform: scale(1.05); }
.leuchtkasten { position: fixed; inset: 0; z-index: 90; background: rgba(8, 14, 11, .94); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: calc(10px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); color: #fff; font-family: var(--f-ui); }
.leuchtkasten .oben { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 6px 10px; }
.leuchtkasten .oben span { font-family: var(--f-mono); font-size: .8rem; color: #c9d6cc; }
.leuchtkasten figure { margin: 0; display: grid; place-items: center; min-height: 0; }
.leuchtkasten img { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); max-width: 100%; object-fit: contain; }
.leuchtkasten .unten { display: flex; justify-content: center; gap: 12px; padding-top: 10px; flex-wrap: wrap; }
.leuchtkasten button, .leuchtkasten a { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 9px 16px; font: inherit; cursor: pointer; text-decoration: none; }
.leuchtkasten button:hover, .leuchtkasten a:hover { background: rgba(255,255,255,.2); }

/* ---------- Partien */
.partie-ansicht { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .partie-ansicht { grid-template-columns: minmax(0, 1fr); } }
.brett-rahmen { display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 18px; gap: 4px; max-width: 520px; width: 100%; }
.brett { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border: 2px solid var(--board-deep); border-radius: 2px; overflow: hidden; user-select: none; }
.brett div { display: grid; place-items: center; font-size: clamp(1.6rem, 7.6vw, 3rem); line-height: 1; aspect-ratio: 1; position: relative; }
.brett .h { background: #e9eee4; }
.brett .d { background: #6f9a7e; }
.brett .zuletzt::after { content: ""; position: absolute; inset: 0; background: rgba(214, 170, 60, .38); }
.brett .w, .brett .s { position: relative; z-index: 1; font-family: "Segoe UI Symbol", "DejaVu Sans", "Noto Sans Symbols 2", "Arial Unicode MS", sans-serif; }
.brett .w { color: #fff; text-shadow: 0 0 1px #000, 0 0 1px #000, 0 1px 1px #000, 0 -1px 1px #000, 1px 0 1px #000, -1px 0 1px #000; }
.brett .s { color: #111; }
.brett-rahmen .rx, .brett-rahmen .ry { display: flex; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.brett-rahmen .ry { flex-direction: column; }
.brett-rahmen .rx span, .brett-rahmen .ry span { flex: 1; display: grid; place-items: center; }
.brett-rahmen .rx { grid-column: 2; }
.steuerung { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; max-width: 520px; }
.steuerung button { font-family: var(--f-ui); font-size: .95rem; padding: 9px 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; min-width: 48px; }
.steuerung button:hover { border-color: var(--board); }
.zugliste { font-family: var(--f-mono); font-size: .92rem; line-height: 1.9; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-height: 520px; overflow-y: auto; }
.zugliste .nr { color: var(--muted); margin-right: 2px; }
.zugliste button { font: inherit; background: none; border: 0; padding: 1px 4px; border-radius: 3px; color: var(--ink); cursor: pointer; }
.zugliste button:hover { background: var(--sq-light); }
.zugliste button.aktiv { background: var(--board); color: var(--on-board); }
.zugliste .kommentar { display: block; font-family: var(--f-text); font-style: italic; font-size: .95rem; line-height: 1.5; color: var(--muted); margin: 4px 0 8px; padding-left: 10px; border-left: 2px solid var(--line); }
.partie-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.partie-wahl button { text-align: left; font-family: var(--f-ui); padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.partie-wahl button small { display: block; color: var(--muted); font-size: .8rem; }
.partie-wahl button[aria-pressed="true"] { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.partie-kopf { display: grid; gap: 4px; margin-bottom: 12px; font-family: var(--f-ui); }
.partie-kopf b { font-size: 1.2rem; font-family: var(--f-display); }
.partie-kopf span { color: var(--muted); font-size: .92rem; }

/* ---------- Bericht */
.bericht { display: grid; gap: 1em; max-width: 68ch; }
.bericht h3:first-child { font-size: var(--step-2); }
.bericht img { border-radius: 3px; }
.zitat { font-family: var(--f-text); font-size: var(--step-1); font-style: italic; border-left: 3px solid var(--rose); padding-left: 18px; }
.blaetter { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--f-ui); }
.blaetter a { text-decoration: none; font-weight: 600; }
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fakten div { background: var(--surface); padding: 14px 16px; font-family: var(--f-ui); }
.fakten dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.fakten dd { margin: 4px 0 0; font-weight: 650; line-height: 1.3; }

/* ---------- Fuß */
.fuss { background: var(--board-deep); color: var(--on-board); padding-block: 56px 28px; font-family: var(--f-ui); font-size: .95rem; margin-top: clamp(48px, 7vw, 88px); }
.fuss .reihe { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.fuss h3 { font-size: .78rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--on-board-muted); margin-bottom: 12px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.fuss a { color: var(--on-board); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss address { font-style: normal; color: var(--on-board-muted); line-height: 1.6; }
.fuss .unten { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--on-board-muted); font-size: .85rem; }
.schachleiste { height: 10px; background-image: repeating-linear-gradient(90deg, var(--board) 0 10px, var(--on-board-muted) 10px 20px); opacity: .5; }
.fuss .marke { margin: 0 0 14px; }
@media (max-width: 860px) { .fuss .reihe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .fuss .reihe { grid-template-columns: minmax(0, 1fr); } }

.hinweis-box { border-left: 3px solid var(--brass); background: var(--surface); padding: 14px 18px; font-family: var(--f-ui); font-size: .95rem; border-radius: 0 var(--radius) var(--radius) 0; }
.bildzeile { font-family: var(--f-ui); font-size: .82rem; color: var(--muted); margin-top: 6px; }
.zeitleiste { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; border-left: 2px solid var(--line); padding-left: 26px; }
.zeitleiste > li { position: relative; display: grid; gap: 12px; }
.zeitleiste > li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 2px; background: var(--rose); transform: rotate(45deg); }
.zeitleiste time { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.zwei { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .zwei { grid-template-columns: minmax(0, 1fr); } }
.logo-gross { width: 180px; max-width: 50%; }
.sponsor { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--f-ui); }

/* Breite Inhalte bleiben in ihrem Kasten */
.abschnitt > *, .prosa > *, .bericht > *, .split > *, .zwei > *, .zeitleiste > li > *, .kopfzeile > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.prosa, .bericht, .karte, .box { overflow-wrap: break-word; }
