/* Betriebs-Homepage (/w/:slug). Bewusst NICHT das Polier-Markenbild: eigene Leitfarbe und
   Bildsprache je Gewerk (body.stil-wasser | stil-strom | stil-holz, Farbe aus website_json.farbe). */

@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../shared/fonts/archivo-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../shared/fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: "Hanken Grotesk Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../shared/fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Hanken Grotesk Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../shared/fonts/hanken-grotesk-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }

:root {
  --leit: #0B5A6B;            /* wird per JS aus website_json.farbe gesetzt */
  --leit-hell: color-mix(in srgb, var(--leit) 9%, #fff);
  --leit-linie: color-mix(in srgb, var(--leit) 28%, #fff);
  --tinte: #1C2024;
  --grau: #596169;
  --linie: #DADDDF;
  --grund: #FFFFFF;
  --flaeche: #F5F6F6;
  --warn: #9A3412;            /* Hinweisbanner, Dringend */
  --warn-hell: #FFF4E5;
  --ok: #1F7A4D;
  --kopf: "Archivo Variable", "Arial Narrow", sans-serif;
  --kopf-breite: 100%;
  --kopf-gewicht: 750;
  --text: "Hanken Grotesk Variable", system-ui, sans-serif;
  --ecke: 6px;
}
/* Installateur: Wasser, Rohr, ruhig-technisch */
.stil-wasser { --kopf-breite: 96%; --kopf-gewicht: 720; --flaeche: #F2F6F7; }
/* Elektriker: breit, kantig, Schaltplan */
.stil-strom { --kopf-breite: 118%; --kopf-gewicht: 800; --ecke: 2px; --flaeche: #F4F4F3; }
/* Tischler: Holz, Werkstatt, eine ruhige Antiqua für Überschriften (Systemschrift, nichts geladen) */
.stil-holz { --kopf: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; --kopf-breite: 100%; --kopf-gewicht: 600; --ecke: 3px; --flaeche: #F6F5F3; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--grund); color: var(--tinte); font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: var(--leit); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--leit); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--kopf); font-stretch: var(--kopf-breite); font-weight: var(--kopf-gewicht); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 .8em; }
.neben { color: var(--grau); font-size: .9375rem; }
.unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rahmen { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .rahmen { padding: 0 32px; } }

.sprung { position: absolute; left: 8px; top: -60px; background: var(--tinte); color: #fff; padding: 10px 14px; z-index: 10; }
.sprung:focus { top: 8px; }

/* Demo-Band: sichtbar, aber leise */
.demo-band { background: #2A2E33; color: #E6E8EA; font-size: .8125rem; text-align: center; padding: 5px 16px; }

/* Hinweisbanner aus dem Chat („Freitag geschlossen") */
.hinweis { background: var(--warn-hell); border-bottom: 2px solid var(--warn); color: #5A1F07; }
.hinweis__innen { display: flex; gap: 12px; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; font-weight: 600; }
.hinweis svg { flex: none; margin-top: 2px; color: var(--warn); }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 5; background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopf__innen { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.kopf__marke { display: grid; text-decoration: none; color: var(--tinte); line-height: 1.15; margin-right: auto; min-width: 0; }
.kopf__marke span { font-family: var(--kopf); font-stretch: var(--kopf-breite); font-weight: var(--kopf-gewicht); font-size: 1.2rem; overflow-wrap: anywhere; }
.kopf__marke small { color: var(--grau); font-size: .8125rem; }
.kopf__nav { display: none; gap: 22px; }
.kopf__nav a { color: var(--tinte); text-decoration: none; font-weight: 550; padding: 8px 0; }
.kopf__nav a:hover { color: var(--leit); text-decoration: underline; }
.kopf__anruf { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--ecke); background: var(--leit); color: #fff; font-weight: 700; text-decoration: none; }
.kopf__anruf:hover { filter: brightness(.9); }
@media (min-width: 900px) { .kopf__nav { display: flex; } }

/* Held: das Wichtigste oben */
.held { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.held__innen { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 900px) { .held__innen { grid-template-columns: 1.25fr .9fr; align-items: center; padding-top: 56px; padding-bottom: 64px; gap: 48px; } }
.held__ort { font-weight: 650; color: var(--leit); margin-bottom: .6em; }
.held__unter { font-size: 1.1875rem; color: #343A40; max-width: 38em; }
.held__bild { color: var(--leit); max-width: 420px; justify-self: center; width: 100%; }
.held__bild svg { width: 100%; height: auto; }
@media (max-width: 899px) { .held__bild { display: none; } }

.offen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 650; margin: 18px 0 22px; }
.offen__punkt { width: 12px; height: 12px; border-radius: 50%; background: var(--grau); flex: none; }
.offen--ja .offen__punkt { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.offen--ja .offen__status { color: var(--ok); }
.offen--nein .offen__status { color: var(--tinte); }
.offen__mehr { font-weight: 400; color: var(--grau); }

.wege { display: grid; gap: 12px; }
@media (min-width: 560px) { .wege { grid-template-columns: 1fr 1fr; } }
.weg { display: grid; gap: 6px; align-content: start; padding: 16px 18px; min-height: 64px; border-radius: var(--ecke); text-decoration: none; border: 2px solid var(--leit); }
.weg__titel { display: flex; align-items: center; gap: 10px; font-family: var(--kopf); font-stretch: var(--kopf-breite); font-weight: var(--kopf-gewicht); font-size: 1.375rem; line-height: 1.1; }
.weg__zusatz { font-size: .9375rem; line-height: 1.4; }
.weg--anruf { background: var(--leit); color: #fff; }
.weg--anruf .weg__zusatz { color: color-mix(in srgb, #fff 88%, var(--leit)); }
.weg--schreiben { background: var(--grund); color: var(--leit); }
.weg--schreiben .weg__zusatz { color: var(--tinte); }
.weg:hover { filter: brightness(.94); }
.weg:active { transform: translateY(1px); }
.gebiet { margin: 18px 0 0; color: #343A40; font-size: .9375rem; }
.gebiet strong { color: var(--tinte); }

/* Blöcke */
.block { padding: 48px 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 900px) { .block { padding: 72px 0; } }
.zwei { display: grid; gap: 32px; }
@media (min-width: 900px) { .zwei { grid-template-columns: 1fr 1fr; gap: 64px; } .zwei--form { grid-template-columns: .8fr 1.2fr; } }

.leistungen { list-style: none; margin: 24px 0 0; padding: 0; display: grid; border-top: 2px solid var(--tinte); counter-reset: l; }
@media (min-width: 720px) { .leistungen { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.leistungen li { counter-increment: l; display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 8px; padding: 16px 0 18px; border-bottom: 1px solid var(--linie); }
.leistungen li::before { content: counter(l, decimal-leading-zero); grid-row: span 2; font-family: var(--kopf); font-stretch: var(--kopf-breite); font-weight: 700; color: var(--leit); font-variant-numeric: tabular-nums; padding-top: 2px; }
.leistungen h3 { margin: 0; }
.leistungen p { margin: 0; color: #3A4046; }

.block--zweig { background: var(--flaeche); }
.zeiten { border-collapse: collapse; width: 100%; max-width: 420px; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.zeiten th, .zeiten td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linie); font-weight: 400; }
.zeiten th { width: 45%; }
.zeiten tr.heute th, .zeiten tr.heute td { font-weight: 750; }
.zeiten tr.heute th::after { content: " · heute"; font-weight: 500; color: var(--leit); }
.notdienst { border-left: 4px solid var(--leit); padding-left: 20px; align-self: start; }
.notdienst--kein { border-left-color: var(--linie); }

.ueber { font-size: 1.1875rem; max-width: 34em; }
.fakten { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; align-self: start; border-top: 2px solid var(--tinte); padding-top: 16px; }
.fakten dt { color: var(--grau); }
.fakten dd { margin: 0; font-weight: 600; }

/* Formular */
.block--anfrage { background: var(--leit-hell); }
form { display: grid; gap: 14px; background: var(--grund); border: 1px solid var(--leit-linie); padding: 20px; border-radius: var(--ecke); }
@media (min-width: 720px) { form { padding: 28px; } }
.reihe { display: grid; gap: 14px; }
@media (min-width: 560px) { .reihe { grid-template-columns: 1fr 1fr; } .reihe--adresse { grid-template-columns: 1fr 7.5rem; } }
.f { display: grid; gap: 5px; }
.f > span, legend { font-weight: 650; font-size: .9375rem; }
input:not([type]), input[type=tel], textarea { width: 100%; font: inherit; color: inherit; min-height: 48px; padding: 10px 12px; border: 1.5px solid #9AA2A9; border-radius: var(--ecke); background: #fff; }
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--leit) 45%, transparent); outline-offset: 0; border-color: var(--leit); }
[aria-invalid=true] { border-color: var(--warn) !important; background: var(--warn-hell) !important; }
.plz-hinweis { margin: -6px 0 0; font-size: .9375rem; min-height: 0; }
.plz-hinweis:empty { display: none; }
.plz-hinweis--ja { color: var(--ok); }
.plz-hinweis--nein { color: var(--warn); }
.zaehler { margin: -8px 0 0; text-align: right; }
.dringlich { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.dringlich label, .einwilligung { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
input[type=radio], input[type=checkbox] { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--leit); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formfehler { color: var(--warn); font-weight: 650; margin: 0; }
.formfehler:empty { display: none; }
.senden { min-height: 52px; border: 0; border-radius: var(--ecke); background: var(--leit); color: #fff; font: inherit; font-weight: 750; font-size: 1.125rem; cursor: pointer; padding: 0 24px; justify-self: start; }
.senden:hover { filter: brightness(.9); }
.senden[disabled] { opacity: .6; cursor: progress; }
.danke { background: var(--grund); border: 2px solid var(--ok); padding: 24px; border-radius: var(--ecke); align-self: start; }
.danke h3 { color: var(--ok); }

/* Kontakt, Recht */
address { font-style: normal; font-size: 1.125rem; line-height: 1.6; }
.kontaktliste { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.kontaktliste dt { color: var(--grau); }
.kontaktliste dd { margin: 0; overflow-wrap: anywhere; }
.block--recht { background: var(--flaeche); font-size: .9375rem; color: #343A40; }
.block--recht h2 { font-size: 1.375rem; }
.block--recht h3 { font-size: 1rem; margin: 1.2em 0 .3em; font-family: var(--text); font-stretch: 100%; font-weight: 700; }
.block--recht dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 1em; }
.block--recht dt { color: var(--grau); }
.block--recht dd { margin: 0; overflow-wrap: anywhere; }

.fuss { background: #22262A; color: #C9CDD1; font-size: .875rem; }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.fuss__polier { color: #C9CDD1; }
.fuss__polier:hover { color: #fff; }
