/* AktenAtlas – gemeinsame Grundlage: Schriften, Farben, Grundtypografie */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/literata-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/literata-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/literata-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Farben aus dem Logo */
  --nacht: #0c1627;        /* Grund des Logos */
  --nacht-2: #13213a;      /* erhabene Flächen auf Nachtblau */
  --nacht-3: #1d2d4b;      /* Linien auf Nachtblau */
  --gold: #c9a25e;         /* Waage */
  --gold-hell: #e2c489;
  --gold-dunkel: #8f6c2e;
  --silber: #c7ccd3;       /* Buch */
  --silber-hell: #e9ecf0;
  --papier: #f2f3f5;       /* kühles Papier für helle Flächen */
  --weiss: #ffffff;
  --tinte: #0c1627;
  --grau: #5b6577;
  --linie: #d8dce3;
  /* Status */
  --rot: #b4382f;
  --gelb: #b7861b;
  --gruen: #2f7d4f;

  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;

  /* Typografische Skala (Verhältnis ca. 1,25) */
  --t-xs: 0.8rem;
  --t-s: 0.9rem;
  --t-m: 1rem;
  --t-l: 1.25rem;
  --t-xl: 1.563rem;
  --t-2xl: 1.953rem;
  --t-3xl: 2.441rem;
  --t-4xl: 3.052rem;

  --radius: 6px;
  --radius-gross: 12px;
  --fokus: 0 0 0 3px rgba(201, 162, 94, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-m);
  line-height: 1.55;
  color: var(--tinte);
  background: var(--papier);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--fokus); border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

.wortmarke { font-family: var(--serif); font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.wortmarke .w-akten { color: var(--silber-hell); }
.wortmarke .w-atlas { color: var(--gold); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 var(--t-m)/1 var(--sans);
  padding: 0.85em 1.4em; border-radius: var(--radius);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.knopf-gold { background: var(--gold); color: var(--nacht); }
.knopf-gold:hover { background: var(--gold-hell); }
.knopf-rahmen { background: transparent; color: var(--silber-hell); border-color: var(--nacht-3); }
.knopf-rahmen:hover { border-color: var(--gold); color: var(--weiss); }

.nur-screenreader { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
[hidden] { display: none !important; }
