/* =====================================================================
   Rimeh Drive - Stylesheet
   Gestaltungsrichtung "Logistik-Editorial":
   Anthrazit auf warmem Off-White, feine 1px-Linien statt Schatten,
   Sektionsnummern im Satzspiegel, asymmetrisches Raster.
   Eine Akzentfarbe, sparsam eingesetzt.
   ===================================================================== */

/* ----------------------------------------------------------- Schriften */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/newsreader-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/static/fonts/archivo-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* -------------------------------------------------------------- Tokens */

:root {
  /* Farbe. Der Akzent ist bewusst die einzige bunte Variable -
     sobald ein Logo vorliegt, wird genau diese Zeile getauscht. */
  --ink: #0b0b0c;
  --ink-soft: #4a525b;
  /* Auch kleine Metadaten bleiben auf allen hellen Flaechen WCAG-AA-lesbar. */
  --ink-faint: #646b73;
  --paper: #f4f2ed;
  --paper-pure: #ffffff;
  --paper-sunk: #efece6;
  --rule: #ded9d1;
  --rule-strong: #c6bfb4;
  --accent: #d6a62e;
  --accent-hover: #c99a27;
  --accent-deep: #8e650c;
  /* Markengold ist eine starke Flaechenfarbe, aber zu hell fuer kleinen Text. */
  --accent-text: #6f4c08;
  --accent-ink: #0b0b0c;
  --accent-wash: #f3d477;
  --focus: #6f4c08;
  --wa: #25d366;
  --error: #9b2226;
  --ok: #2f6b4f;          /* nur fuer Bestaetigungen */

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Vertikaler Rhythmus */
  --space-section: clamp(4.5rem, 9vw, 9rem);
  --space-block: clamp(2rem, 4vw, 3.5rem);

  --measure: 64ch;
  --container: 1280px;
  --pad-inline: clamp(1.25rem, 5vw, 4.5rem);

  --header-h: 4.5rem;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* --------------------------------------------------------------- Reset */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anker landen unter der fixierten Kopfleiste. */
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  line-height: 1.62;
  /* Deutsche Komposita wie "Fahrzeugüberführung" sind die häufigste Ursache
     für horizontales Scrollen. Der harte Umbruch gilt immer, die
     Silbentrennung nur dort, wo die Spalte wirklich schmal wird - auf dem
     Desktop macht sie den Satz nur unruhig (siehe Media Query unten). */
  overflow-wrap: break-word;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Silbentrennung erst bei schmalen Spalten. lang="de" steht im html-Tag,
   der Browser trennt damit nach deutschen Regeln. */
@media (max-width: 47.99rem) {
  p,
  li,
  dd {
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

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

img {
  height: auto;
}

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

/* Ein einziger, klar sichtbarer Fokusring fuer die gesamte Seite. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------------------------------------------------------- Typografie */

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.021em;
  line-height: 1.04;
  text-wrap: balance;
  /* Überschriften werden nicht getrennt - dort ist die Silbentrennung
     unruhig. Stattdessen darf im Notfall hart umbrochen werden. */
  hyphens: manual;
  overflow-wrap: break-word;
}

h1,
.h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
}

h2,
.h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3,
.h3 {
  font-size: clamp(1.3125rem, 1.4vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color 0.15s var(--ease), color 0.15s var(--ease);
}

a:hover {
  text-decoration-color: var(--accent);
  color: var(--accent-text);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-text);
  line-height: 1.4;
}

.lede {
  color: var(--ink-soft);
  max-width: var(--measure);
}

.lede + .lede {
  margin-top: 0.9em;
}

.note {
  font-size: 0.9375rem;
  color: var(--ink-faint);
  max-width: 52ch;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: var(--paper);
}

/* ---------------------------------------------------------- Grundraster */

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

.section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--rule);
}

.section--flush {
  border-top: 0;
}

/* Sektionskopf: Nummer links im Satzspiegel, Ueberschrift daneben.
   Auf schmalen Viewports fallen beide untereinander. */
.section-head {
  display: grid;
  gap: 1.25rem 3rem;
  margin-bottom: var(--space-block);
}

/* Hauptsektionen tragen die groesste Ziffer der Seite. Unterpunkte
   (Ablaufschritte, Leistungsliste) sind konsequent kleiner - die
   Gliederungsebene muss man an der Groesse ablesen koennen. */
.section-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 400;
  color: var(--ink-faint);
  letter-spacing: 0.005em;
  line-height: 1;
  padding-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.section-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-title > * + * {
  margin-top: 1.25rem;
}

.section-title .lede {
  margin-top: 1.5rem;
}

@media (min-width: 62rem) {
  .section-head {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }
  .section-num {
    /* Oben ausrichten, sonst zentriert die Ziffer sich in der gesamten
       Höhe des Sektionskopfs und rutscht unter die Überschrift. */
    align-self: start;
    padding-top: 0.35rem;
  }
  .section-num::after {
    display: none;
  }
}

/* Zeilenweise gesetzte Ueberschriften: der Umbruch ist Gestaltung,
   nicht Zufall. Siehe wireframe-kuerzer.txt. */
.headline span {
  display: block;
}

.headline span + span {
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- Buttons */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  /* Beschriftung und Pfeil gehoeren zusammen und duerfen nie umbrechen. */
  white-space: nowrap;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    transform 0.16s var(--ease);
}

.btn:hover {
  --btn-bg: var(--accent-hover);
  --btn-fg: var(--accent-ink);
  color: var(--btn-fg);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn .arrow {
  transition: transform 0.16s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: var(--space-block);
}

.cta-row .note {
  margin: 0;
}

/* --------------------------------------------------------- Kopfbereich */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, #0b0b0c 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-header[data-scrolled="true"] {
  border-bottom-color: #343538;
  background: color-mix(in srgb, #0b0b0c 98%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.72rem;
  color: #f4f2ed;
  text-decoration: none;
}

.brand-lockup:hover {
  color: inherit;
}

.brand-lockup__mark {
  flex: 0 0 auto;
  width: 3rem;
  height: 2.75rem;
  object-fit: contain;
}

.brand-lockup__name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  color: #f4f2ed;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.8vw, 1.42rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-lockup__name em {
  color: #d6a62e;
  font-style: normal;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  list-style: none;
  padding: 0;
}

.site-nav a {
  font-size: 0.9375rem;
  text-decoration: none;
  color: #a7a8ab;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: #f4f2ed;
  border-bottom-color: var(--accent);
}

/* Im Kopfbereich kompakter, damit die Leiste ihre Hoehe behaelt. */
.header-cta {
  display: none;
  min-height: 2.75rem;
  padding-inline: 1.15rem;
  font-size: 0.9375rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid #56575a;
  border-radius: 2px;
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  color: #f4f2ed;
  cursor: pointer;
}

.nav-toggle .bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle .bars i {
  display: block;
  height: 1px;
  background: #f4f2ed;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobilmenue */
.mobile-nav {
  display: none;
  border-top: 1px solid #343538;
  background: #0b0b0c;
}

.mobile-nav[data-open="true"] {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 0.5rem 0 1.25rem;
  margin: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.0625rem;
  text-decoration: none;
  color: #f4f2ed;
  border-bottom: 1px solid #343538;
}

.mobile-nav .btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  margin: 1rem 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-bottom-color: var(--accent);
  font-size: 1rem;
  white-space: nowrap;
  color: var(--accent-ink);
}

.mobile-nav .btn:hover {
  color: var(--accent-ink);
}

.mobile-nav .btn .arrow {
  flex: 0 0 auto;
}

@media (min-width: 62rem) {
  .site-nav {
    display: block;
  }
  /* inline-flex, nicht block - sonst verliert der Button sein Innenlayout
     und die Beschriftung bricht vom Pfeil ab. */
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* ----------------------------------------------------------------- Hero */

.hero {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: var(--space-section);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.hero-copy > * + * {
  margin-top: 1.5rem;
}

.hero h1 {
  margin-top: 1rem;
}

.hero .lede {
  max-width: 54ch;
}

.hero-audience {
  max-width: 54ch;
  padding: 1rem 1.125rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background: var(--paper-sunk);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(3rem, 5vw, 5rem);
  }
}

/* Bildplatzhalter. Seitenverhaeltnis steht fest, damit spaeter nur die
   Datei getauscht werden muss und nichts springt. */
.media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.media--wide {
  aspect-ratio: 3 / 2;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--photo::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--paper) 68%, transparent);
  pointer-events: none;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px dashed var(--rule-strong);
  pointer-events: none;
}

.media-placeholder .tag {
  position: relative;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 0.3rem 0.6rem;
}

.media-placeholder p {
  position: relative;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* -------------------------------------------------------- Vertrauensleiste */

.trustbar {
  border-block: 1px solid var(--rule);
  background: var(--paper-sunk);
}

.trustbar ul {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trustbar li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--rule);
}

.trustbar li:last-child {
  border-bottom: 0;
}

.trustbar svg {
  flex: none;
  color: var(--accent-text);
}

@media (min-width: 48rem) {
  .trustbar ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
  .trustbar li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (min-width: 68rem) {
  .trustbar ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .trustbar li {
    border-bottom: 0;
    padding-block: 1.5rem;
  }
}

/* --------------------------------------------------- Problem und Loesung */

.prose {
  max-width: var(--measure);
}

.prose p + p {
  margin-top: 1.1em;
}

.prose p:last-of-type {
  font-weight: 500;
}

.problem-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .problem-grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }
}

/* Abgesetzte Infobox, bewusst als Block auf dunklem Grund. */
.infobox {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.25rem);
}

.infobox h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.infobox ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.infobox li {
  position: relative;
  padding-left: 1.5rem;
  padding-block: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

.infobox li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 0.6rem;
  height: 1px;
  background: var(--accent);
}

.infobox .note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------- Ablauf */

/* Nummerierte Vertikale mit durchgehender Linie. */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  gap: 0.75rem 2rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}

.step:last-child {
  border-bottom: 1px solid var(--rule);
}

/* Eine Ebene unter der Sektionsnummer: kleiner, dafuer im Akzent. */
.step-num {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}

.step-body > * + * {
  margin-top: 0.9rem;
}

.step-body p {
  color: var(--ink-soft);
  max-width: 58ch;
}

@media (min-width: 48rem) {
  .step {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }
  .step-num {
    padding-top: 0.35rem;
  }
}

/* ------------------------------------------------------------ Kartenraster */

.cards {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.cards--2 {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(0rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.card h3 svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent-text);
}

.card p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 46ch;
}

.card p + p {
  margin-top: -0.1rem;
}

@media (min-width: 48rem) {
  .cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card {
    padding-inline: clamp(1.5rem, 2.5vw, 2.5rem);
  }
  .card:nth-child(odd) {
    padding-left: 0;
  }
}

/* --------------------------------------------------------- Versicherung */

.insurance {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 62rem) {
  .insurance {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.highlight {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  padding-left: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent-text) 35%, var(--accent-wash));
}

.highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-text);
}

.highlight p {
  font-size: 1rem;
  color: color-mix(in srgb, var(--ink) 88%, var(--accent));
}

.highlight .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

/* ------------------------------------------------------- Anwendungsfaelle */

.usecases {
  display: grid;
  gap: 0;
}

.usecase {
  display: grid;
  gap: 0.9rem 3rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}

.usecase:last-child {
  border-bottom: 1px solid var(--rule);
}

.usecase-body > * + * {
  margin-top: 0.85rem;
}

.usecase-body p {
  color: var(--ink-soft);
  max-width: 60ch;
}

@media (min-width: 56rem) {
  .usecase {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    align-items: start;
  }
  .usecase h3 {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* ----------------------------------------------------- Leistungsumfang */

.section--ink {
  background: var(--ink);
  color: var(--paper);
  border-top-color: var(--ink);
  --focus: var(--accent-wash);
}

.section--ink .eyebrow {
  color: var(--accent);
}

.section--ink .section-num {
  color: rgba(255, 255, 255, 0.55);
}

.section--ink .section-num::after,
.section--ink .checklist li {
  background: rgba(255, 255, 255, 0.16);
}

.section--ink .lede {
  color: rgba(255, 255, 255, 0.72);
}

.section--ink .headline span + span {
  color: rgba(255, 255, 255, 0.6);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: transparent;
  counter-reset: item;
}

.checklist li {
  background: transparent !important;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1rem;
  line-height: 1.4;
}

.checklist li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--accent) 70%, #ffffff);
  letter-spacing: 0.06em;
}

@media (min-width: 48rem) {
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }
}

/* ------------------------------------------------------------------ FAQ */

/* Native details/summary: null JavaScript, von Haus aus zugaenglich. */
.faq {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.3vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
  transition: color 0.15s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent-text);
}

.faq .marker {
  flex: none;
  position: relative;
  width: 1rem;
  height: 1rem;
  margin-top: 0.35rem;
}

.faq .marker::before,
.faq .marker::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.faq .marker::before {
  left: 0;
  top: calc(50% - 0.5px);
  width: 100%;
  height: 1px;
}

.faq .marker::after {
  top: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  height: 100%;
}

.faq details[open] .marker::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-answer {
  padding-bottom: 1.6rem;
  max-width: 62ch;
}

.faq-answer p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.faq-answer p + p {
  margin-top: 0.85rem;
}

/* -------------------------------------------------------------- Formular */

.form-wrap {
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.field label .opt {
  color: var(--ink-faint);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.55;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink-faint);
}

.field input:focus,
.field textarea:focus {
  background: var(--paper-pure);
  border-color: var(--focus);
  outline-offset: 1px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.field .help {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.field .err {
  font-size: 0.8125rem;
  color: var(--error);
  font-weight: 500;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea {
  border-color: var(--error);
  background: color-mix(in srgb, var(--error) 4%, var(--paper-pure));
}

/* Honeypot. Fuer Menschen unsichtbar, fuer Bots verlockend. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.consent input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent label {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.consent .err {
  grid-column: 2;
  font-size: 0.8125rem;
  color: var(--error);
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.form-actions .note {
  flex: 1 1 18rem;
}

.form-status {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--ink);
  font-size: 0.9375rem;
  background: var(--paper);
}

.form-status[data-tone="error"] {
  border-left-color: var(--error);
  color: var(--error);
  background: color-mix(in srgb, var(--error) 5%, var(--paper-pure));
}

.form-status[data-tone="success"] {
  border-left-color: var(--ok);
  color: color-mix(in srgb, var(--ok) 80%, var(--ink));
  background: color-mix(in srgb, var(--ok) 6%, var(--paper-pure));
}

.form-status[hidden] {
  display: none;
}

.btn[data-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* Kontaktangaben neben dem Formular und auf der Kontaktseite */
.contact-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.35rem 1.5rem;
  font-size: 1rem;
}

.contact-list dt {
  color: var(--ink-faint);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.contact-list dt:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.contact-list dd {
  margin: 0 0 0.9rem;
  font-weight: 500;
}

.contact-list dd:last-child {
  margin-bottom: 0;
}

.alt-action {
  margin-top: 1.75rem;
}

.anfrage-map {
  margin-top: 2rem;
}

/* Alternativer Kontaktweg neben dem Formular */
.alt-contact {
  margin-top: var(--space-block);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
}

.alt-contact p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.alt-contact a {
  font-weight: 500;
  white-space: nowrap;
}

/* -------------------------------------------------------------- Anfrage */

.anfrage-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 68rem) {
  .anfrage-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* ----------------------------------------------------- Karte (Zwei-Klick) */

.map-consent {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  overflow: hidden;
}

/* Angedeutetes Strassenraster als Fuellung - kein externer Request. */
.map-consent::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 3rem 3rem;
  opacity: 0.5;
}

.map-consent > div {
  position: relative;
  display: grid;
  gap: 1rem;
  justify-items: center;
  max-width: 34ch;
}

.map-consent p {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.map-frame {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* -------------------------------------------------------------- WhatsApp */

.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  background: var(--wa);
  color: #06301a;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(16, 20, 24, 0.16);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
  --focus: var(--ink);
}

.wa-fab:hover {
  color: #06301a;
  transform: translateY(-2px);
}

.wa-fab[data-hidden="true"] {
  opacity: 0;
  transform: translateY(1rem) scale(0.96);
  pointer-events: none;
}

.wa-fab .label {
  display: none;
}

@media (min-width: 48rem) {
  .wa-fab .label {
    display: inline;
  }
}

/* Auf Mobil sitzt die Sticky-CTA unten - der WhatsApp-Knopf weicht aus. */
@media (max-width: 47.99rem) {
  .wa-fab {
    bottom: 5rem;
  }
}

/* ------------------------------------------------------ Sticky-CTA mobil */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  transition: transform 0.24s var(--ease);
}

.sticky-cta[data-hidden="true"] {
  transform: translateY(110%);
}

@media (min-width: 48rem) {
  .sticky-cta {
    display: none;
  }
}

/* --------------------------------------------------------- Cookie-Banner */

.consent-banner {
  position: fixed;
  left: clamp(0.75rem, 3vw, 2rem);
  right: clamp(0.75rem, 3vw, 2rem);
  bottom: clamp(0.75rem, 3vw, 2rem);
  z-index: 120;
  max-width: 34rem;
  background: var(--paper-pure);
  border: 1px solid var(--rule-strong);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 4px 24px rgba(16, 20, 24, 0.12);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner h2 {
  font-size: 1.125rem;
  margin-bottom: 0.65rem;
}

.consent-banner p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.consent-banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.consent-banner .actions .btn {
  flex: 1 1 12rem;
  min-height: 2.875rem;
  font-size: 0.9375rem;
}

/* -------------------------------------------------------------- Fussbereich */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  font-size: 0.9375rem;
  --focus: var(--accent-wash);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 56rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.site-footer .brand-lockup {
  margin-bottom: 0.9rem;
}

.brand-lockup--footer {
  gap: 0.9rem;
}

.brand-lockup--footer .brand-lockup__mark {
  width: 4.5rem;
  height: 4.125rem;
}

.brand-lockup--footer .brand-lockup__name {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.site-footer p {
  max-width: 40ch;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.site-footer a:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom button:hover {
  color: #fff;
}

/* ------------------------------------------------- Platzhalter-Warnung */

/* Sichtbarer Hinweis auf fehlende Kundendaten. Faellt beim Korrekturlesen
   sofort auf und verhindert, dass ein leeres Impressum online geht. */
.todo {
  display: inline-block;
  background: repeating-linear-gradient(
    45deg,
    #fff4d6,
    #fff4d6 8px,
    #ffe9b0 8px,
    #ffe9b0 16px
  );
  border: 1px solid #d9a441;
  color: #7a5410;
  padding: 0.1rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------- Rechtsseiten */

.legal {
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-section);
}

.legal-body {
  max-width: 68ch;
}

.legal-body h2 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.legal-body h3 {
  font-size: 1.125rem;
  margin-top: 1.75rem;
}

.legal-body p,
.legal-body ul {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body li + li {
  margin-top: 0.4rem;
}

.legal-body dl {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem 1.5rem;
  font-size: 1rem;
}

@media (min-width: 40rem) {
  .legal-body dl {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

.legal-body dt {
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------- Statusseiten */

.status-page {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.status-page .inner {
  max-width: 52ch;
}

.status-page > .container > .inner > * + * {
  margin-top: 1.5rem;
}

/* ------------------------------------------------------------ Bewegung */

/* Dezentes Aufblenden beim Eintritt in den Viewport. Nur dort, wo es den
   Lesefluss stuetzt - keine Parallaxe, keine Zaehler. */
[data-reveal] {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-reveal][data-shown="true"] {
  opacity: 1;
  transform: none;
}

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

/* Ohne JavaScript darf nichts unsichtbar bleiben. */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------- Druck */

@media print {
  .site-header,
  .sticky-cta,
  .wa-fab,
  .consent-banner,
  .form-wrap,
  .map-consent {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
