/* Beat's Pocket – Grundlook „Plattenkiste“
   Werte aus docs/uebersetzungsmatrix.md (Grundregeln). Genre-Farben kommen aus der Datenbank. */

@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton-latin.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('/fonts/work-sans-latin-var.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0E0F11;
  --surface: #17181C;
  --surface-2: #1A1B1F;
  --rail: #141518;
  --line: #24262B;
  --line-2: #3A3C43;
  --text: #EDEDEF;
  --text-soft: #C9CACE;
  --muted: #9A9CA4;
  --ok: #8DB59A;
  --warn: #E0A82E;
  --error: #E5483B;
  --warn-bg: #2A2113;
  --warn-line: #5C4718;
  --warn-text: #F1D9A6;

  --font-display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;

  --max: 1180px;
  --gutter: 24px;
  --radius-pill: 999px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--text);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
}

main { flex: 1; }

a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #FFFFFF; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

img, svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Typografie ---------- */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.005em;
}
.display--xl { font-size: clamp(56px, 10vw, 120px); }
.display--l  { font-size: clamp(44px, 6vw, 72px); line-height: 0.95; }
.display--m  { font-size: clamp(36px, 4.5vw, 48px); line-height: 1; }

.lead { margin: 0; color: var(--muted); font-size: 19px; max-width: 32ch; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: transparent; color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--text-soft); color: #FFFFFF; }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.btn--primary:hover { background: #FFFFFF; color: var(--bg); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Kopf ---------- */

.site-header .wrap {
  height: 80px; display: flex; align-items: center; gap: 32px;
}
.logo {
  font-family: var(--font-display); font-size: 30px; letter-spacing: 0.02em;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; font-weight: 600; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current='page'], .site-nav a:hover { color: var(--text); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 719px) {
  :root { --gutter: 16px; }
  .site-header .wrap { height: 64px; gap: 16px; }
  .logo { font-size: 24px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 64px; z-index: 50; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { display: block; padding: 12px 0; font-size: 18px; }
  .site-header { position: relative; }
}

/* ---------- Abschnitte Startseite ---------- */

.intro .wrap {
  padding-top: 40px; padding-bottom: 32px;
  display: flex; gap: 40px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
}

.kiste .wrap { padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }

.leer {
  border: 1px dashed var(--line-2); border-radius: 14px; padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.leer p { margin: 0; max-width: 46ch; color: var(--muted); }
.leer .display { font-size: 32px; line-height: 1.05; }

.band { border-top: 1px solid var(--line); }
.band .wrap { padding-top: 48px; padding-bottom: 48px; }

.custom-band .wrap { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.custom-band .text { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.custom-band p { margin: 0; color: var(--muted); }

.kontakt .wrap { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.kontakt h2 { flex: 1 1 320px; }
.kontakt .spalte { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.kontakt .wert { font-size: 20px; font-weight: 600; word-break: break-word; }
.kontakt .wert a { text-decoration: none; }
.kontakt .hinweis { color: var(--muted); font-size: 15px; }

/* ---------- Fuß ---------- */

.site-footer .wrap {
  padding-top: 24px; padding-bottom: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Textseiten (Impressum, Datenschutz, Lizenz) ---------- */

.textseite .wrap { max-width: calc(720px + 2 * var(--gutter)); padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.textseite .reiter { display: flex; gap: 8px; flex-wrap: wrap; }
.textseite .reiter a {
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2); color: var(--text-soft); text-decoration: none;
  display: inline-flex; align-items: center;
}
.textseite .reiter a[aria-current='page'] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.textseite section { display: flex; flex-direction: column; gap: 6px; }
.textseite h2 { margin: 0; font-size: 15px; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.textseite h3 { margin: 12px 0 0; font-size: 17px; font-weight: 700; }
.textseite p, .textseite ol, .textseite ul { margin: 0; line-height: 1.6; }
.textseite ol, .textseite ul { padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.textseite .kurz {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  color: var(--text-soft);
}
.entwurf-hinweis {
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text);
  border-radius: 10px; padding: 12px 14px; font-size: 15px;
}

/* Platzhalter, die Theo noch ausfüllen muss – gut sichtbar. */
mark.platzhalter {
  background: var(--warn); color: #1C1A17; padding: 0 4px; border-radius: 3px; font-weight: 600;
}

/* ---------- 404 ---------- */

.fehlerseite .wrap { padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; max-width: calc(640px + 2 * var(--gutter)); }

/* Platte als Deko (404 und später Kiste) */
.platte {
  width: 120px; aspect-ratio: 1 / 1; border-radius: 50%;
  background:
    conic-gradient(from 20deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 18%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0) 68%),
    repeating-radial-gradient(circle, #16171A 0 1px, #0B0C0E 1px 3px);
  box-shadow: inset 0 0 0 2px #2B2D32;
  display: grid; place-items: center;
}
.platte::after {
  content: ''; width: 34%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle, #0B0C0E 0 8%, var(--etikett, var(--line-2)) 9%);
}
