/* Startseite: Abschnitte. Bauteile des Rechners stehen in rechner.css, Grundlagen und Bewegung in site.css. */

.sec { padding: clamp(40px, 4.5vw, 64px) 0; }
.sec--quiet { background: var(--quiet); }
.sec-title { margin-bottom: var(--s5); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3) var(--s6); align-items: end; margin-bottom: var(--s5); }

/* Aufzählung als kurze Leiterbahn mit Knoten */
.points li { position: relative; padding: 4px 0 4px 26px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.92em; width: 13px; height: 2px; background: var(--blue); }
.points li::after { content: ""; position: absolute; left: 11px; top: calc(0.92em - 3px); width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--blue); }

/* Platzhalter für Fotos, Film und Logos: ruhige Fläche, unten links steht, was hier hinkommt */
.ph { position: relative; width: 100%; background: #e4e9ed; display: grid; align-items: end; }
.ph span { padding: 14px 16px; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); max-width: 36ch; }
.ph--photo { aspect-ratio: 3 / 2; }
.ph--calc { aspect-ratio: 16 / 7; border-radius: var(--r-field); }
.shot { display: block; overflow: hidden; border-radius: var(--r-area); text-decoration: none; color: inherit; }
.shot > .ph { transition: transform 1400ms var(--ease); }
.shot:hover > .ph { transform: scale(1.035); }

/* ---------- Hero ---------- */
.hero-field, .alarm-field { position: relative; margin-inline: clamp(8px, 1.2vw, 16px); border-radius: var(--r-area); background: var(--navy); color: #fff; }
.hero-field { margin-top: clamp(8px, 1.2vw, 16px); padding-top: calc(var(--header-h) + clamp(24px, 4vw, 64px)); }
.on-dark .lead { color: var(--on-navy); }
.hero-grid { position: relative; display: grid; min-height: clamp(380px, 38vw, 520px); }
.hero-copy { align-self: center; padding-bottom: clamp(40px, 6vw, 88px); display: grid; gap: var(--s5); justify-items: start; }
.hero-copy h1 { max-width: 15ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }
/* ---------- Logo-Laufband ---------- */

/* ---------- Leistungen ---------- */
/* Weitere Leistungen: eine Zeile je Leistung. Beim Überfahren zieht sich die blaue Linie durch, der Pfeil rückt vor. */

/* Zeilen aus Begriff und Erklärung (Leistungsseiten) */
.also-list div { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: var(--s4) var(--s6); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.also-list div:first-child { border-top: 1px solid var(--line); }
.also-list dt { font: 700 1.25rem/1.25 var(--font-head); letter-spacing: -0.02em; }
.also-list dd { color: var(--muted); max-width: 64ch; }


/* ---------- Vorgehen ---------- */
.way { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s5) clamp(32px, 5vw, 72px); align-items: start; }
.report-sheet { background: var(--quiet); border-radius: var(--r-area); padding: clamp(20px, 2.6vw, 36px); }
.report-head { display: flex; align-items: center; gap: var(--s3); font-size: 0.875rem; color: var(--muted); }
.report-head img { width: 26px; height: 26px; }
.report-head span:last-child { margin-left: auto; }
.report-title { font: 800 clamp(1.5rem, 2.2vw, 2rem)/1.15 var(--font-head); letter-spacing: -0.02em; margin: var(--s4) 0 var(--s3); }
.report-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s4); align-items: start; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.report figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); }
.way-steps { display: grid; gap: var(--s4); position: sticky; top: calc(var(--header-h) + var(--s5)); }
/* Leiterbahn: grau vorgezeichnet, blau gefüllt bis zur Lesehöhe (--p setzt motion.js) */
.flow { position: relative; padding-left: 38px; margin-top: var(--s3); --p: 1; }
.flow::before, .flow::after { content: ""; position: absolute; left: 8px; top: 8px; width: 2px; }
.flow::before { bottom: 8px; background: var(--line); }
.flow::after { height: calc((100% - 16px) * var(--p)); background: var(--blue); }
.flow > div { position: relative; padding-bottom: var(--s5); }
.flow > div:last-child { padding-bottom: 0; }
.flow > div::before { content: ""; position: absolute; z-index: 1; left: -38px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ground); border: 2.5px solid var(--blue-ink); box-shadow: inset 0 0 0 3px var(--ground), inset 0 0 0 9px var(--blue-ink); transition: box-shadow var(--t-mid), border-color var(--t-mid), transform var(--t-mid) var(--ease); }
.flow dt { font: 700 1.25rem/1.25 var(--font-head); letter-spacing: -0.02em; transition: color var(--t-mid); }
.flow dd { color: var(--muted); max-width: 48ch; }
.js-anim .flow > div:not(.is-on)::before { border-color: var(--edge); box-shadow: inset 0 0 0 9px var(--ground); transform: scale(0.9); }
.js-anim .flow > div:not(.is-on) dt { color: var(--muted); }

/* ---------- Notfall ---------- */
.alarm { padding: var(--s5) 0; }
.alarm-field { padding: clamp(40px, 5vw, 72px) 0; }
.alarm-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s4) var(--s6); }
.alarm-head .lead { margin-top: var(--s3); }
.alarm-tel { font: 800 clamp(1.75rem, 3.6vw, 3.25rem)/1 var(--font-head); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.alarm-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--s6); counter-reset: schritt; }
.alarm-list li { position: relative; padding: 46px var(--s5) 0 0; counter-increment: schritt; }
.alarm-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: var(--blue); transform-origin: left; }
.alarm-list li::after { content: counter(schritt); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); border: 2px solid var(--blue); font: 700 0.875rem var(--font-body); }
.alarm-list p { color: var(--on-navy); }
.alarm-list b { display: block; color: #fff; font: 700 1.125rem/1.3 var(--font-head); margin-bottom: 4px; }
.js-anim .alarm-list li::before { transform: scaleX(0); transition: transform 1000ms var(--ease-io); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.js-anim .alarm-list li.is-in::before { transform: none; }

/* ---------- Fernwartung ---------- */
.remote { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s4) var(--s6); align-items: start; }
.remote-how { font-size: 1.1875rem; max-width: 60ch; }
.remote-how a { color: var(--blue-ink); font-weight: 600; text-underline-offset: 3px; }
.remote-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); margin-top: var(--s5); }
.remote-cta .small { max-width: 46ch; }


/* ---------- Referenz ---------- */

/* ---------- Kontakt ---------- */

@media (max-width: 960px) {
  [data-par] { transform: none; }
  .sec-head, .way, .remote, .end { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .way-steps { position: static; order: -1; }
  .alarm-list { grid-template-columns: 1fr 1fr; gap: var(--s5) 0; }
}
@media (max-width: 620px) {
  .also-list div { grid-template-columns: 1fr; gap: 2px; }
  .alarm-list { grid-template-columns: 1fr; }
  .report-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Anfahrt: Karte aus OpenStreetMap-Daten im Stil der Leiterbahnen ---------- */
.map { position: relative; margin-top: var(--s6); border-radius: var(--r-area); overflow: hidden; background: var(--navy); aspect-ratio: 3 / 2; max-height: 760px; width: 100%; }
.karte { width: 100%; height: 100%; }
.karte path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.karte .k-green { fill: #12313f; }
.karte .k-svc { stroke: #1d3d4e; stroke-width: 1; }
.karte .k-res { stroke: #28495b; stroke-width: 1.5; }
.karte .k-main { stroke: #41657a; stroke-width: 2.8; }
.karte .k-mw { stroke: #5a879f; stroke-width: 5; }
.karte .k-rail { stroke: #7a93a3; stroke-width: 1.6; stroke-dasharray: 8 6; }
.karte .k-bld { fill: #1a3d4f; }
.karte .k-office { fill: var(--blue); }
.karte .k-road { fill: #8fb0c2; font: 700 15px var(--font-head); }
.karte text { fill: #fff; font: 600 15px var(--font-body); paint-order: stroke; stroke: var(--navy); stroke-width: 5px; stroke-linejoin: round; }
/* Wege: weiß, zeichnen sich beim Umschalten */
.k-route { stroke: #fff; stroke-width: 3.5; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
.map[data-route="auto"] .k-route[data-r="auto"], .map[data-route="bahn"] .k-route[data-r="bahn"], .map[data-route="bus"] .k-route[data-r="bus"] { opacity: 1; }
.js-anim .map .k-route { stroke-dashoffset: 1; }
.js-anim .map.is-in[data-route="auto"] .k-route[data-r="auto"], .js-anim .map.is-in[data-route="bahn"] .k-route[data-r="bahn"], .js-anim .map.is-in[data-route="bus"] .k-route[data-r="bus"] { stroke-dashoffset: 0; transition: stroke-dashoffset 1900ms var(--ease-io) 200ms; }
.mk circle { fill: var(--navy); stroke: var(--blue); stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform var(--t-mid) var(--ease), fill var(--t-mid), stroke var(--t-mid); }
.mk { opacity: 0.5; transition: opacity var(--t-mid); }
.map[data-route="auto"] .mk--auto, .map[data-route="bahn"] .mk--bahn, .map[data-route="bus"] .mk--bus { opacity: 1; }
.map[data-route="auto"] .mk--auto circle, .map[data-route="bahn"] .mk--bahn circle, .map[data-route="bus"] .mk--bus circle { fill: #fff; stroke: #fff; transform: scale(1.25); }
.pin-dot { fill: #fff; stroke: var(--blue); stroke-width: 5; }
.pin-halo { fill: var(--blue); transform-box: fill-box; transform-origin: center; animation: pin 2.6s var(--ease) infinite; }
.pin text { font: 800 20px var(--font-head); }
.pin .pin-sub { font: 400 14px var(--font-body); }
@keyframes pin { from { transform: scale(0.8); opacity: 0.7; } to { transform: scale(3.4); opacity: 0; } }
.map-ui { position: absolute; left: var(--s4); top: var(--s4); width: min(290px, calc(100% - 2 * var(--s4))); background: var(--ground); color: var(--ink); border-radius: var(--r-area); padding: var(--s4); display: grid; gap: var(--s3); justify-items: start; font-size: 0.9375rem; }
.map-ui :focus-visible { outline-color: var(--blue-ink); }
.map-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1.5px var(--line); }
.map-tabs button { padding: 7px 16px; border-radius: var(--r-btn); color: var(--ink); font-size: 0.9375rem; transition: background var(--t-short), color var(--t-short); }
.map-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.map-text { color: var(--muted); min-height: 6.4em; }
.map-text[hidden] { display: none; }
.map-text b { display: block; color: var(--ink); font: 800 1.5rem/1.2 var(--font-head); letter-spacing: -0.02em; margin-bottom: 4px; }
.map-credit { position: absolute; right: var(--s3); bottom: var(--s2); font-size: 0.75rem; color: var(--on-navy); }
.map-credit a { text-underline-offset: 2px; }

/* ---------- Leistungsseiten ---------- */
.page-hero { padding-bottom: clamp(40px, 6vw, 88px); overflow: hidden; }
.page-hero .wrap { position: relative; display: grid; gap: var(--s5); justify-items: start; }
.page-hero h1 { max-width: 18ch; }
.crumbs { display: flex; gap: var(--s2); font-size: 0.875rem; color: var(--on-navy); }
.crumbs a { text-underline-offset: 3px; }
.talk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); background: var(--quiet); border-radius: var(--r-area); padding: clamp(24px, 4vw, 56px); }
.talk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }
.talk .alarm-tel { --f-off: var(--ink); --f-on: var(--blue-ink); font-size: clamp(1.5rem, 2.6vw, 2.25rem); }

@media (max-width: 620px) {
  .map { aspect-ratio: auto; max-height: none; }
  .map .karte { aspect-ratio: 4 / 5; height: auto; }
  .map-ui { position: static; width: auto; border-radius: 0; }
  .map-credit { position: static; padding: 6px var(--s4); background: var(--ground); color: var(--muted); }
}

@media (max-width: 620px) { .karte text { font-size: 22px; } .pin text { font-size: 28px; } .pin .pin-sub { font-size: 20px; } }


/* ---------- Leistungszeilen mit Icon im Knoten ---------- */

/* ---------- EDR oder MDR: Feld mit fließenden Lichtbändern ---------- */
.glow-field { overflow: hidden; }
.glow-field > .wrap { position: relative; }
.ribbon { position: absolute; inset: -10%; width: 120%; height: 120%; filter: blur(34px) saturate(1.25); opacity: 0.75; pointer-events: none; }

/* ---------- Fernwartung: QuickSupport als eine große Schaltfläche ---------- */
.tv { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--s4) var(--s5); align-items: center; margin: var(--s5) 0 var(--s3); padding: var(--s4) var(--s5); border-radius: var(--r-area); background: var(--quiet); text-decoration: none; transition: background var(--t-mid), color var(--t-mid); }
.tv-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue-ink); color: #fff; transition: transform var(--t-mid) var(--ease), background var(--t-mid); }
.tv-ic svg { width: 30px; height: 30px; }
.tv-text b { display: block; font: 800 1.375rem/1.2 var(--font-head); letter-spacing: -0.02em; }
.tv-text small { font-size: 0.9375rem; color: var(--muted); transition: color var(--t-mid); }
.tv-go { padding: 12px 22px; border-radius: var(--r-btn); background: var(--blue-ink); color: #fff; font-weight: 600; font-size: 0.9375rem; transition: background var(--t-mid), color var(--t-mid); }
.tv:hover { background: var(--navy); color: #fff; }
.tv:hover .tv-text small { color: var(--on-navy); }
.tv:hover .tv-ic { transform: translateY(-4px); background: var(--blue); }
.tv:hover .tv-go { background: #fff; color: var(--navy); }

/* ---------- Partnerschaften ---------- */
/* ---------- Google-Bewertungen: links Note und Anzahl, rechts drei Stimmen als Zeilen an einer Linie. Knoten statt Sterne. ---------- */
.revs { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s5) var(--s6); margin-top: var(--s7); }
.revs-title { grid-column: 1 / -1; font: 800 1.5rem/1.2 var(--font-head); letter-spacing: -0.02em; }
.revs-sum { display: grid; gap: var(--s2); align-content: start; justify-items: start; }
.revs-note { font: 800 clamp(3.5rem, 6vw, 5rem)/0.95 var(--font-head); letter-spacing: -0.03em; color: var(--ink); }
.revs-count { font-weight: 600; }
.revs-sum .link { margin-top: var(--s2); font-size: 0.9375rem; }
/* fünf Knoten: außen Ringe, darüber bis --p gefüllte */
.knoten { position: relative; display: block; justify-self: start; overflow: hidden; width: 92px; height: 14px; background: radial-gradient(circle at 7px 7px, transparent 4.4px, var(--blue-ink) 5px 6.5px, transparent 7px) 0 0 / 19.5px 14px repeat-x; }
.knoten::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 100%); background: radial-gradient(circle at 7px 7px, var(--blue-ink) 6.5px, transparent 7px) 0 0 / 19.5px 14px repeat-x; }
.revs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.revs-list li { display: grid; gap: var(--s3); align-content: start; padding-top: var(--s4); border-top: 2px solid var(--blue); }
.revs-list blockquote { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.revs-wer { display: flex; flex-wrap: wrap; gap: 2px var(--s3); font-size: 0.875rem; }
.revs-wer span { color: var(--muted); }
@media (max-width: 960px) { .revs, .revs-list { grid-template-columns: 1fr; } }

/* ---------- Kontaktformular: Köderfeld und Rückmeldung ---------- */
.cform-koeder { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-status { padding: var(--s3) var(--s4); border-left: 3px solid var(--sky); background: rgba(143, 212, 255, 0.12); color: #fff; font-weight: 600; }
.cform-status.is-fehler { border-left-color: #ff9d8c; background: rgba(224, 82, 60, 0.18); }
.cform button:disabled { opacity: 0.6; cursor: progress; }

.certs ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.certs li { display: flex; align-items: center; gap: var(--s3); font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.certs img { width: 44px; height: 44px; object-fit: contain; flex: none; }

/* ---------- Kontaktformular ---------- */

/* ---------- Impressum, Datenschutz ---------- */
.legal { max-width: calc(820px + 2 * var(--gutter)); padding-block: var(--s6) var(--s7); overflow-wrap: break-word; }
.legal h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: var(--s5); }
.legal h2 { font: 800 1.5rem/1.2 var(--font-head); margin: var(--s6) 0 var(--s3); }
.legal h3, .legal h4 { font: 700 1.125rem/1.3 var(--font-head); margin: var(--s5) 0 var(--s2); }
.legal p, .legal ul, .legal ol { margin-bottom: var(--s4); }
.legal ul, .legal ol { padding-left: 1.3em; list-style: revert; }
.legal a { color: var(--blue-ink); text-underline-offset: 3px; }

/* ---------- Support-Hinweis unten rechts (motion.js) ---------- */

@media (max-width: 960px) { .certs ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .tv { grid-template-columns: 52px minmax(0, 1fr); }
  .tv-ic { width: 52px; height: 52px; }
  .tv-go { grid-column: 1 / -1; text-align: center; }
}
@media (max-width: 620px) {
}

/* ---------- Kreis mit Icon: der Knoten aus dem Logo als Träger ---------- */
.ring { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--blue-ink); box-shadow: inset 0 0 0 1.5px var(--blue); transition: background var(--t-mid), color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid) var(--ease); }
.ring svg { width: 24px; height: 24px; overflow: visible; }

/* ---------- Kundenlogos: grau, beim Überfahren farbig. Gleiche optische Größe über --h, Schutzraum links und rechts fest. ---------- */
.logos { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: center; gap: var(--s5); margin-top: var(--s5); padding-block: var(--s5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos-label { font-weight: 600; }
.logos-view { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; flex: none; align-items: center; animation: logos 44s linear infinite; }
.logos-track li { flex: none; padding-inline: clamp(28px, 3.4vw, 52px); }
.logos-view:hover .logos-track { animation-play-state: paused; }
.logos img { height: var(--h, 32px); width: auto; filter: grayscale(1) contrast(0.85); opacity: 0.6; transition: filter var(--t-mid), opacity var(--t-mid); }
.logos li:hover img, .certs li:hover img { filter: none; opacity: 1; }
.certs img { filter: grayscale(1); opacity: 0.65; transition: filter var(--t-mid), opacity var(--t-mid); }
@keyframes logos { to { transform: translateX(-100%); } }

/* ---------- Leistungen: Namensliste links, Feld mit den Einzelheiten rechts ---------- */
.board { position: relative; display: grid; padding-right: calc(58% + var(--s6)); min-height: 560px; }
.board > li { border-bottom: 1px solid var(--line); }
.board > li:first-child { border-top: 1px solid var(--line); }
.board-name { position: relative; display: flex; align-items: center; gap: var(--s4); padding: 10px 0; text-decoration: none; font: 800 clamp(1.25rem, 1.9vw, 1.75rem)/1.15 var(--font-head); letter-spacing: -0.02em; color: var(--muted); transition: color var(--t-mid), padding var(--t-mid) var(--ease); }
.board-name .ring { width: 44px; height: 44px; }
.board-name .ring svg { width: 21px; height: 21px; }
/* gewählt: Name schwarz, Knoten gefüllt, eine Leiterbahn läuft zum Feld */
.board > li.is-on .board-name { padding-left: var(--s2); }
.board-name > span:last-child { color: transparent; background: linear-gradient(to right, var(--ink) 50%, var(--muted) 50%) 100% 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; transition: background-position 520ms var(--ease); }
.board > li.is-on .board-name > span:last-child { background-position: 0 0; }
.board > li.is-on .ring { background: var(--blue-ink); color: #fff; box-shadow: none; }
.board-name::after { content: ""; flex: 1; height: 2px; margin-right: calc(-1 * var(--s6)); background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); }
.board > li.is-on .board-name::after { transform: none; }
.board-short { display: none; }
.board-detail { position: absolute; right: 0; top: 0; bottom: 0; width: 58%; border-radius: var(--r-area); background: var(--navy); color: #fff; padding: clamp(24px, 3.4vw, 48px); display: grid; align-content: center; justify-items: start; gap: var(--s4); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity var(--t-mid), transform 700ms var(--ease), visibility 0s var(--t-mid); }
.board > li.is-on .board-detail { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.board-detail h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 800; }
.board-detail > p { color: var(--on-navy); max-width: 52ch; }
.board-detail .points { color: #fff; }
.board-mark { position: absolute; right: -40px; bottom: -50px; width: 300px; height: 300px; stroke-width: 0.6; color: var(--blue); opacity: 0.35; pointer-events: none; }

/* ---------- Unterseiten: weitere Leistungen als Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles + .talk { margin-top: var(--s5); }
.quellen { margin-top: var(--s4); color: var(--muted); }
.quellen a { color: var(--blue-ink); text-underline-offset: 3px; }
.tiles a { display: grid; gap: 6px; align-content: start; height: 100%; padding: var(--s5); border-radius: var(--r-area); background: var(--quiet); text-decoration: none; transition: background var(--t-mid), color var(--t-mid), transform var(--t-mid) var(--ease); }
.tiles .ring { margin-bottom: var(--s3); background: var(--ground); }
.tiles b { font: 800 1.25rem/1.2 var(--font-head); letter-spacing: -0.02em; }
.tiles small { font-size: 0.9375rem; color: var(--muted); transition: color var(--t-mid); }
.tiles a:hover { background: var(--navy); color: #fff; transform: translateY(-4px); }
.tiles a:hover small { color: var(--on-navy); }
.tiles a:hover .ring { background: var(--blue-ink); color: #fff; box-shadow: none; }


/* ---------- Kontakt: Abschlussfeld. Links die Wege zu uns groß gesetzt, rechts das Formular auf Linien statt in Kästen. ---------- */
.end { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6) clamp(32px, 6vw, 96px); align-items: start; }
.end-info { display: grid; gap: var(--s4); justify-items: start; }
.end-tel { font: 800 clamp(2rem, 3.6vw, 3.25rem)/1.05 var(--font-head); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; margin-top: var(--s4); }
.end-mail { font: 700 clamp(1.25rem, 1.8vw, 1.625rem)/1.2 var(--font-head); text-decoration: none; }
.end address { font-style: normal; color: var(--on-navy); margin-top: var(--s3); padding-top: var(--s4); border-top: 1px solid rgba(255, 255, 255, 0.2); }
.cform { display: grid; gap: var(--s5); }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.fld { position: relative; display: grid; gap: 4px; }
.fld span { font-size: 0.8125rem; font-weight: 600; color: var(--on-navy); transition: color var(--t-short); }
.fld input, .fld textarea { width: 100%; padding: 6px 0 10px; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 0; background: transparent; color: #fff; font: 400 1.125rem/1.4 var(--font-body); transition: border-color var(--t-short); }
.fld textarea { resize: vertical; min-height: 96px; }
.fld::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.fld:focus-within::after { transform: none; }
.fld:focus-within span { color: #fff; }
.fld input:hover, .fld textarea:hover { border-bottom-color: #fff; }
.fld input:focus, .fld textarea:focus { outline: 0; }
/* vom Browser ausgefüllte Felder behalten Schrift und Grund des Feldes */
.fld input:-webkit-autofill, .fld input:-webkit-autofill:focus, .fld textarea:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 100px #17394c inset; transition: background-color 9999s; }
.cform-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
.cform-end .small { color: var(--on-navy); max-width: 44ch; }
.cform-end .small a { color: #fff; text-underline-offset: 3px; }

/* ---------- Support-Hinweis unten rechts (motion.js) ---------- */
.support { position: fixed; right: var(--s4); bottom: var(--s4); z-index: 35; width: min(360px, calc(100vw - 2 * var(--s4))); background: var(--navy); color: #fff; border-radius: var(--r-area); padding: var(--s4); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s3); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); transform: translateY(140%); transition: transform 900ms var(--ease); }
.support.is-on { transform: none; }
.support-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-ink); }
.support-ic svg { width: 22px; height: 22px; }
.support-txt { padding-right: var(--s5); }
.support b { font: 700 1.0625rem/1.25 var(--font-head); }
.support p { font-size: 0.875rem; color: var(--on-navy); margin-top: 2px; }
.support-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.support .btn { min-height: 40px; padding: 0 18px; }
.support-off { font-size: 0.8125rem; color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }
.support-x { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--on-navy); }
.support-x svg { width: 16px; height: 16px; }
.support :focus-visible { outline-color: #fff; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .board { padding-right: 0; min-height: 0; }
  .board-detail { display: none; }
  .board-name::after { display: none; }
  .board > li.is-on .board-name { color: var(--muted); padding-left: 0; }
  .board > li.is-on .ring { background: none; color: var(--blue-ink); box-shadow: inset 0 0 0 1.5px var(--blue); }
  .board-name { color: var(--ink) !important; padding-bottom: 0; }
  .board-short { display: block; color: var(--muted); padding: 2px 0 12px 60px; }
}
@media (max-width: 620px) {
  .logos { grid-template-columns: 1fr; gap: var(--s3); }
  .tiles, .cform-row { grid-template-columns: 1fr; }
  .cform-end .btn { width: 100%; }
  .support p { display: none; }
}

/* ---------- Originkit-Komponenten (werkzeug/originkit): füllen ihr Feld hinter dem Inhalt ---------- */
.ok { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-area); pointer-events: none; }
.hero-field .ok { pointer-events: auto; -webkit-mask-image: linear-gradient(to right, transparent 18%, #000 52%); mask-image: linear-gradient(to right, transparent 18%, #000 52%); }
.hero-grid { pointer-events: none; }
.hero-grid > * { pointer-events: auto; }
.ok--soul { bottom: auto; height: clamp(300px, 36vw, 500px); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 88%); mask-image: linear-gradient(to bottom, #000 55%, transparent 88%); }
.glow-field:has(.ok--soul) { padding-top: clamp(250px, 31vw, 440px); }
.soul-head { display: grid; justify-items: center; text-align: center; margin-bottom: var(--s6); }
.hero-copy .lead { max-width: 40ch; }

/* ---------- Beispielbericht: Dringlichkeit als Knoten mit Wort, keine Etiketten ---------- */
.st { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; padding-top: 3px; }
.st::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid currentColor; }
.st--now { color: var(--red); } .st--now::before { background: currentColor; }
.st--wait { color: var(--muted); }
.st--ok { color: #1b6b3a; } .st--ok::before { background: currentColor; box-shadow: inset 0 0 0 2px var(--quiet); }

/* ---------- EDR und MDR: zwei Karten, Licht folgt dem Mauszeiger (--mx, --my setzt motion.js) ---------- */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: stretch; }
.vs-card { position: relative; border-radius: var(--r-area); padding: clamp(22px, 2.8vw, 40px); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -20%), rgba(57, 160, 220, 0.24), transparent 62%), rgba(255, 255, 255, 0.035); transition: box-shadow var(--t-mid); }
.vs-card:hover { box-shadow: inset 0 0 0 1px rgba(143, 212, 255, 0.5); }
.vs-card header { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s4); align-items: center; margin-bottom: var(--s5); }
.vs-card .ring { grid-row: span 2; width: 60px; height: 60px; color: var(--sky); box-shadow: inset 0 0 0 1.5px var(--sky); }
.vs-card .ring svg { width: 28px; height: 28px; }
.vs-card h3 { font-size: clamp(2.5rem, 4.6vw, 4rem); font-weight: 800; line-height: 1; }
.vs-card header p { color: var(--on-navy); font-size: 0.9375rem; }
.vs-card dl div { padding: var(--s4) 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.vs-card dt { font-size: 0.8125rem; font-weight: 600; color: var(--sky); margin-bottom: 4px; }
.vs-card dd { font-size: 1.125rem; line-height: 1.4; }
/* MDR: gefüllter Knoten und ein Lichtstrahl, der um den Rand läuft */
.vs-card--mdr { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -20%), rgba(57, 160, 220, 0.34), transparent 62%), rgba(31, 132, 191, 0.16); }
.vs-card--mdr .ring { background: var(--sky); color: var(--navy); }
.vs-card--mdr::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 62%, #39a0dc 78%, #dff3ff 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 5.5s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }
/* Verbindung: die Leiterbahn von EDR zu MDR, in der Mitte das, was dazukommt */
.vs-plus { position: relative; display: grid; place-items: center; }
.vs-plus::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(to right, rgba(143, 212, 255, 0.25), var(--sky)); }
.vs-plus span { position: relative; padding: 9px 12px; border-radius: var(--r-btn); background: var(--sky); color: var(--navy); font: 800 0.8125rem/1 var(--font-head); white-space: nowrap; }
.vs-more { margin-top: var(--s5); text-align: center; color: var(--on-navy); }
.vs-more b { color: #fff; }
.vs-more .link { margin-left: var(--s3); }

/* ---------- Kontakt: Lichtbänder gedämpft, damit Schrift und Felder klar lesbar bleiben ---------- */
#kontakt .ribbon { opacity: 0.3; filter: blur(48px) saturate(1.1); }
#kontakt .fld span { color: #d5e2ea; }
#kontakt .fld input, #kontakt .fld textarea { border-bottom-color: rgba(255, 255, 255, 0.6); }
#kontakt .lead, #kontakt address, #kontakt .cform-end .small { color: #d5e2ea; }

@media (max-width: 860px) {
  .vs { grid-template-columns: 1fr; }
  .vs-plus { height: 72px; }
  .vs-plus::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(to bottom, rgba(143, 212, 255, 0.25), var(--sky)); }
  .vs-more .link { display: inline-block; margin: var(--s2) 0 0; }
}

/* ---------- Schrift auf Nachtblau: dort, wo Licht oder Linien hinter dem Text liegen, heller und mit nachtblauem Schein ---------- */
.hero-copy .lead, .soul-head .lead, .page-hero .lead { color: #e3edf3; text-shadow: 0 0 10px var(--navy), 0 0 22px var(--navy); }
.hero-copy h1, .page-hero h1 { text-shadow: 0 0 24px rgba(15, 42, 58, 0.7); }
.map-credit { color: #dbe6ee; text-shadow: 0 0 4px var(--navy), 0 0 10px var(--navy); }
.crumbs { color: #dbe6ee; }
.vs-more { color: #dbe6ee; }
.vs-card header p { color: #cfdde6; }

/* ---------- Hero: die vier Schritte des Kreislaufs an der Lichtschleife (--a = halbe Breite der Schleife, setzt motion.js).
   Jeder Schritt ist ein Knoten im Faserbündel; eine 2-px-Leiterbahn (--l lang) führt nach außen zur Schrift. .ab = Schrift unter der Schleife. ---------- */
.loop-labels { position: absolute; left: 73%; top: 50%; width: 0; height: 0; pointer-events: none; }
.loop-labels li { position: absolute; left: calc(var(--x) * var(--a, 320px)); top: calc(var(--y) * var(--a, 320px)); width: 0; height: 0; --l: calc(0.13 * var(--a, 320px)); }
.loop-labels li::before { content: ""; position: absolute; left: -1px; bottom: 0; width: 2px; height: var(--l); border-radius: 1px; background: var(--sky); transform-origin: 50% 100%; }
.loop-labels li::after { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 2px var(--sky); }
.loop-labels span { position: absolute; left: 0; bottom: calc(var(--l) + 12px); translate: -50% 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font: 700 1.0625rem/1 var(--font-head); color: #fff; text-shadow: 0 0 10px var(--navy), 0 0 22px var(--navy); }
.loop-labels b { font-weight: 700; color: var(--sky); font-variant-numeric: tabular-nums lining-nums; }
.loop-labels .ab::before { bottom: auto; top: 0; transform-origin: 50% 0; }
.loop-labels .ab span { bottom: auto; top: calc(var(--l) + 12px); }
@media (max-width: 1100px) { .loop-labels { display: none; } }
/* Einblenden in Laufrichtung: erst der Knoten, dann wächst die Leiterbahn heraus, dann die Schrift */
.loop-labels li:nth-child(1) { --t: 1200ms; } .loop-labels li:nth-child(2) { --t: 1600ms; } .loop-labels li:nth-child(3) { --t: 2000ms; } .loop-labels li:nth-child(4) { --t: 2400ms; }
.js-anim .loop-labels li::after { opacity: 0; transition: opacity 400ms var(--ease) var(--t); }
.js-anim .loop-labels li::before { transform: scaleY(0); transition: transform 700ms var(--ease) calc(var(--t) + 200ms); }
.js-anim .loop-labels span { opacity: 0; transition: opacity 700ms var(--ease) calc(var(--t) + 600ms); }
.js-anim .loop-labels.is-in li::after, .js-anim .loop-labels.is-in span { opacity: 1; }
.js-anim .loop-labels.is-in li::before { transform: none; }

/* ---------- Nachbesserungen aus der Prüfung ---------- */
/* Handy: Statt Lichtschleife und Leiterbahnen steht das Logo-O groß und leise im Feld */
@media (max-width: 760px) {
  .hero-field::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 280px; height: 280px; background: url("../brand/o-blue.png") center / contain no-repeat; opacity: 0.22; pointer-events: none; }
  .hero-field > .wrap { position: relative; z-index: 1; }
}
/* Formular: deutlicher Fokus, Feldname und Linie werden hellblau */
.fld:focus-within span { color: var(--sky); }
.fld::after { height: 3px; }
/* Das Logo-Laufband hält auch bei Tastaturfokus an */
.logos:focus-within .logos-track { animation-play-state: paused; }
@media (max-width: 760px) { .hero-field { overflow: hidden; } }
@media (max-width: 960px) { .end { grid-template-columns: 1fr; } }

/* ---------- Leistungsseiten: Hero mit eigenem Bild, Umfang als nummerierte Felder, Nutzen als nachtblaues Feld, Ablauf ---------- */
.page-hero--vis .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: var(--s6); }
.page-hero-copy { display: grid; gap: var(--s5); justify-items: start; }
.page-hero-vis { justify-self: end; width: 100%; max-width: 540px; }
.vis { display: block; width: 100%; height: auto; overflow: visible; }
.vis .v-l { stroke: var(--sky); stroke-opacity: 0.5; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vis .v-b { stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vis .v-f { fill: rgba(143, 212, 255, 0.07); stroke: var(--sky); stroke-opacity: 0.5; stroke-width: 1.5; }
.vis .v-f.v-b { stroke-opacity: 1; stroke-width: 2; }
.vis .v-n { fill: var(--navy); stroke: var(--sky); stroke-width: 2; }
.vis .v-on { fill: var(--sky); }
.vis .v-bar { fill: var(--sky); fill-opacity: 0.3; }
.vis .v-sweep { fill: rgba(143, 212, 255, 0.16); }
.js-anim .vis .v-float { animation: vfloat 5s ease-in-out var(--fd, 0s) infinite alternate; }
@keyframes vfloat { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); }
.scope div { position: relative; padding: var(--s5) 0 var(--s5) 68px; border-top: 1px solid var(--line); }
.scope-n { position: absolute; left: 0; top: var(--s5); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue-ink); font: 800 1rem/1 var(--font-head); }
.scope dt { font: 800 1.375rem/1.2 var(--font-head); letter-spacing: -0.02em; margin-bottom: 4px; }
.scope dd { color: var(--muted); max-width: 52ch; }
.gains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s6); }
.gains li { position: relative; padding-top: 40px; font: 700 clamp(1.25rem, 1.9vw, 1.625rem)/1.25 var(--font-head); letter-spacing: -0.02em; }
.gains li::before { content: ""; position: absolute; left: 0; right: var(--s5); top: 9px; height: 2px; background: var(--sky); transform-origin: left; }
.gains li::after { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--sky); box-shadow: inset 0 0 0 5px var(--navy), 0 0 0 2px var(--sky); }
.js-anim .gains li::before { transform: scaleX(0); transition: transform 1000ms var(--ease-io) calc(var(--i, 0) * 90ms + 200ms); }
.js-anim .gains li.is-in::before { transform: none; }
/* Ablauf auf hellem Grund: dieselbe nummerierte Bahn wie im Notfall-Feld */
.steps { margin-top: 0; }
.steps li::after { background: var(--ground); border-color: var(--blue); color: var(--blue-ink); }
.steps p { color: var(--muted); }
.steps b { color: var(--ink); }
@media (max-width: 960px) {
  .page-hero--vis .wrap { grid-template-columns: 1fr; }
  .page-hero-vis { justify-self: start; max-width: 420px; }
  .scope, .gains { grid-template-columns: 1fr; }
  .hero-field.page-hero--vis::after { display: none; }
}
.sec--quiet .tiles a { background: var(--ground); }
.sec--quiet .tiles a:hover { background: var(--navy); }
.sec--quiet .tiles .ring { background: var(--quiet); }

/* ---------- Handy, modern: Lichtschleife im Hero, Kacheln zum Wischen, Karte sauber, Schnellzugriff statt Support-Hinweis ---------- */
@media (max-width: 760px) {
  .hero-field:has(> .ok)::after { display: none; }
  .hero-field:has(> [data-originkit="infinity"]) { padding-bottom: clamp(230px, 64vw, 300px); }
  .hero-field .ok { -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 56%); mask-image: linear-gradient(to bottom, transparent 30%, #000 56%); }
  .support { display: none; }
  .tiles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles li { flex: 0 0 74%; scroll-snap-align: center; }
  .map-credit { color: var(--muted); text-shadow: none; font-size: 0.8125rem; }
  .map-credit a { color: var(--blue-ink); }
  .map-ui { padding: var(--s5) var(--s4); }
  .vs-card h3 { font-size: 2.75rem; }
  .alarm-tel, .end-tel { font-size: clamp(1.75rem, 8.6vw, 2.25rem); }
}

