/* ==========================================================================
   Design-Tokens stoeffl.at (Etappe 3B). Quelle: docs/05-design-inventar.md, Abschnitt 2,
   gemessen an der Live-Seite und an den Elementor-Dateien im Spiegel (import/raw/uploads/elementor/css).
   Namen entsprechen den Tokens in docs/05.
   ========================================================================== */

@font-face {
  /* Univers, ein Schnitt „normal“ wie live. Er gilt für alle Stärken, der Browser fettet nicht künstlich (docs/05, Befund 2).
     Datei lokal, Lizenz offen (docs/05, Abschnitt 9). Kopie aus import/raw/uploads/2021/07/. */
  font-family: 'Univers';
  font-style: normal;
  font-weight: 100 900;           /* nur ein Schnitt: keine künstliche Fettung (in Safari unscharfe Ränder beim Vergrößern) */
  font-display: swap;
  src: url('../fonts/univers.woff2') format('woff2'), url('../fonts/univers.woff') format('woff');
}

@font-face {
  /* Roboto Slab (Apache License 2.0 laut google/fonts, Lizenztext in fonts/LICENSE-RobotoSlab-Apache-2.0.txt), variable Schrift, nur lateinischer Teil.
     Live nur in den Beschriftungen der Unternehmens-Infobox sichtbar (V03). Kopie aus import/raw/uploads/elementor/google-fonts/. */
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-slab-latin.woff2') format('woff2');
}

:root {
  /* ---- Farben (Elementor-Kit 13 und Messung) ---- */
  --color-olive: #ada816;
  --color-olive-light: #dedca2;
  --color-olive-accent: #b7b35c;
  --color-yellow: #ffdc47;
  --color-text: #1d1d1b;
  --color-grey: #939393;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text-muted: rgba(29, 29, 27, 0.58); /* #1D1D1B94 */
  --color-tab-inactive: #808080;
  --color-tab-active-text: #000000;
  --color-tab-active: #f7f6f6;
  --color-404-text: #8c8c8c;
  --color-archive-bg: #eeeeee;
  --color-table-row: rgba(2, 1, 1, 0.03); /* #02010108 */
  --color-input-bg: #f5f5f5;
  --color-header-bg: rgba(173, 168, 22, 0.52); /* #ADA81685 */
  --color-header-scrolled: #d5d39c;
  --color-band-light: rgba(222, 220, 162, 0.53); /* #DEDCA287 */
  --color-hero-band: rgba(173, 168, 22, 0.4); /* #ADA81666 */
  --color-hero-heading: rgba(155, 150, 150, 0.63); /* #9B9696A1 */
  --color-overlay: rgba(0, 0, 0, 0.7);
  --color-search-overlay: rgba(0, 0, 0, 0.8);
  --color-divider: #e5e5e5;
  --color-footer-bar-line: rgba(255, 255, 255, 0.19);
  --gradient-titelband: linear-gradient(240deg, rgba(222, 220, 162, 0.53) 0%, rgba(115, 113, 65, 0.83) 100%);
  --shadow-card: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 0 30px 0 rgba(0, 0, 0, 0.15);

  /* ---- Textfarben-Paar (umschaltbar, docs/05 2.7). Standard: Original 1:1 ---- */
  --text-link: var(--color-olive-accent);          /* Links im Inhalt, Downloads */
  --text-link-on-light: var(--color-olive-accent); /* Link-Hover im Fuß auf #DEDCA2 */
  --text-olive: var(--color-olive);                /* Oliv als Schriftfarbe (Akkordeon, Archiv-H1, Team) */
  --text-grey: var(--color-grey);                  /* graue Überschriften, Kacheln, Zurück-Link */
  --text-grey-band: var(--text-grey);              /* kleine graue Schrift auf Titelband und Archivgrau (Zurück-Link, Brotkrumen) */
  --text-tab-inactive: var(--color-tab-inactive);
  --text-on-olive: var(--color-white);             /* Icons im Kopf, Senden, Copyright */
  --text-counter: var(--color-white);              /* Kennzahlen auf #DEDCA2 */
  --text-muted: var(--color-text-muted);
  --text-404: var(--color-404-text);

  /* ---- Schrift ---- */
  --font-body: Arial, sans-serif;
  --font-display: 'Univers', Arial, sans-serif;
  --font-slab: 'Roboto Slab', Georgia, serif;
  --fs-body: 18px;
  --lh-body: 1.7;   /* 30,6 px */
  --lh-p: 28px;     /* Kit: p { line-height: 28px !important } */

  /* ---- Raster ---- */
  --container: 1140px;
  --container-narrow: 800px;
  --col-pad: 10px;          /* Elementor „column-gap-default“ */
  --widget-gap: 20px;       /* Abstand zwischen Widgets */

  /* ---- Kopf ---- */
  --kopf-hoehe: 150px;
  --kopf-hoehe-gescrollt: 71px;

  /* ---- Bewegung ---- */
  --motion-icon: 0.3s;
  --motion-link: 0.4s;
  --motion-card: 0.25s;
  /* Kurven und Dauern für bewegung.css (Emil Kowalski: starke ease-out für UI, Drawer-Kurve für Panels) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dauer-druck: 160ms;     /* Knopfdruck */
  --dauer-klein: 200ms;     /* Aufklapper, kleine Panels, Reiter */
  --dauer-panel: 420ms;     /* Menü-Panel, Cookie-Hinweis */
  --dauer-einblenden: 600ms; /* Inhalte beim Scrollen */
}

@media (max-width: 1024px) {
  :root { --container: 1024px; --kopf-hoehe: 110px; }
}
@media (max-width: 767px) {
  :root { --container: 767px; --kopf-hoehe: 70px; }
}

/* Barrierefreie Variante: nur Text- und Iconfarben dunkler, Flächen bleiben (docs/05, 2.7) */
html[data-kontrast='barrierefrei'] {
  --text-link: #7d7910;
  --text-link-on-light: #64610d;
  --text-olive: #7d7910;
  --text-grey: #767676;
  --text-grey-band: #5c5c5a; /* #767676 erreicht auf Band (ca. #EEEDCE) und #EEE nur 3,8:1; #5C5C5A 5,6:1 */
  --text-tab-inactive: #767676;
  --text-on-olive: var(--color-text);
  --text-counter: var(--color-text);
  --text-muted: #5c5c5a;
  --text-404: #767676;
}
