/* =========================================================
   Kretsch · Technik-Schicht (07.10.2026)
   Linienzeichnungen (SVG), Ablauf, Zielgruppen, Bewerbungsformular.
   Ersetzt Hero-Video und 3D-Kacheln. Bewegung: Linien zeichnen sich
   (stroke-dashoffset), Text blendet ein (opacity), Ablauflinien wachsen
   (transform). Alles hinter prefers-reduced-motion und scripting.
   ========================================================= */

:root {
  --sk-ink: #0a1f44;
  --sk-mute: #5b6678;
  --sk-fill: #eef3fe;
  --sk-strom: #d98e00;
  --sk-kalt: #1a56db;
  --sk-warm: #c8102e;
  --sk-kuehl: #0f8bb8;
}

/* ---------- Zeichnung (SVG) ---------- */
.sk { display: block; width: 100%; height: auto; overflow: visible; }
.sk * { fill: none; stroke: var(--sk-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sk .thin { stroke-width: 1; opacity: .55; }
.sk .fill { fill: var(--sk-fill); }
.sk .solid { fill: var(--sk-ink); stroke: none; }
.sk .strom { stroke: var(--sk-strom); }
.sk .kalt { stroke: var(--sk-kalt); }
.sk .warm { stroke: var(--sk-warm); }
.sk .kuehl { stroke: var(--sk-kuehl); }
.sk .solid.strom { fill: var(--sk-strom); stroke: none; }
.sk .solid.kalt { fill: var(--sk-kalt); stroke: none; }
.sk .solid.warm { fill: var(--sk-warm); stroke: none; }
.sk .solid.kuehl { fill: var(--sk-kuehl); stroke: none; }
.sk .w2 { stroke-width: 2.4; }
.sk .flow { stroke: var(--sk-ink); stroke-width: 2.8; }
.sk .dash { stroke-dasharray: 5 4; }
.sk text { fill: var(--sk-mute); stroke: none; font-family: var(--font-cond); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.sk text.k { fill: var(--sk-ink); }
.sk text.mid { text-anchor: middle; }
.sk text.end { text-anchor: end; }

/* Zeichnen beim Einblenden. Ohne Skript oder mit reduzierter Bewegung steht alles fertig. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .sk .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .sk .t { opacity: 0; }
  .sk .p { opacity: 0; }
  .sk.is-in .d { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.65,0,.35,1) var(--d, 0s); }
  .sk.is-in .t, .sk.is-in .p { opacity: 1; transition: opacity .6s ease var(--d, 0s); }
  .sk.is-in .flow { stroke-dasharray: 2 9; animation: sk-flow 2.2s linear infinite; animation-delay: 1.6s; }
  @keyframes sk-flow { to { stroke-dashoffset: -22; } }
}
.sk .p { transform-box: fill-box; transform-origin: center; }

/* Schriftfeld unter jeder Zeichnung (wie auf dem Bauplan) */
.schrift { display: grid; grid-template-columns: 1.6fr 1fr 1fr; border: 1px solid var(--line); border-top: 0; font-family: var(--font-cond); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.schrift > span { padding: 7px 12px; border-left: 1px solid var(--line); }
.schrift > span:first-child { border-left: 0; color: var(--ink); font-weight: 700; }
.fig { border: 1px solid var(--line); background: var(--bg); border-bottom: 0; padding: clamp(14px, 2.2vw, 26px); position: relative; }
.fig::before { /* Passmarken in den Ecken */
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  background:
    linear-gradient(var(--sk-mute), var(--sk-mute)) 0 0 / 10px 1px no-repeat,
    linear-gradient(var(--sk-mute), var(--sk-mute)) 0 0 / 1px 10px no-repeat,
    linear-gradient(var(--sk-mute), var(--sk-mute)) 100% 0 / 10px 1px no-repeat,
    linear-gradient(var(--sk-mute), var(--sk-mute)) 100% 0 / 1px 10px no-repeat,
    linear-gradient(var(--sk-mute), var(--sk-mute)) 0 100% / 10px 1px no-repeat,
    linear-gradient(var(--sk-mute), var(--sk-mute)) 0 100% / 1px 10px no-repeat,
    linear-gradient(var(--sk-mute), var(--sk-mute)) 100% 100% / 10px 1px no-repeat,
    linear-gradient(var(--sk-mute), var(--sk-mute)) 100% 100% / 1px 10px no-repeat;
  opacity: .45;
}
figure.plan { margin: 0; }

/* ---------- Hero: Zeichnung statt Video (hell, freundlich; dunkel im Dark Mode) ---------- */
.hero--tech {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(900px 520px at 80% 40%, rgba(26,86,219,.10), transparent 70%),
    linear-gradient(180deg, #f7faff, #e8f0fc);
  border-bottom: 3px solid var(--red);
}
.hero--tech .hero__inner { max-width: var(--maxw); display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: 56px 48px; }
.hero--tech .hero__text { max-width: 640px; }
.hero--tech h1 { font-size: clamp(1.9rem, 3.5vw, 3.05rem); line-height: 1.1; color: var(--ink); }
.hero--tech h1 em { display: block; margin-top: .5em; font-size: .56em; font-weight: 600; line-height: 1.25; letter-spacing: 0; color: var(--blue); }
.hero--tech .hero__sub { margin-top: 18px; color: var(--muted); }
.hero--tech .hero__brandname { -webkit-text-stroke: 0; text-shadow: none; }
.hero--tech .hero__mark { box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.hero--tech .hero__fig { margin: 0; }
.hero--tech .fig { background: #fff; box-shadow: var(--shadow-md); }
.hero__legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-family: var(--font-cond); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero__legend li { display: inline-flex; align-items: center; gap: 9px; }
.hero__legend li::before { content: ""; width: 22px; height: 0; border-top: 2.4px solid var(--c, #fff); }
.hero__legend .l-strom { --c: #d98e00; }
.hero__legend .l-wasser { --c: #1a56db; }
.hero__legend .l-heiz { --c: #c8102e; }
.hero__legend .l-klima { --c: #0f8bb8; }

/* ---------- Seitenköpfe, Footer: heller ---------- */
.page-hero { background: linear-gradient(180deg, #f7faff, #e8f0fc); color: var(--ink); padding-block: 120px 60px; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 62%, var(--red) 62%, var(--red) 100%); }
.page-hero h1 { color: var(--ink); }
.page-hero p { color: var(--muted); }
.page-hero .eyebrow { color: var(--red); }
.page-hero .eyebrow::before { background: var(--red); }
.grid-overlay--light { --grid-line: rgba(26,86,219,.07); }
.footer { background: var(--surface); color: var(--muted); }
.footer a { color: var(--text); }
.footer a:hover { color: var(--blue-ink); }
.footer h5 { color: var(--ink); }
.footer__bottom { border-top-color: var(--line); color: var(--muted); }
.footer__credit { color: var(--muted); }
.footer__credit a { color: var(--text); }
.footer__credit a:hover { color: var(--blue-ink); }

/* ---------- Kennzahlen als Messwerte ---------- */
.werte { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wert { padding: 22px 26px 24px; border-left: 1px solid var(--line); position: relative; }
.wert:first-child { border-left: 0; padding-left: 0; }
.wert__k { font-family: var(--font-cond); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.wert__v { font-family: var(--font-cond); font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 700; color: var(--ink); line-height: 1.1; margin-top: 8px; }
.wert__l { color: var(--muted); font-size: .95rem; margin-top: 4px; }

/* ---------- Gewerk-Zeile: Zeichnung links, Text rechts, im Wechsel ---------- */
.gewerke { margin-top: 56px; }
.gewerk { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.gewerk:last-child { border-bottom: 1px solid var(--line); }
.gewerk:nth-child(even) .gewerk__fig { order: 2; }
.gewerk__no { font-family: var(--font-cond); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--red); display: block; margin-bottom: 12px; }
.gewerk h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.gewerk__lead { color: var(--muted); margin-top: 14px; font-size: 1.06rem; max-width: 52ch; }
.liste { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.liste li { display: grid; grid-template-columns: 3.2em 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.liste li > b { font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--blue-ink); padding-top: 3px; }
.gewerk__more { margin-top: 26px; }

/* ---------- Ablauf: eine Linie, fünf Stationen ---------- */
.ablauf { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: stat; position: relative; }
.ablauf li { position: relative; padding: 34px 22px 0 0; counter-increment: stat; }
.ablauf li::before { /* Knoten */
  content: counter(stat, decimal-leading-zero); position: absolute; left: 0; top: 0; z-index: 1;
  font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--ink);
  background: var(--bg); padding-right: 12px; line-height: 1;
}
.ablauf li::after { /* Linie, wächst per transform */
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--blue); transform-origin: left; transform: scaleX(1);
}
.section--tint .ablauf li::before { background: var(--surface); }
.ablauf li:last-child::after { right: 40%; background: linear-gradient(90deg, var(--blue), var(--red)); }
.ablauf h3 { font-size: 1.05rem; }
.ablauf p { color: var(--muted); font-size: .94rem; margin-top: 8px; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .ablauf.reveal li::after { transform: scaleX(0); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * .18s); }
  .ablauf.reveal.is-in li::after { transform: scaleX(1); }
  .ablauf.reveal li h3, .ablauf.reveal li p { opacity: 0; transition: opacity .6s ease; transition-delay: calc(var(--i, 0) * .18s + .25s); }
  .ablauf.reveal.is-in li h3, .ablauf.reveal.is-in li p { opacity: 1; }
}

/* ---------- Karriere schlicht ---------- */
.ablauf--3 { grid-template-columns: repeat(3, 1fr); }
.ablauf--3 li:last-child::after { right: 0; background: var(--blue); }
.stellen { border-top: 1px solid var(--line); margin-top: 28px; }
.stelle { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stelle h3 { font-size: 1.25rem; line-height: 1.3; }
.stelle p { color: var(--muted); margin-top: 6px; font-size: .96rem; }
.stelle__taet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .95rem; }
.stelle__taet span { font-family: var(--font-cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stelle__taet a { color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.stelle__taet a:hover { text-decoration-thickness: 2px; }
.teamzeile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(36px, 5vw, 56px); }
.teamzeile h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.teamzeile > div:first-child p { color: var(--muted); margin: 14px 0 26px; max-width: 40ch; }
.teamzeile .ablauf { margin-top: 10px; }
@media (max-width: 1020px) { .teamzeile { grid-template-columns: 1fr; } .stelle { grid-template-columns: 1fr; } }

/* ---------- Für wen: vier Spalten statt Kacheln ---------- */
.fuer { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border-top: 1px solid var(--line); }
.fuer__s { padding: 30px 26px 8px 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.fuer__s:first-child { border-left: 0; padding-left: 0; }
.fuer__s .sk { max-width: 168px; margin-bottom: 22px; }
.fuer__s h3 { font-size: 1.12rem; line-height: 1.25; }
.fuer__s p { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.fuer__s ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--text); display: grid; gap: 6px; }
.fuer__s li::before { content: "+"; font-family: var(--font-cond); font-weight: 700; color: var(--red); margin-right: 9px; }

/* ---------- Über uns: Werte ohne Kästen ---------- */
.werteliste { display: grid; gap: 0; border-top: 1px solid var(--line); }
.werteliste > div { display: grid; grid-template-columns: 11em 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.werteliste dt { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.12rem; }
.werteliste dd { margin: 0; color: var(--muted); }

/* ---------- Bewerbungsformular ---------- */
.bewerbung { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.bewerbung__kopf h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.bewerbung__kopf p { color: var(--muted); margin-top: 16px; max-width: 42ch; }
.bewerbung__kopf .kontaktzeile { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.bewerbung__kopf .kontaktzeile a { color: var(--blue-ink); font-weight: 600; }
.bform { display: grid; gap: 22px; }
.bform__zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bform label, .bform .lab { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.bform label small, .bform .lab small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 6px; }
.bform input[type="text"], .bform input[type="email"], .bform input[type="tel"], .bform select, .bform textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.bform textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
/* 03.11.2026 (Mobil-Prüfer, WebKit): Safari zeichnete die Auswahl als Systemfeld mit 24 px Höhe; eigene Form mit Pfeil */
.bform select { -webkit-appearance: none; appearance: none; padding-right: 44px; line-height: 1.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23334155' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.bform input:hover, .bform select:hover, .bform textarea:hover { border-color: var(--blue-300); }
.bform input:focus-visible, .bform select:focus-visible, .bform textarea:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.22); }
.bform .check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.bform .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.bform .check a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.bform__hinweis { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.bform__status { min-height: 1.4em; font-weight: 600; }
.bform__status.ok { color: #0a7a3d; }
.bform__status.fehler { color: var(--red); }
.hp-feld { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.bform button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero--tech .hero__inner { grid-template-columns: 1fr; padding-block: 56px 40px; }
  .hero--tech .hero__fig { max-width: 560px; }
  .gewerk, .bewerbung { grid-template-columns: minmax(0, 1fr); }
  .gewerk:nth-child(even) .gewerk__fig { order: 0; }
  .ablauf { grid-template-columns: 1fr; gap: 26px; margin-top: 40px; }
  .ablauf li { padding: 0 0 0 54px; }
  .ablauf li::before { top: 2px; background: transparent !important; padding: 0; }
  .ablauf li::after { left: 17px; right: auto; top: 26px; bottom: -22px; width: 2px; height: auto; transform-origin: top; }
  .ablauf li:last-child::after { display: none; }
  @media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    .ablauf.reveal li::after { transform: scaleY(0); }
    .ablauf.reveal.is-in li::after { transform: scaleY(1); }
  }
  .fuer { grid-template-columns: 1fr 1fr; }
  .fuer__s:nth-child(3) { border-left: 0; padding-left: 0; }
  .fuer__s:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
}
@media (max-width: 720px) {
  .werte { grid-template-columns: 1fr 1fr; }
  .wert:nth-child(odd) { border-left: 0; padding-left: 0; }
  .wert:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fuer { grid-template-columns: 1fr; }
  .fuer__s { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); margin-top: 18px; }
  .fuer__s:first-child { border-top: 0; margin-top: 0; }
  .fuer__s:nth-child(3) { border-top: 1px solid var(--line); }
  .werteliste > div { grid-template-columns: 1fr; gap: 2px; }
  .bform__zeile { grid-template-columns: 1fr; }
  .schrift { grid-template-columns: 1fr 1fr; }
  .schrift > span:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .schrift > span:nth-child(2) { border-left: 0; }
  .hero__legend { gap: 6px 16px; font-size: 12px; }
}

/* Lesbarkeit und Tippflächen (pruef.py 07.10.2026) */
.nav .btn--red, .nav .btn--red:hover { color: #fff; }
.nav__menu a:not(.btn) { display: inline-flex; align-items: center; min-height: 32px; }
.contact__item a.val, .contact__route { display: inline-flex; align-items: center; min-height: 28px; }
.bform .check input { width: 24px; height: 24px; margin-top: 1px; }
.bform .check { grid-template-columns: 26px 1fr; }
.bewerbung__kopf .kontaktzeile a, .bform .check a { display: inline-block; padding-block: 3px; }

/* Handy: Messwerte passen in zwei Spalten, Tippflächen */
.wert { min-width: 0; }
.wert__v { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .wert { padding: 18px 14px 20px; }
  .wert__v { font-size: 1.5rem; }
  .stelle__taet a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer ul { gap: 0; }
  .footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .bewerbung__kopf .kontaktzeile a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact__item a.val, .contact__route { min-height: 44px; }
}

@media (max-width: 1020px) { .hero--tech .hero__scroll { display: none; } }
@media (max-width: 720px) {
  .gewerk__fig .fig { overflow-x: auto; padding: 14px 10px; -webkit-overflow-scrolling: touch; }
  .gewerk__fig .sk { min-width: 500px; }
}

/* Ohne JavaScript bleibt nichts unsichtbar (.reveal startet in styles.css mit opacity 0) */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* Footer-Links: Tippfläche mindestens 24 px am Desktop. Muss in einer Media-Query stehen:
   als lose Regel am Dateiende überschrieb sie das 44-px-Maß des Handy-Blocks (gemessen 08.10.2026: 28 px bei 375 px). */
@media (min-width: 721px) { .footer ul a { display: inline-flex; align-items: center; min-height: 28px; } }

/* Fußzeilen-Listen haben keine Klasse: das Browser-Standardpadding (40 px) rückte sie unter der Überschrift ein */
.footer ul { padding-left: 0; }

/* Handy-Prüfung 08.10.2026: Tippflächen 44 px, Fokusring auf dunklem Grund, Navi bei 320 px */
@media (max-width: 720px) {
  .brand { min-height: 44px; }
  /* Treffer-Fläche ohne Layout-Änderung: unsichtbares Feld um kleine Einzel-Links */
  .footer__credit a, .footer__bottom a, .cookie__text a, .bform .check a { position: relative; }
  .footer__credit a::after, .footer__bottom a::after { content: ""; position: absolute; inset: -15px -8px; }
  .cookie__text a::after, .bform .check a::after { content: ""; position: absolute; inset: -13px -4px; }
  .prose a[href="index.html"] { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 520px) {
  /* Kleinstes Schriftmaß 12 px: Öffnungsstatus und Fußzeile */
  .openstate { font-size: .75rem; }
  .footer__end .footer__bottom, .footer__end .footer__credit { font-size: .78rem; }
}
@media (max-width: 400px) {
  /* Fußzeile: Copyright und Credit untereinander, sonst bricht der Copyright-Text in 78 px Breite */
  .footer__end { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__end .footer__credit { order: 2; text-align: left; }
}
@media (max-width: 360px) {
  /* Lange Einzelwörter in Überschriften (Datenschutzhinweise, Verbraucherstreitbeilegung) ragten bei 320 px
     über den Rand (scrollWidth 345 bzw. 332). Inline-Schriftgröße am h1 der Rechtsseiten braucht !important. */
  .prose h1[style] { font-size: 1.65rem !important; overflow-wrap: anywhere; }
  .prose h2 { font-size: 1.3rem; }
  .prose h2, .prose h3 { overflow-wrap: anywhere; }
  /* Navi bei 320 px: Logo + drei 44-px-Knöpfe ragten 2 px über den Rand (scrollWidth 322) */
  .nav .nav__inner { padding-inline: 16px; gap: 8px; }
  .nav .nav__actions { gap: 6px !important; }
}

/* Dunkelmodus: Marken-Rot (#c8102e) und Marken-Blau (#1a56db) als Text unter 4,5:1 (gemessen 2,6 bis 3,0).
   Die helle Fassung steht schon im Dunkelmodus der Seite (.page-hero .eyebrow #ff8a96, --blue-ink #8ab0ff). */

/* Fokusring: Blau (#1a56db) auf Navy bzw. im Dunkelmodus unter 3:1, dort hell */
.footer :focus-visible, .career :focus-visible { outline-color: #fff; }

.hero__tel { margin: 16px 0 0; color: var(--muted); font-size: 1rem; }
.hero__tel a { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* Überschriften-Reihenfolge: Footer h2 statt h5, Leistungs-Karten h2 statt h3 */
.footer h2.footer__h { color: var(--ink); font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; font-weight: 600; line-height: 1.4; }
.service h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* Team-Teaser mit echtem Baustellenfoto (wirkte künstlich) */
.teamzeile--foto { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.teamfoto { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.teamfoto img { width: 100%; height: auto; display: block; }
.teamtext p { color: var(--muted); margin: 14px 0 26px; max-width: 46ch; }
.teamtext h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
@media (max-width: 1020px) { .teamzeile--foto { grid-template-columns: 1fr; } }

/* Startseite 09.10.2026: Fotos in den Gewerken, Über uns in voller Breite, Schrift ruhiger */
.gewerk__fig.foto { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.gewerk__fig.foto img { width: 100%; height: auto; display: block; }
.about__quote, .about__quote--lead { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.45; }
.werteliste dt { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }
.about__full { margin-top: clamp(28px, 4vw, 48px); }
.about__full .about__more > p { max-width: none; }
@media (min-width: 900px) { .about__full .about__more { column-count: 2; column-gap: clamp(32px, 5vw, 72px); } .about__full .about__more > p { margin-top: 0; margin-bottom: 18px; break-inside: avoid-column; } }

/* Bewerbung: ein Knopf, Formular klappt auf; Azubi-Bereich */
.bewerben-box > summary { list-style: none; cursor: pointer; display: inline-flex; }
.bewerben-box > summary::-webkit-details-marker { display: none; }
.bewerben-box[open] > summary { margin-bottom: 26px; }
.bform__bereich { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px 16px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.bform__bereich[hidden] { display: none; }
.bform__bereich legend { font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 0 8px; }
.bform .radio { display: inline-flex; align-items: center; gap: 10px; margin: 0; min-height: 44px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 500; font-size: 1rem; cursor: pointer; }
.bform .radio input { width: 22px; height: 22px; accent-color: var(--blue); }

.gewerk__fig .svc3d { height: clamp(260px, 30vw, 360px); margin: 0; }

/* Gewerke auf der Startseite: Foto statt 3D, Listen in Gruppen ohne Kürzel */
.gewerk__fig.foto img { aspect-ratio: 3 / 2; object-fit: cover; }
.gruppen { margin-top: 24px; display: grid; gap: 18px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 20px; }
.gruppe h4 { font-family: var(--font-cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--red); margin: 0 0 8px; }
.gruppe ul { list-style: none; margin: 0; padding: 0; }
.gruppe li { position: relative; padding: 6px 0 6px 16px; font-size: .96rem; line-height: 1.45; }
.gruppe li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 2px; background: var(--blue-ink); }
@media (max-width: 640px) { .gruppen { grid-template-columns: minmax(0, 1fr); } }

/* Header: Leistungen mit Untermenü (Hover, Tastatur, Handy ausgeklappt) */
.nav__dd { position: relative; }
.nav__dd-t .ph { display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; transition: transform .2s; }
.nav__dd-t .ph::before { content: none; }
.nav__sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: -14px; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.nav__dd::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav__dd:hover .nav__sub, .nav__dd:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__dd:hover .nav__dd-t .ph, .nav__dd:focus-within .nav__dd-t .ph { transform: rotate(225deg); margin-bottom: 0; }
.nav__sub a { display: block; padding: 11px 14px; border-radius: 8px; white-space: nowrap; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: #eef3fc; color: var(--ink); }
.nav__links .nav__sub a:not(.btn)::after { display: none; }
@media (max-width: 960px) {
  .nav__dd::before, .nav__dd-t .ph { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; }
  .nav__sub a { padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal; }
}

/* Galerie: Filter, ruhiger Einstieg, Bildunterschrift beim Zeigen */
.gal-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.gal-chip { font: inherit; font-weight: 600; font-size: .92rem; padding: 10px 18px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gal-chip:hover { border-color: var(--blue); color: var(--ink); }
.gal-chip.is-on { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.gal-chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gcell[hidden] { display: none; }
.gcell { border-radius: 14px; animation: gcellIn .6s var(--ease) both; }
.gcell:nth-child(5n+2) { animation-delay: .05s; } .gcell:nth-child(5n+3) { animation-delay: .1s; }
.gcell:nth-child(5n+4) { animation-delay: .15s; } .gcell:nth-child(5n+5) { animation-delay: .2s; }
@keyframes gcellIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gcell img { transition: transform .6s var(--ease); }
.gcell:hover img, .gcell:focus-visible img { transform: scale(1.05); }
.gcell::before { content: attr(data-alt); position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 38px 16px 14px; color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.3; background: linear-gradient(0deg, rgba(10,31,68,.82), rgba(10,31,68,0)); opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.gcell:hover::before, .gcell:focus-visible::before { opacity: 1; transform: none; }
.gcell::after { z-index: 1; }
@media (hover: none) { .gcell::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .gcell { animation: none; } .gcell img { transition: none; } .gcell:hover img { transform: none; } }
/* Hero mit Video (10.10.2026): Markenname hell wie die Unterzeile, sonst 2,4:1 auf dem dunklen Bild; Hamburger-Blinker ruht bei reduzierter Bewegung */
.hero:not(.hero--tech) .hero__brandname { color: #9ec0ff; }
@media (prefers-reduced-motion: reduce) { .nav__toggle::after { animation: none; } }
/* Leistungen im Kopf: zwei Spalten (Elektrotechnik, Sanitär Heizung Klima) mit allen Einzelseiten */
.nav__sub--breit { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 34px; padding: 16px 18px 12px; left: -120px; min-width: 0; }
.nav__col ul { list-style: none; margin: 0; padding: 0; }
.nav__links .nav__sub .nav__kopf { display: block; padding: 6px 14px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--font-cond); font-weight: 700; font-size: .84rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.nav__sub--breit a { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 960px) { .nav__sub--breit { display: block; padding: 0 0 0 16px; } .nav__col + .nav__col { margin-top: 14px; } .nav__links .nav__sub .nav__kopf { padding: 12px 0 8px; border-bottom: 1px solid var(--line); } }
.nav__kopf { min-height: 44px; display: flex; align-items: center; }
.footer__credit a { display: inline-flex; align-items: center; min-height: 44px; }
.nav__links .nav__sub .nav__kopf { min-height: 44px; display: flex; align-items: center; }
.hero__scroll { min-height: 44px; }
.prose a, .footer__bottom a { padding-block: 4px; }
@media (max-width: 960px) { .prose a, .footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; } }
@media (max-width: 960px) { .nav__menu { max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; } .nav__sub--breit a { min-height: 44px; padding-block: 8px; } }
@media (max-width: 960px) { .nav__menu:not(.is-open) { visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; } }
/* Handy: lange Wörter in der Seitenüberschrift (Gebäudeautomation, Grundlagenplanung) trennen statt die Seite zu verbreitern (Regelwerk 03.11.2026, gemessen 391 und 377 px bei 375) */
.page-hero h1 { overflow-wrap: anywhere; hyphens: auto; }

/* Anfrageformular im Kontaktbereich (index.html, #anfrage). Felder erbt es von .bform; Fehler am Feld wie im Bewerbungsfenster. */
.anfrage { margin-top: clamp(40px, 6vw, 72px); max-width: 52rem; padding: clamp(22px, 4vw, 36px); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.anfrage__kopf h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 6px; }
.anfrage__kopf p { color: var(--muted); margin: 10px 0 24px; max-width: 54ch; }
.bform--anfrage .pflicht { color: var(--red); }
.bform--anfrage .optional { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 6px; }
.bform--anfrage .hilfe { display: block; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.bform--anfrage .fehler { display: none; color: var(--red); font-size: .9rem; margin-top: 8px; }
.bform--anfrage .feld.ist-falsch .fehler { display: block; }
.bform--anfrage .feld.ist-falsch input:not([type=checkbox]), .bform--anfrage .feld.ist-falsch select, .bform--anfrage .feld.ist-falsch textarea { border-color: var(--red); }
.bform--anfrage .feld.ist-falsch .check { outline: 2px solid var(--red); outline-offset: 6px; border-radius: 4px; }
.bform--anfrage select { min-height: 48px; }
.bform--anfrage .check label { display: block; margin: 0; font-family: var(--font-body); font-weight: 400; font-size: .92rem; letter-spacing: 0; text-transform: none; line-height: 1.55; color: var(--muted); cursor: pointer; }
.bform--anfrage .check input { width: 24px; height: 24px; margin-top: 1px; }
.bform--anfrage .meldung { display: none; padding: 14px 16px; border-radius: var(--radius-sm); background: #fdecee; color: #7a0b1d; border: 1px solid #f3b7c0; font-weight: 500; }
.bform--anfrage .meldung.ist-sichtbar { display: block; }
.bform--anfrage .meldung a { color: #7a0b1d; font-weight: 700; display: inline-block; padding-block: 8px; }
.bform--anfrage .meldung:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.bform--anfrage .knopfreihe .btn { min-height: 48px; justify-content: center; }
@media (max-width: 720px) { .bform--anfrage .knopfreihe .btn { width: 100%; } }

/* 03.11.2026 (Panel, 768 px: „Meisterbetri/eb“): große Werte trennen nach deutscher Silbe statt mitten im Wort */
.wert__v { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: normal; }
