/* ==========================================================================
   Schach am Gymnasium Lienz – gemeinsames Stylesheet
   Farben stammen aus dem Schachteam-Logo (siehe ANLEITUNG.md → "Stil").
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --navy: #1B2A4A;       /* Hauptfarbe (Springer im Logo) */
  --navy-deep: #121A2E;  /* Fußzeile, dunkle Kästen */
  --red: #C1272D;        /* Akzent (Rose im Logo) */
  --red-line: #D3313A;
  --gold: #F2C14E;       /* Hauptknöpfe, Platz 1 */
  --gold-soft: #FBEFD0;
  --green: #3FA34D;      /* Raute im Logo, Siege */
  --bg: #F5F6F9;
  --surface: #FFFFFF;
  --soft: #E8ECF3;
  --line: #DCE1EA;
  --line-soft: #EDF0F5;
  --text: #121A2E;
  --muted: #4A5468;
  --on-dark: #D2D8E4;
  --radius: 16px;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 22px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--gold); padding: 10px 14px; border-radius: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 56px; height: auto; flex: none; }
.brand strong { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1.15; }
.brand span { display: block; font-size: 14px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--text); }
.nav a:hover { background: var(--soft); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--navy); font-weight: 700; }
/* Aufklappbares Menü („Training“), Logik in assets/js/menue.js */
.nav-drop { position: relative; }
.nav-drop-btn { font: inherit; font-weight: 600; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; }
.nav-drop-btn::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); vertical-align: 3px; transition: transform .15s; }
.nav-drop-btn:hover { background: var(--soft); color: var(--navy); }
.nav-drop:has([aria-current="page"]) .nav-drop-btn { background: var(--soft); color: var(--navy); font-weight: 700; }
.nav-sub { display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 240px; max-width: calc(100vw - 32px); padding: 6px; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(18,26,46,.14); }
.nav-drop.offen .nav-sub { display: flex; }
.nav-drop.offen .nav-drop-btn::after { transform: rotate(225deg); vertical-align: -1px; }
@media (hover: hover) { .nav-drop:hover .nav-sub { display: flex; } }

/* ---------- Knöpfe, Abzeichen ---------- */
.btn { display: inline-block; padding: 13px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--text); }
.btn-gold:hover { background: #E9B33A; color: var(--text); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-soft { background: var(--soft); color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.pill-red { background: var(--red); color: #fff; }
.pill-gold { background: var(--gold); color: var(--text); }
.rule { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 3px; border-radius: 2px; background: var(--red-line); }
.rule span { width: 12px; height: 12px; background: var(--green); transform: rotate(45deg); }

/* ---------- Kopfbereich (Hero) ---------- */
.hero { background: var(--navy); color: #fff; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 72px; }
.hero-text { flex: 999 1 480px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -0.02em; }
.hero p { font-size: 20px; color: #E3E8F2; max-width: 560px; }
.hero-logo { flex: 1 1 300px; display: flex; justify-content: center; }
.hero-logo div { background: #fff; border-radius: 20px; padding: 18px; width: 100%; max-width: 330px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.page-hero .wrap { padding-top: 40px; padding-bottom: 44px; align-items: flex-end; justify-content: space-between; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); }

/* ---------- Erfolgsleiste ---------- */
.stats { margin-top: -36px; position: relative; }
.stats .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border-radius: 14px; padding: 20px 22px; box-shadow: 0 6px 20px rgba(18,26,46,.08); }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- Abschnitte, Karten ---------- */
.section { padding-top: 64px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-dark { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.card-dark .muted { color: var(--on-dark); }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.grow { flex: 999 1 460px; min-width: 0; }
.side { flex: 1 1 260px; min-width: 0; }
.reel { flex: 1 1 250px; max-width: 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news article { display: flex; flex-direction: column; gap: 10px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .05em; }
.training { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.training img { width: 200px; height: auto; flex: 0 0 auto; }
.training .tiles { flex: 1 1 460px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tile { background: var(--soft); border-radius: 12px; padding: 18px; }
.tile b { display: block; font-family: var(--font-display); font-size: 22px; margin: 2px 0; }
.tile small { font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
.dates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dates li { display: flex; gap: 14px; align-items: center; }
.dates .day { width: 58px; flex: none; text-align: center; border-radius: 10px; background: var(--soft); padding: 7px 0; font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.dates .day small { display: block; font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; }
.dates .day.gold { background: var(--gold-soft); }

/* ---------- Tabellen ---------- */
.table-box { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ranking { width: 100%; border-collapse: collapse; min-width: 420px; font-variant-numeric: tabular-nums; }
.ranking th { background: var(--navy); color: #fff; text-align: left; font-size: 14px; font-weight: 600; padding: 11px 10px; white-space: nowrap; }
.ranking th:first-child { border-top-left-radius: 8px; }
.ranking th:last-child { border-top-right-radius: 8px; }
.ranking td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.ranking .num { text-align: right; }
.ranking .total { font-weight: 800; background: var(--soft); text-align: right; }
.ranking .name { font-weight: 600; white-space: nowrap; }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 700; }
.rank-1 { background: var(--gold); }
.rank-2 { background: var(--line); }
.rank-3 { background: #E8C9A0; }
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; align-items: start; }
.class-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 12px; overflow: hidden; }
.class-card h3 { font-size: 18px; padding: 12px 16px; background: var(--bg); }
.class-card ol { list-style: none; margin: 0; padding: 0; }
.class-card li { display: flex; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--line-soft); }
.class-card li span:first-child { width: 24px; font-weight: 700; color: var(--muted); }
.class-card li:nth-child(1) span:first-child { color: #9A6B00; }
.class-card li:nth-child(3) span:first-child { color: #9A5A1E; }
.class-card li:nth-child(-n+3) .n { font-weight: 700; }
.class-card .n { flex: 1; min-width: 0; }
.class-card .p { font-weight: 800; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tabs button { font: inherit; font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
table.cross { border-collapse: separate; border-spacing: 0 4px; width: 100%; min-width: 820px; font-variant-numeric: tabular-nums; }
.cross th { text-align: left; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; }
.cross td { padding: 3px 4px; }
.cross .c { text-align: center; white-space: nowrap; font-size: 14px; padding: 6px 4px; border-radius: 6px; }
.res-1 { background: #E3F1E6; }
.res-h { background: #FBF1D6; }
.res-0 { background: #F7E3E4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
.notice { border-radius: 12px; padding: 14px 16px; background: var(--gold-soft); color: #4E3A10; }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin: 32px 0 10px; }
.prose h3 { font-size: 19px; margin: 22px 0 6px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 22px; }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: 80px; border-top: 6px solid var(--red); background: var(--navy-deep); color: var(--on-dark); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.site-footer b { color: #fff; display: block; margin-bottom: 6px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold); }
.site-footer .logo { background: #fff; border-radius: 12px; padding: 10px; width: 170px; height: auto; box-sizing: content-box; margin-bottom: 10px; }
.site-footer .bottom { border-top: 1px solid #2B3956; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; padding-bottom: 26px; font-size: 15px; }
.site-footer .bottom span { margin-left: auto; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 60px; gap: 28px; }
  .card { padding: 20px; }
  .section { padding-top: 48px; }
  .site-footer .bottom span { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Archiv ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; flex: 1 1 220px; }
.field input, .field select { font: inherit; font-weight: 400; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.filters .tabs { flex: 1 1 100%; margin: 0; }
.year-head { font-size: 24px; margin: 36px 0 14px; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.report-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.report-card:hover { color: var(--text); box-shadow: 0 8px 24px rgba(18,26,46,.12); transform: translateY(-2px); }
.report-card img, .report-card .noimg { width: 100%; height: 170px; object-fit: cover; background: var(--soft); }
.report-card .noimg { display: flex; align-items: center; justify-content: center; font-size: 54px; color: var(--navy); }
.rc-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.rc-body h3 { font-size: 18px; }
.report { max-width: 860px; }
.report h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 8px 0 22px; }
.report h2 { font-size: 23px; margin: 30px 0 10px; }
.report p { margin: 0 0 12px; }
.report figure { margin: 18px 0; }
.report figure img { border-radius: 10px; border: 1px solid var(--line); }
.report figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.text-img { overflow: hidden; margin: 10px 0 16px; }
.text-img figure { float: right; width: min(46%, 380px); margin: 4px 0 12px 22px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ext-links { margin: 0 0 14px; padding-left: 20px; font-size: 15px; }
.report-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
@media (max-width: 640px) { .text-img figure { float: none; width: 100%; margin: 10px 0; } }

/* ---------- Ehrentafel ---------- */
.honor { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.honor-year { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.honor-head { display: flex; justify-content: space-between; align-items: center; }
.honor-jahr { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.honor-note { font-size: 12px; font-weight: 700; color: #7A520A; background: var(--gold-soft); padding: 2px 8px; border-radius: 999px; }
.honor-champ { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.honor-champ strong { flex: 1; }
.honor-rest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.honor-rest li { display: flex; align-items: center; gap: 8px; }
.honor-rest .rank { width: 24px; height: 24px; font-size: 13px; }

/* ---------- Rätsel-Rallye ---------- */
.rally-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.rally-card, .rally-quiz { flex: 999 1 460px; min-width: 0; max-width: 640px; }
.rally-card { display: flex; flex-direction: column; gap: 14px; }
.rally-card h2 { font-size: 28px; }
.rally-card h3 { font-size: 18px; }
.rally-btn { width: 100%; text-align: center; font: inherit; font-weight: 700; cursor: pointer; }
.rally-msg { padding: 12px 14px; border-radius: 10px; font-size: 15px; line-height: 1.45; }
.rally-info { background: #E1E9F7; color: #1B2A4A; }
.rally-ok { background: #E3F1E6; color: #1E5A2C; }
.rally-bad { background: #F7E3E4; color: #8A1C22; }
.rally-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--navy); color: #fff; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.rally-urgent { color: var(--gold); font-weight: 700; }
.rally-quiz .rally-msg { margin-bottom: 12px; }
.rally-board { width: 100%; max-width: 560px; touch-action: none; user-select: none; -webkit-user-select: none; }
.rally-board * { touch-action: none; }
.rally-final { font-family: var(--font-display); font-size: 40px; font-weight: 800; text-align: center; padding: 16px; border-radius: 12px; background: var(--gold-soft); color: #4E3A10; }
.rally-detail { margin: 0; padding-left: 22px; line-height: 1.7; }
.rally-good { color: #1E5A2C; }
.rally-badtxt { color: #8A1C22; }
.rally-help { border-top: 1px solid var(--line); padding-top: 12px; font-size: 15px; }
.rally-help summary { cursor: pointer; font-weight: 700; }
.rally-help ul { margin: 6px 0 8px; padding-left: 22px; }
.rally-help p { margin: 8px 0; }
.rally-wrap .side { max-width: 380px; }
[hidden] { display: none !important; }
.rally-card .field { flex: none; }

/* ---------- Über uns ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.timeline-year { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 12px; padding: 16px 18px; }
.timeline-year h3 { font-size: 20px; margin-bottom: 8px; }
.timeline-year ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.timeline-year .kicker { font-size: 12px; margin-right: 4px; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.doc-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.doc-link:hover { border-color: var(--navy); color: var(--text); }
.doc-link > span:last-child { display: flex; flex-direction: column; }
.doc-ico { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }

/* Teilnehmer:innen (teilnehmer.html) */
.pill-soft { background: var(--soft); color: var(--navy); }
.tn-groups { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.tn-group { display: flex; flex-direction: column; gap: 8px; }
.tn-head { display: flex; align-items: center; gap: 10px; }
.tn-head h3 { margin: 0; }
.tn-names { list-style: none; margin: 6px 0 0; padding: 0; columns: 3 200px; column-gap: 24px; }
.tn-names li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.tn-fotos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tn-fotos img { aspect-ratio: 3 / 4; object-position: 50% 30%; }
.tn-fotos figcaption { font-size: 14px; }

/* Termine (termine.html, Startseite) */
.dates .day.red { background: var(--red); color: #fff; }
.dates .day.red small { color: #fff; }
.dates li.past { opacity: .6; }
.dates-big { gap: 18px; }
.dates-big li { align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.dates .pill { font-size: 12px; padding: 2px 9px; vertical-align: 2px; }

/* Training: Rätsel der Woche, Partien (training.html) */
.puzzle { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.puzzle-board { flex: 1 1 320px; max-width: 480px; }
.puzzle-board > div:first-child { width: 100%; }
.puzzle-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.puzzle-side h3 { margin: 0; }
.puzzle-side .pill { align-self: flex-start; }
.puzzle-side .field { flex: none; }
.notice.ok { background: #E3F3E5; color: #1F5A28; }
.notice.bad { background: #FBE3E4; color: #7A1B1F; }
.pgn-ctl { display: flex; gap: 8px; margin-top: 10px; }
.pgn-ctl button, .pgn-moves button { font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; cursor: pointer; }
.pgn-ctl button { flex: 1; padding: 8px 0; font-size: 18px; }
.pgn-moves { margin: 0; padding-left: 2.2em; columns: 2 130px; max-height: 340px; overflow: auto; }
.pgn-moves li { break-inside: avoid; padding: 2px 0; }
.pgn-moves button { padding: 2px 7px; margin-right: 4px; font-size: 15px; border-color: transparent; }
.pgn-moves button.on { background: var(--navy); color: #fff; }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.levels .card { display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--navy); }
.levels .card:nth-child(2) { border-top-color: var(--green); }
.levels .card:nth-child(3) { border-top-color: var(--red); }
.levels ul { margin: 0; padding-left: 1.1em; }
.levels li { margin: 4px 0; }

/* Fragen & Antworten (faq.html) */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq details p { margin: 12px 0 16px; }

/* Zahlen & Rekorde (ueber-uns.html) */
.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.records div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.records b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1.1; color: var(--navy); }
.records span { font-size: 15px; color: var(--muted); }

/* Hinweis-Kasten (Startseite) */
.promo { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; text-decoration: none; color: #fff; }
.promo img { width: 110px; height: auto; border-radius: 8px; flex: none; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.promo > div { flex: 999 1 300px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.promo h2 { margin: 0; }
.promo:hover .btn-gold { filter: brightness(1.05); }
@media (max-width: 560px) { .pgn-moves { columns: 1; max-height: 240px; } }

/* Dank an Unterstützer:innen (Fußzeile) */
.site-footer .thanks { border-top: 1px solid #2B3956; padding-top: 14px; padding-bottom: 14px; font-size: 15px; }
.site-footer .thanks strong { color: #fff; }
.site-footer .thanks + .bottom { border-top: 0; padding-top: 0; }

/* Endspiele (endspiele.html) */
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.es-karte.gesperrt { background: var(--bg); }
.es-karte .btn-row { margin-top: auto; }
.es-stand { font-size: 15px; font-weight: 600; color: var(--muted); }
.es-stand.geschafft { color: #1E5A2C; }
.es-board { touch-action: none; user-select: none; -webkit-user-select: none; }
.es-board * { touch-action: none; }
.es-board .es-letzter { box-shadow: inset 0 0 0 100px rgba(242,193,78,.45); }
.es-board .es-wahl { box-shadow: inset 0 0 0 4px var(--navy); }
.notice.info { background: #E1E9F7; color: var(--navy); }
.es-fortschritt { display: flex; flex-direction: column; gap: 16px; }
.es-fortschritt h2 { margin-bottom: 8px; }
.es-fortschritt .notice { margin: 0; }
.es-video { width: min(920px, calc(100% - 32px)); max-width: none; padding: 18px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); }
.es-video::backdrop { background: rgba(18,26,46,.75); }
.es-video-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.es-video-kopf h2 { font-size: 22px; }
.es-video video { width: 100%; max-height: calc(100vh - 210px); object-fit: contain; border-radius: 10px; background: #000; margin-bottom: 12px; }
.es-video [aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Schachmatt (schachmatt.html) */
.sm-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.sm-karte { display: flex; flex-direction: column; gap: 8px; border-top: 5px solid var(--navy); }
.sm-karte.gesperrt { background: var(--bg); border-top-color: var(--line); }
.sm-mehr { grid-column: 1 / -1; }
.sm-karte h3 { font-size: 20px; }
.sm-balken { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.sm-balken span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.sm-stufen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.sm-stufen .btn { flex: 1 1 auto; padding: 9px 12px; font-size: 15px; font: inherit; font-weight: 700; cursor: pointer; }
.sm-stufen .sm-fertig { background: #E3F1E6; color: #1E5A2C; }
.sm-punkte { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 360px; }
.sm-punkt { font: inherit; font-size: 13px; font-weight: 700; aspect-ratio: 1; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.sm-punkt.ok { background: var(--green); border-color: var(--green); color: #fff; }
.sm-punkt.gesehen { background: var(--gold-soft); border-color: var(--gold); color: #4E3A10; }
.sm-punkt.jetzt { outline: 3px solid var(--navy); outline-offset: 1px; }
.es-board .sm-flucht { box-shadow: inset 0 0 0 4px var(--red); }
