/* CTB Projektpartner · Grundlagen: Schriften, Farben, Satz, Raster.
   Richtung „Überlauf“: technisches Normblatt, Rotstift als einziger Akzent,
   genau ein dunkles Band. Schwesterfirma von CTB Dach (gleiche Textschrift, gleicher Fotofilter). */

@font-face { font-family: "D-DIN Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/D-DINCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "D-DIN"; font-weight: 400; font-display: swap; src: url("../fonts/D-DIN.woff2") format("woff2"); }
@font-face { font-family: "D-DIN"; font-weight: 700; font-display: swap; src: url("../fonts/D-DIN-Bold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/IBMPlexSans-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexSans-italic.woff2") format("woff2"); }

:root {
  --grund: #f5f6f3;
  --grund-2: #eceeea;
  --blatt: #ffffff;
  --tusche: #161a1d;
  --graphit: #4d555a;
  --graphit-2: #6b7377;
  --linie: #c9ced0;
  --linie-feld: #8c9497;
  --rot: #b8321f;
  --rot-dunkel: #962715;
  --rot-hell: #f6dcd6;
  --band: #1d2629;
  --band-text: #e6e9e6;
  --band-text-2: #a9b3b4;
  --band-linie: #3b474a;
  --band-rot: var(--rot);   /* CI-Rot auch auf dem dunklen Band */
  --frei: #2f6b4f;
  --foto: saturate(0.82) contrast(1.03);

  --titel: "D-DIN Condensed", "Archivo Narrow", "Arial Narrow", sans-serif;
  --din: "D-DIN", "Arial", sans-serif;
  --text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --h1: clamp(3.5rem, 2rem + 6.2vw, 8.6rem);
  --h2: clamp(2.6rem, 1.6rem + 3.6vw, 5rem);
  --h3: clamp(1.5rem, 1.25rem + 0.8vw, 1.9rem);
  --gross: clamp(1.18rem, 1.08rem + 0.35vw, 1.35rem);
  --normal: 1.0625rem;
  --klein: 0.875rem;

  --max: 1320px;
  --rand: clamp(16px, 4vw, 56px);
  --abschnitt: clamp(5rem, 3rem + 7vw, 10rem);
  --radius: 2px;
  --kopf-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 16px); }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tusche);
  font: 400 var(--normal)/1.6 var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }

h1, .h1 { font: 700 var(--h1)/0.88 var(--titel); letter-spacing: -0.005em; }
h2, .h2 { font: 700 var(--h2)/0.92 var(--titel); letter-spacing: -0.003em; }
h3, .h3 { font: 700 var(--h3)/1.05 var(--titel); letter-spacing: 0.005em; }

.marke-rot { color: var(--rot); }
.zahl { font-family: var(--din); font-variant-numeric: tabular-nums; }

.huelle { width: min(100% - 2 * var(--rand), var(--max)); margin-inline: auto; }
.abschnitt { padding-block: var(--abschnitt); }
.abschnitt + .abschnitt { border-top: 1px solid var(--linie); }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 400 0.8125rem/1.3 var(--din);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphit);
}
.stuetz { font-size: var(--gross); line-height: 1.5; color: #2b3134; max-width: 36rem; }
.leise { color: var(--graphit); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 24px;
  font: 600 1rem/1 var(--text); text-decoration: none;
  border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.knopf span[aria-hidden] { transition: transform .25s var(--ease); }
.knopf:hover span[aria-hidden] { transform: translateX(4px); }
.knopf:active { transform: translateY(1px); }
.knopf-voll { background: var(--rot); color: #fff; }
.knopf-voll:hover { background: var(--rot-dunkel); }
.knopf-tusche { background: var(--tusche); color: #fff; }
.knopf-tusche:hover { background: #000; }
.knopf-linie { background: transparent; border-color: var(--tusche); color: var(--tusche); }
.knopf-linie:hover { background: var(--tusche); color: #fff; }
.textlink { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.textlink:hover { color: var(--rot); }

:focus-visible { outline: 2.5px solid var(--rot); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.foto { filter: var(--foto); background: var(--grund-2); object-fit: cover; width: 100%; height: 100%; }
figure { margin: 0; }
figcaption { margin-top: 10px; font: 400 0.8125rem/1.4 var(--din); letter-spacing: 0.04em; color: var(--graphit); }

/* Einblenden beim Scrollen: nur wenn Bewegung erlaubt ist */
@media (prefers-reduced-motion: no-preference) {
  .js .zeigen { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .zeigen.ist-da { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
