/* =========================================================================
   betriebsanlage.at — PLANUNG · GENEHMIGUNG · SICHERHEIT

   Die Gestaltung folgt dem Markenblatt des Kunden: Marineblau #0A4D8C für
   Vertrauen und Kompetenz, Hellblau #1E7DC1 für Technologie, Grau #4A5568
   für Neutralität, #CBD5E1 für Klarheit. Schrift ist Montserrat, wie im
   Markenblatt festgelegt und wie in der Wortmarke.

   Die Seite ist hell. Tiefe entsteht durch dunkle Marineblau-Bänder und
   durch echte Fotografie — kein gezeichnetes Ersatzbild, keine Symbolkacheln.
   Alle Fotos stehen unter der Unsplash-Lizenz und sind im Impressum mit
   Fotograf nachgewiesen.

   Eigene Doc-Root: teilt mit apcad.at bewusst keine Datei.
   ========================================================================= */

/* ---- Schrift (selbst gehostet, keine externen Requests / DSGVO) --------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/montserrat-latin-400_900.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: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/montserrat-latin-ext-400_900.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;
}

/* ---- Farbwelt aus dem Markenblatt -------------------------------------- */
:root {
  --navy: #0a4d8c;          /* Vertrauen, Kompetenz — Marke, Überschriften */
  --navy-tief: #06305c;     /* dunkle Bänder, Fußzeile */
  --navy-nacht: #04223f;    /* Bildüberlagerung */
  --blau: #1e7dc1;          /* Technologie, Innovation — Akzentflächen */
  --blau-text: #1668a5;     /* dieselbe Rolle in Textgröße, AA-fest */
  --blau-hell: #7cc2f0;     /* Akzent auf dunklem Grund */
  --grau: #4a5568;          /* Neutralität — Fließtext */
  --grau-2: #5a6a80;        /* Beschriftungen */
  --hell: #cbd5e1;          /* Klarheit — Linien und Fugen */
  --papier: #f4f6f9;        /* Seitengrund */
  --weiss: #ffffff;         /* Karten */
  --achtung: #8a5a08;       /* Hinweiskästen */
  --achtung-flaeche: #fdf4e3;
  --fehler: #a4361f;

  --kante: #dde4ed;        /* dekorative Trennlinie */
  /* Umrandung von Bedienelementen: Eingabefeldern, Auswahllisten und der
     Linien-Schaltfläche. WCAG 1.4.11 verlangt dafür 3:1, weil die Füllung
     der Felder sich vom Kartengrund nicht unterscheidet. #7d8da3 erreicht
     3,38:1 auf Weiß und 3,12:1 auf der Seitenfläche. */
  --kante-stark: #7d8da3;

  --satz: 1220px;
  --rand: clamp(1.15rem, 4vw, 2.75rem);
  --band: clamp(4rem, 7.5vw, 7rem);
  --band-eng: clamp(2.75rem, 5vw, 4.5rem);
  --radius: 14px;
  --radius-klein: 6px;
  --kopf-hoehe: 4.4rem;
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--grau);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (max-width: 640px) { body { font-size: 16px; } }

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  text-wrap: balance;
  /* Deutsche Komposita — „Bezirksverwaltungsbehörde“ — sind auf einem
     360-px-Bildschirm länger als die Zeile. Trennen statt überlaufen. */
  overflow-wrap: break-word;
}
@media (max-width: 720px) {
  h1, h2, h3, h4, p, li, dd { hyphens: auto; -webkit-hyphens: auto; }
}

h1 { font-size: clamp(2.15rem, 5.2vw, 4.1rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.028em; }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }

p { margin: 0 0 1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.45rem; }
li:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--navy); }

::selection { background: var(--navy); color: #fff; }

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

.springen {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 0.85rem 1.2rem; background: var(--navy); color: #fff;
  font-weight: 700; text-decoration: none;
}
.springen:focus { left: 0.5rem; top: 0.5rem; }

/* ---- Bausteine --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--satz); margin-inline: auto; padding-inline: var(--rand); }
.band { padding-block: var(--band); }
.band--eng { padding-block: var(--band-eng); }
.band--weiss { background: var(--weiss); }

/* Dunkles Band: Rhythmuswechsel und Träger der Marke */
.band--navy { background: var(--navy-tief); color: var(--hell); }
.band--navy h2, .band--navy h3, .band--navy h4 { color: #fff; }
.band--navy p, .band--navy li, .band--navy .lead { color: var(--hell); }
.band--navy a { color: var(--blau-hell); }
.band--navy strong { color: #fff; }

.lead { font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.55; color: var(--grau); max-width: 56ch; }

.klein { font-size: 0.9rem; }

.kopfzeile { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 3.6vw, 3rem); max-width: 62ch; }

/* ---- Kopf -------------------------------------------------------------- */
.kopf {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kante);
}
.kopf__zeile { display: flex; align-items: center; gap: 1rem; height: var(--kopf-hoehe); }

.wortmarke { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.wortmarke img { height: clamp(1.9rem, 4.4vw, 2.45rem); width: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
/* :not(.knopf) ist die Ursache des Fehlers, nicht Kosmetik: `.nav a` hat die
   Spezifität (0,1,1) und überstimmt damit `.knopf--haupt` (0,1,0). Ohne den
   Ausschluss steht die Schaltfläche in der Kopfzeile grau auf Marineblau
   (1,14:1) und im Hover marineblau auf marineblau (1,0:1). */
.nav a:not(.knopf) { text-decoration: none; font-size: 0.88rem; font-weight: 600; color: var(--grau); transition: color 0.18s; }
.nav a:not(.knopf):hover, .nav a:not(.knopf)[aria-current='page'] { color: var(--navy); }

.nav__schalter {
  display: none; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--kante-stark); border-radius: var(--radius-klein);
  color: var(--navy); font: inherit; font-size: 0.8rem; font-weight: 700;
  padding: 0.5rem 0.85rem; cursor: pointer;
}

/* Der Läufer zeigt die Position im Dokument. Die einzige Bewegung, die ohne
   Zutun der Leserin passiert. */
.kopf__lauf { height: 3px; background: var(--kante); overflow: hidden; }
.kopf__lauf i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--navy), var(--blau));
  transform: scaleX(var(--fortschritt, 0)); transform-origin: left;
  transition: transform 0.12s linear;
}

@media (max-width: 940px) {
  .nav__schalter { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.25rem var(--rand) 1.25rem; background: var(--weiss);
    border-bottom: 1px solid var(--kante);
    box-shadow: 0 22px 34px -26px rgba(6, 48, 92, 0.5);
    display: none;
  }
  .nav[data-offen='ja'] { display: flex; }
  .nav a:not(.knopf) { padding: 0.9rem 0; font-size: 1rem; border-bottom: 1px solid var(--kante); }
  .nav .knopf { margin-top: 1rem; text-align: center; border-bottom: 0; }
}

/* ---- Schaltflächen ----------------------------------------------------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-klein); border: 1px solid transparent;
  font: inherit; font-size: 0.94rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.knopf svg { width: 18px; height: 18px; flex: none; }

.knopf--haupt { background: var(--navy); color: #fff; }
.knopf--haupt:hover { background: var(--blau-text); transform: translateY(-1px); }
.knopf--linie { background: transparent; color: var(--navy); border-color: var(--kante-stark); }
.knopf--linie:hover { border-color: var(--navy); background: rgba(10, 77, 140, 0.05); }

/* auf Foto und dunklem Band */
.auf-dunkel .knopf--haupt { background: var(--weiss); color: var(--navy); }
.auf-dunkel .knopf--haupt:hover { background: var(--blau-hell); color: var(--navy-nacht); }
.auf-dunkel .knopf--linie { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.auf-dunkel .knopf--linie:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.knopf--gross { padding: 1rem 1.75rem; font-size: 1rem; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---- Hero mit Foto ----------------------------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--navy-nacht); }
.hero__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Kein Schleier über allem, sondern ein Verlauf von der Textseite her: das
   Foto bleibt rechts sichtbar, der Text links lesbar. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(4, 34, 63, 0.95) 0%, rgba(4, 34, 63, 0.88) 44%, rgba(4, 34, 63, 0.42) 100%),
    linear-gradient(0deg, rgba(4, 34, 63, 0.55) 0%, rgba(4, 34, 63, 0) 55%);
}
@media (max-width: 760px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(4, 34, 63, 0.9) 0%, rgba(4, 34, 63, 0.84) 55%, rgba(4, 34, 63, 0.93) 100%);
  }
}

.hero__inhalt { position: relative; padding-block: clamp(3.25rem, 7.5vw, 6.5rem) clamp(3rem, 6vw, 5.25rem); color: #fff; }
.hero h1 { color: #fff; max-width: 22ch; }
.hero .lead { color: var(--hell); margin-top: 1.35rem; }
.hero .knopfreihe { margin-top: 2.1rem; }

.hero__zusage { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.55rem 1.6rem; font-size: 0.9rem; color: var(--hell); }
.hero__zusage span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__zusage svg { width: 16px; height: 16px; color: var(--blau-hell); }

/* Bildnachweis am Foto, klein und unaufdringlich */
.hero__quelle {
  position: absolute; right: var(--rand); bottom: 0.55rem; z-index: 1;
  font-size: 0.66rem; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.66);
}
.hero__quelle a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
/* Auf kleinen Bildschirmen war der Bildnachweis ausgeblendet. Eine
   Urhebernennung, die auf dem Handy verschwindet, ist keine Nennung —
   sie rutscht dort unter den Inhalt statt über das Bild. */
@media (max-width: 760px) {
  .hero__quelle {
    position: static; text-align: right;
    padding: 0 var(--rand) 0.9rem; margin: 0;
    color: rgba(255, 255, 255, 0.6);
  }
}

/* ---- Die drei Säulen der Marke ----------------------------------------- */
.saeulen {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--kante); border: 1px solid var(--kante);
  border-radius: var(--radius); overflow: hidden;
}
.saeule { background: var(--weiss); padding: clamp(1.5rem, 2.6vw, 2.25rem); }
.saeule__nr {
  display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blau-text); margin-bottom: 0.85rem;
}
.saeule h3 { margin-bottom: 0.6rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.saeule p { font-size: 0.97rem; margin: 0; }
@media (max-width: 820px) { .saeulen { grid-template-columns: 1fr; } }

/* ---- Branchen als Medienkarten ----------------------------------------- */
.branche-gross {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  background: var(--weiss); border: 1px solid var(--kante);
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: inherit; margin-bottom: clamp(1rem, 2vw, 1.5rem);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.branche-gross:hover { border-color: var(--blau); box-shadow: 0 16px 32px -24px rgba(6, 48, 92, 0.6); }
.branche-gross__bild { position: relative; min-height: 270px; }
.branche-gross__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.branche-gross__text { padding: clamp(1.5rem, 2.8vw, 2.4rem); display: flex; flex-direction: column; gap: 0.8rem; }
@media (max-width: 820px) {
  .branche-gross { grid-template-columns: 1fr; }
  .branche-gross__bild { min-height: 200px; }
}

.branchen { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.branche {
  display: flex; flex-direction: column; background: var(--weiss);
  border: 1px solid var(--kante); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.branche:hover { border-color: var(--blau); box-shadow: 0 16px 32px -24px rgba(6, 48, 92, 0.6); }
.branche__bild { aspect-ratio: 2 / 1; }
.branche__bild img { width: 100%; height: 100%; object-fit: cover; }
.branche__text { padding: clamp(1.25rem, 2.2vw, 1.75rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.branche h3, .branche-gross h3 { letter-spacing: -0.02em; }
.branche p, .branche-gross p { font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) { .branchen { grid-template-columns: 1fr; } }

.gruende { list-style: none; padding: 0; margin: 0.15rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gruende li {
  margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--blau-text);
  background: rgba(30, 125, 193, 0.1); border-radius: 999px; padding: 0.24rem 0.65rem;
}
.branche__weiter, .branche-gross__weiter {
  margin-top: auto; padding-top: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; font-size: 0.93rem; color: var(--blau-text);
}
.branche__weiter svg, .branche-gross__weiter svg { width: 15px; height: 15px; transition: transform 0.18s; }
.branche:hover .branche__weiter svg, .branche-gross:hover .branche-gross__weiter svg { transform: translateX(3px); }

/* ---- Prüfliste --------------------------------------------------------- */
.pruefung { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 820px) { .pruefung { grid-template-columns: 1fr; } }

.pruefspalte { border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); background: var(--weiss); border: 1px solid var(--kante); }
.pruefspalte__kopf {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.pruefspalte__kopf svg { width: 18px; height: 18px; }
.pruefspalte--ja .pruefspalte__kopf { color: var(--achtung); }
.pruefspalte--nein .pruefspalte__kopf { color: var(--blau-text); }
.pruefspalte ul { list-style: none; padding: 0; margin: 0; }
.pruefspalte li { position: relative; padding-left: 1.55rem; margin-bottom: 0.75rem; font-size: 0.96rem; }
.pruefspalte li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; }
.pruefspalte--ja li::before { background: var(--achtung); }
.pruefspalte--nein li::before { background: var(--blau); }

/* ---- Ablauf ------------------------------------------------------------ */
.ablauf {
  counter-reset: schritt; display: grid; gap: 1px; background: var(--kante);
  border: 1px solid var(--kante); border-radius: var(--radius); overflow: hidden;
}
.schritt {
  counter-increment: schritt; background: var(--weiss);
  padding: clamp(1.25rem, 2.2vw, 1.8rem);
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 0.25rem 1.25rem; align-items: start;
}
.schritt::before {
  content: counter(schritt, decimal-leading-zero); grid-row: span 2;
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--blau); font-variant-numeric: tabular-nums; padding-top: 0.05rem;
}
.schritt p { margin: 0.3rem 0 0; font-size: 0.96rem; }
.schritt__wer {
  grid-column: 2; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grau-2); margin-top: 0.7rem;
}
.schritt__wer b { color: var(--blau-text); }
@media (max-width: 560px) { .schritt { grid-template-columns: 2.5rem 1fr; gap: 0.25rem 0.85rem; } }

/* Aufzählung ohne Nummern: eine Liste ist keine Reihenfolge */
.punkte .schritt { grid-template-columns: 1fr; }
.punkte .schritt::before { content: none; }
.punkte .schritt h3 { position: relative; padding-left: 1.1rem; }
.punkte .schritt h3::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--blau);
}
.punkte .schritt p { padding-left: 1.1rem; }

/* ---- Fakten und Tabellen ----------------------------------------------- */
.fakten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1px; background: var(--kante); border: 1px solid var(--kante);
  border-radius: var(--radius); overflow: hidden;
}
.fakt { background: var(--weiss); padding: clamp(1.25rem, 2.2vw, 1.6rem); }
.fakt dt {
  font-size: 0.71rem; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--grau-2); margin-bottom: 0.5rem;
}
.fakt dd { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; }
.fakt p { margin: 0.55rem 0 0; font-size: 0.88rem; }
.band--navy .fakten { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.18); }
.band--navy .fakt { background: var(--navy-tief); }
.band--navy .fakt dt { color: var(--blau-hell); }
.band--navy .fakt dd { color: #fff; }

.tabelle-huelle { overflow-x: auto; border: 1px solid var(--kante); border-radius: var(--radius); background: var(--weiss); }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.95rem 1.15rem; border-bottom: 1px solid var(--kante); vertical-align: top; }
thead th { background: var(--papier); }
th { font-size: 0.71rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--grau-2); }
td { color: var(--grau); }
tbody tr:last-child td { border-bottom: 0; }
td b { color: var(--navy); font-weight: 800; }
.tabelle-huelle a { color: var(--blau-text); font-weight: 600; }

/* ---- Hinweis ----------------------------------------------------------- */
.hinweis {
  display: flex; gap: 0.9rem; padding: 1.1rem 1.25rem;
  border-radius: var(--radius-klein); background: var(--achtung-flaeche); color: var(--grau); font-size: 0.94rem;
}
.hinweis svg { width: 20px; height: 20px; flex: none; color: var(--achtung); margin-top: 0.2rem; }
.hinweis p { margin: 0; max-width: none; }
.band--navy .hinweis { background: rgba(255,255,255,0.09); color: var(--hell); }
.band--navy .hinweis svg { color: var(--blau-hell); }

.quelle { margin-top: 1rem; font-size: 0.82rem; color: var(--grau-2); }
.quelle a { color: inherit; }
.band--navy .quelle { color: var(--hell); }

/* ---- FAQ --------------------------------------------------------------- */
.faq { border-top: 1px solid var(--kante); }
.frage { border-bottom: 1px solid var(--kante); }
.frage > summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.015em; color: var(--navy);
}
.frage > summary::-webkit-details-marker { display: none; }
.frage > summary::after {
  content: ''; position: absolute; right: 0.4rem; top: 1.6rem; width: 9px; height: 9px;
  border-right: 2px solid var(--blau); border-bottom: 2px solid var(--blau);
  transform: rotate(45deg); transition: transform 0.22s;
}
.frage[open] > summary::after { transform: rotate(-135deg); top: 1.9rem; }
.frage__text { padding: 0 2.5rem 1.5rem 0; }
.frage__text p { max-width: 66ch; }
.band--navy .faq, .band--navy .frage { border-color: rgba(255,255,255,0.22); }
.band--navy .frage > summary { color: #fff; }
.band--navy .frage > summary::after { border-color: var(--blau-hell); }

/* ---- Anfrage ----------------------------------------------------------- */
.anfrage { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .anfrage { grid-template-columns: 1fr; } }

.anfrage__wege { display: grid; gap: 0.75rem; margin-top: 1.75rem; }
.weg {
  display: flex; gap: 0.9rem; align-items: center; padding: 1rem 1.15rem;
  border: 1px solid rgba(255,255,255,0.24); border-radius: var(--radius-klein);
  text-decoration: none; transition: border-color 0.18s, background 0.18s;
}
.weg:hover { border-color: var(--blau-hell); background: rgba(255,255,255,0.08); }
.weg svg { width: 20px; height: 20px; color: var(--blau-hell); flex: none; }
.weg b { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.weg span { font-size: 0.85rem; color: var(--hell); }

/* Der Bogen ist eine helle Insel in einem dunklen Band. Ohne diese
   Rückstellung erben Beschriftung, Zustimmungstext und die Schaltfläche die
   Farben des dunklen Bandes und stehen hell auf Weiß. */
.bogen {
  background: var(--weiss); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.25rem); color: var(--grau);
}
.bogen h2, .bogen h3 { color: var(--navy); }
.bogen a { color: var(--blau-text); }
.bogen .knopf--haupt { background: var(--navy); color: #fff; }
.bogen .knopf--haupt:hover { background: var(--blau-text); color: #fff; }
.bogen .knopf--linie { color: var(--navy); border-color: var(--kante-stark); }
.feldreihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .feldreihe { grid-template-columns: 1fr; } }

.feld { display: block; margin-bottom: 1rem; }
/* :not() ist nötig, weil .feld__fehler ebenfalls ein direktes span-Kind ist —
   ohne den Ausschluss steht die Fehlermeldung dauerhaft unter jedem Feld. */
.feld > span:not(.feld__fehler) {
  display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--grau-2); margin-bottom: 0.45rem;
}
.feld em { font-style: normal; color: var(--blau-text); }

input[type='text'], input[type='email'], input[type='tel'], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.8rem 0.9rem;
  color: var(--navy); background: var(--papier);
  border: 1px solid var(--kante-stark); border-radius: var(--radius-klein);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; min-height: 3rem;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--grau-2) 50%),
                    linear-gradient(135deg, var(--grau-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 51%, calc(100% - 14px) 51%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem;
}
input::placeholder, textarea::placeholder { color: var(--grau-2); }
input:focus, select:focus, textarea:focus {
  outline: none; background: var(--weiss); border-color: var(--blau);
  box-shadow: 0 0 0 3px rgba(30, 125, 193, 0.18);
}
input:user-invalid, textarea:user-invalid { border-color: var(--fehler); }
.feld__fehler { display: none; margin-top: 0.35rem; font-size: 0.83rem; color: var(--fehler); }
input:user-invalid ~ .feld__fehler { display: block; }

.zustimmung { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.25rem 0; font-size: 0.88rem; cursor: pointer; }
.zustimmung input { width: 1.15rem; height: 1.15rem; margin: 0.22rem 0 0; flex: none; accent-color: var(--navy); }
.zustimmung a { color: var(--blau-text); }

/* Honigtopf: für Menschen unsichtbar, für einfache Bots ein Köder. */
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fehlerkasten {
  display: none; gap: 0.8rem; padding: 1rem 1.15rem; margin-bottom: 1.25rem;
  border-radius: var(--radius-klein); background: #fbeceb; color: #6d2415; font-size: 0.92rem;
}
.fehlerkasten svg { width: 20px; height: 20px; color: var(--fehler); flex: none; }
.fehlerkasten a { color: var(--fehler); }
.fehlerkasten[data-zeigen='ja'] { display: flex; }

/* ---- Aktionsleiste (mobil) --------------------------------------------- */
.aktionsleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none; gap: 0.6rem;
  padding: 0.6rem var(--rand) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--kante);
}
.aktionsleiste .knopf { flex: 1; padding-block: 0.8rem; font-size: 0.92rem; }
@media (max-width: 760px) {
  .aktionsleiste { display: flex; }
  body { padding-bottom: 4.6rem; }
}

/* ---- Schlussband ------------------------------------------------------- */
.schluss { text-align: center; }
.schluss__inhalt { display: grid; justify-items: center; gap: 1.15rem; }
.schluss h2 { max-width: 20ch; }
.schluss .lead { max-width: 50ch; }
.schluss .knopfreihe { justify-content: center; margin-top: 0.6rem; }

/* ---- Fuß --------------------------------------------------------------- */
.fuss { background: var(--navy-tief); color: var(--hell); padding-block: clamp(3rem, 5.5vw, 4.5rem) 2rem; font-size: 0.93rem; }
.fuss__raster { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(1.75rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fuss__raster { grid-template-columns: 1fr; } }
.fuss__marke img { height: 2.3rem; width: auto; margin-bottom: 1.1rem; }
.fuss h4 {
  font-size: 0.71rem; font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--blau-hell); margin-bottom: 0.9rem;
}
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.55rem; }
.fuss a { color: var(--hell); text-decoration: none; }
.fuss a:hover { color: #fff; }
.fuss p { color: var(--hell); font-size: 0.93rem; }

/* „Ein Unternehmen der" mit dem echten APCAD-Logo */
.mutter {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem;
}
.mutter__text { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hell); }
.mutter img { height: 1.9rem; width: auto; }
.mutter__recht { margin-left: auto; font-size: 0.8rem; color: var(--hell); }
@media (max-width: 700px) { .mutter__recht { margin-left: 0; flex-basis: 100%; } }

/* ---- Fließtextseiten --------------------------------------------------- */
.h1--seite { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; }
.text-seite { max-width: 44rem; }
.text-seite h2 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); margin-top: 2.75rem; margin-bottom: 0.9rem; }
.text-seite h2:first-of-type { margin-top: 0; }
.text-seite a { color: var(--blau-text); }
.text-seite dl { margin: 0 0 1.5rem; }
.text-seite dt {
  font-size: 0.71rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grau-2); margin-top: 1rem;
}
.text-seite dd { margin: 0.25rem 0 0; }

/* Bildnachweis im Impressum */
.nachweis { font-size: 0.9rem; padding-left: 1.1rem; }
.nachweis li { margin-bottom: 0.65rem; }

/* Bestätigungsseite */
.danke__marke { width: clamp(84px, 12vw, 110px); height: auto; margin-bottom: 0.5rem; }

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