/* Werkstatt-Unterseiten: zwei Skins (Zeitung/Marquee), Dark/Light, DE/EN —
   gesteuert über data-Attribute am <html>, gesetzt aus denselben
   localStorage-Schlüsseln wie die Startseite (psm-design/psm-dark/psm-lang). */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/playfair-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/playfair-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #15110c; --paper: #1c1814; --fg: #f0e8d8;
  --muted: rgba(240,232,216,0.55); --rule: rgba(240,232,216,0.25); --accent: #c9302c;
}
:root[data-design="d5"][data-dark="0"] {
  --bg: #f0e8d8; --paper: #f4ecdc; --fg: #15110c;
  --muted: rgba(21,17,12,0.6); --rule: rgba(21,17,12,0.3); --accent: #7a1a1a;
}
:root[data-design="d6"] {
  --bg: #000; --paper: #000; --fg: #fff;
  --muted: rgba(255,255,255,0.6); --rule: #fff; --accent: #ff2d4d;
}
:root[data-design="d6"][data-dark="0"] {
  --bg: #fff; --paper: #fff; --fg: #000;
  /* Akzent auf Weiß abgedunkelt: #ff2d4d ergäbe nur ~3.7:1 (unter WCAG-AA für
     kleine Texte wie Kicker/Backlinks); #c9102c ≈ 5.8:1. */
  --muted: rgba(0,0,0,0.6); --rule: #000; --accent: #c9102c;
}

/* Sprachumschaltung */
:root[data-lang="de"] .i18n-en { display: none; }
:root[data-lang="en"] .i18n-de { display: none; }

html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Toolbar (identisch zur Startseite) */
.toolbar {
  position: fixed; top: 14px; right: 14px; z-index: 1000;
  display: flex; gap: 6px;
  background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 8px;
  padding: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  font-family: system-ui, sans-serif; font-size: 11px;
}
.toolbar button {
  background: transparent; border: none; padding: 6px 12px; border-radius: 5px;
  cursor: pointer; font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: #444; text-transform: uppercase;
}
.toolbar button.active { background: #1a1a1a; color: #fff; }
.toolbar .sep { width: 1px; background: rgba(0,0,0,0.1); margin: 4px 2px; }

.page { max-width: 760px; margin: 0 auto; padding: 72px 24px 48px; }
.kicker a, .backlinks a { color: var(--accent); text-decoration: none; }
.backlinks { margin-top: 40px; padding-top: 12px; font-size: 13px; }
.backlinks a + a::before { content: "· "; color: var(--muted); margin: 0 6px 0 2px; }

/* Übersichtskarten (Werkstatt-Index) */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.card { display: block; text-decoration: none; color: inherit; padding: 16px 18px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Skin 05: Zeitung ---------- */
:root[data-design="d5"] body { font-family: "Times New Roman", Times, serif; }
:root[data-design="d5"] .page {
  background: var(--paper); border: 1px solid var(--rule);
  margin-top: 24px; margin-bottom: 24px; padding: 40px 44px 32px;
}
:root[data-design="d5"] .kicker {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
}
:root[data-design="d5"] h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 900; font-size: clamp(40px, 7vw, 64px); line-height: 1.0;
  margin: 0 0 6px; letter-spacing: -0.01em;
}
:root[data-design="d5"] .subtitle {
  font-style: italic; font-size: 16px; color: var(--muted);
  border-bottom: 3px double var(--fg); border-top: 3px double var(--fg);
  padding: 6px 0; margin: 10px 0 22px; letter-spacing: 0.03em;
}
:root[data-design="d5"] .lede {
  font-size: 17px; line-height: 1.5; font-style: italic; margin: 0 0 18px;
}
:root[data-design="d5"] .body p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
:root[data-design="d5"] .body p:first-of-type::first-letter {
  font-size: 44px; float: left; line-height: 0.85; padding: 3px 6px 0 0;
  font-weight: 900; font-family: "Playfair Display", serif;
}
:root[data-design="d5"] .backlinks { border-top: 3px double var(--fg); }
:root[data-design="d5"] .card { border: 1px solid var(--rule); }
:root[data-design="d5"] .card:hover { background: var(--fg); color: var(--paper); }
:root[data-design="d5"] .card h3 { font-family: "Playfair Display", serif; font-weight: 700; font-size: 19px; margin: 0 0 6px; }
:root[data-design="d5"] .card p { font-size: 13px; line-height: 1.45; margin: 0; }

/* ---------- Skin 06: Marquee ---------- */
:root[data-design="d6"] body { font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; }
:root[data-design="d6"] .page { max-width: 900px; }
:root[data-design="d6"] .kicker {
  font-family: "Courier New", monospace; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent);
  margin-bottom: 10px;
}
:root[data-design="d6"] h1 {
  font-weight: 900; font-size: clamp(48px, 9vw, 96px); line-height: 0.9;
  margin: 0 0 10px; letter-spacing: -0.04em; text-transform: uppercase;
}
:root[data-design="d6"] .subtitle {
  font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--fg); color: var(--bg); display: inline-block;
  padding: 4px 10px; margin: 0 0 24px;
}
:root[data-design="d6"] .lede {
  font-family: "Courier New", monospace; font-size: 15px; line-height: 1.55;
  border-left: 4px solid var(--accent); padding-left: 14px; margin: 0 0 20px;
}
:root[data-design="d6"] .body p {
  font-family: "Courier New", monospace; font-size: 14px; line-height: 1.6; margin: 0 0 14px;
}
:root[data-design="d6"] .backlinks { border-top: 2px solid var(--rule); font-family: "Courier New", monospace; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
:root[data-design="d6"] .card { border: 2px solid var(--rule); }
:root[data-design="d6"] .card:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
:root[data-design="d6"] .card h3 { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 6px; }
:root[data-design="d6"] .card p { font-family: "Courier New", monospace; font-size: 12px; line-height: 1.5; margin: 0; }
