/* ==========================================================================
   Frederik Pfeil Transportlogistik
   Hell und klar: Weiß, das Blau und Silber aus dem Logo, dunkles Marineblau für Text.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #0a4ea3;
  --blau-dunkel: #083b7c;
  --navy: #0b1b33;
  --grau: #4d5a70;
  --linie: #dde2e9;
  --hell: #f4f6f9;
  --buehne: #eef1f5;

  --rand: clamp(1.25rem, 4.5vw, 5rem);
  --kopf-h: 5.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-h) + 1rem);
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blau); color: #fff; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 2px; }
.unternehmen :focus-visible, .fuss :focus-visible { outline-color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sprung {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--blau);
  color: #fff;
  font-weight: 600;
  border-radius: 0.4rem;
  transform: translateY(-200%);
}
.sprung:focus { transform: none; }

/* ---------- Ladebildschirm ---------- */

.lader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 1.6rem;
  background: #fff;
  transition: transform 0.85s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 0.85s;
}
.js .lader { display: grid; }
.lader img { width: min(15rem, 56vw); height: auto; }
.lader__spur { width: min(15rem, 56vw); height: 3px; border-radius: 2px; background: var(--linie); overflow: hidden; }
.lader__balken { display: block; width: 100%; height: 100%; background: var(--blau); transform-origin: left; transform: scaleX(var(--lade, 0)); transition: transform 0.3s ease; }
.lader__text { font-weight: 600; font-size: 0.9rem; color: var(--grau); font-variant-numeric: tabular-nums; }
.is-geladen .lader { transform: translateY(-100%); visibility: hidden; }
.js:not(.is-geladen) body { overflow: hidden; }

/* ---------- Bausteine ---------- */

.kicker { font-weight: 600; font-size: 0.98rem; color: var(--blau); }

.zeile { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.zeile > span { display: block; }

.titel {
  font-weight: 700;
  font-size: clamp(2rem, 3.9vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.2rem;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 0.55rem;
  background: var(--blau);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--blau-dunkel); }
.btn svg { width: 1.2rem; height: 1.2rem; fill: currentColor; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg:last-child { transform: translateX(0.25rem); }

.btn--hell { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px #c6ced9; }
.btn--hell:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }

.btn--text { min-height: 0; padding: 0.6rem 0.3rem; background: none; color: var(--blau); text-decoration: underline; text-underline-offset: 0.25em; }
.btn--text:hover { background: none; color: var(--blau-dunkel); }

/* ---------- Kopf ---------- */

.kopf {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--kopf-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2.4vw, 2.2rem);
  padding-inline: var(--rand);
  background: #fff;
  border-bottom: 1px solid var(--linie);
}

.marke { display: block; margin-right: auto; }
.marke img { width: auto; height: 4.7rem; }

.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.nav a { position: relative; padding: 0.4rem 0; font-weight: 500; font-size: 0.98rem; text-decoration: none; transition: color 0.2s ease; }
.nav a:hover { color: var(--blau); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blau);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a.is-aktiv::after { transform: scaleX(1); }
.nav__tel { display: none; }

.kopf__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1rem;
  border-radius: 0.55rem;
  background: var(--blau);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.kopf__tel:hover { background: var(--blau-dunkel); }
.kopf__tel svg { width: 1rem; height: 1rem; fill: currentColor; }
.kopf__menu { display: none; }

@media (max-width: 899px) {
  :root { --kopf-h: 4.5rem; }
  .marke img { height: 3.7rem; }

  .kopf__tel { width: 2.75rem; height: 2.75rem; padding: 0; justify-content: center; }
  .kopf__tel span { display: none; }
  .kopf__menu {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: none;
    border: 1.5px solid #c6ced9;
    border-radius: 0.55rem;
    cursor: pointer;
  }
  .kopf__menu span { display: block; width: 1.15rem; height: 2px; background: var(--navy); transition: transform 0.3s var(--ease); }
  .kopf__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .kopf__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: var(--kopf-h) 0 0 0;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem var(--rand) calc(1.5rem + env(safe-area-inset-bottom));
    background: #fff;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s 0.35s;
  }
  .nav.is-offen { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { padding: 1.05rem 0; border-bottom: 1px solid var(--linie); font-weight: 600; font-size: 1.5rem; }
  .nav a::after { display: none; }
  .nav a.nav__tel {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding: 1rem;
    border: 0;
    border-radius: 0.55rem;
    background: var(--blau);
    color: #fff;
    font-size: 1.1rem;
  }
}

/* ---------- Bühne ---------- */

.stage { position: relative; background: var(--buehne); isolation: isolate; }
.stage__sticky { position: relative; }
.stage__canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100svh;
  opacity: 0;
  transition: opacity 1s ease;
}
.stage__canvas.is-an { opacity: 1; }

/* heller Schleier hinter dem Text, damit er vor der Szene lesbar bleibt */
.stage__sticky::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 54%;
  height: 100vh;
  height: 100svh;
  background: linear-gradient(to right, rgb(238 241 245 / 0.96) 0, rgb(238 241 245 / 0.9) 50%, rgb(238 241 245 / 0));
  pointer-events: none;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 60rem;
  padding: calc(var(--kopf-h) + 3rem) var(--rand) 6rem;
}
.hero__titel {
  margin: 0 0 1.3rem;
  font-weight: 700;
  font-size: clamp(2.5rem, min(4.5vw, 9svh), 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero__titel .kicker { display: block; margin-bottom: 0.9rem; font-size: 0.98rem; line-height: 1.4; letter-spacing: 0; }
@media (min-width: 900px) {
  .hero__titel .zeile { white-space: nowrap; }
}
.hero__lead { max-width: 32rem; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; color: var(--grau); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }

.js:not(.is-ready) [data-intro],
.js:not(.is-ready) .scrollhinweis__in,
.js:not(.is-ready) .hero__titel .zeile > span { opacity: 0; }

/* Kapitel (ohne JS / reduzierte Bewegung: normale Liste) */
.kapitel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.5rem;
  padding: 1rem var(--rand) clamp(4rem, 8vw, 7rem);
}
.kap__schritt { font-weight: 600; font-size: 0.92rem; color: var(--blau); }
.kap__titel { margin: 0.3rem 0 0.7rem; font-weight: 700; font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.kap__kopf { margin-bottom: 0.45rem; font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; }
.kap__text { max-width: 30rem; color: var(--grau); }

.strecke, .scrollhinweis { display: none; }

/* Live-Modus: Bühne klebt, Scroll steuert die Szene */
.is-live .stage { height: 600vh; }
.is-live .stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.is-live .hero { position: absolute; top: 0; bottom: 0; left: 0; }
.is-live .kapitel { display: block; position: absolute; inset: 0; padding: 0; pointer-events: none; }
.is-live .kap {
  position: absolute;
  left: var(--rand);
  right: var(--rand);
  bottom: clamp(6.5rem, 17vh, 10rem);
  max-width: 31rem;
  opacity: 0;
  visibility: hidden;
}
.is-live .kap__titel { font-size: clamp(2.8rem, 5.2vw, 4.8rem); }

.is-live .strecke {
  position: absolute;
  left: var(--rand);
  bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  width: min(31rem, calc(100% - 2 * var(--rand)));
  opacity: 0;
  visibility: hidden;
}
.strecke li { position: relative; padding-top: 0.75rem; font-weight: 600; font-size: 0.85rem; color: #7c889b; transition: color 0.3s ease; }
.strecke li::before,
.strecke li::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; border-radius: 2px; background: #cdd4de; }
.strecke li::after { background: var(--blau); transform-origin: left; transform: scaleX(var(--f, 0)); }
.strecke li.is-aktiv { color: var(--navy); }

.is-live .scrollhinweis { display: block; position: absolute; left: var(--rand); bottom: 2rem; font-weight: 500; font-size: 0.9rem; color: var(--grau); }
.scrollhinweis__in { display: flex; align-items: center; gap: 0.8rem; }
.scrollhinweis__linie { position: relative; width: 1px; height: 1.9rem; background: #c6ced9; overflow: hidden; }
.scrollhinweis__linie::after { content: ""; position: absolute; inset: 0; background: var(--blau); animation: tropfen 1.9s var(--ease) infinite; }
@keyframes tropfen {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  /* Hochformat: Szene oben, Text unten */
  .stage__sticky::after {
    top: 36svh;
    width: 100%;
    height: 64svh;
    background: linear-gradient(to top, var(--buehne) 62%, rgb(238 241 245 / 0));
  }
  .hero { justify-content: flex-end; padding-bottom: 5.5rem; }
}
@media (max-width: 899px) {
  .hero__titel { font-size: clamp(2.3rem, min(10.5vw, 7.5svh), 3.6rem); margin: 0 0 0.9rem; }
  .hero__titel .kicker { margin-bottom: 0.6rem; }
  .hero__lead { font-size: 1rem; }
  .hero__cta { margin-top: 1.3rem; }
  .hero__cta .btn--hell { display: none; }
  .is-live .kap { bottom: 5.8rem; }
  .is-live .kap__titel { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .is-live .strecke, .is-live .scrollhinweis { bottom: 1.5rem; }
}

/* ---------- Sektionen ---------- */

.sektion { position: relative; padding: clamp(4.5rem, 9vw, 8.5rem) var(--rand); }
.sektion__kopf { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sektion__lead { max-width: 36rem; font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--grau); }

/* Leistungen */
.leistung { border-bottom: 1px solid var(--linie); }
.leistung li { padding: 1.7rem 0; border-top: 1px solid var(--linie); }
.leistung h3 { margin-bottom: 0.45rem; font-weight: 650; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; }
.leistung p { max-width: 36rem; color: var(--grau); }

@media (min-width: 900px) {
  .leistungen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .leistungen .sektion__kopf { position: sticky; top: calc(var(--kopf-h) + 2.5rem); margin-bottom: 0; }
  .leistung li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; padding: 2rem 0; }
  .leistung h3 { margin: 0; }
}

/* Unternehmen */
.unternehmen { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); background: var(--navy); color: #fff; overflow: clip; }
.unternehmen::after {
  content: "";
  position: absolute;
  right: -7rem;
  top: -5rem;
  width: clamp(18rem, 36vw, 34rem);
  aspect-ratio: 394 / 391;
  background: url("/assets/img/pfeil-mark.webp") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}
.unternehmen > * { position: relative; z-index: 1; }
.unternehmen .kicker { color: #8fb4ee; }
.unternehmen .titel { margin-top: 0.8rem; }
.unternehmen .sektion__lead { margin-top: 1.3rem; color: #c5cfe0; }

.zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.2rem, 3vw, 2.5rem); }
.zahlen div { display: flex; flex-direction: column-reverse; padding: 1.3rem 0 1.4rem; border-top: 1px solid rgb(255 255 255 / 0.2); }
.zahlen dd { font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.zahlen dt { margin-top: 0.5rem; font-size: 0.98rem; color: #aab8ce; }

.werte { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.8rem clamp(1.5rem, 4vw, 3.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgb(255 255 255 / 0.2); }
.werte h3 { margin-bottom: 0.4rem; font-weight: 650; font-size: 1.15rem; }
.werte p { color: #c5cfe0; }

@media (min-width: 1000px) {
  .unternehmen { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; }
  .werte { grid-column: 1 / -1; }
}

/* Ablauf: vier Schritte an einer Linie, die sich beim Scrollen füllt */
.schritte { display: grid; grid-template-columns: minmax(0, 1fr); }
.schritt { position: relative; padding: 0 0 2.4rem 4.4rem; }
.schritt:last-child { padding-bottom: 0; }
.schritt__nr {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--blau);
  border: 2px solid var(--blau);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.schritt:not(:last-child)::before,
.schritt:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.9rem;
  bottom: 0;
  left: calc(1.45rem - 1.5px);
  width: 3px;
  background: var(--linie);
}
.schritt:not(:last-child)::after { background: var(--blau); transform-origin: top; transform: scaleY(var(--f, 1)); }
.schritt h3 { margin-bottom: 0.4rem; padding-top: 0.45rem; font-weight: 650; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; transition: color 0.35s ease; }
.schritt p { max-width: 26rem; color: var(--grau); transition: opacity 0.35s ease; }

.is-scroll .schritt:not(.is-da) .schritt__nr { background: #fff; border-color: #c6ced9; color: var(--grau); }
.is-scroll .schritt:not(.is-da) h3 { color: #8a94a5; }
.is-scroll .schritt:not(.is-da) p { opacity: 0.55; }

@media (min-width: 860px) {
  .schritte { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .schritt { padding: 4.3rem clamp(1.2rem, 2.6vw, 2.8rem) 0 0; }
  .schritt:not(:last-child)::before,
  .schritt:not(:last-child)::after { top: calc(1.45rem - 1.5px); bottom: auto; left: 2.9rem; right: 0; width: auto; height: 3px; }
  .schritt:not(:last-child)::after { transform-origin: left; transform: scaleX(var(--f, 1)); }
  .schritt h3 { padding-top: 0; }
}

/* Häufige Fragen */
.fragen { background: var(--hell); }
@media (min-width: 900px) {
  .fragen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .fragen .sektion__kopf { position: sticky; top: calc(var(--kopf-h) + 2.5rem); margin-bottom: 0; }
}
.faq { border-top: 1px solid #d3d9e1; }
.faq details { border-bottom: 1px solid #d3d9e1; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.25rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-weight: 600; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.3; }
.faq summary svg { flex: none; width: 1.5rem; height: 1.5rem; fill: var(--blau); transition: transform 0.3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:hover h3 { color: var(--blau); }
.faq details p { max-width: 44rem; padding: 0 2.5rem 1.4rem 0; color: var(--grau); }
.faq details a { color: var(--blau); text-underline-offset: 0.2em; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); background: #fff; }
.kontakt .titel { margin-top: 0.8rem; }
.kontakt .sektion__lead { margin-top: 1.1rem; }
.kontakt__tel { display: block; width: fit-content; margin-top: clamp(1.8rem, 3.5vw, 2.6rem); text-decoration: none; }
.kontakt__tel span { display: block; font-weight: 600; font-size: 0.92rem; color: var(--grau); }
.kontakt__tel b { display: block; font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--blau); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color 0.2s ease; }
.kontakt__tel:hover b { color: var(--blau-dunkel); }
.kontakt__liste { margin-top: 1.8rem; border-top: 1px solid var(--linie); }
.kontakt__liste div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--linie); }
.kontakt__liste dt { font-weight: 600; font-size: 0.95rem; color: var(--grau); }
.kontakt__liste a { color: var(--blau); text-underline-offset: 0.22em; overflow-wrap: anywhere; }
address { font-style: normal; }
.kontakt__liste address + a { display: inline-block; margin-top: 0.45rem; }
.status { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem; font-weight: 600; font-size: 0.92rem; color: #1c7a43; }
.status[hidden] { display: none; }
.status::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; }
.status.is-zu { color: var(--grau); }

@media (max-width: 479px) {
  .kontakt__liste div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}
@media (min-width: 1000px) {
  .kontakt { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}

.formular {
  padding: clamp(1.3rem, 3vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: 1rem;
  box-shadow: 0 24px 50px -30px rgb(11 27 51 / 0.4);
}
.formular__titel { margin-bottom: 1.3rem; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.015em; }
.formular__raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.feld { display: grid; gap: 0.35rem; min-width: 0; }
.feld > span { font-weight: 600; font-size: 0.92rem; }
.feld input, .feld select, .feld textarea {
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid #c2cad6;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feld textarea { min-height: 7rem; resize: vertical; }
.feld ::placeholder { color: #8a94a5; opacity: 1; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgb(10 78 163 / 0.2); }
.feld.is-fehler > span { color: #b3261e; }
.feld.is-fehler input, .feld.is-fehler textarea { border-color: #b3261e; }
@media (min-width: 640px) {
  .formular__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feld--breit { grid-column: 1 / -1; }
}
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.formular__status a, .formular__hinweis a { color: var(--blau); text-underline-offset: 0.2em; }
.formular__status.is-ok { color: #1c7a43; }
.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin-top: 1.4rem; }
.formular__status { margin-top: 0.9rem; font-weight: 600; color: var(--blau); }
.formular__status:empty { display: none; }
.formular__status.is-fehler { color: #b3261e; }
.formular__hinweis { margin-top: 0.9rem; font-size: 0.86rem; line-height: 1.5; color: var(--grau); }

/* ---------- Fuß ---------- */

.fuss { padding: clamp(3rem, 6vw, 5rem) var(--rand) 2rem; background: var(--navy); color: #c5cfe0; }
.fuss__logo { width: clamp(11rem, 20vw, 15rem); height: auto; margin-bottom: 2.2rem; }
.fuss__raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / 0.18); }
.fuss__raster b { color: #fff; }
.fuss__raster a { text-decoration: none; }
.fuss__raster a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.25em; }
.fuss__raster nav { display: grid; align-content: start; justify-items: start; }
.fuss__raster nav a { padding: 0.25rem 0; }
.fuss__klein { margin-top: 2.5rem; font-size: 0.88rem; color: #8d9ab0; }

/* ---------- Rechtstexte + 404 ---------- */

.recht__kopf { padding: calc(var(--kopf-h) + clamp(5rem, 9vw, 7rem)) var(--rand) clamp(2rem, 4vw, 3rem); background: var(--buehne); }
.recht__kopf .titel { margin-top: 0.6rem; font-size: clamp(2.3rem, 5vw, 4rem); }
.recht__inhalt { max-width: calc(46rem + 2 * var(--rand)); padding: clamp(2.5rem, 5vw, 4rem) var(--rand) clamp(4rem, 8vw, 6rem); }
.recht__inhalt h2 { margin: 2.4rem 0 0.7rem; font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -0.015em; }
.recht__inhalt h2:first-child { margin-top: 0; }
.recht__inhalt h3 { margin: 1.5rem 0 0.4rem; font-weight: 650; font-size: 1.08rem; }
.recht__inhalt p, .recht__inhalt ul { margin-bottom: 1rem; color: #26334a; }
.recht__inhalt ul { padding-left: 1.2rem; list-style: disc; }
.recht__inhalt li { margin-bottom: 0.3rem; }
.recht__inhalt a { color: var(--blau); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.recht__stand { margin-top: 2.5rem; font-size: 0.92rem; color: var(--grau); }

.nichts { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; gap: 1.2rem; padding: calc(var(--kopf-h) + 6rem) var(--rand) 4rem; background: var(--buehne); }
.nichts p { max-width: 32rem; font-size: 1.15rem; color: var(--grau); }
.nichts .btn { width: fit-content; margin-top: 0.6rem; }

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

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