@font-face { font-family: "Space Grotesk"; src: url(/assets/fonts/space-grotesk.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --grund: #0F1214; --flaeche: #1A1F23; --text: #ECEFF1; --leise: #8D979E;
  --kupfer: #E0894F; --an: #5BE38C; --aus: #3A4248; --fuge: #2A3238;
  --akzent: var(--kupfer); --akzent-text: #14100C; --linie: #2E363C; --fehler: #F4A397; --fokus: var(--kupfer);
  --feld: #14181B; --gewaehlt: #ECEFF1; --gewaehlt-text: #0F1214;
  --schrift-titel: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --schrift-text: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --titel-gewicht: 700; --rundung: 0; --rundung-chip: 0; --rundung-fenster: 0; --groesse: 18px;
  --rahmen-h: 48px; --schiene-h: 60px;
  color-scheme: dark;
}
html { scroll-padding-top: calc(var(--rahmen-h) + var(--schiene-h) + 16px); }
main { position: relative; --leitung-x: 24px; --inhalt-x: 48px; }

.logo-strich { fill: none; stroke: var(--kupfer); stroke-width: 3; stroke-linecap: square; }
.logo-klemme { fill: var(--an); filter: drop-shadow(0 0 4px var(--an)); }
.logo-wort { fill: var(--text); font: 500 30px var(--schrift-titel); letter-spacing: .3em; }

/* Statuszeile */
.el-status { position: relative; border-bottom: 1px solid var(--fuge); }
.el-status-innen { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 12px 24px; }
.el-kurz { justify-self: start; display: flex; align-items: flex-start; gap: 10px; font: 14px/1.5 var(--mono); }
.el-lampe { flex: none; width: 9px; height: 9px; margin-top: .5em; border-radius: 50%; background: var(--an); box-shadow: 0 0 10px var(--an); }
.el-logo { display: block; line-height: 0; }
.el-logo svg { height: 46px; width: auto; overflow: visible; }
.el-knopf { justify-self: end; min-height: 44px; white-space: nowrap; }
.el-zuleitung { position: absolute; left: var(--leitung-x); right: 50%; bottom: -1px; height: 2px; background: var(--kupfer); }

/* Sicherungsleiste auf der Hutschiene, links am Inhalt */
.el-schiene {
  position: sticky; top: var(--rahmen-h); z-index: 30; display: flex; justify-content: flex-start;
  height: var(--schiene-h); padding: 6px max(24px, calc((100% - 1180px) / 2)); background: var(--grund); border-bottom: 1px solid var(--fuge);
}
.el-schiene::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 14px; translate: 0 -50%;
  background: repeating-linear-gradient(90deg, #262E34 0 22px, #1A2025 22px 30px); border-block: 1px solid #333C42;
}
.el-sicherungen { position: relative; display: flex; gap: 2px; padding: 2px; background: var(--fuge); }
.el-sicherungen a {
  display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 92px; padding: 2px 10px;
  background: #14181B; text-decoration: none; color: var(--leise);
}
.el-sicherungen a:hover, .el-sicherungen a[aria-current] { color: var(--text); }
.el-name { font: 12px/1.5 var(--mono); white-space: nowrap; }
.el-sicherungen .el-hebel { height: 22px; }

/* Knöpfe als Leitungsschutzschalter: Hebel links, beim Überfahren schaltet er ein */
.knopf, .el-knopf {
  position: relative; display: inline-flex; align-items: center; gap: 0; min-height: 48px; padding: 10px 20px 10px 52px;
  border: 0; border-radius: 2px; background: #E4E8EA; color: #0F1214; box-shadow: inset 0 -3px 0 #B9C1C6;
  font: 500 15px/1.5 var(--mono); letter-spacing: .03em; text-decoration: none; cursor: pointer;
  transition: none;
}
.knopf::before, .el-knopf::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 30px; translate: 0 -50%;
  border-radius: 2px; background: #2A3238; box-shadow: inset 0 0 0 2px #4A545B;
}
.knopf::after, .el-knopf::after {
  content: ""; position: absolute; left: 20px; top: 50%; width: 10px; height: 11px; translate: 0 2px;
  border-radius: 1px; background: #8D979E; transition: translate .12s, background-color .12s;
}
.knopf:hover, .el-knopf:hover { transform: none; }
.knopf:hover::after, .knopf:focus-visible::after, .el-knopf:hover::after, .el-knopf:focus-visible::after { translate: 0 -13px; background: var(--an); }
.knopf:active { box-shadow: inset 0 -1px 0 #B9C1C6; }
.el-knopf { min-height: 44px; padding-block: 8px; }

/* Hebel eines Automaten: unten aus, oben an */
.el-hebel { position: relative; display: inline-block; flex: none; width: 14px; height: 24px; border: 2px solid #4A545B; border-radius: 2px; background: #0B0E10; }
.el-hebel::before {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 7px; border-radius: 1px;
  background: #7B858C; transition: transform .12s, background .12s;
}
[data-an] > .el-hebel::before, [aria-current] > .el-hebel::before { transform: translateY(calc(-100% - 4px)); background: var(--an); box-shadow: 0 0 6px var(--an); }
.el-sicherungen .el-hebel::before { height: 6px; }

/* Leitung am linken Rand */
.el-leitung { position: absolute; z-index: 1; left: var(--leitung-x); top: var(--leitung-oben, 0); width: 2px; height: var(--leitung-h, 0); pointer-events: none; }
.el-draht { display: block; height: 100%; background: var(--kupfer); transform-origin: 50% 0; transform: scaleY(var(--l, 1)); }
.el-leitung::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: var(--end-b, 0); height: 2px; background: var(--kupfer);
  transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s;
}
.el-leitung[data-am-ende]::after { transform: none; }
.el-kreis { position: relative; }
.el-abzweig {
  position: absolute; left: var(--leitung-x); top: 0; width: max(2px, calc(var(--inhalt-x) - var(--leitung-x) - 22px)); height: 2px;
  background: var(--kupfer); transform-origin: 0 50%; transform: scaleX(0); transition: transform .18s;
}
.el-abzweig::after { content: ""; position: absolute; right: -10px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--aus); transition: background .18s; }
[data-an] > .el-abzweig { transform: none; }
[data-an] > .el-abzweig::after { background: var(--an); box-shadow: 0 0 10px var(--an); }
.el-kreis > .huelle { transition: filter .18s; }
.el-bereit .el-kreis:not([data-an]) > .huelle { filter: brightness(.55) saturate(.4); }

/* Kopf: Felder im Verteiler. Aus sind sie dunkel, eingeschaltet hell wie Schaltermodule. */
.el-kopf { position: relative; z-index: 2; padding-block: 28px 80px; }
.el-kacheln {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "bild titel titel" "bild satz status";
  gap: 2px; padding: 2px; background: var(--fuge);
}
.el-kachel { position: relative; padding: 92px 32px 32px; background: #D9DEE1; color: #0F1214; }
.el-bereit .el-kachel:not([data-an]) { background: #14181B; color: #8D979E; }
.el-kachel > .el-hebel { position: absolute; z-index: 1; left: 22px; top: 18px; width: 34px; height: 58px; border-width: 3px; border-color: #2A3238; background: #11161A; }
.el-kachel > .el-hebel::before { left: 4px; right: 4px; bottom: 4px; height: 20px; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.el-kachel[data-an] > .el-hebel::before { transform: translateY(calc(-100% - 10px)); }
.el-k-titel { grid-area: titel; display: flex; align-items: flex-end; min-height: 320px; }
.el-k-titel h1 { font-size: clamp(56px, 7.4vw, 112px); line-height: .95; letter-spacing: -.035em; }
.el-k-bild { grid-area: bild; padding: 0; min-height: 460px; background: #0B0E10; }
.el-bild { position: absolute; inset: 0; }
.el-bild img { object-position: 74% 50%; }
.el-bereit .el-k-bild:not([data-an]) img { filter: brightness(.15) saturate(.4); }
.el-k-satz { grid-area: satz; display: grid; align-content: end; justify-items: start; gap: 24px; }
.satz { max-width: 30ch; font-size: 19px; }
.el-k-satz .knopf { background: #0F1214; color: #ECEFF1; box-shadow: inset 0 -3px 0 #000; }
.el-bereit .el-k-satz:not([data-an]) .knopf { opacity: .55; }
.el-k-status { grid-area: status; display: grid; align-content: end; gap: 18px; }
.el-led { width: 26px; height: 26px; border-radius: 50%; background: var(--aus); box-shadow: inset 0 0 0 3px #00000033; }
.el-k-status[data-an] .el-led { background: var(--an); box-shadow: 0 0 0 6px #5BE38C33, 0 0 22px var(--an); }
.el-meldung { max-width: 18ch; font: 17px/1.5 var(--mono); }

h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.02em; }

/* Leistungen als Automaten */
.el-leistungen { padding-block: 96px; background: #0B0E10; }
.el-leistungen .el-abzweig { top: 120px; }
.el-automaten { margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--fuge); }
.el-automaten li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 32px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--fuge); color: var(--text); transition: color .18s;
}
.el-automaten h3 { font-size: clamp(23px, 2.5vw, 32px); font-weight: 500; line-height: 1.2; }
.el-automaten p { font-size: 18px; color: #B9C1C6; transition: color .18s; }
.el-bereit .el-automaten li:not([data-an]), .el-bereit .el-automaten li:not([data-an]) p { color: var(--leise); }

/* Notdienst und Rückruf */
.el-notdienst { padding-block: 104px; background: var(--flaeche); }
.el-notdienst .el-abzweig { top: 128px; }
.el-notdienst-raster { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.el-notdienst-kopf { position: sticky; top: calc(var(--rahmen-h) + var(--schiene-h) + 28px); }
.status { display: flex; align-items: flex-start; gap: 12px; font: 19px/1.5 var(--mono); }
.lampe { flex: none; width: 10px; height: 10px; margin-top: .55em; border-radius: 50%; background: var(--aus); }
[data-zustand="an"] .lampe { background: var(--an); box-shadow: 0 0 12px var(--an); }
[data-zustand="gefahr"] .lampe { background: var(--kupfer); box-shadow: 0 0 12px var(--kupfer); }
[data-zustand="gefahr"] [data-status-text] { color: var(--kupfer); }
.status-karte { margin-top: 36px; padding: 26px; border: 2px solid var(--fuge); background: var(--grund); }
.status-klein { margin-top: 14px; padding-left: 22px; font: 14px/1.6 var(--mono); color: var(--leise); }
.status-klein:empty { display: none; }
.rueckruf h3 { font-size: 26px; font-weight: 500; }
.rueckruf .frage legend, .rueckruf .frage > label { font: 13px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #B9C1C6; }
.rueckruf .wahl { gap: 4px; }
.rueckruf .chip span {
  gap: 10px; padding: 9px 14px 9px 12px; border: 1px solid var(--fuge); border-radius: 0; background: #14181B; color: #B9C1C6;
  font: 15px/1.5 var(--mono);
}
.rueckruf .chip span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--aus); }
.rueckruf .chip input:checked + span { background: #1C2622; color: var(--text); }
.rueckruf .chip input:checked + span::before { background: var(--an); box-shadow: 0 0 8px var(--an); }
.rueckruf .chip input:disabled + span { opacity: 1; color: #8D979E; background: #0F1214; }
.rueckruf .chip input:disabled + span::before { background: none; box-shadow: inset 0 0 0 1px #4A545B; }
.rueckruf .eingabe { border: 1px solid var(--fuge); border-left: 3px solid var(--kupfer); background: #0B0E10; font: 16px/1.5 var(--mono); }
.rueckruf .eingabe:focus { border-color: var(--kupfer); }
.rueckruf .formhinweis { padding-left: 12px; border-left: 1px solid var(--fuge); font: 14px/1.6 var(--mono); }
.tage { margin-bottom: 10px; }
.fenster { margin-top: 12px; }
.formhinweis:empty { display: none; }
.kontaktersatz { margin-top: -10px; }
.rueckruf > .knopf { justify-self: start; }

/* So arbeiten wir */
.el-ablauf { padding-block: 112px; }
.el-ablauf .el-abzweig { top: 136px; }
.el-ablauf-raster { display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: stretch; }
.el-schritte { margin: 48px 0 0; padding: 0; list-style: none; display: grid; gap: 34px; }
.el-schritte li { display: grid; grid-template-columns: 24px 1fr; gap: 24px; align-items: start; }
.el-schritte .el-hebel { margin-top: 6px; }
.el-schritte p { font-size: 20px; color: var(--leise); }
.el-schritte strong { display: block; color: var(--text); font-size: 26px; font-weight: 500; }
.el-ablauf-bild { position: relative; min-height: 380px; justify-self: center; width: 100%; max-width: 420px; }
.el-ablauf-bild img { position: absolute; inset: 0; }
.el-ablauf-bild img { transition: filter .5s; }
.el-bereit .el-ablauf:not([data-an]) .el-ablauf-bild img { filter: brightness(.35) saturate(.6); }

/* Abschluss: Einsatzradius */
.fuss { padding-top: 112px; }
.el-ende { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.el-radius { width: 100%; max-width: 380px; justify-self: start; overflow: visible; }
.el-radius .ring { fill: none; stroke: var(--kupfer); stroke-width: 1.5; }
.el-radius .ring + .ring { opacity: .7; }
.el-klemme { fill: var(--aus); stroke: var(--kupfer); stroke-width: 2; transition: fill .18s; }
.el-ende[data-an] .el-klemme { fill: var(--an); filter: drop-shadow(0 0 6px var(--an)); }
.el-ring-text { fill: var(--leise); font: 13px var(--mono); }
.el-ort { fill: var(--text); font: 13px var(--mono); }
.el-ring-text { paint-order: stroke; stroke: var(--grund); stroke-width: 8px; }
.el-ende-text { display: grid; gap: 18px; justify-items: start; font-size: 19px; color: var(--leise); }
.el-ende-text h2 { color: var(--text); }
.angaben { margin: 0; display: grid; gap: 14px; width: 100%; }
.angaben div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--linie); }
.angaben dt { font: 14px/1.6 var(--mono); color: var(--kupfer); }
.angaben dd { margin: 0; color: var(--text); }
.beispielangaben { font: 13px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.kennzeichnung { font: 14px/1.6 var(--mono); color: var(--leise); }
.fuss-zeile { margin-top: 72px; }

/* Fenster */
.anfrage-text p:first-child { font-family: var(--mono); font-size: 15px; }

@media (max-width: 1099px) {
  .el-notdienst-raster, .el-ablauf-raster { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .el-notdienst-kopf { position: static; }
  .el-ablauf-bild { justify-self: start; }
}
@media (max-width: 759px) {
  :root { --groesse: 17px; --schiene-h: 52px; }
  html { scroll-padding-top: calc(var(--schiene-h) + 12px); }
  main { --leitung-x: 12px; --inhalt-x: 34px; }
  .huelle { width: auto; margin-inline: 34px 16px; }

  .el-status-innen { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 10px 16px 10px 34px; }
  .el-logo { grid-row: 1; }
  .el-logo svg { height: 38px; }
  /* Am Handy ist der Knopf oben nur das Schaltermodul, der Text bleibt für Vorleser */
  .el-knopf { grid-row: 1; width: 44px; min-height: 44px; padding: 0; }
  .el-knopf::before { left: 13px; }
  .el-knopf::after { left: 17px; }
  .el-knopf-text { display: none; }
  .el-kurz { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .el-zuleitung { right: auto; width: 22px; }

  .el-schiene { top: 0; padding: 4px 16px 4px 34px; }
  .el-sicherungen a { min-width: 52px; min-height: 44px; }
  .el-name { display: none; }

  .el-kopf { padding-block: 16px 56px; }
  .el-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "titel titel" "bild status" "satz satz"; }
  .el-kachel { padding: 72px 18px 20px; }
  .el-kachel > .el-hebel { left: 14px; top: 12px; width: 26px; height: 46px; }
  .el-kachel > .el-hebel::before { height: 15px; }
  .el-kachel[data-an] > .el-hebel::before { transform: translateY(calc(-100% - 6px)); }
  .el-k-titel { min-height: 0; }
  .el-k-titel h1 { font-size: clamp(42px, 13vw, 60px); }
  .el-k-bild { min-height: 0; aspect-ratio: 3 / 4; }
  .el-bild img.nur-handy { object-position: 50% 50%; }
  .el-k-status { padding-inline: 14px; }
  .el-meldung { font-size: 14px; }
  .satz { font-size: 17px; }

  .el-leistungen, .el-notdienst { padding-block: 64px; }
  .el-leistungen .el-abzweig, .el-notdienst .el-abzweig { top: 84px; }
  .el-ablauf { padding-block: 72px; }
  .el-ablauf .el-abzweig { top: 92px; }
  .el-automaten li { grid-template-columns: 24px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; }
  .el-automaten p { grid-column: 2; font-size: 17px; }
  .el-schritte li { gap: 16px; }
  .el-schritte strong { font-size: 22px; }
  .el-schritte p { font-size: 18px; }
  .el-ablauf-bild { min-height: 0; aspect-ratio: 16 / 9; max-width: none; }
  .status-karte { padding: 20px; }
  .status { font-size: 17px; }

  .fuss { padding-top: 72px; }
  .el-ende { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .el-radius { max-width: 260px; }
  .angaben div { grid-template-columns: 1fr; gap: 2px; }
  .fuss-zeile { margin-top: 48px; }
}
