/* ==========================================================================
   Fürst Leipzig – Design-System
   Farben, Schriften, Abstände. Gestaltung der Bausteine in style.css.
   ========================================================================== */

/* Schriften (lokal, keine Verbindung zu Google) */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Farben */
  --farbe-grund:        #0d0b09;
  --farbe-flaeche:      #16130f;
  --farbe-linie:        #2b251d;
  --farbe-gold:         #c9a063;
  --farbe-gold-dunkel:  #9d7a45;
  --farbe-text:         #efe7da;
  --farbe-text-leise:   #b0a48f;
  --farbe-creme:        #f3ede3;
  --farbe-text-dunkel:  #1d1813;
  --farbe-text-dunkel-leise: #5d5246;
  --farbe-platzhalter:  #1b1712;
  --farbe-fehler:       #e0866f;
  --farbe-tafel:        #02090a;   /* Hintergrund des Saisonkarten-Fotos */

  /* Schriften */
  --schrift-titel: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --schrift-text:  "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Schriftgrößen */
  --groesse-klein:   0.8125rem;  /* 13px */
  --groesse-text:    0.9375rem;  /* 15px */
  --groesse-label:   0.6875rem;  /* 11px, Großbuchstaben */
  --groesse-h3:      1.375rem;   /* 22px */
  --groesse-h2:      clamp(2.25rem, 9vw, 3rem);
  --groesse-h1:      clamp(3rem, 13vw, 4.5rem);

  /* Abstände */
  --abstand-xs:  0.5rem;
  --abstand-s:   1rem;
  --abstand-m:   1.5rem;
  --abstand-l:   2.5rem;
  --abstand-xl:  4rem;
  --rand: max(1.375rem, env(safe-area-inset-left, 0px));
  --rand-rechts: max(1.375rem, env(safe-area-inset-right, 0px));

  /* Maße */
  --header-hoehe: 5rem;
  --leiste-hoehe: 3.75rem;
  --seite-max: 40rem;          /* vorerst mobile Spalte, Desktop folgt */

  --uebergang: 0.25s ease;
  color-scheme: dark;
}

/* Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-hoehe); }
body {
  margin: 0;
  background: var(--farbe-grund);
  color: var(--farbe-text);
  font: 300 var(--groesse-text)/1.65 var(--schrift-text);
  padding-bottom: calc(var(--leiste-hoehe) + env(safe-area-inset-bottom, 0px));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; }
p, ul, dl { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--farbe-gold); outline-offset: 3px; }

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