/* Rimsing Elektrotechnik – Beispielentwurf von update. */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

@font-face { font-family: "Barlow Ersatz"; src: local("Arial Narrow"), local("Liberation Sans Narrow"), local("Arial"), local("Liberation Sans"), local("DejaVu Sans"); size-adjust: 82%; ascent-override: 100%; descent-override: 25%; }
@font-face { font-family: "Serif Ersatz"; src: local("Georgia"), local("Liberation Serif"), local("DejaVu Serif"), local("Times New Roman"); size-adjust: 98%; }

:root {
  --papier: #E9ECE7;
  --papier-hell: #F5F6F3;
  --tusche: #1C2324;
  --graphit: #4E5656;
  --linie: #A9B0AC;
  --kupfer: #82461F;
  --kupfer-dunkel: #5F3215;
  --pe-gruen: #2F6B34;
  --pe-gelb: #D9C23A;

  --kond: "Barlow Condensed", "Barlow Ersatz", sans-serif;
  --serif: "Source Serif 4", "Serif Ersatz", serif;

  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.375rem;
  --t-3xl: 3.5rem;

  --rand: clamp(1.25rem, 4vw, 3rem);
  --breite: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tusche);
  font-family: var(--serif);
  font-size: var(--t-m);
  line-height: 1.62;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--kond);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(var(--t-xl), 4.4vw, var(--t-2xl)); }
h3 { font-size: var(--t-l); line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--kupfer); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--kupfer-dunkel); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--kupfer); outline-offset: 3px; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--tusche); color: var(--papier); padding: .6rem 1rem; z-index: 10; font-family: var(--kond); }
.skip:focus { top: 2.5rem; }

/* Demo-Hinweis */
.demo-hinweis {
  margin: 0;
  padding: .35rem var(--rand);
  font-family: var(--kond);
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: .02em;
  color: var(--graphit);
  background: var(--papier-hell);
  border-bottom: 1px solid var(--linie);
  text-align: center;
}
.demo-hinweis a { color: var(--graphit); }

/* Buttons und Links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: .6rem 1.35rem;
  font-family: var(--kond); font-weight: 600; font-size: 1.125rem; letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid var(--kupfer);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn-voll { background: var(--kupfer); color: #fff; }
.btn-voll:hover { background: var(--kupfer-dunkel); border-color: var(--kupfer-dunkel); color: #fff; }
.btn-linie { background: transparent; color: var(--kupfer); }
.btn-linie:hover { background: var(--kupfer); color: #fff; }
.btn:active { transform: translateY(1px); }
.link { font-family: var(--kond); font-weight: 600; font-size: 1.0625rem; }

/* Kopf */
.kopf { border-bottom: 1px solid var(--tusche); background: var(--papier); }
.kopf-in {
  max-width: var(--breite); margin: 0 auto; padding: .8rem var(--rand);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem;
}
.marke { display: flex; align-items: center; gap: .65rem; color: var(--tusche); text-decoration: none; }
.marke:hover { color: var(--tusche); }
.marke-zeichen { width: 20px; height: 30px; fill: none; stroke: var(--tusche); stroke-width: 2.6; stroke-linecap: round; }
.marke-zeichen path + path { stroke: var(--kupfer); }
.marke-text { display: flex; flex-direction: column; line-height: 1; }
.marke-name { font-family: var(--kond); font-weight: 600; font-size: 1.6rem; letter-spacing: .01em; }
.marke-zusatz { font-family: var(--kond); font-weight: 500; font-size: var(--t-xs); color: var(--graphit); margin-top: .2rem; }

.nav { order: 3; flex-basis: 100%; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; white-space: nowrap; gap: .1rem 1.1rem; }
.nav a { font-family: var(--kond); font-weight: 500; font-size: 1.0625rem; color: var(--tusche); text-decoration: none; padding: .35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--kupfer); color: var(--tusche); }

.kopf-tel { margin-left: auto; font-family: var(--kond); font-weight: 600; font-size: 1.25rem; color: var(--tusche); text-decoration: none; text-align: right; line-height: 1.1; }
.kopf-tel-l { display: block; font-weight: 500; font-size: var(--t-xs); color: var(--graphit); }
@media (max-width: 30rem) { .kopf-tel-l { display: none; } .kopf-tel { font-size: 1.0625rem; } .nav ul { gap: .1rem .8rem; } .nav a { font-size: 1rem; } }

@media (min-width: 62rem) {
  .nav { order: 0; flex-basis: auto; margin-left: auto; }
  .nav ul { gap: 1.6rem; }
  .kopf-tel { margin-left: 0; padding-left: 1.6rem; border-left: 1px solid var(--linie); }
}

/* Abschnitte */
.sektion-in { max-width: var(--breite); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--rand); }
.sektion-kopf { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sektion-kopf h2 { margin-bottom: .6rem; }
.sektion-kopf p { color: var(--graphit); margin: 0; }

/* Hero: ruhige Textfläche links, Foto rechts bis an den Rand */
.hero { border-bottom: 1px solid var(--tusche); background: var(--papier); }
.hero-in { display: grid; }
.hero-text { padding: clamp(1.75rem, 6vw, 4.5rem) var(--rand) clamp(2.5rem, 6vw, 4.5rem); order: 2; }
.hero h1 { font-size: clamp(2.25rem, 7.4vw, 3.5rem); line-height: 1.02; max-width: 19ch; margin-bottom: 1.25rem; }
.hero-lead { font-size: var(--t-l); line-height: 1.5; max-width: 34rem; margin-bottom: 1.75rem; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.btn-tel { font-size: 1.25rem; }
.hero-fakten { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--tusche); max-width: 34rem; }
.hero-fakten div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.hero-fakten dt { font-family: var(--kond); font-weight: 600; font-size: 1.0625rem; }
.hero-fakten dd { margin: 0; font-size: var(--t-s); color: var(--graphit); }
@media (max-width: 26rem) { .hero-fakten div { grid-template-columns: 1fr; gap: 0; } }

.hero-foto { margin: 0; order: 1; position: relative; background: var(--tusche); }
.hero-foto img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 30% 45%; }
/* Messleitung als Kupferstreifen: verbindet Foto und Text */
.hero-foto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--kupfer); }

@media (min-width: 62rem) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(44rem, calc(100vh - 7rem)); }
  .hero-text { order: 0; align-self: center; padding-left: max(var(--rand), calc((100vw - var(--breite)) / 2 + var(--rand))); padding-right: 3.5rem; }
  .hero-foto img { position: absolute; inset: 0; aspect-ratio: auto; object-position: 22% 50%; }
  .hero-foto::after { left: 0; top: 0; bottom: 0; right: auto; width: 6px; height: auto; }
}

/* Schaltplan als Inhaltsverzeichnis der Leistungen */
.plan-figur { margin: 0 0 2rem; background: var(--papier-hell); border: 1px solid var(--tusche); }
.leistungen-raster { display: grid; }
@media (min-width: 62rem) {
  .leistungen-raster { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: start; }
  .plan-figur { position: sticky; top: 1.5rem; margin: 0; }
  .leistungen-raster .kreise { grid-template-columns: 1fr; }
  .leistungen-raster .kreis { padding: 1.2rem 0 1.3rem; }
}

.plan { width: 100%; }
.plan .rahmen { fill: none; stroke: var(--tusche); stroke-width: 1.2; }
.plan .rahmen-marken path { stroke: var(--tusche); stroke-width: 1; }
.plan .draht { fill: none; stroke: var(--kupfer); stroke-width: 2.4; stroke-linecap: round; }
.plan .sym, .plan .sym path, .plan .sym rect, .plan .sym circle { fill: none; stroke: var(--tusche); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan text.sym, .plan text.s1, .plan text.s2 { fill: var(--tusche); stroke: none; }
.plan .punkt { fill: var(--kupfer); stroke: none; }
.plan text { font-family: var(--kond); }
.plan .plan-klein { font-size: 13px; font-weight: 500; fill: var(--graphit); }
.plan .plan-sym-t { font-size: 13px; font-weight: 600; }
.plan .plan-links text { font-size: 16px; font-weight: 600; fill: var(--kupfer); text-decoration: underline; text-decoration-thickness: 1px; }
.plan .plan-links a:hover text { fill: var(--kupfer-dunkel); text-decoration-thickness: 2px; }
.plan .plan-links a:focus-visible { outline: none; }
.plan .plan-links a:focus-visible text { fill: var(--tusche); text-decoration-thickness: 3px; }
.plan .schriftfeld rect, .plan .schriftfeld path { fill: none; stroke: var(--tusche); stroke-width: 1; }
.plan .schriftfeld text { font-size: 11.5px; }

@media (max-width: 40rem) {
  .plan .plan-links text { font-size: 19px; }
  .plan .plan-klein { font-size: 16px; }
  .plan .schriftfeld text { font-size: 11.5px; }
}

/* Der eine Moment: der Plan wird beim Laden gezogen */
@media (prefers-reduced-motion: no-preference) {
  .plan .draht { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ziehen .5s cubic-bezier(.5,0,.3,1) forwards; }
  .plan .d1 { animation-delay: .15s; }
  .plan .d2 { animation-delay: .5s; animation-duration: .3s; }
  .plan .d3 { animation-delay: .9s; animation-duration: .7s; }
  .plan .s1 { opacity: 0; animation: zeigen .3s ease-out .4s forwards; }
  .plan .s2 { opacity: 0; animation: zeigen .3s ease-out .75s forwards; }
  .plan .s3 { opacity: 0; animation: zeigen .2s ease-out 1s forwards; }
  .plan .abgang .sym, .plan .abgang text.sym { opacity: 0; animation: zeigen .35s ease-out forwards; }
  .plan .a1 .draht { animation-delay: 1.45s; } .plan .a1 .sym { animation-delay: 1.75s; }
  .plan .a2 .draht { animation-delay: 1.55s; } .plan .a2 .sym { animation-delay: 1.85s; }
  .plan .a3 .draht { animation-delay: 1.65s; } .plan .a3 .sym { animation-delay: 1.95s; }
  .plan .a4 .draht { animation-delay: 1.75s; } .plan .a4 .sym { animation-delay: 2.05s; }
  .plan .a5 .draht { animation-delay: 1.85s; } .plan .a5 .sym { animation-delay: 2.15s; }
  .plan .a6 .draht { animation-delay: 1.95s; } .plan .a6 .sym { animation-delay: 2.25s; }
  .plan .plan-links { opacity: 0; animation: zeigen .4s ease-out 2.4s forwards; }
}
/* Mit JS startet der Moment erst, wenn der Plan sichtbar ist */
.js .plan:not(.an) *, .js .plan:not(.an) { animation-play-state: paused !important; }
@keyframes ziehen { to { stroke-dashoffset: 0; } }
@keyframes zeigen { to { opacity: 1; } }

/* Wegweiser */
.wegweiser { border-bottom: 1px solid var(--tusche); }
.ww { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .ww { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: start; } }

.ww-wahl { margin: 0; padding: 0; border: 0; min-width: 0; border-top: 1px solid var(--tusche); }
.ww-wahl legend { font-family: var(--kond); font-weight: 600; font-size: 1.0625rem; color: var(--graphit); padding: 0 0 .5rem; float: left; width: 100%; }
.ww-wahl legend + * { clear: both; }
.ww-opt {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem .5rem .85rem 0;
  border-bottom: 1px solid var(--linie);
  cursor: pointer;
  font-family: var(--kond); font-weight: 500; font-size: 1.25rem; line-height: 1.2;
  position: relative;
}
.ww-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ww-opt:hover .ww-txt { color: var(--kupfer-dunkel); }
.ww-opt:has(input:focus-visible) { outline: 3px solid var(--kupfer); outline-offset: 2px; }
.ww-opt:has(input:checked) { font-weight: 600; }
.ww-opt:has(input:checked) .ww-txt { color: var(--kupfer-dunkel); }

/* Schalter: Leitungsschutzschalter von vorne, Kippe springt beim Wählen hoch */
.schalter {
  flex: none; width: 26px; height: 40px; position: relative;
  border: 1.5px solid var(--tusche); border-radius: 2px; background: var(--papier-hell);
}
.schalter::before {
  content: ""; position: absolute; left: 7px; right: 7px; top: 8px; bottom: 8px;
  border: 1px solid var(--linie); background: var(--papier);
}
.schalter::after {
  content: ""; position: absolute; left: 8px; width: 7px; height: 11px; top: 19px;
  background: var(--tusche); border-radius: 1px;
  transition: top .18s cubic-bezier(.3,1.6,.5,1), background-color .18s;
}
.ww-opt:has(input:checked) .schalter { border-color: var(--kupfer); }
.ww-opt:has(input:checked) .schalter::after { top: 10px; background: var(--kupfer); }
@media (prefers-reduced-motion: reduce) { .schalter::after { transition: none; } }

.ww-ergebnis {
  background: var(--papier-hell);
  border: 1px solid var(--tusche);
  min-height: 100%;
  scroll-margin-top: 1rem;
}
.ww-leer { padding: 2rem 1.5rem; display: grid; justify-items: start; gap: 1rem; color: var(--graphit); }
.ww-leer p { margin: 0; max-width: 28rem; }
.ww-p { display: none; padding: clamp(1.25rem, 3vw, 2rem); }
.ww:has(input:checked) .ww-leer { display: none; }
.ww:has(input[value="installation"]:checked) [data-fuer="installation"],
.ww:has(input[value="altbau"]:checked) [data-fuer="altbau"],
.ww:has(input[value="wallbox"]:checked) [data-fuer="wallbox"],
.ww:has(input[value="pv"]:checked) [data-fuer="pv"],
.ww:has(input[value="pruefung"]:checked) [data-fuer="pruefung"],
.ww:has(input[value="smarthome"]:checked) [data-fuer="smarthome"],
.ww:has(input[value="stoerung"]:checked) [data-fuer="stoerung"] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .ww-p { animation: einrasten .22s ease-out; }
}
@keyframes einrasten { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ww-p h3 { font-size: var(--t-xl); margin-bottom: .5rem; }
.ww-p-text { max-width: 36rem; }
.ww-p-warn { background: var(--papier); border-left: 4px solid var(--kupfer); padding: .7rem 1rem; }

/* Schriftfeld wie auf einer technischen Zeichnung */
.feld { margin: 1.25rem 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--tusche); }
.feld > div { padding: .7rem .9rem .8rem; border-right: 1px solid var(--tusche); border-bottom: 1px solid var(--tusche); }
.feld .feld-preis { border-right: 0; }
.feld .feld-liste { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.feld dt { font-family: var(--kond); font-weight: 500; font-size: var(--t-s); color: var(--graphit); margin-bottom: .15rem; }
.feld dd { margin: 0; font-size: var(--t-s); line-height: 1.45; }
.feld-dauer dd, .feld-preis dd { font-family: var(--kond); font-weight: 600; font-size: 1.1875rem; line-height: 1.2; }
.feld ul { list-style: none; display: grid; gap: .35rem; margin-top: .3rem; }
.feld li { padding-left: 1.6rem; position: relative; }
.feld li::before { content: ""; position: absolute; left: 0; top: .32em; width: .8rem; height: .8rem; border: 1.5px solid var(--tusche); }
@media (max-width: 30rem) {
  .feld { grid-template-columns: 1fr; }
  .feld > div { border-right: 0; }
}
.ww-p-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 0; }

/* Leistungen als Stromkreisliste */
.leistungen { border-bottom: 1px solid var(--tusche); }
.kreise { list-style: none; display: grid; border-top: 2px solid var(--tusche); }
@media (min-width: 48rem) { .kreise { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
@media (min-width: 72rem) { .kreise { grid-template-columns: 1fr 1fr 1fr; } }
.kreis { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--linie); scroll-margin-top: 1.5rem; }
.kreis-nr { font-family: var(--kond); font-weight: 600; font-size: 1.25rem; color: var(--kupfer); line-height: 1.25; }
.kreis h3 { margin-bottom: .45rem; font-size: 1.4375rem; }
.kreis p { font-size: var(--t-s); margin-bottom: .7rem; max-width: 34rem; }
.kreis .kreis-preis { font-family: var(--kond); font-weight: 600; font-size: 1.0625rem; margin: 0; }
.kreis:target { background: var(--papier-hell); box-shadow: -.75rem 0 0 var(--papier-hell), .75rem 0 0 var(--papier-hell); }

/* Notdienst */
.notdienst { background: var(--tusche); color: var(--papier); position: relative; }
.notdienst::before {
  content: ""; display: block; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--pe-gruen) 0 14px, var(--pe-gelb) 14px 28px);
}
.notdienst-in { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .notdienst-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 4rem; } .notdienst-tipps { grid-column: 2; } }
.notdienst h2 { margin-bottom: 1rem; max-width: 16ch; }
.notdienst-text p { color: #D3D8D3; max-width: 30rem; }
.notdienst-112 { border-left: 4px solid var(--pe-gelb); padding: .5rem 0 .5rem 1rem; color: var(--papier) !important; }
.notdienst a { color: #F0C39F; }
.notdienst .btn-hell { background: var(--pe-gelb); border-color: var(--pe-gelb); color: var(--tusche); }
.notdienst .btn-hell:hover { background: #F0DA5A; border-color: #F0DA5A; color: var(--tusche); }
.notdienst-foto { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 100% 45%; margin-top: 1.5rem; }
@media (min-width: 62rem) { .notdienst-text { grid-row: span 2; } }

.zeiten { width: 100%; border-collapse: collapse; font-size: var(--t-s); align-self: start; }
.zeiten th, .zeiten td { text-align: left; vertical-align: top; padding: .85rem .9rem .85rem 0; border-bottom: 1px solid #4A5454; }
.zeiten thead th { font-family: var(--kond); font-weight: 500; color: #B7BFBA; font-size: var(--t-s); border-bottom: 1px solid var(--papier); padding-top: 0; }
.zeiten tbody th { font-family: var(--kond); font-weight: 600; font-size: 1.125rem; line-height: 1.25; width: 30%; }
.zeiten td { color: #E3E7E2; }
@media (max-width: 40rem) {
  .zeiten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .zeiten, .zeiten tbody, .zeiten tr, .zeiten th, .zeiten td { display: block; width: 100%; }
  .zeiten tr { padding: .9rem 0; border-bottom: 1px solid #4A5454; }
  .zeiten tr:first-child { border-top: 1px solid var(--papier); }
  .zeiten th, .zeiten td { border: 0; padding: 0 0 .25rem; }
  .zeiten tbody th { width: 100%; padding-bottom: .35rem; }
  .zeiten td:nth-of-type(1) { color: #B7BFBA; }
}
.notdienst-tipps h3 { margin-bottom: .75rem; }
.notdienst-tipps ul { list-style: none; display: grid; gap: .6rem; }
.notdienst-tipps li { padding-left: 1.4rem; position: relative; color: #D3D8D3; font-size: var(--t-s); max-width: 40rem; }
.notdienst-tipps li::before { content: ""; position: absolute; left: 0; top: .6em; width: .7rem; height: 2px; background: var(--pe-gelb); }

/* Einsatzgebiet */
.gebiet { border-bottom: 1px solid var(--tusche); }
.gebiet-in { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 62rem) { .gebiet-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; } }
.gebiet h2 { margin-bottom: 1rem; }
.gebiet-text p { max-width: 34rem; }
.gebiet-plan { margin: 0; }
.gebiet-plan svg { width: 100%; height: auto; aspect-ratio: 590 / 500; }
.gebiet-plan figcaption { font-family: var(--kond); font-size: var(--t-xs); color: var(--graphit); margin-top: .5rem; }
.gebiet-plan svg text { font-family: var(--kond); font-size: 15px; font-weight: 500; fill: var(--tusche); }
.g-ring { fill: none; stroke: var(--tusche); stroke-width: 1; stroke-dasharray: 4 5; }
.g-ring-aussen { fill: var(--papier-hell); stroke: var(--kupfer); stroke-width: 2.4; stroke-dasharray: none; }
.g-achse { stroke: var(--linie); stroke-width: 1; }
.gebiet-plan svg .g-mass { font-size: 13px; fill: var(--graphit); }
.g-ort circle { fill: var(--tusche); }
.g-zentrum circle { fill: var(--papier-hell); stroke: var(--tusche); stroke-width: 2.4; }
.gebiet-plan svg .g-zentrum text { font-weight: 600; font-size: 18px; }
.g-werkstatt rect { fill: var(--kupfer); }
.gebiet-plan svg .g-werkstatt text { fill: var(--kupfer-dunkel); font-weight: 600; }
.g-aussen circle { fill: none; stroke: var(--tusche); stroke-width: 1.5; }
.gebiet-plan svg .g-aussen text { fill: var(--graphit); }

@media (max-width: 40rem) {
  .gebiet-plan svg text { font-size: 21px; }
  .gebiet-plan svg .g-zentrum text { font-size: 24px; }
  .gebiet-plan svg .g-mass { font-size: 17px; }
  .gebiet-plan svg .g-aussen text { font-size: 17px; }
  .gebiet-plan { margin: 0 calc(var(--rand) * -.6); }
}

/* Ablauf */
.ablauf { border-bottom: 1px solid var(--tusche); }
.schritte { list-style: none; counter-reset: s; display: grid; position: relative; }
.schritte li { counter-increment: s; position: relative; padding: 0 0 2rem 3.5rem; }
.schritte li::before {
  content: counter(s); position: absolute; left: 0; top: -.15rem;
  width: 2.25rem; height: 2.25rem; border: 2px solid var(--tusche); border-radius: 50%;
  display: grid; place-items: center; background: var(--papier);
  font-family: var(--kond); font-weight: 600; font-size: 1.125rem;
}
.schritte li::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.1rem; bottom: .1rem; width: 2px; background: var(--kupfer); }
.schritte li:last-child::after { display: none; }
.schritte h3 { margin-bottom: .35rem; }
.schritte p { font-size: var(--t-s); margin: 0; max-width: 32rem; }
@media (min-width: 62rem) {
  .schritte { grid-template-columns: repeat(5, 1fr); gap: 1.75rem; }
  .schritte li { padding: 3.4rem 0 0; }
  .schritte li::after { left: 2.25rem; right: -1.75rem; top: 1.05rem; bottom: auto; width: auto; height: 2px; }
}

/* Referenzen */
.referenzen { border-bottom: 1px solid var(--tusche); }
.projekte { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 44rem) { .projekte { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .projekte { grid-template-columns: repeat(4, 1fr); } }
.projekt img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--tusche); margin-bottom: 1rem; border-bottom: 4px solid var(--kupfer); }
.projekt .p-verteiler { object-position: 50% 100%; }
.projekt .p-wallbox { object-position: 40% 50%; }
.projekt .p-pv { object-position: 60% 40%; }
.projekt h3 { margin-bottom: .45rem; }
.projekt p { font-size: var(--t-s); }
.projekt .projekt-meta { font-family: var(--kond); font-weight: 600; color: var(--graphit); margin: 0; padding-top: .5rem; border-top: 1px solid var(--linie); }

/* Stimmen: Beispiel-Bewertungen */
.stimmen { border-bottom: 1px solid var(--tusche); background: var(--papier-hell); }
.stimmen-liste { list-style: none; display: grid; gap: 2rem; }
@media (min-width: 56rem) { .stimmen-liste { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.stimmen-liste li { border-top: 2px solid var(--tusche); padding-top: 1.1rem; }
.stimmen-liste blockquote { margin: 0 0 .9rem; }
.stimmen-liste blockquote p { font-size: var(--t-l); line-height: 1.45; margin: 0; }
.stimme-quelle { font-family: var(--kond); font-weight: 500; color: var(--graphit); margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .75rem; align-items: baseline; }
.beispiel-marke { font-weight: 600; color: var(--tusche); border: 1.5px dashed var(--graphit); padding: .05rem .5rem; }

/* Betrieb */
.betrieb { background: var(--papier); border-bottom: 1px solid var(--tusche); }
.betrieb-in { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .betrieb-in { grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: start; } }
.betrieb h2 { margin-bottom: 1rem; }
.betrieb p { max-width: 38rem; }
.jobs-titel { font-size: var(--t-xl); margin: 2.25rem 0 .6rem; padding-top: 1.5rem; border-top: 1px solid var(--linie); scroll-margin-top: 1.5rem; }
.siegel { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.siegel li { border: 2px solid var(--tusche); padding: .55rem .9rem .6rem; display: grid; line-height: 1.2; background: var(--papier); }
.siegel strong { font-family: var(--kond); font-weight: 600; font-size: 1.1875rem; }
.siegel span { font-family: var(--kond); font-weight: 500; font-size: var(--t-s); color: var(--graphit); }
.betrieb-zahlen { margin: 0; border-top: 2px solid var(--tusche); }
.betrieb-zahlen div { padding: .9rem 0; border-bottom: 1px solid var(--linie); }
.betrieb-zahlen dt { font-family: var(--kond); font-weight: 500; color: var(--graphit); font-size: var(--t-s); }
.betrieb-zahlen dd { margin: 0; font-family: var(--kond); font-weight: 600; font-size: 1.375rem; line-height: 1.2; }

/* Kontakt */
.kontakt-in { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .kontakt-in { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.kontakt h2 { margin-bottom: 1rem; }
.kontakt-info p { max-width: 30rem; }
.kontakt-daten { margin: 1.5rem 0 0; border-top: 1px solid var(--tusche); }
.kontakt-daten div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.kontakt-daten dt { font-family: var(--kond); font-weight: 500; color: var(--graphit); }
.kontakt-daten dd { margin: 0; overflow-wrap: anywhere; }
.kontakt-daten a[href^="tel"] { font-family: var(--kond); font-weight: 600; font-size: 1.25rem; }

.formular { background: var(--papier-hell); border: 1px solid var(--tusche); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; align-content: start; }
.f-zeile { display: grid; gap: .35rem; margin: 0; }
.formular label, .formular legend { font-family: var(--kond); font-weight: 600; font-size: 1.0625rem; }
.f-opt { font-weight: 500; color: var(--graphit); }
.formular input[type="text"], .formular input[type="tel"], .formular select, .formular textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tusche);
  background: #fff; border: 1px solid var(--graphit); border-radius: 2px;
  padding: .65rem .75rem; min-height: 2.9rem;
}
.formular input:focus-visible, .formular select:focus-visible, .formular textarea:focus-visible { outline: 3px solid var(--kupfer); outline-offset: 1px; border-color: var(--tusche); }
.formular [aria-invalid="true"] { border-color: #A12A1E; border-width: 2px; }
.f-fehler { color: #A12A1E; font-size: var(--t-s); margin: 0; }
.f-zeit { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.f-zeit legend { padding: 0; margin-bottom: .35rem; float: left; width: 100%; }
.f-zeit label { font-family: var(--serif); font-weight: 400; display: inline-flex; align-items: center; gap: .4rem; min-height: 2rem; }
.f-zeit input { accent-color: var(--kupfer); width: 1.1rem; height: 1.1rem; margin: 0; }
.f-datei input[type="file"] { font: inherit; font-size: var(--t-s); max-width: 100%; padding: .55rem; background: #fff; border: 1px dashed var(--graphit); border-radius: 2px; }
.f-datei input[type="file"]::file-selector-button { font-family: var(--kond); font-weight: 600; font-size: 1rem; background: var(--papier); color: var(--tusche); border: 1.5px solid var(--tusche); border-radius: 2px; padding: .4rem .8rem; margin-right: .75rem; cursor: pointer; }
.f-datei-info { font-size: var(--t-s); color: var(--graphit); margin: 0; }
.f-hinweis { font-size: var(--t-xs); color: var(--graphit); margin: 0; }
.formular .btn { justify-self: start; }
.f-status { margin: 0; font-size: var(--t-s); }
.f-status:not(:empty) { border-left: 4px solid var(--pe-gruen); padding: .6rem .9rem; background: var(--papier); }
.formular.ist-hervorgehoben { animation: markieren 1.2s ease-out; }
@keyframes markieren { from { box-shadow: 0 0 0 6px rgba(130,70,31,.35); } to { box-shadow: 0 0 0 0 rgba(130,70,31,0); } }
@media (prefers-reduced-motion: reduce) { .formular.ist-hervorgehoben { animation: none; } }

/* Fuß */
.fuss { background: var(--tusche); color: var(--papier); }
.fuss-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.fuss p { margin: 0; font-family: var(--kond); font-weight: 500; font-size: 1.0625rem; line-height: 1.4; }
.fuss-name { font-weight: 600; }
.fuss a { color: var(--papier); margin-right: 1.25rem; }
.fuss-klein { font-size: var(--t-xs); color: #B7BFBA; }

/* Telefon auf dem Handy dauerhaft sichtbar */
.rufleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto; background: var(--tusche); border-top: 3px solid var(--kupfer); padding-bottom: env(safe-area-inset-bottom); }
.rufleiste a { font-family: var(--kond); font-weight: 600; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .4rem 1rem; }
.rufleiste-tel { color: var(--tusche); background: var(--pe-gelb); font-size: 1.3rem; }
.rufleiste-tel span { font-weight: 500; font-size: 1rem; }
.rufleiste-tel:hover { color: var(--tusche); background: #F0DA5A; }
.rufleiste-rr { color: var(--papier); font-size: 1.125rem; }
.rufleiste-rr:hover { color: #fff; }
.rufleiste a:focus-visible { outline-offset: -4px; outline-color: var(--papier); }
body { padding-bottom: 3.5rem; }
@media (min-width: 62rem) { .rufleiste { display: none; } body { padding-bottom: 0; } }
