/* InSysCo – Website-Stylesheet
   Farben und Schriften wie im Bestellsystem (bestellung.insysco.de) */

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunitosans-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/quicksand-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #0a78bf;
  --blau-dunkel: #075a90;
  --blau-hell: #e2f1fb;
  --cyan: #33b1e9;
  --gruen: #6fb64d;
  --lime: #aac94d;
  --tinte: #2a2c30;
  --tinte-2: #45474b;
  --grau: #5d5f63;
  --linie: #d7e3eb;
  --flaeche: #f4f8fb;
  --flaeche-2: #eaf3f9;
  --rand: clamp(20px, 5vw, 72px);
  --breite: 1240px;
  --kopf: "Quicksand", "Nunito Sans", system-ui, sans-serif;
  --text: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--tinte); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-underline-offset: 2px; }
a:hover { color: var(--blau-dunkel); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--kopf); font-weight: 700; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 3.8vw, 48px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--blau); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { max-width: var(--breite); margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 104px) var(--rand); }
.section.hell { background: var(--flaeche); }
.section.blau { background: var(--blau-dunkel); color: #fff; }
.section.blau a { color: #fff; }
.lead { font-size: 20px; color: var(--tinte-2); max-width: 36em; }
.section.blau .lead { color: var(--blau-hell); }
.klein { font-size: 15px; color: var(--grau); }
.section.blau .klein { color: #cfe3f1; }
.text { max-width: 44em; }
.text h2 { font-size: 30px; margin: 1.6em 0 0.5em; }
.text h3 { font-size: 22px; margin: 1.4em 0 0.4em; }

/* Kopf */
.topbar { background: var(--tinte); color: #e4e6e9; font-size: 14px; padding: 7px var(--rand); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.topbar a { color: #fff; }
/* Meldung aus Telegram (Störung / Hinweis / Mitteilung), siehe site.js und /api/v1/stoerung */
.netzmeldung { padding: 12px var(--rand); font-size: 16px; line-height: 1.45; border-bottom: 1px solid; }
.netzmeldung .wrap { display: flex; gap: 12px; align-items: flex-start; }
.netzmeldung svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.netzmeldung p { margin: 0; white-space: pre-line; }
.netzmeldung .stand { display: inline-block; margin-left: 10px; font-size: 14px; opacity: .8; white-space: nowrap; }
.netzmeldung-gelb { background: #fff3c4; border-color: #f0d27a; color: #3d3100; }
.netzmeldung-gelb svg { color: #b58500; }
.netzmeldung-blau { background: var(--blau-hell); border-color: #b5daf2; color: #0b3a5c; }
.netzmeldung-blau svg { color: var(--blau); }
.netzmeldung-gruen { background: #e8f4e0; border-color: #bfe0ab; color: #24461a; }
.netzmeldung-gruen svg { color: #4f8f33; }
.kopf { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--linie); padding: 12px var(--rand); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.logo img { height: 52px; width: auto; }
.menue-knopf { display: none; font: 600 16px var(--text); color: var(--blau); background: #fff; border: 2px solid var(--blau); min-height: 44px; padding: 0 16px; cursor: pointer; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 26px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--tinte); padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blau); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--blau); }
.nav .knopf { color: #fff; padding: 0 20px; }
.nav .knopf:hover { color: #fff; }

@media (max-width: 960px) {
  .js .menue-knopf { display: inline-flex; align-items: center; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .js .nav.offen { display: flex; }
  .js .nav a { padding: 12px 0; border-bottom: 1px solid var(--linie); }
  .js .nav a[aria-current="page"] { box-shadow: none; }
  .js .nav .knopf { margin-top: 12px; justify-content: center; border: 0; }
}

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; background: var(--blau); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--blau); cursor: pointer; font-family: var(--text); font-size: 17px; }
.knopf:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }
.knopf.zweit { background: #fff; color: var(--blau); }
.knopf.zweit:hover { background: var(--blau-hell); color: var(--blau-dunkel); }
.section.blau .knopf { background: #fff; color: var(--blau-dunkel); border-color: #fff; }
.section.blau .knopf:hover { background: var(--blau-hell); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; margin-top: 28px; }

/* Startseite */
.start { background: var(--flaeche); padding: clamp(44px, 6vw, 88px) var(--rand) clamp(40px, 5vw, 72px); }
.start h1 { max-width: none; margin-bottom: 22px; }
.start .lead { margin-bottom: 0; }
.netzkarte { margin: 56px 0 0; }
.netzkarte svg { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .pk { display: none; } }

.meldung { background: var(--flaeche-2); padding: 26px var(--rand); }
.meldung .wrap { display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: baseline; }
.meldung h2 { font-size: 22px; flex: 0 0 auto; }
.meldung p { margin: 0; flex: 1 1 520px; max-width: 62em; }

/* Seitenkopf Unterseiten */
.seitenkopf { background: var(--flaeche); padding: clamp(44px, 6vw, 80px) var(--rand); }
.seitenkopf .wrap { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.seitenkopf .wrap > div { flex: 1 1 480px; min-width: 0; }
.seitenkopf h1 { margin-bottom: 18px; }
.seitenkopf figure { flex: 1 1 380px; margin: 0; min-width: 0; }
.seitenkopf figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
figcaption { font-size: 14px; color: var(--grau); margin-top: 8px; }

/* Tarif-Tabellen */
.tabelle { overflow-x: auto; }
.tarife { width: 100%; border-collapse: collapse; min-width: 720px; }
.tarife th { text-align: left; font-weight: 700; font-size: 15px; color: var(--grau); padding: 0 20px 12px 0; border-bottom: 2px solid var(--blau); white-space: nowrap; }
.tarife td { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tarife .name { font-family: var(--kopf); font-size: 22px; font-weight: 700; white-space: nowrap; }
.tarife .preis { font-family: var(--kopf); font-size: 28px; font-weight: 700; white-space: nowrap; text-align: right; padding-right: 0; }
.tarife th.preis { font-size: 15px; font-family: var(--text); }
.tarife td a { font-size: 15px; }
.section.blau .tarife th { color: #cfe3f1; border-bottom-color: var(--lime); }
.section.blau .tarife td { border-bottom-color: #3a85b8; }

.umschalter { display: flex; flex-wrap: wrap; }
.umschalter button { font: 700 17px var(--text); padding: 0 22px; min-height: 48px; border: 2px solid var(--blau); background: #fff; color: var(--blau); cursor: pointer; }
.umschalter button + button { margin-left: -2px; }
.umschalter button[aria-pressed="true"] { background: var(--blau); color: #fff; }
.umschalter button:hover:not([aria-pressed="true"]) { background: var(--blau-hell); }
.kopfzeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: 36px; }
.kopfzeile > div { flex: 1 1 420px; min-width: 0; }
.kopfzeile h2 { margin-bottom: 12px; }
.no-js .umschalter { display: none; }
.tarifblock + .tarifblock { margin-top: 56px; }
.js .tarifblock[hidden] { display: none; }
.no-js .tarifblock h3.nur-ohne-js { display: block; }
.tarifblock h3.nur-ohne-js { display: none; margin-bottom: 16px; }

.spalten { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-top: 32px; }
.spalten > * { flex: 1 1 340px; min-width: 0; max-width: 36em; }
.hinweise { font-size: 16px; color: var(--tinte-2); }

/* Ablauf (echte Reihenfolge) */
.ablauf { list-style: none; padding: 0; margin: 0; counter-reset: schritt; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 48px; }
.ablauf li { counter-increment: schritt; padding-top: 16px; border-top: 2px solid var(--blau); }
.ablauf li::before { content: "Schritt " counter(schritt); display: block; font-weight: 700; color: var(--blau); margin-bottom: 6px; }
.ablauf h3 { font-size: 22px; margin-bottom: 8px; }

/* Listen & Raster */
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 56px; }
.raster h3 { margin-bottom: 10px; }
.linkliste { list-style: none; padding: 0; margin: 0; }
.linkliste li { border-bottom: 1px solid var(--linie); }
.linkliste a { display: block; padding: 11px 0; font-weight: 600; text-decoration: none; }
.linkliste a:hover { text-decoration: underline; }
.linkliste .klein { display: block; margin-top: -8px; padding-bottom: 10px; font-weight: 400; }
.ortsliste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; font-family: var(--kopf); font-size: 22px; font-weight: 600; }
.ortsliste li { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.zitat-zahl { font-family: var(--kopf); font-size: 34px; font-weight: 700; text-decoration: none; display: inline-block; }

.kasten { background: #fff; border: 2px solid var(--blau); padding: 24px 28px; }
.kasten h2, .kasten h3 { font-size: 26px; margin-bottom: 8px; }
.foto { margin: 0; }
.foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Fragen */
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { cursor: pointer; padding: 16px 40px 16px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 400; color: var(--blau); }
.fragen details[open] summary::after { content: "–"; }
.fragen .antwort { padding: 0 0 18px; max-width: 46em; }
.fragen h2 { font-size: 28px; margin: 48px 0 8px; }
.fragen h2:first-child { margin-top: 0; }

/* Formulare */
.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; max-width: 760px; }
.formular .voll { grid-column: 1 / -1; }
.formular label { display: block; font-weight: 700; margin-bottom: 6px; }
.formular input, .formular select, .formular textarea { width: 100%; font: 17px var(--text); color: var(--tinte); padding: 11px 12px; border: 1px solid #8a9aa6; background: #fff; min-height: 48px; }
.formular textarea { min-height: 150px; resize: vertical; }
.formular fieldset { border: 0; padding: 0; margin: 0; }
.formular legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.formular .optionen { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.formular .optionen label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; min-height: 44px; }
.formular .optionen input { width: 20px; height: 20px; min-height: 0; }
.formular .falle { position: absolute; left: -9999px; }
.formular .pflicht { color: var(--grau); font-weight: 400; }
@media (max-width: 640px) { .formular { grid-template-columns: 1fr; } }

/* Verfügbarkeit prüfen */
.vf-wahl { display: grid; grid-template-columns: 1.1fr 1.4fr 0.8fr; gap: 18px 24px; max-width: 980px; }
.vf-wahl label span { display: block; font-weight: 700; margin-bottom: 6px; }
.vf-wahl select { width: 100%; font: 17px var(--text); color: var(--tinte); padding: 11px 12px; border: 1px solid #8a9aa6; background: #fff; min-height: 48px; }
.vf-wahl select:disabled { background: var(--flaeche); color: var(--grau); }
.vf-ergebnis { margin-top: 40px; }
.vf-ergebnis:empty { margin-top: 0; }
.vf-adresse { font-size: 26px; margin-bottom: 20px; }
.vf-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vf-karte { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--flaeche); border-top: 5px solid var(--blau); }
.vf-karte h3 { font-size: 24px; margin-bottom: 12px; }
.vf-art { display: block; font-family: var(--text); font-size: 16px; font-weight: 700; color: var(--blau-dunkel); margin-bottom: 4px; }
.vf-karte p { margin-bottom: 10px; }
.vf-karte p:last-of-type { margin-bottom: 22px; }
.vf-karte .knopf { margin-top: auto; }
.vf-karte.nein { background: #fff; border: 1px solid var(--linie); border-top-width: 5px; color: var(--grau); }
.vf-karte.nein .vf-art { color: var(--grau); }
.vf-meldung { color: var(--tinte-2); }
.vf-fehlt { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--linie); max-width: 46em; }
.vf-fehlt h3 { font-size: 22px; }
@media (max-width: 900px) { .vf-karten { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .vf-wahl { grid-template-columns: 1fr; } }

/* Fuß */
.fuss { background: var(--tinte); color: #c9ccd1; padding: 56px var(--rand) 32px; font-size: 16px; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss .raster { gap: 32px 48px; }
.fuss h2 { font-family: var(--text); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { padding: 4px 0; }
.fuss .unten { margin-top: 40px; padding-top: 20px; border-top: 1px solid #45474b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }

@media print {
  .topbar, .kopf nav, .menue-knopf, .fuss, .netzkarte { display: none; }
}
a[href^="tel:"] { white-space: nowrap; }

/* Tabellen auf dem Handy als Liste */
@media (max-width: 700px) {
  .tarife { min-width: 0; }
  .tarife thead { position: absolute; left: -9999px; }
  .tarife, .tarife tbody, .tarife tr, .tarife td { display: block; width: 100%; }
  .tarife tr { padding: 16px 0; border-bottom: 1px solid var(--linie); }
  .section.blau .tarife tr { border-bottom-color: #3a85b8; }
  .tarife td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .tarife td::before { content: attr(data-label); color: var(--grau); text-align: left; font-size: 15px; }
  .section.blau .tarife td::before { color: #cfe3f1; }
  .tarife td.name { display: block; text-align: left; margin-bottom: 6px; white-space: normal; }
  .tarife td.preis { font-size: 24px; align-items: baseline; }
  .tarife td.preis::before { font-family: var(--text); font-weight: 400; }
}

/* Netzkarte: Übersicht passt in die Breite, „Eigenes Netz vergrößern“ fährt hinein */
.karte-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; margin-top: 10px; }
.karte-knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--blau); font: 600 16px var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.karte-knopf:hover { color: var(--blau-dunkel); }
.netzkarte .karte-knopf svg { width: 18px; height: 18px; flex: none; display: inline; }
.karte-knopf span { white-space: nowrap; }
.karte-knopf[aria-pressed="true"] .plus-senkrecht { display: none; }
.karte-rahmen { overflow: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.netzkarte.gross .karte-rahmen { overflow: auto; height: min(72vh, 640px); border: 1px solid var(--linie, #D7E3EB); background: #F4F8FB; }
.karte-rahmen svg { max-width: none; }
.nk-lupe { cursor: zoom-in; }
.netzkarte.gross .nk-lupe { cursor: inherit; }
.netzkarte.gross .karte-rahmen { cursor: grab; }
.netzkarte.gross .karte-rahmen.zieht { cursor: grabbing; user-select: none; }
@media (max-width: 760px) {
  .netzkarte { margin-left: calc(-1 * var(--rand)); margin-right: calc(-1 * var(--rand)); }
  .karte-leiste { padding: 0 var(--rand); }
}

/* Vergleich FTTB / FTTH */
.vergleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin-top: 36px; }
.vergleich figure { margin: 0; }
.vergleich svg { width: 100%; height: auto; display: block; background: var(--flaeche); }
.vergleich figcaption { font-size: 16px; color: var(--tinte-2); margin-top: 14px; max-width: 34em; }
.vergleich figcaption strong { display: block; font-family: var(--kopf); font-size: 22px; color: var(--tinte); margin-bottom: 6px; }
.vergleich .unsere svg { outline: 3px solid var(--blau); outline-offset: -3px; }
.vergleich .unsere figcaption strong { color: var(--blau); }
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; color: var(--grau); margin-top: 24px; }
.legende span { display: inline-flex; align-items: center; gap: 10px; }
.legende i { display: inline-block; width: 36px; height: 0; border-top: 5px solid #0a78bf; }
.legende .l-kupfer { border-top: 5px dashed #b5651d; }
@media (max-width: 760px) { .vergleich { grid-template-columns: 1fr; } }

.start h1 span { display: block; }
.drei-punkte { margin: 36px 0 8px; }
.drei-punkte > div { border-top: 3px solid var(--blau); padding-top: 16px; }
.drei-punkte p { margin: 0; color: var(--tinte-2); }
.vergleich-titel { font-size: 26px; margin: 56px 0 0; }

.weiter { margin: 28px 0 0; font-weight: 700; }
.weiter a::after { content: ""; }
.unsichtbar { position: absolute; left: -9999px; }
.netzpunkte { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 64px; }
.netzpunkte > div { border-top: 3px solid var(--blau); padding-top: 18px; }
.netzpunkte h3 { margin-bottom: 10px; }
.netzpunkte h3 span { display: block; font-family: var(--text); font-size: 14px; font-weight: 700; color: var(--blau); margin-top: 6px; }
.netzpunkte p { margin: 0; color: var(--tinte-2); max-width: 36em; }

.mehr-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; font-weight: 700; }
.vergleich-text > div { padding: 24px 28px; background: var(--flaeche); }
.vergleich-text > div.unsere { background: #fff; border: 3px solid var(--blau); }
.vergleich-text h4 { font-family: var(--kopf); font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0 0 10px; }
.vergleich-text .unsere h4 { color: var(--blau); }
.vergleich-text p { margin: 0; color: var(--tinte-2); }

.schnellwahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.schnellwahl a { display: block; background: #fff; border: 1px solid var(--linie); padding: 16px 18px; text-decoration: none; color: var(--tinte); }
.schnellwahl a:hover { border-color: var(--blau); }
.schnellwahl strong { display: block; font-family: var(--kopf); font-size: 20px; color: var(--blau); }
.schnellwahl span { font-size: 15px; color: var(--grau); }
@media (max-width: 560px) { .schnellwahl { grid-template-columns: 1fr; } }
.meldung-artikel + .meldung-artikel { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--linie); }

.fussnote { font-size: 14px; color: var(--grau); margin: 12px 0 0; }
.section.blau .fussnote { color: #cfe3f1; }
.tabellen-titel { font-family: var(--kopf); font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--blau); }
.tabelle + .fussnote + .tabellen-titel, .tabelle + .tabellen-titel { margin-top: 40px; }
@media (min-width: 701px) {
  .tarife { table-layout: fixed; }
  .tarife th:first-child { width: 30%; }
  .tarife th:last-child { width: 14%; }
}

.vergleichstabelle th[scope="row"] { text-align: left; padding: 18px 20px 18px 0; border-bottom: 1px solid #3a85b8; font-weight: 700; color: #fff; white-space: normal; }
.section.blau .vergleichstabelle td strong { font-size: 20px; }
@media (min-width: 701px) { .vergleichstabelle th:first-child { width: 28%; } .vergleichstabelle th:last-child { width: 36%; text-align: left; } }
@media (max-width: 700px) { .vergleichstabelle th[scope="row"] { display: block; border: 0; padding: 0 0 4px; } }
/* lange Tarifnamen umbrechen statt überlappen */
.tarife .name { white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.tarife td, .tarife th { overflow-wrap: break-word; }

/* Sicherheitsprüfung (wie im Bestellsystem) */
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; color: var(--tinte-2); min-height: 24px; }
.captcha .cap-info { flex-basis: 100%; font-size: 13px; color: var(--grau); }
.cap-ok, .cap-err { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.cap-ok { background: #e3f3dc; color: #3f8a2a; }
.cap-err { background: #fde6e3; color: #b3261e; }
.cap-spin { width: 14px; height: 14px; border: 2px solid var(--linie); border-top-color: var(--blau); border-radius: 50%; animation: capdreh .8s linear infinite; flex: none; }
@keyframes capdreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cap-spin { animation-duration: 2.4s; } }

/* Bestätigung nach dem Absenden eines Formulars */
.danke .wrap { display: flex; justify-content: center; }
.danke-kasten { max-width: 640px; text-align: center; padding: 24px 0 32px; }
.danke-kasten h1 { margin: 18px 0 14px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.danke-haken { width: 72px; height: 72px; fill: #e3f3dc; stroke: #3f8a2a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.danke-haken path { fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: hakenzug .5s .2s ease-out forwards; }
@keyframes hakenzug { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .danke-haken path { animation: none; stroke-dashoffset: 0; } }
.danke-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* Fehlermeldung am Formular deutlicher */
#formular-status.fehler { border-color: #b3261e; background: #fdf1ef; color: #7a1a14; }

/* Tipps zur Fehlersuche: Zwischenüberschriften und Listen in Antworten */
.fragen .antwort h4 { font-family: var(--kopf); font-weight: 700; font-size: 18px; margin: 22px 0 6px; }
.fragen .antwort ol, .fragen .antwort ul { padding-left: 1.3em; margin: 6px 0 12px; }
.fragen .antwort li { margin-bottom: 10px; }
.fragen .antwort li ul { margin-top: 6px; }
.fragen .antwort li ul li { margin-bottom: 4px; }

/* Vertragsunterlagen aus der Datenbank */
[data-dokumente] { margin-top: 20px; max-width: 46em; }
.dokumente .dok-hinweis { color: var(--grau); }
.dok-fehler { border-left: 3px solid #b3261e; background: #fdf1ef; padding: 12px 16px; color: #7a1a14; }

/* Netzkarte: Slogan und Fahrzeit-Blase */
.netzkarte { position: relative; }
.karte-titel { font: 700 20px/1.25 var(--kopf); color: #1F5F8B; margin: 24px 0 8px; }
.karte-titel span { display: block; }
.netzkarte.gross .karte-hinweis { display: none; }
@media (min-width: 900px) {
  /* Slogan in der freien Ecke oben links der Karte */
  .karte-titel { position: absolute; z-index: 2; top: 0; left: 0; max-width: 17em; margin: 0; font-size: clamp(20px, 2vw, 25px); pointer-events: none; }
  .netzkarte.gross .karte-titel { display: none; }
}
.nk-ziel { cursor: pointer; outline: none; }
.nk-ziel:focus-visible { stroke: #0A78BF; stroke-width: 3; }
[data-ort] { cursor: pointer; }
.nk-weg { stroke: #0A78BF; stroke-width: 3; stroke-dasharray: 6 6; fill: none; pointer-events: none; }
.nk-gewaehlt { fill: rgba(10,120,191,.15); stroke: #0A78BF; stroke-width: 2.5; }
.karte-blase { position: absolute; z-index: 5; width: max-content; max-width: min(300px, calc(100% - 20px)); background: #fff; border-top: 4px solid var(--blau); box-shadow: 0 8px 28px rgba(10,60,100,.22); padding: 12px 40px 14px 16px; transform: translate(-50%, calc(-100% - 14px)); }
.karte-blase::after { content: ""; position: absolute; left: var(--pfeil, 50%); bottom: -9px; width: 16px; height: 16px; background: #fff; transform: translateX(-50%) rotate(45deg); box-shadow: 4px 4px 8px rgba(10,60,100,.08); }
.karte-blase.unten { border-top: 0; border-bottom: 4px solid var(--blau); }
.karte-blase.unten::after { bottom: auto; top: -9px; box-shadow: -4px -4px 8px rgba(10,60,100,.08); }
.karte-blase strong { display: block; font: 700 18px var(--kopf); }
.karte-blase .zeit { display: block; font-size: 16px; margin: 2px 0; }
.karte-blase .klein { display: block; color: var(--grau); }
.karte-blase a { display: inline-block; margin-top: 8px; font-weight: 700; }
.karte-blase .zu { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--grau); cursor: pointer; }
