/* Kurier – gemeinsames Stylesheet. Schriften lokal, keine externen Anfragen. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #eef1f6;
  --sheet: #f8f9fc;
  --ink: #121a2b;
  --muted: #5a6478;
  --rule: #c9d0dc;
  --carbon: #3b36c4;
  --carbon-soft: rgba(59, 54, 196, 0.1);
  --signal: #f2c230;
  --shadow: 0 1px 0 rgba(18, 26, 43, 0.05), 0 18px 40px -22px rgba(18, 26, 43, 0.35);

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1522;
    --sheet: #182032;
    --ink: #e6eaf2;
    --muted: #9aa3b5;
    --rule: #2c3650;
    --carbon: #9b97ff;
    --carbon-soft: rgba(155, 151, 255, 0.12);
    --signal: #f2c230;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 22px 44px -24px rgba(0, 0, 0, 0.8);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--carbon); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--carbon); }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 3px; border-radius: 2px; }

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

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

/* Kopfzeile ---------------------------------------------------------- */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  letter-spacing: 0.04em; font-size: 1.05rem; text-decoration: none;
}
.wordmark svg { width: 26px; height: 26px; flex: none; }
.masthead nav a {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.masthead nav a:hover, .masthead nav a[aria-current="page"] { color: var(--ink); }
.masthead nav { display: flex; gap: 22px; }

/* Startseite: Kopfbereich ------------------------------------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(48px, 8vw, 104px);
}
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--carbon); margin: 0 0 18px;
}
h1 {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1; letter-spacing: -0.02em;
  margin: 0 0 26px; text-wrap: balance;
}
h1 .mark {
  background: linear-gradient(transparent 62%, var(--signal) 62%, var(--signal) 92%, transparent 92%);
  padding: 0 0.04em;
}
@media (prefers-color-scheme: dark) { h1 .mark { color: var(--ink); background: linear-gradient(transparent 62%, rgba(242,194,48,.45) 62%, rgba(242,194,48,.45) 92%, transparent 92%); } }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 34em; margin: 0; }
.lead strong { color: var(--ink); font-weight: 600; }

/* Signatur: der Laufzettel ------------------------------------------ */
.docket {
  position: relative; background: var(--sheet); box-shadow: var(--shadow);
  padding: 26px 26px 22px 46px; border-radius: 4px; transform: rotate(-1.2deg);
  max-width: 470px; justify-self: end; width: 100%;
}
/* Lochrand links, wie bei einem abgerissenen Formular */
.docket::before {
  content: ""; position: absolute; left: 14px; top: 16px; bottom: 16px; width: 10px;
  background: radial-gradient(circle at 5px 5px, var(--paper) 4px, transparent 4.5px) 0 0 / 10px 22px repeat-y;
}
.docket::after {
  content: ""; position: absolute; left: 32px; top: 0; bottom: 0; border-left: 1.5px dashed var(--rule);
}
.docket-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px;
}
.docket-title { font-family: var(--display); font-weight: 800; font-stretch: 125%; letter-spacing: 0.05em; font-size: 1rem; margin: 0; }
.docket-no { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }
.stations { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.stations li {
  counter-increment: st;
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.stations li:last-child { border-bottom: 0; }
.stations li::before {
  content: counter(st, decimal-leading-zero); font-family: var(--mono); font-size: 0.74rem; color: var(--muted);
}
.st-label { font-weight: 600; line-height: 1.25; }
.st-note { grid-column: 2; font-size: 0.88rem; color: var(--muted); line-height: 1.35; }
.stamp {
  grid-column: 3; grid-row: 1 / span 2;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--carbon); border: 2px solid currentColor; border-radius: 3px; padding: 4px 7px 3px;
  transform: rotate(-7deg); white-space: nowrap; opacity: 0.88;
}
.stations li:nth-child(even) .stamp { transform: rotate(5deg); }
.stamp.final { background: var(--carbon); color: var(--sheet); border-color: var(--carbon); opacity: 1; }
.docket-foot {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px;
  border-top: 2px solid var(--ink); font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp 0.42s cubic-bezier(.2, 1.6, .4, 1) both; }
  .stations li:nth-child(1) .stamp { animation-delay: 0.5s; }
  .stations li:nth-child(2) .stamp { animation-delay: 1.0s; }
  .stations li:nth-child(3) .stamp { animation-delay: 1.5s; }
  .stations li:nth-child(4) .stamp { animation-delay: 2.0s; }
  .stations li:nth-child(5) .stamp { animation-delay: 2.7s; }
  @keyframes stamp {
    from { opacity: 0; transform: scale(2.2) rotate(-14deg); }
  }
  .stations li:nth-child(even) .stamp { animation-name: stamp-even; }
  @keyframes stamp-even {
    from { opacity: 0; transform: scale(2.2) rotate(12deg); }
  }
}

/* Abschnitt: Zugriff -------------------------------------------------- */
.access { border-top: 2px solid var(--ink); padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.access-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); }
h2 {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 18px; text-wrap: balance;
}
.access-intro p { color: var(--muted); margin: 0 0 14px; max-width: 32em; }
.access-intro p strong { color: var(--ink); font-weight: 600; }
.scope {
  display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 0.78rem;
  background: var(--carbon-soft); color: var(--carbon); padding: 6px 10px; border-radius: 3px; word-break: break-all;
}
.ledger { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--sheet); }
.ledger section { padding: 22px 24px 18px; }
.ledger section + section { border-left: 1.5px solid var(--ink); }
.ledger h3 {
  font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.ledger h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--carbon); }
.ledger section + section h3 .dot { background: transparent; border: 2px solid var(--muted); }
.ledger ul { margin: 0; padding: 0; list-style: none; }
.ledger li { padding: 9px 0; border-top: 1px solid var(--rule); line-height: 1.4; }
.ledger li:first-child { border-top: 0; }
.ledger-note { grid-column: 1 / -1; border-top: 1.5px solid var(--ink); padding: 14px 24px; font-size: 0.95rem; color: var(--muted); }
.ledger-note strong { color: var(--ink); font-weight: 600; }

/* Fußzeile ----------------------------------------------------------- */
.foot { border-top: 1px solid var(--rule); padding-top: 24px; padding-bottom: 40px; font-size: 0.92rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.foot dl { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.foot dd { margin: 0; color: var(--ink); }
.foot dl div { display: flex; gap: 8px; align-items: baseline; }

/* Datenschutzseite --------------------------------------------------- */
.policy-head { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(24px, 4vw, 40px); border-bottom: 2px solid var(--ink); }
.policy-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 14px; }
.policy-head p { margin: 0; color: var(--muted); max-width: 40em; }
.policy { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: 36px; padding-bottom: 72px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 0.93rem; }
.toc p { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--rule); }
.toc a { display: flex; gap: 10px; padding: 7px 0; text-decoration: none; color: var(--muted); line-height: 1.3; }
.toc a::before { content: counter(toc); font-family: var(--mono); font-size: 0.75rem; min-width: 1.4em; padding-top: 0.15em; }
.toc a:hover { color: var(--ink); }
.policy-body { max-width: 44em; counter-reset: sec; }
.policy-body section { counter-increment: sec; padding-bottom: 8px; scroll-margin-top: 20px; }
.policy-body h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 34px 0 12px; display: flex; gap: 14px; align-items: baseline; }
.policy-body section:first-child h2 { margin-top: 0; }
.policy-body h2::before { content: counter(sec); font-family: var(--mono); font-weight: 500; font-size: 0.85rem; color: var(--carbon); min-width: 1.5em; }
.policy-body h3 { font-size: 1.02rem; margin: 22px 0 6px; }
.policy-body p, .policy-body li { margin: 0 0 12px; }
.policy-body ul { padding-left: 1.2em; margin: 0 0 12px; }
.policy-body li::marker { color: var(--carbon); }
.card {
  background: var(--sheet); border-left: 4px solid var(--carbon); padding: 16px 20px; border-radius: 0 4px 4px 0; margin: 14px 0 18px;
}
.card p:last-child { margin-bottom: 0; }
.card .en { font-size: 0.92rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 10px 0 16px; }
.facts dt { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0.25em; }
.facts dd { margin: 0; }

/* Mobil --------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero, .access-grid, .policy { grid-template-columns: minmax(0, 1fr); }
  .docket { justify-self: center; transform: rotate(-0.6deg); }
  .toc { position: static; }
}
@media (max-width: 560px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger section + section { border-left: 0; border-top: 1.5px solid var(--ink); }
  .docket { padding: 22px 16px 18px 40px; }
  .docket::before { left: 10px; }
  .docket::after { left: 27px; }
  .stations li { grid-template-columns: 22px minmax(0, 1fr); }
  .stamp { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 4px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

@media print {
  .masthead nav, .skip, .toc { display: none; }
  body { background: #fff; color: #000; }
}
