/* atcs.meme – Stylesheet
 * Farben: T-Seite (Amber) für Aktionen, CT-Seite (Blau) für Links,
 * Rot-Weiß-Rot nur für Marke und Löschen. Schrift: Barlow + Barlow Condensed (lokal).
 */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #121a23;
  --bg-raise: #18222d;
  --bg-sunk: #0e151d;
  --row-alt: #151f29;
  --line: #263443;
  --line-strong: #34465a;
  --text: #e6ecf2;
  --muted: #8ea1b4;
  --t: #e2a33a;          /* Terroristen-Amber: Hauptaktionen */
  --t-ink: #1c1406;
  --t-hover: #f0b552;
  --ct: #86a8de;         /* Counter-Terroristen-Blau: Links */
  --ct-hover: #a9c3ec;
  --red: #d3263d;        /* Rot-Weiß-Rot */
  --ok: #5fb98a;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 3px;
  --r-md: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }

a { color: var(--ct); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ct-hover); }
:focus-visible { outline: 2px solid var(--t); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-cond);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--t); color: var(--t-ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Kopfzeile ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-sunk); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-flag { width: 18px; height: 24px; flex: none; background: linear-gradient(var(--red) 0 33.4%, #fff 33.4% 66.6%, var(--red) 66.6%); border-radius: 1px; }
.brand-name { font-family: var(--font-cond); font-weight: 700; font-size: 1.65rem; letter-spacing: 0.04em; line-height: 1; }

.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-sm);
}
.site-nav a:hover { color: var(--text); background: var(--bg-raise); }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--t); border-radius: 0; }

.user-area { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.user-chip img { width: 30px; height: 30px; border-radius: var(--r-sm); }
.user-chip:hover { color: var(--t); }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--text); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); font: inherit; padding: 5px 12px; border-radius: var(--r-sm); cursor: pointer; }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .nav-toggle { display: block; }
  .site-nav, .user-area { display: none; width: 100%; }
  .site-header.open .site-nav { display: flex; flex-direction: column; }
  .site-header.open .user-area { display: flex; padding: 10px 0 6px; border-top: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--t); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font);
  padding: 12px 20px; min-height: 44px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  background: var(--t); color: var(--t-ink);
}
.btn:hover { background: var(--t-hover); color: var(--t-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-raise); color: var(--text); }
.btn-danger { background: transparent; color: #ff8a98; border-color: #6d2a34; }
.btn-danger:hover { background: #2a1519; color: #ffb0ba; }
.btn-small { padding: 7px 12px; min-height: 34px; font-size: 0.92rem; }
.btn-steam { background: #e6ecf2; color: #10161d; }
.btn-steam:hover { background: #fff; color: #10161d; }

/* ---------- Meldungen ---------- */
.flashes { margin-top: 20px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); border-left: 3px solid var(--ct); background: var(--bg-raise); }
.flash-success { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--red); }
.notice { padding: 14px 18px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); }
.notice strong { color: var(--text); }

/* ---------- Startseite: Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunk) url("../img/contours.svg") center / cover no-repeat;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: end;
  padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-mark {
  font-family: var(--font-cond); font-weight: 700;
  font-size: clamp(5.5rem, 17vw, 12.5rem); line-height: 0.8; letter-spacing: -0.01em;
  margin: 0 0 18px;
  display: flex; align-items: flex-end; gap: 0.08em;
}
.hero-mark .flag {
  width: 0.16em; height: 0.72em; margin-bottom: 0.04em; flex: none;
  background: linear-gradient(var(--red) 0 33.4%, #fff 33.4% 66.6%, var(--red) 66.6%);
}
.hero-title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: 10px; }
.hero-text { color: var(--muted); max-width: 46ch; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.next-up { background: rgba(14, 21, 29, 0.86); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px 8px; backdrop-filter: blur(2px); }
.next-up h2 { font-size: 1.25rem; margin-bottom: 8px; }

.event-row { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.event-row:first-of-type { border-top: 0; }
a.event-row:hover .event-name { color: var(--t); }
.date-block { text-align: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 4px 0 5px; line-height: 1; align-self: start; }
.date-block .d { display: block; font: 700 1.55rem/1 var(--font-cond); }
.date-block .m { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.event-name { display: block; font-weight: 600; line-height: 1.3; }
.event-meta { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.4; margin-top: 2px; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Seitenraster ---------- */
.page { padding-top: clamp(28px, 5vw, 48px); padding-bottom: 64px; }
.page-head { margin-bottom: 28px; }
.page-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 500; white-space: nowrap; }

/* ---------- News ---------- */
.news-lead { padding-bottom: 26px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.news-lead h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 4px 0 10px; }
.news-lead h3 a, .news-item h3 a { color: var(--text); text-decoration: none; }
.news-lead h3 a:hover, .news-item h3 a:hover { color: var(--t); }
.news-lead p { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.news-item { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-item h3 { font-size: 1.3rem; margin: 0 0 4px; }
.news-item p { margin: 0; color: var(--muted); }
.news-date { color: var(--muted); font-size: 0.92rem; padding-top: 3px; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 2px; } }

.article { max-width: 720px; }
.article-meta { color: var(--muted); margin-bottom: 28px; }
.article-teaser { font-size: 1.2rem; color: var(--text); margin-bottom: 28px; }

/* ---------- Formatierter Text (Forum + News) ---------- */
.prose { overflow-wrap: anywhere; }
.prose h3 { font-size: 1.45rem; margin: 1.4em 0 0.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.3em; }
.prose blockquote { margin: 0 0 1em; padding: 8px 0 8px 16px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; background: var(--bg-sunk); padding: 1px 5px; border-radius: var(--r-sm); }
.prose pre { background: var(--bg-sunk); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--r-sm); overflow-x: auto; margin: 0 0 1em; }
.prose pre code { background: none; padding: 0; }
.prose > :last-child { margin-bottom: 0; }

/* ---------- Seitenleiste ---------- */
.side-block { margin-bottom: 36px; }
.side-block h2 { font-size: 1.35rem; margin-bottom: 10px; }
.thread-mini { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.thread-mini:hover .tm-title { color: var(--t); }
.tm-title { display: block; font-weight: 600; line-height: 1.3; }
.tm-meta { display: block; font-size: 0.88rem; color: var(--muted); }
.empty { color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); }

/* ---------- Turniere ---------- */
.event-list { border-top: 1px solid var(--line); }
.event-full { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.event-full .date-block { padding: 7px 0 8px; }
.event-full .date-block .d { font-size: 2rem; }
.event-full h3 { margin: 0 0 4px; font-size: 1.45rem; }
.event-full p { margin: 6px 0 0; color: var(--muted); max-width: 64ch; }
.event-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 0.95rem; }
.event-facts strong { color: var(--text); font-weight: 500; }
.tag { display: inline-block; font-size: 0.82rem; font-weight: 600; padding: 2px 8px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.tag-at { border-color: #7b2632; color: #ff9aa6; }
.tag-live { border-color: #2f6a4d; color: #8fe0b5; }
.event-past { opacity: 0.78; }
@media (max-width: 640px) {
  .event-full { grid-template-columns: 58px minmax(0, 1fr); }
  .event-full .event-link { grid-column: 2; }
}

/* ---------- Teams ---------- */
.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.team { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.team-tag {
  width: 64px; height: 64px; display: grid; place-items: center;
  font: 700 1.05rem/1 var(--font-cond); letter-spacing: 0.02em; text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--bg-raise);
  overflow: hidden; padding: 4px;
}
.team h3 { margin: 0 0 4px; font-size: 1.4rem; }
.team p { margin: 0 0 6px; color: var(--muted); }
.team-players { font-size: 0.95rem; }
.team-players span { color: var(--muted); }

/* ---------- Forum: Scoreboard-Liste ---------- */
.board { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 28px; }
.board-head, .board-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px 230px; gap: 16px; align-items: center; padding: 12px 18px; }
.board-3 .board-head, .board-3 .board-row { grid-template-columns: minmax(0, 1fr) 100px 230px; }
.board-head { background: var(--bg-sunk); color: var(--muted); font-size: 0.88rem; font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.board-row { border-top: 1px solid var(--line); }
.board-row:nth-of-type(even) { background: var(--row-alt); }
.board-row:first-of-type { border-top: 0; }
.board-head .num, .board-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.board-row .num { font: 600 1.2rem/1 var(--font-cond); }
.board-title { font-weight: 600; font-size: 1.08rem; color: var(--text); text-decoration: none; line-height: 1.3; }
.board-title:hover { color: var(--t); }
.board-desc { color: var(--muted); font-size: 0.93rem; margin-top: 2px; line-height: 1.4; }
.board-last { font-size: 0.9rem; color: var(--muted); line-height: 1.35; min-width: 0; }
.board-last a { color: var(--text); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-last a:hover { color: var(--t); }
.board-row.pinned { box-shadow: inset 3px 0 0 var(--t); }
.flags { display: inline-flex; gap: 6px; margin-right: 6px; vertical-align: 2px; }
@media (max-width: 760px) {
  .board-head { display: none; }
  .board-row, .board-3 .board-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .board-row .num { display: none; }
  .board-row .num-mobile { display: block; }
  .board-last { grid-column: 1 / -1; }
}
.num-mobile { display: none; font-size: 0.88rem; color: var(--muted); white-space: nowrap; }

.forum-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.forum-stats { color: var(--muted); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.forum-stats strong { color: var(--text); font-weight: 600; }

.login-callout { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--t); border-radius: var(--r-md); background: var(--bg-raise); margin-bottom: 28px; }
.login-callout p { margin: 0; max-width: 60ch; }

/* ---------- Forum: Thema ---------- */
.thread-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.thread-head h1 { margin: 0; overflow-wrap: anywhere; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden; scroll-margin-top: 16px; }
.post:target { border-color: var(--t); }
.post-author { background: var(--bg-sunk); padding: 18px 16px; border-right: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.post-author img { width: 72px; height: 72px; border-radius: var(--r-sm); margin-bottom: 10px; background: var(--bg-raise); }
.post-author .since { display: block; }
.post-author .name { display: block; font-weight: 600; font-size: 1rem; color: var(--text); text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; margin-bottom: 4px; }
.post-author a.name:hover { color: var(--t); }
.post-main { padding: 16px 20px 14px; min-width: 0; display: flex; flex-direction: column; }
.post-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; flex-wrap: wrap; }
.post-meta a { color: var(--muted); }
.post-body { flex: 1; }
.post-actions { display: flex; gap: 16px; justify-content: flex-end; margin-top: 14px; font-size: 0.9rem; flex-wrap: wrap; }
.post-actions form { display: inline; }
.post-actions .linkish, .post-actions a { color: var(--muted); }
.post-actions .linkish:hover, .post-actions a:hover { color: var(--text); }
.role { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 1px 7px; border-radius: var(--r-sm); margin-bottom: 6px; }
.role-admin { background: #3a1820; color: #ff9aa6; }
.role-mod { background: #1b2a42; color: var(--ct-hover); }
.role-banned { background: #2a2a2a; color: #bbb; }
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post-author { display: grid; grid-template-columns: 40px 1fr; gap: 0 10px; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .post-author img { width: 40px; height: 40px; margin: 0; grid-row: span 3; }
  .post-author .role { justify-self: start; margin: 0; }
  .post-author .since { display: none; }
  .post-main { padding: 14px; }
}

.mod-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); margin-bottom: 20px; font-size: 0.92rem; }
.mod-bar form { display: inline-flex; gap: 6px; align-items: center; }
.mod-bar .label { color: var(--muted); margin-right: 4px; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; max-width: 760px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .help { color: var(--muted); font-size: 0.9rem; margin-top: 5px; }
input[type="text"], input[type="url"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg-sunk); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 10px 12px;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--t); box-shadow: 0 0 0 1px var(--t); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--t); }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.format-help { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.format-help code { background: var(--bg-raise); padding: 0 4px; border-radius: 2px; font-size: 0.85rem; }
.reply-box { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Seiten blättern ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 22px 0; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--line-strong); background: var(--bg-raise); }
.pager .current { background: var(--t); color: var(--t-ink); border-color: var(--t); font-weight: 600; }
.pager .gap { border: 0; color: var(--muted); }

/* ---------- Profil & Konto ---------- */
.profile-head { display: flex; gap: 22px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.profile-head img { width: 112px; height: 112px; border-radius: var(--r-md); }
.profile-head h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--muted); }
.facts strong { color: var(--text); font-weight: 600; }
.panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 20px; }
.panel h2 { font-size: 1.4rem; }
.panel-danger { border-color: #5a2630; }

/* ---------- Admin ---------- */
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 6px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); }
.admin-nav a:hover { color: var(--text); background: var(--bg-raise); }
.admin-nav a[aria-current="page"] { color: var(--t-ink); background: var(--t); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--bg-sunk); color: var(--muted); font-weight: 600; font-size: 0.88rem; }
tr:last-child td { border-bottom: 0; }
td .inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
td select { width: auto; padding: 5px 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; text-decoration: none; color: var(--text); }
.stat:hover { border-color: var(--line-strong); background: var(--bg-raise); color: var(--text); }
.stat .n { display: block; font: 700 2rem/1 var(--font-cond); margin-bottom: 4px; }
.stat .l { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.checklist li { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.checklist .ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.checklist .todo::before { content: "! "; color: var(--t); font-weight: 700; }

/* ---------- Rechtliches ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.2em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal ul { padding-left: 1.2em; }
.placeholder { color: var(--t); font-weight: 600; }

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-sunk); color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 30px; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }
.footer-inner p { margin: 0; max-width: 60ch; }

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

.search-form { display: flex; gap: 8px; max-width: 480px; margin-bottom: 8px; }
.search-form input { flex: 1; }
