/* Version 5 – gemeinsame Basis für Entwurf A und B
   Farben nur aus dem Styleguide (markenbuero 2023), Schrift nur Cabin.
   ========================================================================== */

@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cabin-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/cabin-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --gruen: #6ea826;      /* Logofarbe – Linien, Marker, kein Text auf Hell */
  --gruen-700: #4a7a14;  /* grüner Text auf Hell */
  --gelb: #ffcc00;       /* Logofarbe – nur auf Dunkel */
  --braun: #4f2c1d;      /* Logofarbe – Überschriften, dunkle Flächen */
  --braun-900: #2e1a11;  /* tiefster Grund */
  --sand: #f3f3ed;       /* Hellgrau aus dem Styleguide */
  --text: #3f363b;       /* Graubraun aus dem Styleguide */
  --text-2: #6b6166;
  --linie: #e6e4da;
  --weiss: #ffffff;

  --schrift: 'Cabin', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --rand: clamp(1.25rem, 5vw, 4rem);
  --kopf-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--kopf-h); }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gruen-700); outline-offset: 3px; }

.sprung {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--braun); color: var(--weiss); padding: .6rem 1rem; border-radius: 999px;
}
.sprung:focus { top: 1rem; }

/* Kopf – Logo immer auf Weiß (Styleguide), Schutzraum steckt im PNG */
.kopf {
  height: var(--kopf-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 var(--rand);
  background: var(--weiss);
}
.kopf__logo { display: block; flex: none; }
.kopf__logo img { height: 66px; width: auto; }
.kopf__nav { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.kopf__nav a {
  text-decoration: none; font-size: .9375rem; letter-spacing: .01em; color: var(--text);
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.kopf__nav a:hover { border-bottom-color: var(--gruen); }
.kopf__menue {
  display: none; font: inherit; font-size: .9375rem; color: var(--text);
  background: none; border: 1px solid var(--linie); border-radius: 999px; padding: .45rem 1.1rem; cursor: pointer;
}
@media (max-width: 899px) {
  .kopf__menue { display: block; }
  .kopf__nav {
    display: none; position: fixed; inset: var(--kopf-h) 0 0 0; z-index: 40;
    flex-direction: column; gap: 0; padding: 1.5rem var(--rand); background: var(--weiss);
  }
  .kopf__nav a { font-size: 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--linie); }
  .kopf.ist-offen .kopf__nav { display: flex; }
}

/* Entwurfsmarke – nur für die Vorführung, vor dem Livegang entfernen */
.entwurf-marke {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  font-size: .75rem; letter-spacing: .04em; text-decoration: none;
  color: var(--weiss); background: var(--braun-900); border-radius: 999px; padding: .45rem .9rem;
  opacity: .85;
}
.entwurf-marke:hover { opacity: 1; }

/* Einblenden beim Scrollen */
[data-zeige] { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
[data-zeige].ist-da { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-zeige] { opacity: 1; transform: none; }
}
