/* ==========================================================================
   JF Just Foods GmbH — Design-System
   Handelshaus-Ästhetik: warmes Papier, tiefes Oliv, Messing als einziger Akzent.
   Autor: JP Webstudio
   ========================================================================== */

/* --- Schriften (lokal gehostet, DSGVO-konform: keine Google-Server-Verbindung) --- */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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: 'Geist';
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  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: 'Geist Mono';
  src: url('../fonts/geist-mono-latin-ext.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  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;
}

/* ==========================================================================
   1 — Tokens
   ========================================================================== */
:root {
  /* Palette als Rollen. Gruen traegt die Flaeche, Messing ist der einzige Akzent. */
  --grund-tief:   #0E1810;
  --grund-dunkel: #17251A;
  --grund:        #F4F5F2;
  --hell:         #FFFFFF;
  --akzent:       #B5873F;
  --akzent-hell:  #D8AC62;
  --akzent-tief:  #8A6229;

  --tinte:        #161C18;
  --tinte-leise:  #5C6660;
  --tinte-hell:   #E8EAE5;
  --tinte-hell-leise: #A2ABA4;

  --linie:        rgba(22, 28, 24, .13);
  --linie-fein:   rgba(22, 28, 24, .07);
  --linie-dunkel: rgba(232, 234, 229, .15);
  --linie-akzent: rgba(138, 98, 41, .38);

  /* Typo — eine moderne, neutrale Grotesk. Der Fallback beginnt bewusst mit
     Helvetica/Arial, damit die Seite auch vor dem Laden vertraut aussieht. */
  --display: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text:    'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:    'Geist Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

  /* Modulare Skala, Ratio 1.26, Basis 17px — bewusst gesetzt, kein Framework-Default */
  --fs-micro: .69rem;
  --fs-mini:  .795rem;
  --fs-klein: .885rem;
  --fs-basis: 1.0625rem;
  --fs-lead:  clamp(1.08rem, 1.0rem + .35vw, 1.3rem);
  --fs-h4:    clamp(1.12rem, 1.05rem + .3vw, 1.32rem);
  --fs-h3:    clamp(1.36rem, 1.2rem + .66vw, 1.85rem);
  --fs-h2:    clamp(1.95rem, 1.42rem + 2.0vw, 3.25rem);
  --fs-h1:    clamp(2.55rem, 1.5rem + 4.2vw, 5.4rem);

  /* Raum — Sections bekommen bewusst UNTERSCHIEDLICHE Werte, kein Einheits-Padding */
  --rand: clamp(1.25rem, 5vw, 6.5rem);
  --spalte-max: 1440px;

  /* Radien: abgestuft, nicht ein Wert fuer alles */
  --r-karte: 12px;
  --r-knopf: 8px;
  --r-klein: 5px;

  /* Tiefe: sehr zurueckhaltend, nur zur Trennung vom Grund */
  --schatten:      0 1px 2px rgba(22, 28, 24, .04), 0 4px 14px rgba(22, 28, 24, .045);
  --schatten-hoch: 0 2px 4px rgba(22, 28, 24, .05), 0 14px 34px rgba(22, 28, 24, .09);

  /* Motion-Signatur */
  --ease-out-expo:  cubic-bezier(.16, 1, .3, 1);
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-cine:      cubic-bezier(.83, 0, .17, 1);
}

/* Auf Telefonen sind 11 px Kleinschrift zu wenig — die Mikrograde wachsen. */
@media (max-width: 700px) {
  :root {
    --fs-micro: .75rem;
    --fs-mini:  .825rem;
    --fs-klein: .9rem;
  }
}

/* ==========================================================================
   2 — Reset & Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--text);
  font-size: var(--fs-basis);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.022em;
  text-wrap: balance;
  color: var(--tinte);
}
h1 { letter-spacing: -.035em; line-height: 1.02; }
h2 { letter-spacing: -.03em;  line-height: 1.06; }
/* Basisgroessen aus der eigenen Skala — nie den Browser-Default greifen lassen */
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { text-wrap: pretty; }

a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

/* De-KI-Pass: eigene Selektionsfarbe */
::selection { background: var(--akzent); color: var(--hell); }
::-moz-selection { background: var(--akzent); color: var(--hell); }

/* De-KI-Pass: eigener Fokus-Ring, markenkonform statt Browser-Default */
:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 3px;
  border-radius: 1px;
}
.auf-dunkel :focus-visible { outline-color: var(--akzent-hell); }

/* De-KI-Pass: dezente Scrollbar in der Palette */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: #E7E9E4; }
  ::-webkit-scrollbar-thumb { background: #B2BAB4; border: 3px solid #E7E9E4; }
  ::-webkit-scrollbar-thumb:hover { background: var(--akzent); }
}
html { scrollbar-color: #B2BAB4 #E7E9E4; scrollbar-width: thin; }

/* ==========================================================================
   3 — Layout-Primitive
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--spalte-max);
  margin-inline: auto;
  padding-inline: var(--rand);
  /* Im Querformat auf Geraeten mit Notch schiebt env() den Inhalt aus der
     Aussparung heraus; auf allen anderen Geraeten ist env() null. */
  padding-left: max(var(--rand), env(safe-area-inset-left));
  padding-right: max(var(--rand), env(safe-area-inset-right));
}
.fliesstext { max-width: 62ch; }         /* nie breiter — Lesbarkeit */
.fliesstext-schmal { max-width: 46ch; }

.auf-dunkel { background: var(--grund-tief); color: var(--tinte-hell); }
.auf-dunkel h1, .auf-dunkel h2, .auf-dunkel h3, .auf-dunkel h4 { color: var(--hell); }

.hairline { height: 1px; background: var(--linie); border: 0; }
.auf-dunkel .hairline { background: var(--linie-dunkel); }

/* Kapitel-Marke — reine Typografie, ohne vorangestellten Strich */
.kapitel {
  display: block;
  font-family: var(--text);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--akzent-tief);
  margin-bottom: 1.4rem;
}
.auf-dunkel .kapitel { color: var(--akzent-hell); }

.vor {                                    /* Vorspann unter einer Headline */
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--tinte-leise);
}
.auf-dunkel .vor { color: var(--tinte-hell-leise); }

/* ==========================================================================
   4 — Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--akzent);
  --btn-fg: #14200E;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.65rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-klein);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--btn-bg);
  border-radius: var(--r-knopf);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .28s var(--ease-out-quart), border-color .28s var(--ease-out-quart);
  min-height: 48px;
}
/* Microinteraction mit Absicht: der Grund wischt in Leserichtung durch, kein Scale */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grund-tief);
  transform: translateX(-101%);
  transition: transform .5s var(--ease-out-expo);
  z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(0); }
.btn:hover, .btn:focus-visible { color: var(--akzent-hell); border-color: var(--grund-tief); }
.btn .pfeil { transition: transform .4s var(--ease-out-expo); }
.btn:hover .pfeil { transform: translateX(4px); }

.btn--linie {
  --btn-bg: transparent;
  --btn-fg: var(--tinte);
  border-color: var(--linie);
}
.btn--linie::after { background: var(--tinte); }
.btn--linie:hover, .btn--linie:focus-visible { color: var(--grund); border-color: var(--tinte); }

.auf-dunkel .btn--linie { --btn-fg: var(--tinte-hell); border-color: var(--linie-dunkel); }
.auf-dunkel .btn--linie::after { background: var(--hell); }
.auf-dunkel .btn--linie:hover { color: var(--grund-tief); border-color: var(--hell); }

/* Textlink mit unterlaufender Linie, die aus dem Nichts wächst */
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* Touchziel nach WCAG 2.5.8 */
  gap: .5rem;
  font-size: var(--fs-klein);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--tinte);
  padding-block: .35rem;
  position: relative;
}
.textlink::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--akzent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out-expo);
}
.textlink:hover::after, .textlink:focus-visible::after { transform: scaleX(1); }
.textlink .pfeil { transition: transform .4s var(--ease-out-expo); }
.textlink:hover .pfeil { transform: translateX(4px); }
.auf-dunkel .textlink { color: var(--hell); }

/* ==========================================================================
   5 — Kopfzeile
   ========================================================================== */
.utility {
  background: var(--grund-tief);
  color: var(--tinte-hell-leise);
  font-size: var(--fs-micro);
  letter-spacing: .06em;
}
.utility__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
  padding-block: .35rem;
}
.utility__ort { display: flex; align-items: center; gap: .55rem; text-transform: uppercase; letter-spacing: .14em; }
.utility__ort::before { content: ''; width: 5px; height: 5px; background: var(--akzent); border-radius: 50%; flex: none; }
.utility__rechts { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.6rem); }
.utility a { text-decoration: none; transition: color .25s var(--ease-out-quart); }
.utility a:hover { color: var(--akzent-hell); }
.utility__trenner { width: 1px; height: 13px; background: var(--linie-dunkel); }

.sprache { display: flex; align-items: center; gap: .45rem; font-weight: 600; letter-spacing: .1em; }
.sprache a { display: inline-flex; align-items: center; gap: .4rem; }
/* Feine helle Kante, sonst verschwindet das Schwarz der deutschen Flagge
   im dunklen Grund der Leiste. */
.flagge {
  display: block;
  flex: none;
  border-radius: 1.5px;
  box-shadow: 0 0 0 .5px rgba(231, 234, 229, .45);
}
/* Schmale Displays: Ortszeile und E-Mail weichen, Telefon und Sprache bleiben */
@media (max-width: 720px) {
  .utility__ort { display: none; }
  .utility__zeile { justify-content: flex-end; }
}
@media (max-width: 470px) {
  .utility__rechts a[href^='mailto:'] { display: none; }
  .utility__rechts a[href^='mailto:'] + .utility__trenner { display: none; }
}
.sprache a[aria-current='true'] { color: var(--akzent-hell); }
.sprache span { opacity: .35; }

.kopf {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  border-bottom: 1px solid var(--linie-fein);
  transition: background .4s var(--ease-out-quart), border-color .4s var(--ease-out-quart);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .kopf { background: var(--grund); }
}
.kopf--fest { background: var(--grund); border-bottom-color: var(--linie); }
.kopf__zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}
.marke { display: inline-flex; align-items: center; flex: none; }
.marke img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 2.15rem); }
.nav a {
  font-size: var(--fs-klein);
  font-weight: 500;
  text-decoration: none;
  color: var(--tinte);
  position: relative;
  padding-block: .3rem;
  white-space: nowrap;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--akzent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out-expo);
}
.nav a:hover::after, .nav a:focus-visible::after,
.nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.kopf__cta { display: inline-flex; }
/* Der CTA in der Navigationsliste ist nur fuer das mobile Panel gedacht */
@media (min-width: 1081px) { .nav > .btn { display: none; } }

/* Burger */
.burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--linie); border-radius: var(--r-knopf);
  cursor: pointer;
}
.burger span { display: block; width: 19px; height: 1.5px; background: var(--tinte); position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 19px; height: 1.5px; background: var(--tinte);
  transition: transform .45s var(--ease-out-expo), top .2s;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .kopf__cta { display: none; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 400px);
    background: var(--grund-tief);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .35rem;
    /* Im Querformat ist das Panel niedriger als sein Inhalt — ohne diese
       beiden Zeilen bleibt der letzte Punkt (Anfrage stellen) unerreichbar. */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: max(5.5rem, env(safe-area-inset-top) + 5rem) var(--rand)
             max(2.5rem, env(safe-area-inset-bottom) + 1.5rem);
    padding-right: max(var(--rand), env(safe-area-inset-right));
    transform: translateX(101%);
    transition: transform .6s var(--ease-cine);
    z-index: 95;
  }
  /* Bei genug Platz sitzen die Punkte weiterhin optisch mittig */
  @media (min-height: 620px) {
    .nav { justify-content: center; padding-top: 2rem; padding-bottom: 2rem; }
  }
  .nav[data-offen='true'] { transform: translateX(0); }
  .nav a {
    color: var(--hell);
    font-family: var(--display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 500;
    letter-spacing: -.02em;
    padding-block: .5rem;
    width: 100%;
    border-bottom: 1px solid var(--linie-dunkel);
  }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1.5rem; }
}

/* ==========================================================================
   6 — Hero (asymmetrisch, links gesetzt — kein zentrierter Standard-Hero)
   ========================================================================== */
.hero { position: relative; isolation: isolate; background: var(--grund-tief); overflow: hidden; }
.hero__bild { position: absolute; inset: 0; z-index: -2; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 42%; }
/* Das Video liegt ueber dem Standbild und blendet erst auf, wenn es wirklich
   laeuft — so gibt es weder ein schwarzes Loch noch einen Sprung im Bild.
   Geladen wird es nur, wenn das Skript es freigibt (siehe site.js). */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out-quart);
}
.hero__video[data-laeuft='true'] { opacity: 1; }
/* Hochkant wird das 16:9-Video stark beschnitten — Bildmitte statt Randlage */
@media (max-width: 899px) { .hero__video, .hero__bild img { object-position: 50% 50%; } }
.hero__schleier {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(97deg, rgba(15,26,13,.94) 0%, rgba(15,26,13,.86) 32%, rgba(15,26,13,.42) 62%, rgba(15,26,13,.30) 100%),
    linear-gradient(to top, rgba(15,26,13,.72) 0%, transparent 42%);
}
.hero__inhalt {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 2rem;
  padding-block: clamp(5rem, 13vh, 9.5rem) clamp(2.5rem, 5vh, 4rem);
  min-height: clamp(560px, 82vh, 860px);
  /* svh = kleiner Viewport: auf iOS rechnet vh mit ausgeblendeter Adresszeile
     und schneidet den Hero ab, sobald sie sichtbar ist. */
  min-height: clamp(560px, 82svh, 860px);
}
.hero h1 {
  /* Groesser als die uebrige Skala: im Hero steht jetzt nur noch die
     Ueberschrift, sie darf die Flaeche tragen. */
  font-size: clamp(2.45rem, 1.05rem + 5.9vw, 6.4rem);
  font-weight: 600;
  color: var(--hell);
  letter-spacing: -.042em;
  line-height: 1.01;
  max-width: 24ch;
  margin-inline: auto;
}
.hero h1 em { font-style: normal; font-weight: 500; color: var(--akzent-hell); }
.hero__vor { margin-top: 1.9rem; color: #D3D8CA; max-width: 54ch; font-size: var(--fs-lead); }
.hero__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.6rem;
}

/* Pfeil nach unten — ersetzt den weggefallenen Vorspann als Hinweis,
   dass es weitergeht. */
.hero__pfeil {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: clamp(2rem, 5vh, 3.5rem) auto 0;
  color: var(--akzent-hell);
  border-radius: 50%;
  animation: pfeilwippen 2.8s var(--ease-out-quart) infinite;
  transition: color .3s var(--ease-out-quart), transform .3s var(--ease-out-expo);
}
.hero__pfeil:hover { color: var(--hell); transform: translateY(3px); }
@keyframes pfeilwippen {
  0%, 62%, 100% { transform: translateY(0); }
  32%           { transform: translateY(7px); }
}
@media (prefers-reduced-motion: reduce) { .hero__pfeil { animation: none; } }
.hero__aktionen .textlink { color: var(--hell); }

/* Faktenband — echte Zahlen statt Fake-Logo-Leiste */
.fakten {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--linie-dunkel);
  background: rgba(15, 26, 13, .55);
  backdrop-filter: blur(3px);
}
.fakten div {
  padding: 1.35rem clamp(1rem, 2.2vw, 1.9rem);
  border-left: 1px solid var(--linie-dunkel);
}
.fakten div:first-child { border-left: 0; }
.fakten dt {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tinte-hell-leise);
  margin-bottom: .5rem;
}
.fakten dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, .85rem + .7vw, 1.5rem);
  font-weight: 500;
  color: var(--hell);
  line-height: 1.15;
  letter-spacing: -.02em;
}
/* Telefone: der Hero darf nicht die ganze Bildschirmhoehe fressen — der
   naechste Abschnitt soll unten anschneiden. */
@media (max-width: 620px) {
  .hero__inhalt {
    padding-block: clamp(3.25rem, 9svh, 5rem) clamp(1.75rem, 4svh, 2.5rem);
    min-height: clamp(400px, 58svh, 560px);
  }
}
/* Flache Fenster (Telefon im Querformat): Hoehe ganz freigeben, sonst liegt
   der Handlungsaufruf weit unterhalb der Falz. */
@media (max-height: 560px) and (orientation: landscape) {
  .hero__inhalt {
    min-height: 0;
    padding-block: 1.15rem 1rem;
  }
  .hero .kapitel { margin-bottom: .5rem; }
  .hero h1 { font-size: clamp(1.85rem, 4.4vw, 2.7rem); line-height: 1.04; max-width: 22ch; }
  .hero__vor { margin-top: .8rem; font-size: var(--fs-mini); max-width: 62ch; }
  .hero__aktionen { margin-top: 1.1rem; }
  .fakten div { padding-block: .8rem; }
}

/* Sehr schmale Telefone (iPhone SE der ersten Generation und aehnliche):
   Ueberschrift und Vorspann eine Stufe kleiner, damit der Handlungsaufruf
   noch ueber der Falz liegt. */
@media (max-width: 380px) {
  .hero__inhalt { padding-block: 2.5rem 1.5rem; min-height: 0; }
  .hero .kapitel { margin-bottom: .8rem; }
  .hero h1 { font-size: 2.15rem; line-height: 1.06; }
  .hero__vor { margin-top: 1rem; font-size: var(--fs-klein); }
  .hero__aktionen { margin-top: 1.5rem; gap: .75rem 1rem; }
}
@media (max-width: 880px) {
  .hero__inhalt { grid-template-columns: 1fr; }
  .fakten { grid-template-columns: repeat(2, 1fr); }
  .fakten div:nth-child(3) { border-left: 0; }
  .fakten div:nth-child(-n+2) { border-bottom: 1px solid var(--linie-dunkel); }
}

/* ==========================================================================
   7 — Handelsmodell (asymmetrisch 1fr / 1.35fr, Bild überlappt die Kante)
   ========================================================================== */
.modell { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.modell__raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: stretch;
}
.bildrahmen { position: relative; }
.bildrahmen__bild { position: relative; line-height: 0; }
.bildrahmen img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-karte); }
.bildrahmen figcaption {
  margin-top: .85rem;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  color: var(--tinte-leise);
  text-transform: uppercase;
}
/* Kennzeichnung KI-erzeugter Abbildungen — Art. 50 KI-VO, ab 02.08.2026
   verbindlich. Bewusst am Bild statt nur im Impressum: der Hinweis soll dort
   stehen, wo die Aufnahme gesehen wird. Dezent, damit er die Bildwirkung nicht
   zerschlaegt, aber mit ausreichendem Kontrast (>= 4.5:1 auf dem Schleier). */
.kihinweis {
  position: absolute;
  z-index: 3;
  left: .7rem;
  bottom: .7rem;
  margin: 0;
  padding: .3rem .55rem;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.2;
  color: #F2EFEA;
  background: rgba(18, 20, 22, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 3px;
  pointer-events: none;
}
/* Im Kopfbereich sitzt der Hinweis unten rechts, auf der Fluchtlinie des
   Inhalts — nicht oben, wo er mit der Navigation um Aufmerksamkeit ringt. */
.kihinweis--hero {
  left: auto;
  right: max(var(--rand), env(safe-area-inset-right));
  bottom: 0;
  background: rgba(18, 20, 22, .38);
}
@media (max-width: 700px) {
  /* Schriftgroesse bleibt bei 11 px — die Kennzeichnung muss auch auf dem
     Telefon ohne Zoom lesbar sein. Nur die Abstaende werden enger. */
  .kihinweis { padding: .28rem .5rem; }
  .kihinweis:not(.kihinweis--hero) { left: .5rem; bottom: .5rem; }
}

/* Siegel als Marke oben links — dieselbe Sprache wie die Kategoriemarken
   auf den Produktkarten, statt eines zweiten, andersartigen Bausteins. */
.siegel {
  position: absolute;
  z-index: 2;
  top: .9rem;
  left: .9rem;
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  border-radius: var(--r-knopf);
  background: var(--grund-tief);
  padding: .55rem .85rem;
}
.siegel strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  color: var(--akzent-hell);
  letter-spacing: -.02em;
}
.siegel span {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--tinte-hell-leise);
}

/* Handelsmodell: das Bild trägt die Spalte über die volle Zeilenhöhe, damit
   links unten kein toter Raum stehen bleibt. */
.bildrahmen--voll { display: flex; flex-direction: column; }
.bildrahmen--voll .bildrahmen__bild {
  flex: 1;
  min-height: 0;
  border-radius: var(--r-karte);
  overflow: hidden;
}
/* <picture> muss die Hoehe mitnehmen, sonst laeuft height:100% am Bild ins Leere */
.bildrahmen--voll picture { display: block; height: 100%; }
.bildrahmen--voll img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 45% 58%;
  border-radius: 0;
}

/* Vorteile als Definitionsliste mit Haarlinien — kein 3-Card-Grid */
.vorteile { margin-top: 2.75rem; border-top: 1px solid var(--linie); }
.vorteile > div {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0 1.15rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--linie-fein);
  align-items: start;
}
.vorteile .nr {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--akzent-tief);
  padding-top: .35rem;
  letter-spacing: .06em;
}
.vorteile dt { font-weight: 600; font-size: var(--fs-basis); letter-spacing: -.006em; }
.vorteile dd { margin: .2rem 0 0; color: var(--tinte-leise); font-size: var(--fs-klein); line-height: 1.55; max-width: 52ch; }
@media (max-width: 880px) {
  .modell__raster { grid-template-columns: 1fr; }
  /* Einspaltig gibt es nichts zu füllen — zurück zum ruhigen Hochformat */
  .bildrahmen--voll img { height: auto; aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   8 — Leistungen (dunkles Band, versetzte Nummernliste — kein Card-Grid)
   ========================================================================== */
.leistungen { padding-block: clamp(4rem, 8vw, 6.5rem); }
.leistungen__kopf {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.leistungen h2 { font-size: var(--fs-h2); }
.leistung {
  display: grid;
  grid-template-columns: clamp(3rem, 7vw, 6.5rem) minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.6rem) 0;
  border-top: 1px solid var(--linie-dunkel);
  align-items: start;
  transition: background .5s var(--ease-out-quart);
}
.leistung:last-child { border-bottom: 1px solid var(--linie-dunkel); }
.leistung:hover { background: rgba(231, 228, 216, .035); }
.leistung__nr {
  font-family: var(--mono);
  font-size: var(--fs-klein);
  color: var(--akzent-hell);
  letter-spacing: .08em;
  padding-top: .45rem;
}
.leistung h3 { font-size: var(--fs-h3); font-weight: 500; }
.leistung__text { color: var(--tinte-hell-leise); font-size: var(--fs-klein); line-height: 1.65; max-width: 56ch; }
.leistung__liste { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .45rem; }
.leistung__liste li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--fs-klein);
  color: var(--tinte-hell);
}
.leistung__liste li::before {
  content: '';
  position: absolute;
  left: 0; top: .72em;
  width: 8px; height: 1px;
  background: var(--akzent);
}
@media (max-width: 880px) {
  .leistungen__kopf { grid-template-columns: 1fr; }
  .leistung { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .6rem 1rem; }
  .leistung > div { grid-column: 2; }
  .leistung h3 { grid-column: 2; }
}

/* ==========================================================================
   9 — Sortiment / Spezifikationsblätter  (Key-Differentiator)
   ========================================================================== */
.sortiment { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.sortiment__kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.75rem clamp(2rem, 6vw, 5rem);
  margin-bottom: 2.25rem;
}
.sortiment h2 { font-size: var(--fs-h2); max-width: 19ch; }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter button {
  padding: .58rem 1.15rem;
  font-size: var(--fs-mini);
  font-weight: 600;
  letter-spacing: .04em;
  background: transparent;
  color: var(--tinte-leise);
  border: 1px solid var(--linie);
  border-radius: 999px;          /* bewusst: NUR die Filter sind Pillen */
  cursor: pointer;
  transition: color .3s var(--ease-out-quart), border-color .3s var(--ease-out-quart), background .3s var(--ease-out-quart);
  min-height: 44px;
}
.filter button:hover { border-color: var(--akzent); color: var(--tinte); }
.filter button[aria-pressed='true'] {
  background: var(--grund-tief);
  border-color: var(--grund-tief);
  color: var(--akzent-hell);
}

.artikel-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: clamp(.85rem, 1.6vw, 1.35rem);
}
.artikel {
  background: var(--hell);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--linie-fein);
  border-radius: var(--r-karte);
  overflow: hidden;
  transition: transform .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-quart), border-color .5s var(--ease-out-quart);
}
.artikel[hidden] { display: none; }
.artikel:hover {
  transform: translateY(-3px);
  box-shadow: var(--schatten-hoch);
  border-color: rgba(22, 28, 24, .1);
}
.artikel__bild { position: relative; overflow: hidden; background: #E7E9E4; }
.artikel__bild img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out-expo), filter .6s var(--ease-out-quart);
  filter: saturate(.94);
}
.artikel:hover .artikel__bild img { transform: scale(1.035); filter: saturate(1.02); }
.artikel__kat {
  position: absolute;
  z-index: 2;            /* das Bild traegt ein filter: und wuerde die Marke sonst ueberdecken */
  top: .7rem; left: .7rem;
  background: var(--grund-tief);
  color: var(--akzent-hell);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .58rem;
  border-radius: var(--r-klein);
}
.artikel__koerper { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.artikel h3 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.02em; }
.artikel__unter { margin-top: .3rem; font-size: var(--fs-mini); color: var(--tinte-leise); }

/* Das Spezifikationsblatt — Warenbegleitpapier-Optik */
.spec { margin-top: .95rem; border-top: 1px solid var(--linie-fein); font-size: var(--fs-mini); }
.spec > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .42rem 0;
  border-bottom: 1px solid var(--linie-fein);
}
.spec dt { color: var(--tinte-leise); font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .07em; text-transform: uppercase; padding-top: .12em; }
.spec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.spec .ja { color: var(--akzent-tief); font-weight: 600; }
.artikel__fuss { margin-top: auto; padding-top: 1rem; }

/* --- Telefon: Sortiment als wischbare Reihe ------------------------------- */
@media (max-width: 700px) {
  .artikel-raster {
    display: flex;
    grid-template-columns: none;
    gap: .85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    /* Aus der Textspalte ausbrechen, damit die Reihe bis an den Bildschirmrand
       laeuft — die erste Karte bleibt trotzdem auf der Fluchtlinie des Textes. */
    margin-left: calc(-1 * max(var(--rand), env(safe-area-inset-left)));
    margin-right: calc(-1 * max(var(--rand), env(safe-area-inset-right)));
    padding-left: max(var(--rand), env(safe-area-inset-left));
    padding-right: max(var(--rand), env(safe-area-inset-right));
    scroll-padding-left: max(var(--rand), env(safe-area-inset-left));
    /* Luft fuer den Schatten, sonst entsteht senkrechtes Scrollen im Kasten */
    padding-block: 4px 14px;
    /* Bildlaufleiste ausblenden — die angeschnittene naechste Karte zeigt
       deutlich genug, dass es weitergeht. */
    scrollbar-width: none;
  }
  .artikel-raster::-webkit-scrollbar { display: none; }

  .artikel {
    flex: 0 0 78%;
    max-width: 19rem;
    scroll-snap-align: start;
  }
  /* Tastaturbedienung: der Kasten bekommt einen sichtbaren Fokusrahmen */
  .artikel-raster:focus-visible { outline: 2px solid var(--akzent); outline-offset: 4px; }
}

/* Hinweis auf KI-erzeugte Abbildungen — steht bewusst direkt bei den Bildern
   und nicht nur im Impressum: dort, wo ein Einkäufer sie zum ersten Mal sieht. */
.bildhinweis {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  max-width: 62ch;
  margin-top: .9rem;
  font-size: var(--fs-mini);
  line-height: 1.55;
  color: var(--tinte-leise);
}
.bildhinweis::before {
  content: '';
  flex: none;
  width: 3px;
  align-self: stretch;
  background: var(--linie-akzent);
  border-radius: 2px;
}

/* ==========================================================================
   10 — Herkunft (Warenstrom)
   ========================================================================== */
.herkunft { padding-block: clamp(4rem, 8vw, 7rem); }
.herkunft__kopf { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.herkunft h2 { font-size: var(--fs-h2); }
.karte-huelle { position: relative; }
.karte {
  width: 100%;
  height: auto;
  display: block;
}
.karte .laender path {
  fill: rgba(231, 228, 216, .085);
  fill-rule: evenodd;          /* Binnengewaesser sind Loecher im Polygon, keine Flaechen */
  stroke: rgba(231, 228, 216, .17);
  stroke-width: .55;
  vector-effect: non-scaling-stroke;
}
/* Warenstrom: breiter, weicher Hof + darüber die laufende Strichlinie.
   Der Leuchteffekt entsteht durch zwei gestapelte Pfade, nicht durch einen
   Filter — das rendert überall gleich und kostet keine Rechenzeit. */
.karte .route-hof {
  fill: none;
  stroke: var(--akzent);
  stroke-width: 4.5;
  stroke-linecap: round;
  opacity: .1;
  transition: opacity .5s var(--ease-out-quart), stroke-width .5s var(--ease-out-quart);
}
.karte .route {
  fill: none;
  stroke: var(--akzent-hell);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: .62;
  animation: fliessen 1.9s linear infinite;
}
/* Die drei Ströme laufen bewusst unterschiedlich schnell — gleiche Taktung
   auf allen dreien sieht mechanisch aus. */
.karte .strom:nth-child(2) .route { animation-duration: 2.3s; }
.karte .strom:nth-child(3) .route { animation-duration: 2.8s; }
@keyframes fliessen { to { stroke-dashoffset: -12; } }   /* -(5 + 7): läuft Richtung Berlin */

/* Wanderndes Licht auf der Strecke, ebenfalls aus zwei Kreisen statt Filter */
.karte .laeufer-hof  { fill: var(--akzent); opacity: .16; }
.karte .laeufer-kern { fill: #F6E3BE; }
.karte .laeufer      { transition: opacity .5s var(--ease-out-quart); }

.karte .knoten { fill: var(--akzent-hell); }
.karte .knoten-ring { fill: none; stroke: var(--akzent); stroke-width: 1; opacity: .5; }
.karte .beschriftung {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .1em;
  fill: var(--tinte-hell);
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .karte .beschriftung { display: none; }
  .karte .knoten { r: 7; }
  .karte .knoten[data-ort] { r: 6; }
  .karte .route { stroke-width: 2.2; opacity: .8; }
  .karte .route-hof { stroke-width: 7; opacity: .13; }
  .karte .laeufer-kern { r: 2.8; }
  .karte .laeufer-hof { r: 8; }
  .karte .knoten-ring { display: none; }
}
.herkunft__liste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(.85rem, 1.6vw, 1.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.herkunft__land {
  background: rgba(232, 234, 229, .035);
  border: 1px solid var(--linie-dunkel);
  border-radius: var(--r-karte);
  padding: 1.5rem clamp(1.1rem, 2.5vw, 1.75rem);
  cursor: default;
  transition: background .45s var(--ease-out-quart);
}
.herkunft__land:hover, .herkunft__land:focus-within { background: rgba(232, 234, 229, .07); }
.herkunft__land h3 {
  font-size: var(--fs-h4);
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.herkunft__land h3 .code { font-family: var(--mono); font-size: var(--fs-micro); color: var(--akzent-hell); letter-spacing: .1em; }
.herkunft__land ul { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .35rem; }
.herkunft__land li { font-size: var(--fs-mini); color: var(--tinte-hell-leise); position: relative; padding-left: 1.1rem; }
.herkunft__land li::before { content: ''; position: absolute; left: 0; top: .68em; width: 6px; height: 1px; background: var(--akzent); }

/* ==========================================================================
   11 — Private Label
   ========================================================================== */
.label { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.label__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.label h2 { font-size: var(--fs-h2); max-width: 15ch; }
.label__punkte { list-style: none; padding: 0; margin: 2.25rem 0 0; }
.label__punkte li {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--linie);
  align-items: baseline;
}
.label__punkte li:last-child { border-bottom: 1px solid var(--linie); }
.label__punkte .nr { font-family: var(--mono); font-size: var(--fs-micro); color: var(--akzent-tief); letter-spacing: .06em; }
.label__punkte strong { font-weight: 600; display: block; }
.label__punkte span { display: block; color: var(--tinte-leise); font-size: var(--fs-klein); margin-top: .12rem; }
@media (max-width: 880px) { .label__raster { grid-template-columns: 1fr; } }

/* ==========================================================================
   12 — Warum (schmal gesetzter Moment)
   ========================================================================== */
.warum { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.warum__raster {
  --schiene: clamp(2rem, 3.2vw, 2.75rem);
  position: relative;
  margin-top: clamp(1.9rem, 3.2vw, 2.75rem);   /* sonst laeuft die Schiene durch die Ueberschrift */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 216px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: var(--schiene);
}

/* Die Schiene: laufende Strichelung von der Anfrage zur Lieferung */
.warum__raster::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-image: repeating-linear-gradient(90deg, var(--akzent) 0 6px, transparent 6px 15px);
  opacity: .38;
}

/* Die Fuellung laeuft beim Hereinscrollen einmal von links nach rechts durch */
.warum__raster::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--akzent);
  box-shadow: 0 0 6px rgba(181, 135, 63, .45);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s var(--ease-out-quart);
  pointer-events: none;
}
.warum__raster.ist-sichtbar::after { transform: scaleX(1); }

/* Knotenpunkt je Schritt, sitzt auf der Schiene */
.warum__punkt { position: relative; }
.warum__punkt::before {
  content: '';
  position: absolute;
  top: calc(var(--schiene) * -1 - 4px);
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grund);
  box-shadow: 0 0 0 1.5px var(--akzent);
  transition: background .4s var(--ease-out-quart), box-shadow .4s var(--ease-out-quart), transform .45s var(--ease-out-expo);
}
.warum__raster.ist-sichtbar .warum__punkt::before {
  background: var(--akzent);
  box-shadow: 0 0 0 1.5px var(--akzent), 0 0 0 5px rgba(181, 135, 63, .14);
}
/* Verzoegerungen so gesetzt, dass jeder Knoten genau dann zuendet,
   wenn die Fuellung ihn erreicht. */
.warum__punkt:nth-child(1)::before { transition-delay: .12s; }
.warum__punkt:nth-child(2)::before { transition-delay: .52s; }
.warum__punkt:nth-child(3)::before { transition-delay: .94s; }
.warum__punkt:nth-child(4)::before { transition-delay: 1.34s; }

.warum__punkt:hover::before {
  background: var(--akzent);
  box-shadow: 0 0 0 1.5px var(--akzent), 0 0 0 7px rgba(181, 135, 63, .2);
  transform: scale(1.18);
  transition-delay: 0s;
}
.warum__punkt h3 svg { transition: transform .45s var(--ease-out-expo); }
.warum__punkt:hover h3 svg { transform: translateX(3px); }
.warum__punkt h3 { transition: color .35s var(--ease-out-quart); }

/* Einspaltig wird aus der Schiene eine senkrechte Zeitachse */
@media (max-width: 700px) {
  .warum__raster { padding-top: 0; padding-left: 1.9rem; }
  .warum__raster::before {
    top: .5rem;
    bottom: .5rem;
    left: 4px;
    right: auto;
    width: 1px;
    height: auto;
    background-image: repeating-linear-gradient(180deg, var(--akzent) 0 6px, transparent 6px 15px);
  }
  .warum__raster::after {
    top: .5rem;
    bottom: .5rem;
    left: 4px;
    right: auto;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: center top;
  }
  .warum__raster.ist-sichtbar::after { transform: scaleY(1); }
  .warum__punkt::before { top: .5rem; left: -1.9rem; }
}
.warum__punkt h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -.018em;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.warum__punkt h3 svg { flex: none; color: var(--akzent-tief); }
.warum__punkt p { font-size: var(--fs-klein); color: var(--tinte-leise); line-height: 1.6; max-width: 34ch; }

/* ==========================================================================
   13 — Kontakt
   ========================================================================== */
.kontakt { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.kontakt__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.kontakt h2 { font-size: var(--fs-h2); max-width: 14ch; }

.feld { position: relative; margin-bottom: .5rem; }
.feld label {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tinte-hell-leise);
  margin-bottom: .45rem;
}
.feld input, .feld textarea {
  width: 100%;
  padding: .82rem .95rem;
  background: rgba(231, 228, 216, .05);
  border: 1px solid var(--linie-dunkel);
  border-radius: var(--r-knopf);
  color: var(--hell);
  font-size: var(--fs-klein);
  transition: border-color .3s var(--ease-out-quart), background .3s var(--ease-out-quart);
  min-height: 48px;
}
.feld textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.feld input::placeholder, .feld textarea::placeholder { color: rgba(168, 176, 156, .55); }
.feld input:hover, .feld textarea:hover { border-color: rgba(231, 228, 216, .3); }
.feld input:focus, .feld textarea:focus {
  outline: none;
  border-color: var(--akzent);
  background: rgba(231, 228, 216, .08);
}
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
/* Felder ohne Fehlerzeile brauchen den Ausgleich wieder */
.feld:not(:has(.fehler)) { margin-bottom: 1.6rem; }
@media (max-width: 560px) { .feld-paar { grid-template-columns: 1fr; gap: 0; } }

/* Echte Fehlerzustände — nicht nur Browser-Default */
.feld input[aria-invalid='true'], .feld textarea[aria-invalid='true'] { border-color: #C8624A; }
/* Die Fehlerzeile belegt ihren Platz IMMER und wird nur ein- und ausgeblendet.
   Vorher wurde sie eingeblendet und schob den Absende-Knopf im selben Moment
   nach unten — zwischen Mousedown und Mouseup. Der Klick landete dann neben
   dem Knopf und das Formular wurde nicht abgeschickt. */
.feld .fehler {
  display: block;
  min-height: 1.25em;
  margin-top: .35rem;
  font-size: var(--fs-mini);
  color: #E08B72;
  opacity: 0;
  transition: opacity .25s var(--ease-out-quart);
}
.feld input[aria-invalid='true'] ~ .fehler,
.feld textarea[aria-invalid='true'] ~ .fehler { opacity: 1; }

.zustimmung { display: flex; gap: .8rem; align-items: flex-start; margin: 1.4rem 0 1.75rem; }
/* Eigene Checkbox — der weisse Browser-Default sitzt auf dunklem Grund wie ein Fremdkoerper */
.zustimmung input {
  flex: none;
  width: 24px; height: 24px;
  margin-top: .05rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(231, 228, 216, .06);
  border: 1px solid var(--linie-dunkel);
  border-radius: var(--r-klein);
  display: grid;
  place-content: center;
  transition: background .25s var(--ease-out-quart), border-color .25s var(--ease-out-quart);
}
.zustimmung input:hover { border-color: rgba(231, 228, 216, .4); }
.zustimmung input:checked {
  background-color: var(--akzent);
  border-color: var(--akzent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4 6.3 11.6 13 4.9' fill='none' stroke='%2314200E' stroke-width='2.1' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}
.zustimmung.ist-fehler input { border-color: #C8624A; }
.zustimmung label { font-size: var(--fs-mini); color: var(--tinte-hell-leise); line-height: 1.55; cursor: pointer; }
.zustimmung a { color: var(--akzent-hell); text-underline-offset: 3px; }
.zustimmung.ist-fehler label { color: #E08B72; }

.formular-hinweis { margin-top: 1.1rem; font-size: var(--fs-mini); color: var(--tinte-hell-leise); }
.formular-meldung {
  display: none;
  margin-top: 1.25rem;
  padding: .95rem 1.1rem;
  border-left: 2px solid var(--akzent);
  border-radius: 0 var(--r-knopf) var(--r-knopf) 0;
  background: rgba(181, 135, 63, .1);
  font-size: var(--fs-klein);
  color: var(--hell);
}
.formular-meldung[data-sichtbar='true'] { display: block; }
.formular-meldung[data-art='fehler'] { border-left-color: #C8624A; background: rgba(200, 98, 74, .12); }

/* Kontaktkarte */
.kontaktkarte { border: 1px solid var(--linie-dunkel); border-radius: var(--r-karte); overflow: hidden; }
.kontaktkarte > div { padding: 1.3rem clamp(1.15rem, 2.5vw, 1.6rem); border-bottom: 1px solid var(--linie-dunkel); }
.kontaktkarte > div:last-child { border-bottom: 0; }
.kontaktkarte dt {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tinte-hell-leise);
  margin-bottom: .4rem;
}
.kontaktkarte dd { margin: 0; font-size: var(--fs-basis); }
.kontaktkarte a {
  display: inline-block;
  padding-block: .55rem;          /* Touchziel statt 21 px hoher Textzeile */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out-quart), color .3s var(--ease-out-quart);
}
.kontaktkarte a:hover { color: var(--akzent-hell); border-bottom-color: var(--linie-akzent); }
@media (max-width: 880px) { .kontakt__raster { grid-template-columns: 1fr; } }

/* ==========================================================================
   14 — Fußzeile
   ========================================================================== */
.fuss { background: var(--grund-tief); color: var(--tinte-hell-leise); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.fuss__oben {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.fuss__marke img { height: 58px; width: auto; }
.fuss__marke p { margin-top: 1.2rem; font-size: var(--fs-klein); max-width: 38ch; line-height: 1.6; }
.fuss h4, .fuss .fuss-titel {
  font-family: var(--text);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--akzent-hell);
  margin-bottom: 1.1rem;
  letter-spacing: .16em;
}
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.fuss a { text-decoration: none; font-size: var(--fs-klein); transition: color .3s var(--ease-out-quart); }
.fuss a:hover { color: var(--akzent-hell); }
.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--linie-dunkel);
  font-size: var(--fs-mini);
}
.jp-signatur { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; opacity: .78; transition: opacity .3s var(--ease-out-quart); }
.jp-signatur:hover { opacity: 1; }
.jp-monogramm {
  display: inline-grid;
  place-items: center;
  width: 23px; height: 23px;
  border: 1px solid var(--akzent);
  color: var(--akzent-hell);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}
@media (max-width: 760px) { .fuss__oben { grid-template-columns: 1fr 1fr; } .fuss__marke { grid-column: 1 / -1; } }

/* ==========================================================================
   15 — Rechtstexte
   ========================================================================== */
.recht { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); }
.recht__inhalt { max-width: 68ch; }
.recht h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); margin-bottom: 2rem; }
.recht h2 {
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
}
.recht h3 { font-size: var(--fs-h4); font-weight: 600; margin-top: 1.75rem; }
.recht p, .recht li { font-size: var(--fs-klein); line-height: 1.72; color: var(--tinte-leise); }
.recht p { margin-top: .9rem; }
.recht ul { margin: .9rem 0 0; padding-left: 1.15rem; display: grid; gap: .4rem; }
.recht a { color: var(--akzent-tief); text-underline-offset: 3px; }
.recht strong { color: var(--tinte); font-weight: 600; }
.daten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.75rem;
  border-top: 1px solid var(--linie);
}
.daten > div { padding: 1.05rem 0; border-bottom: 1px solid var(--linie-fein); }
.daten dt {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--tinte-leise);
  margin-bottom: .3rem;
}
.daten dd { margin: 0; font-size: var(--fs-klein); font-variant-numeric: tabular-nums; }
.hinweis {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 2px solid var(--akzent);
  border-radius: 0 var(--r-knopf) var(--r-knopf) 0;
  background: rgba(181, 135, 63, .075);
  font-size: var(--fs-mini);
  color: var(--tinte-leise);
}

.zurueck { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-size: var(--fs-mini); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-leise); text-decoration: none; }
.zurueck:hover { color: var(--akzent-tief); }

/* ==========================================================================
   16 — Reveal (choreografiert, nicht pauschal auf jedem Element)
   ========================================================================== */
/* Nur wenn JS laeuft, wird ueberhaupt etwas versteckt — sonst ist der Inhalt
   ohne JavaScript unsichtbar. Die Klasse .js setzt ein Inline-Skript im <head>. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
  transition-delay: var(--verzug, 0ms);
}
.js [data-reveal='seite'] { transform: translateX(-22px); }
.js [data-reveal='schiene'] { opacity: 1; transform: none; transition: none; }
.js [data-reveal].ist-sichtbar { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Skip-Link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--grund-tief);
  color: var(--hell);
  padding: .9rem 1.35rem;
  font-size: var(--fs-klein);
  text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Print */
@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .utility, .kopf, .burger, .hero__bild, .hero__schleier, .filter, .fuss__oben { display: none !important; }
  body { background: #fff; color: #000; }
  .auf-dunkel { background: #fff !important; color: #000 !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: .75em; }
}

/* --- Karte: aktiver Zustand beim Hovern eines Herkunftslandes ----------- */
.karte .route { transition: opacity .5s var(--ease-out-quart), stroke-width .5s var(--ease-out-quart); }
/* Beim Überfahren eines Herkunftslandes: heller, kräftiger, schnellerer Fluss —
   die Strichelung bleibt, sonst ginge die Bewegung verloren. */
.karte .route.ist-aktiv { opacity: 1; stroke-width: 1.9; animation-duration: .9s; }
.karte .strom:has(.route.ist-aktiv) .route-hof { opacity: .26; stroke-width: 7; }
.karte .strom:has(.route.ist-aktiv) .laeufer-hof { opacity: .3; }
.karte .knoten { transition: r .45s var(--ease-out-expo); }
.karte .knoten.ist-aktiv { r: 6; }
.karte .knoten-ring { animation: puls 4.5s var(--ease-out-quart) infinite; transform-origin: 216px 126px; }
@keyframes puls { 0%, 70%, 100% { opacity: .5; transform: scale(1); } 35% { opacity: .12; transform: scale(1.55); } }
@media (prefers-reduced-motion: reduce) {
  .karte .knoten-ring { animation: none; }
  .karte .route { animation: none; opacity: .5; }
  .karte .laeufer { display: none; }   /* SMIL wird zusätzlich per JS angehalten */
}
.herkunft__land { transition: background .45s var(--ease-out-quart), border-color .45s var(--ease-out-quart); }
.herkunft__land:hover { border-color: var(--linie-akzent); }

/* ==========================================================================
   17 — Hilfsklassen
   Ersetzen die frueheren style="…"-Attribute. Damit kommt die Seite ohne
   'unsafe-inline' in der Content-Security-Policy aus.
   ========================================================================== */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.v80  { --verzug:  80ms; }
.v90  { --verzug:  90ms; }
.v120 { --verzug: 120ms; }
.v140 { --verzug: 140ms; }
.v160 { --verzug: 160ms; }
.v180 { --verzug: 180ms; }
.v240 { --verzug: 240ms; }

.mt-s  { margin-top: 1rem; }
.mt-m  { margin-top: 1.25rem; }
.mt-l  { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }
.mb-l  { margin-bottom: 2.25rem; }

.klein       { font-size: var(--fs-klein); }
.leise-klein { color: var(--tinte-hell-leise); font-size: var(--fs-klein); }
.status-zeile{ color: var(--tinte-leise); margin-top: 1rem; }
.titel-klein { font-size: var(--fs-h3); font-weight: 500; max-width: 22ch; }
.aktionsreihe{ margin-top: 2rem; display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
