/* ==========================================================================
   Freudensprung – Hundepension am Niederrhein
   Designrichtung „Niederrhein-Horizont“: hoher Himmel, tiefe Horizontlinie,
   Weiden, Wiese, das weiße Wohnhaus.
   ========================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google; Lizenz: SIL OFL, siehe assets/fonts) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-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;
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/karla-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: "Karla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/karla-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;
}

/* ---------- Tokens ---------- */
:root {
  /* Farben */
  --himmel: #e7eae0;       /* Salbei: Seitenhintergrund, Flächen, Infokästen */
  --himmel-hoch: #d6dfdc;  /* oberer Himmel im Hero */
  --weide: #8c9a7e;        /* Flächen, Linien (nicht für Text) */
  --weide-hell: #c9d1bf;
  --wiese: #3f6a5a;        /* Primärfarbe = Tanne aus dem Logo */
  --wiese-tief: #2c4d41;
  --bernstein: #f0c34a;    /* Bernstein: nur als Textmarker (.marker), 1–2 Wörter pro Abschnitt */
  --torf: #24211c;         /* Tiefbraun: Überschriften, Schrift, Footer */
  --torf-leise: #4c473f;   /* Text sekundär: Fließtext */
  --nebel: #fffdf8;        /* helle Flächen = Offwhite aus dem Logo */
  --linie: #c9cec4;

  --focus: #24211c;
  --fehler: #9b1c1c;

  /* Schrift */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Typo-Skala 1.25 auf 1.0625rem (17px) */
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  --fs-xl: clamp(1.95rem, 1.4rem + 2vw, 2.75rem);
  --fs-xxl: clamp(2.4rem, 1.4rem + 4.2vw, 4.75rem);

  /* Abstände (spacious) */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: clamp(4.5rem, 3rem + 6vw, 8rem);

  --gutter: clamp(1rem, 4vw, 4rem);
  --max: 84rem; /* ein Container für alle Abschnitte */
  --measure: 36rem;

  --radius-s: 4px;
  --radius-m: 10px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Basis ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem; /* = Höhe des Menüs */
}

body {
  margin: 0;
  background: var(--himmel);
  color: var(--torf-leise);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--torf);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-xxl); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); line-height: 1.25; }

p { margin: 0 0 var(--space-4); max-width: var(--measure); text-wrap: pretty; }

a { color: var(--wiese); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Wörter mit Bindestrich (z. B. E-Mail) nicht am Zeilenende trennen */
.nobr { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--wiese);
  color: #fff;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: var(--space-3); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Platzhalter für noch fehlende Stammdaten */
.tbd {
  background: rgb(76 71 63 / 0.1);
  color: inherit;
  padding: 0 0.25em;
  border-radius: 2px;
  outline: 1px dashed rgb(76 71 63 / 0.45);
  outline-offset: -1px;
  font-style: normal;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--wiese);
  border-radius: 999px;
  background: var(--wiese);
  color: #fff;
  font: 600 var(--fs-base)/1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:hover { background: var(--wiese-tief); border-color: var(--wiese-tief); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--wiese); }
/* Textmarker in Bernstein: die einzige Verwendung von Bernstein, 1–2 Wörter pro Abschnitt (nicht in Hero und Drohnenflug) */
.marker {
  background: linear-gradient(to top, transparent 0.08em, var(--bernstein) 0.08em, var(--bernstein) 0.42em, transparent 0.42em);
  padding-inline: 0.06em;
  white-space: nowrap; /* markierte Wörter nie trennen */
  hyphens: manual;
  -webkit-hyphens: manual;
}
.btn--ghost:hover { background: var(--wiese); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--himmel-hoch) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--linie); }
.site-header--solid { background: var(--himmel); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 44px; /* Tippfläche, auch wenn das Logo auf dem Handy kleiner ist */
}
.brand img { height: 44px; width: auto; }
@media (max-width: 400px) { .brand img { height: 36px; } }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--wiese);
  cursor: pointer;
}
.nav-toggle svg { margin: auto; width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  display: inline-block;
  padding: 0.6rem 0.1rem;
  color: var(--torf);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--wiese); border-bottom-color: var(--wiese); }
.site-nav .btn { min-height: 44px; padding: 0.55rem 1.15rem; }

@media (max-width: 1023px) { /* 7 Menüpunkte passen erst ab 1024 px in eine Zeile */
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    background: var(--himmel);
    border-bottom: 1px solid var(--linie);
    box-shadow: 0 18px 30px -24px rgb(30 38 33 / 0.5);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) var(--gutter) var(--space-5);
  }
  .site-nav a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--linie);
    font-size: var(--fs-md);
  }
  .site-nav a:not(.btn):hover,
  .site-nav a[aria-current="page"] { border-bottom-color: var(--linie); color: var(--wiese); }
  .site-nav li:last-child { margin-top: var(--space-5); }
  .site-nav .btn { width: 100%; min-height: 52px; }
}

/* ---------- Hero: Himmel und Horizont ---------- */
.hero {
  position: relative;
  background: linear-gradient(to bottom, var(--himmel-hoch) 0%, var(--himmel) 72%);
  padding-top: clamp(3rem, 8vw, 7rem);
  overflow: hidden;
}

.hero__text {
  position: relative;
  z-index: 2;
  max-width: 58rem;
}
.hero__text h1 { margin-bottom: var(--space-5); }
.hero__lead {
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--torf);
  max-width: 34rem;
  margin-bottom: var(--space-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Horizont-Silhouette: Kopfweiden, Wohnhaus, Wiese */
.horizon {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  height: clamp(90px, 13vw, 170px);
}
.horizon svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* Grundstücksplan */
.estate {
  background: var(--wiese);
  color: var(--nebel);
  padding-block: var(--space-7) var(--space-8);
}
/* Plan und Kennzahlen bleiben als Einheit zentriert; der Plan wächst bis 86 % der Fensterhöhe */
.estate__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 5rem);
}
.estate__plan { position: relative; margin: 0; flex: 0 1 calc(86svh * 1.258); min-width: 0; }
.estate__plan svg { width: 100%; height: auto; overflow: visible; }
.estate__side { flex: 0 0 clamp(19rem, 27vw, 24rem); order: -1; } /* Kennzahlen links neben dem Plan */

/* Kennzahlen: große Zahl links, Bezeichnung rechts, jede auf einer eigenen hellen Fläche */
.estate__stats { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.stat {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-4);
  border-radius: 14px;
  background: rgb(255 253 248 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 253 248 / 0.06);
}
.stat__num {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 2.6rem + 1.6vw, 4.4rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat__pre {
  position: absolute; /* schwebt über der Ziffer, die Ziffer selbst bleibt mittig */
  left: 0;
  right: 0;
  bottom: calc(100% + 0.15rem);
  font-family: var(--font-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #eef3f0; /* Kontrast ≥ 4.5:1 auf der Kachel */
}
.stat__label {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.15;
  color: #fff;
}
.stat__desc { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: #eef3f0; }
.stat__num--infinity span[aria-hidden] { display: inline-block; position: relative; top: 0.06em; font-size: 1.3em; line-height: 0.7; } /* ∞ optisch so groß wie die Ziffern */

.plan-label {
  font-family: var(--font-text);
  font-size: 25px;
  font-weight: 500;
  fill: #fffdf8;
  paint-order: stroke;
  stroke: #37594b;
  stroke-width: 6px;
  stroke-linejoin: round;
}
.plan-label--road { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; fill: #24211c; stroke: none; }
.plan-label--small { font-size: 20px; font-weight: 400; font-style: italic; fill: #dfe7e2; stroke: none; }
.plan-label--dark { fill: var(--torf); stroke: none; }
.plan-label--plain { stroke: none; }
.plan-label--narrow { display: none; }
@media (max-width: 600px) {
  .plan-label { font-size: 46px; stroke-width: 9px; }
  .plan-label--wide,
  .plan-label--road { display: none; }
  .plan-label--narrow { display: inline; }
}


@media (max-width: 860px) {
  .estate__grid { flex-direction: column; align-items: stretch; gap: var(--space-6); }
  .estate__plan, .estate__side { flex: none; }
  .estate__side { order: 0; } /* Handy: Plan zuerst, Kennzahlen darunter */
}

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--space-9); }
.section--nebel { background: var(--nebel); }

/* Desktop: Abschnitt füllt genau den sichtbaren Bereich unter dem Menü, Inhalt mittig.
   Zwei Klassen, damit abschnittseigene Abstände (z. B. .leap) überschrieben werden. */
@media (min-width: 961px) {
  .section.section--screen {
    min-height: calc(100svh - 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(2rem, 5vh, 3.5rem);
  }
}
.section--weide { background: var(--weide-hell); }

.section__head { max-width: 40rem; margin-bottom: var(--space-7); }
.section__head p { font-size: var(--fs-md); line-height: 1.5; color: var(--torf-leise); }

/* Text + Bild, asymmetrisch */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
  align-items: center;
}
.split__text { grid-column: 1 / span 6; }
.split__media { grid-column: 8 / span 5; }
.split--flip .split__text { grid-column: 7 / span 6; grid-row: 1; }
.split--flip .split__media { grid-column: 1 / span 5; grid-row: 1; }

@media (max-width: 860px) {
  .split__text,
  .split__media,
  .split--flip .split__text,
  .split--flip .split__media { grid-column: 1 / -1; grid-row: auto; }
}

/* Foto-Platzhalter mit festem Seitenverhältnis (kein Layout-Shift) */
.ph {
  margin: 0;
}
.ph__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(47 74 58 / 0.05) 14px 15px),
    linear-gradient(to bottom, #d9e1df, #c3cebf);
  display: grid;
  place-items: center;
  color: var(--torf-leise);
}
.ph__frame svg { width: 40px; height: 40px; opacity: 0.6; }
.ph--wide .ph__frame { aspect-ratio: 16 / 9; }
.ph--square .ph__frame { aspect-ratio: 1; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph figcaption {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--torf-leise);
}

/* Video im Seitenverhältnis 4:5, stumm in Schleife, mit Pause-Knopf */
.clip { margin: 0; }
.clip__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #c3cebf;
}
.clip__frame video { width: 100%; height: 100%; object-fit: cover; }
.clip__toggle,
.flight__toggle {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(36 33 28 / 0.55);
  color: var(--nebel);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 180ms var(--ease);
}
.clip__toggle:hover,
.flight__toggle:hover { background: rgb(36 33 28 / 0.8); }
.clip__toggle svg,
.flight__toggle svg { width: 18px; height: 18px; }
.icon-play { display: none; }
.is-paused .icon-pause { display: none; }
.is-paused .icon-play { display: block; }

/* Merkmalsliste: schlicht, mit Linien statt Karten */
.points {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}
.points li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--linie);
}
.points svg { width: 24px; height: 24px; margin-top: 2px; color: var(--wiese); }
.points strong { display: block; color: var(--wiese); font-weight: 600; }

/* Gelände: breites Bild + drei Spalten */
.grounds__media { margin-bottom: var(--space-7); }
.grounds__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.grounds__cols h3 { margin-bottom: var(--space-3); }
.grounds__cols p { margin: 0; color: var(--torf); }
@media (max-width: 860px) { .grounds__cols { grid-template-columns: 1fr; gap: var(--space-5); } }


/* Ablauf: echte Reihenfolge, deshalb nummeriert */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: var(--space-6);
  border-top: 2px solid var(--wiese);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -1.05rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--wiese);
  color: #fff;
  font: 700 1rem/1 var(--font-display);
}
.steps h3 { margin-bottom: var(--space-3); }
.steps p { margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-7); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Tagesablauf als Zeitleiste */
.day {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
}
.day li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-5);
  padding-block: var(--space-4);
  border-top: 1px solid var(--linie);
}
.day li:last-child { border-bottom: 1px solid var(--linie); }
.day time {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--wiese);
  font-variant-numeric: tabular-nums;
}
.day p { margin: 0; }
.day strong { color: var(--wiese); font-weight: 600; }

/* Über uns */
.about__sign {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--wiese);
  margin-top: var(--space-5);
}

/* ---------- Anfrage ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; gap: var(--space-7); } }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-5);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.field label,
.field legend {
  font-weight: 600;
  color: var(--torf);
}
.field .optional { font-weight: 400; color: var(--torf-leise); }
.field .hint { font-size: var(--fs-sm); color: var(--torf-leise); margin: 0; }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #9aa79f;
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--torf);
  font: 400 1rem/1.4 var(--font-text); /* ≥16px verhindert Zoom auf iOS */
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--wiese); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--wiese);
  box-shadow: 0 0 0 3px rgb(63 106 90 / 0.3);
}
.field [aria-invalid="true"] { border-color: var(--fehler); }
.field__error {
  display: none;
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fehler);
}
.field__error.is-visible { display: block; }

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-weight: 400 !important;
  cursor: pointer;
}
.check input {
  width: 22px; height: 22px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--wiese);
}

.form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
/* Zähler − 1 + (Preisrechner, Anfrage-Chat) */
.stepper { display: flex; align-items: center; gap: var(--space-2); }
.stepper button {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--wiese);
  border-radius: 50%;
  background: #fff;
  color: var(--wiese);
  font: 700 1.25rem/1 var(--font-text);
  cursor: pointer;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 1.5rem; text-align: center; font-weight: 700; font-size: var(--fs-md); color: var(--torf); }

/* Honeypot gegen Spam-Bots: für Menschen unsichtbar, nicht per Tab erreichbar */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 0; font-weight: 500; }
.form__status.is-success { color: var(--wiese); }
.form__status.is-error { color: var(--fehler); }
.form__status a { color: inherit; font-weight: 700; }

.contact__aside h3 { margin-bottom: var(--space-4); }
.contact__list { margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.contact__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid var(--linie);
}
.contact__list li:last-child { border-bottom: 1px solid var(--linie); }
.contact__list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--wiese); }
.contact__list a { color: var(--torf); }

/* ---------- Unterseiten ---------- */
.page-head {
  background: linear-gradient(to bottom, var(--himmel-hoch), var(--himmel));
  padding-block: clamp(3rem, 7vw, 6rem) var(--space-7);
  border-bottom: 1px solid var(--linie);
}
.page-head p { font-size: var(--fs-md); line-height: 1.5; color: var(--torf-leise); }
.page-head h1 { hyphens: manual; -webkit-hyphens: manual; } /* nur an den &shy;-Stellen trennen */
.page-head + .section { padding-top: var(--space-8); }

.prose { max-width: 44rem; }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-5); }
.prose ul { padding-left: 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: var(--space-2); }
/* Rechtstexte der IT-Recht Kanzlei (rechtstexte.js) */
.prose.legal > h2:first-child { margin-top: 0; }
/* Lange Adressen und die Ausfüll-Linien im Muster-Widerrufsformular sprengen sonst auf dem Handy die Breite */
.legal { overflow-wrap: break-word; }
.legal__credit { margin: var(--space-6) 0 0; font-size: var(--fs-sm); color: var(--torf-leise); }
.legal__credit a { color: inherit; }
/* Übergangsseite /vertrag/widerruf/ (uebergang/vertrag-widerruf.html) */
.widerruf-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Rechtstexte: Inhaltsverzeichnis + aufklappbare Abschnitte (von rechtstexte.js aufgebaut) */
.legal-layout { display: grid; gap: var(--space-6); }
.legal-layout__main { min-width: 0; }
@media (min-width: 961px) {
  .legal-layout { grid-template-columns: 15rem minmax(0, 44rem); gap: var(--space-8); align-items: start; }
  .legal-toc { position: sticky; top: calc(4.5rem + var(--space-5)); max-height: calc(100vh - 4.5rem - var(--space-6)); overflow: auto; }
  .legal-toc__box > summary { pointer-events: none; list-style: none; }
  .legal-toc__box > summary::-webkit-details-marker { display: none; }
  .legal-toc__box > summary::after { display: none; }
}
.legal-toc__box {
  background: var(--nebel);
  border: 1px solid var(--linie);
  border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-5);
}
.legal-toc__box > summary {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-text); font-weight: 700; font-size: var(--fs-sm);
  color: var(--torf); /* keine Versal-Labels (CLAUDE.md) */
  cursor: pointer; list-style: none; min-height: 44px;
}
.legal-toc__box > summary::-webkit-details-marker { display: none; }
.legal-toc__box > summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--wiese); }
.legal-toc__box[open] > summary::after { content: "–"; }
.legal-toc ol { list-style: none; margin: var(--space-2) 0 var(--space-4); padding: 0; }
.legal-toc li { margin: 0; }
.legal-toc a {
  display: block; padding: 0.4rem 0 0.4rem var(--space-3);
  border-left: 2px solid var(--linie);
  font-size: var(--fs-sm); line-height: 1.35; color: var(--torf-leise); text-decoration: none;
}
.legal-toc a:hover { color: var(--wiese); border-left-color: var(--weide); }
.legal-toc a.is-active { color: var(--wiese); border-left-color: var(--wiese); font-weight: 600; }
.legal-toc__all {
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--wiese);
  background: none; border: 1px solid var(--wiese); border-radius: 80px;
  padding: 0.5rem 1rem; min-height: 40px; cursor: pointer;
}
.legal-toc__all:hover { background: var(--wiese); color: #fff; }

.legal-sec { border-bottom: 1px solid var(--linie); scroll-margin-top: calc(4.5rem + var(--space-4)); }
.legal-sec:first-of-type { border-top: 1px solid var(--linie); }
.legal-sec--toc { display: none; }
.legal-sec > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) 0; cursor: pointer; list-style: none;
}
.legal-sec > summary::-webkit-details-marker { display: none; }
.legal-sec > summary h2 { font-size: var(--fs-md); line-height: 1.3; margin: 0; }
.legal-sec > summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem;
  border-right: 2px solid var(--wiese); border-bottom: 2px solid var(--wiese);
  transform: rotate(45deg) translateY(-2px); transition: transform 0.2s var(--ease);
}
.legal-sec[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.legal-sec > summary:hover h2 { color: var(--wiese); }
.legal-sec__body { padding-bottom: var(--space-5); }
.legal-sec__body > :first-child { margin-top: 0; }
.legal-sec__body h3 { font-size: var(--fs-base); }

/* Muster-Widerrufsformular als Formularkarte, Unterstrich-Ketten als Linien */
.legal-sec--form .legal-sec__body {
  background: var(--nebel); border: 1px solid var(--linie); border-radius: var(--radius-m);
  padding: var(--space-5); margin-bottom: var(--space-5);
}
.legal-blank {
  display: inline-block; vertical-align: baseline;
  width: 9rem; max-width: 100%; height: 1.1em;
  border-bottom: 1px solid var(--torf-leise);
}
.legal-line { margin-top: var(--space-5); }
.legal-line > .legal-blank:first-child { display: block; width: 100%; height: 1.6rem; margin-bottom: 0.2rem; }
.legal-line { font-size: var(--fs-sm); color: var(--torf-leise); }

.notice {
  max-width: 44rem;
  margin-bottom: var(--space-7);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--wiese);
  background: var(--nebel);
}
.notice p { margin: 0; }

/* Preistabelle */
.prices {
  width: 100%;
  max-width: 50rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.prices caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--torf);
  padding-bottom: var(--space-4);
}
.prices th,
.prices td {
  padding: var(--space-4) var(--space-3) var(--space-4) 0;
  border-top: 1px solid var(--linie);
  text-align: left;
  vertical-align: top;
}
.prices thead th {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--torf-leise);
  border-top: 0;
  padding-block: 0 var(--space-3);
}
.prices tbody th { font-weight: 600; color: var(--torf); }
.prices tbody th span { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--torf-leise); }
.prices td:last-child,
.prices thead th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.prices td:last-child { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--wiese); }
.prices tbody tr:last-child > * { border-bottom: 1px solid var(--linie); }
.prices + .prices { margin-top: var(--space-8); }

.included__title { font-size: var(--fs-lg); margin-top: var(--space-8); }
.included {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-6);
  max-width: 50rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.included li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid var(--linie);
}
.included svg { width: 20px; height: 20px; margin-top: 3px; color: var(--wiese); }
@media (max-width: 640px) { .included { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 48rem; }
.faq h2 { font-size: var(--fs-lg); margin: var(--space-7) 0 var(--space-3); }
.faq h2:first-child { margin-top: 0; }
.faq details { border-top: 1px solid var(--linie); }
.faq details:last-of-type { border-bottom: 1px solid var(--linie); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding-block: var(--space-4);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.35;
  color: var(--wiese);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  flex: none;
  width: 22px; height: 22px;
  color: var(--wiese);
  transition: transform 220ms var(--ease);
}
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding-bottom: var(--space-5); }
.faq details > div p:last-child { margin-bottom: 0; }

.cta-band {
  background: var(--wiese);
  color: var(--nebel);
  padding-block: var(--space-8);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dfe7e2; }
.cta-band .btn { background: var(--nebel); color: var(--wiese); border-color: var(--nebel); }
.cta-band .btn:hover { background: #fff; border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--torf);
  color: #dfe7e2;
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--fs-sm);
}
.site-footer a { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr));
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgb(247 249 248 / 0.15);
}
.footer__grid h2 {
  font-size: var(--fs-md);
  color: #fff;
  margin-bottom: var(--space-3);
}
.footer__grid ul { margin: 0; padding: 0; list-style: none; }
.footer__grid li { padding-block: 0.3rem; }
.site-footer .brand { margin-bottom: var(--space-5); }
.site-footer .brand img { height: 48px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
}
.footer__bottom p { margin: 0; max-width: none; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
