/* Lindau Oberflächenwerke, Startseite (Entwurf KORTHAUER, 26.10.2026, überarbeitet 27.10.2026: weniger Text, mehr Abwechslung;
   Version mit KI-Beispielbildern 27.10.2026: Fotos statt Zeichnungen, Block „Fotos“ am Ende)
   Handschrift der Runde-4-Entwürfe (Kacheln, _rund.html.j2, skin kacheln, helles Logo = dunkler Startbereich).
   Schriftgrößen unterhalb des Startbereichs: --fs-h (Überschrift), --fs-z (Zwischenüberschrift), --fs-t (Text), --fs-k (klein). */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --brand: #009fe3;        /* Markenfarbe (Kopf und Logo der heutigen Seite): Knöpfe, Anruf-Kachel, Zeichnungen */
  --brand-text: #111111;   /* Schrift auf Markenfarbe wie in den Runde-4-Entwürfen mit #009fe3 (hero.py farben(): 6,4:1) */
  --bg: #f5f5f7;
  --tile: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .1);
  --nacht: #000000;
  --tile-d: #161617;
  --ink-d: #f5f5f7;
  --muted-d: #a1a1a6;
  --line-d: rgba(255, 255, 255, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 30px; --r-k: 26px; --gap: 14px; --pad: 52px;
  --kopf-h: 88px;
  --max: 1440px;
  --fs-h: clamp(34px, 2.6vw + 16px, 56px);
  --fs-z: 21px;
  --fs-t: 17px;
  --fs-k: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink);
  font-size: var(--fs-t); line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--kopf-h) + 12px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--tile); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Entwurf-Hinweis und Kopf ---------- */
.entwurf { background: var(--nacht); color: var(--muted-d); font-size: var(--fs-k); line-height: 1.4; text-align: center; padding: 9px 16px 0; text-wrap: balance; }
.kopf { position: sticky; top: 0; z-index: 30; background: var(--nacht); color: var(--ink-d); transition: transform .45s var(--ease); }
.kopf.weg { transform: translateY(-100%); }
.kopf-bar { max-width: var(--max); margin: 0 auto; height: var(--kopf-h); padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.marke { flex: none; display: flex; align-items: center; }
.marke img { height: 56px; width: auto; }
.menue { display: flex; gap: 28px; margin-left: auto; }
.menue a { font-size: 15px; font-weight: 500; opacity: .82; white-space: nowrap; transition: opacity .2s; }
.menue a:hover { opacity: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--brand); color: var(--brand-text); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: filter .25s var(--ease); }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.gross { height: 54px; padding: 0 30px; }
.kopf-bar .btn { height: 44px; padding: 0 20px; font-size: 15px; }
.burger { display: none; margin-left: auto; position: relative; }
.burger summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tile-d); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor; transform: translateY(-3px); }
.burger[open] summary span { box-shadow: none; transform: rotate(45deg); }
.burger[open] summary span::after { content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-90deg); }
.burger nav { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 32px)); background: var(--tile-d); border: 1px solid var(--line-d);
  border-radius: 24px; padding: 10px; display: flex; flex-direction: column; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
.burger nav a { padding: 13px 16px; border-radius: 14px; font-weight: 600; }
.burger nav a:hover { background: rgba(255, 255, 255, .08); }
.burger nav a.btn { margin-top: 6px; height: 50px; }

/* ---------- Startbereich (Kacheln, dunkel) ---------- */
.start { background: var(--nacht); color: var(--ink-d); }
.bento { max-width: var(--max); margin: 0 auto; padding: 0 24px 24px; display: grid; gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 184px;
  height: calc(100vh - var(--kopf-h) - 28px); min-height: 680px; max-height: 960px; }
.bento > * { border-radius: var(--r); overflow: hidden; position: relative; min-width: 0; min-height: 0; }
.k-text { grid-column: 1 / span 6; grid-row: 1; background: var(--tile-d); padding: var(--pad); display: flex; flex-direction: column; justify-content: center; }
.h1 { font-weight: 700; letter-spacing: -.048em; line-height: 1.0; color: var(--ink-d); font-size: clamp(30px, 3.9vw, 62px);
  hyphens: manual; overflow-wrap: normal; text-wrap: balance; }
.k-text .lead { margin-top: 30px; font-size: 20px; line-height: 1.45; color: var(--muted-d); font-weight: 450; max-width: 34em; }
.akte { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.mehr { display: inline-flex; align-items: center; font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; transition: text-decoration-color .2s, color .2s; }
.start .mehr { color: var(--ink-d); text-decoration-color: rgba(255, 255, 255, .45); }
.start .mehr:hover { text-decoration-color: var(--brand); }
.k-bild { grid-column: 7 / -1; grid-row: 1 / -1; background: var(--brand); display: flex; align-items: center; justify-content: center; padding: 56px 52px; }
.k-bild img { width: 100%; height: 100%; object-fit: contain; }
.k-reihe { grid-column: 1 / span 6; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); border-radius: 0; overflow: visible; }
.k-kachel { border-radius: var(--r-k); overflow: hidden; position: relative; padding: 22px 26px; min-width: 0; display: flex; flex-direction: column; }
.k-lbl { font-size: var(--fs-k); font-weight: 600; color: var(--muted-d); }
.k-leist { background: var(--tile-d); gap: 10px; }
.k-l { display: flex; flex-direction: column; font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.14; }
.k-l a { display: block; padding: 8px 0 7px; border-top: 1px solid var(--line-d); transition: color .2s; }
.k-l a:hover { color: var(--brand); }
.k-anruf { background: var(--brand); color: var(--brand-text); justify-content: space-between; transition: filter .25s; }
.k-anruf:hover { filter: brightness(1.06); }
.k-anruf .k-lbl { color: inherit; opacity: .8; }
.k-anruf .ikon { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-text) 16%, transparent);
  display: flex; align-items: center; justify-content: center; }
.k-anruf .haupt { display: flex; flex-direction: column; gap: 2px; }
/* Fläche des Langenfeld-Links: ganze Kachel außer der Remscheid-Zeile (44 px) und dem Innenabstand unten (22 px, Handy 16 px) */
.k-anruf .haupt::after { content: ""; position: absolute; inset: 0 0 66px 0; }
.k-anruf .werk { font-size: var(--fs-k); }
.k-anruf .nr { font-size: clamp(22px, 2.05vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; word-spacing: .12em; }
.k-anruf .neben { position: relative; z-index: 1; display: flex; align-items: center; min-height: 44px; font-size: var(--fs-k); white-space: nowrap;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-text) 50%, transparent); text-underline-offset: 3px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(72px, 8vw, 120px) 0; }
.innen { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.kopfzeile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); padding: 0 28px; }
.kopfzeile h2 { grid-column: 1 / span 5; }
.kopfzeile p { grid-column: 7 / -1; color: var(--muted); max-width: 46em; }
h2, .h2 { font-size: var(--fs-h); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
h3, .h3 { font-size: var(--fs-z); font-weight: 650; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.klein { font-size: var(--fs-k); }
.muted { color: var(--muted); }
.nobr { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.kachel { background: var(--tile); border-radius: var(--r); padding: 40px 44px; min-width: 0; position: relative; }
.kachel > * + * { margin-top: 16px; }
.kachel p { max-width: 44em; }
.kachel > .textlink { display: inline-block; }
.textlink { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); transition: text-decoration-color .2s; overflow-wrap: anywhere; }
.textlink:hover { text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
/* E-Mail-Adressen wie auf der heutigen Seite: im HTML nur der Name, die Domain kommt per CSS, den Link setzt main.js */
.otliam::after { content: "@lindau-werke.de"; }
a.mail:not([href]) { color: inherit; font-weight: inherit; text-decoration: none; }
/* schwarze Kachel auf hellem Grund (Qualität, Angaben): Kontrast im Raster */
.nacht-kachel { background: var(--tile-d); color: var(--ink-d); }
.nacht-kachel .muted, .nacht-kachel dt { color: var(--muted-d); }
.nacht-kachel .textlink, .dunkel .textlink { color: var(--ink-d); text-decoration-color: rgba(255, 255, 255, .45); }
.nacht-kachel .textlink:hover, .dunkel .textlink:hover { text-decoration-color: var(--brand); }
/* Häkchen-Liste (Angebot Karriere, Angaben Anfrage): ohne Linien, Häkchen in Markenfarbe */
.haken { display: grid; gap: 2px; }
.haken li { position: relative; padding: 6px 0 6px 30px; }
.haken li::before { content: ""; position: absolute; left: 3px; top: calc(6px + .45em); width: 13px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* ---------- Leistungen: Bento aus drei Zeichnungen (eine groß, zwei rechts) ---------- */
.leist-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--gap);
  height: clamp(600px, 50vw, 720px); }
.l-kachel { grid-column: 8 / -1; display: flex; flex-direction: column; min-height: 0; min-width: 0; border-radius: var(--r); overflow: hidden; background: var(--tile); isolation: isolate; }
.l-gross { grid-column: 1 / span 7; grid-row: 1 / -1; }
.l-bild { flex: 1; min-height: 0; margin: 0; background: var(--brand); display: flex; align-items: center; justify-content: center; padding: 22px 40px; overflow: hidden; }
.l-gross .l-bild { padding: 44px 56px; }
.l-bild img { width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease); }
.l-kachel:hover .l-bild img { transform: scale(1.045); }
.l-text { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; padding: 18px 26px 20px; }
.l-gross .l-text { padding: 24px 32px 26px; }
.l-text h3 { line-height: 1.15; }
.l-text .klein { color: var(--muted); margin-top: 3px; }
.l-los { flex: none; font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); transition: text-decoration-color .2s; }
.l-kachel:hover .l-los { text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.l-kachel:focus-visible { border-radius: var(--r); }

/* Verfahren als Übersicht Gestell / Trommel */
.verfahren-kachel { margin-top: var(--gap); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); align-items: start; }
.verfahren-kachel > * + * { margin-top: 0; }
.v-text { grid-column: 1 / span 4; padding-right: 24px; }
.v-text p { margin-top: 12px; color: var(--muted); }
.matrix { grid-column: 5 / -1; width: 100%; border-collapse: collapse; table-layout: fixed; }
.matrix th, .matrix td { text-align: left; font-weight: inherit; vertical-align: middle; }
.matrix thead th { font-size: var(--fs-k); font-weight: 600; color: var(--muted); padding: 0 12px 10px 0; }
.matrix thead th:first-child { width: 44%; }
.matrix tbody th, .matrix tbody td { padding: 13px 12px 13px 0; border-top: 1px solid var(--line); }
.matrix tr.gruppe th { font-size: var(--fs-k); font-weight: 600; color: var(--muted); padding: 22px 0 8px; border-top: 0; }
.matrix tbody tr.gruppe:first-child th { padding-top: 4px; }
.v-name { font-weight: 650; letter-spacing: -.01em; }
.kz { margin-left: 12px; font-size: var(--fs-k); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pille { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--bg); font-size: var(--fs-k); font-weight: 500; white-space: nowrap; }
.ja { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); vertical-align: middle; }

/* ---------- Normen: blaue Fläche, Normen als Wand (Linien weiß wie die Zeichnungen) ---------- */
.blau { background: var(--brand); color: var(--brand-text); }
.normen-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gap); align-items: start; }
.normen-text { grid-column: 1 / span 4; padding: 0 28px; }
.normen-text p { margin-top: 20px; max-width: 24em; }
.normen-wand { grid-column: 5 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.normen-wand li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 999px; background: rgba(255, 255, 255, .1);
  font-size: var(--fs-k); font-weight: 500; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Unternehmen ---------- */
.zeit-kachel { grid-column: 1 / -1; padding: 40px 44px 46px; }
.zeitleiste { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 28px;
  margin-top: 34px !important; padding-top: 36px; }
.zeitleiste::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: var(--brand); transform-origin: left center; }
.zeitleiste li { position: relative; display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 8px; }
.zeitleiste li::before { content: ""; position: absolute; left: 0; top: -36px; width: 16px; height: 16px; border-radius: 50%; background: var(--tile); border: 2px solid var(--brand); }
.zeitleiste li:first-child::before { background: var(--brand); }
.zeitleiste .jahr { font-size: var(--fs-z); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.zeitleiste p { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; }
.werk { grid-column: span 4; display: flex; flex-direction: column; }
.werk .zahlen { margin-top: auto; padding-top: 30px; }
.werk > .textlink { align-self: flex-start; }
.zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.zahlen div { border-top: 1px solid var(--line); padding-top: 12px; }
.nacht-kachel .zahlen div { border-top-color: var(--line-d); }
.zahlen dt { font-size: var(--fs-k); color: var(--muted); line-height: 1.35; }
.nacht-kachel .zahlen dt { color: var(--muted-d); }
.zahlen dd { margin-top: 6px; font-size: var(--fs-h); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zahlen dd .klein { font-weight: 600; letter-spacing: 0; }
.statement { --st-pad: clamp(40px, 4.5vw, 64px); grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center;
  background: var(--brand); color: var(--brand-text); border-radius: var(--r); padding: var(--st-pad); overflow: hidden; }
.st-text { grid-column: 1 / span 6; }
.st-text p { margin-top: 22px; max-width: 30em; }
.st-text .textlink, .stelle-kachel .mehr { color: var(--brand-text); text-decoration-color: color-mix(in srgb, var(--brand-text) 50%, transparent); }
.st-text .textlink { display: inline-block; margin-top: 26px; }
.st-text .textlink:hover, .stelle-kachel .mehr:hover { text-decoration-color: var(--brand-text); text-decoration-thickness: 2px; }
.st-bild { grid-column: 7 / -1; margin: 0; }
.st-bild img { width: 100%; height: auto; }

/* ---------- Karriere (dunkel) ---------- */
.dunkel { background: var(--nacht); color: var(--ink-d); }
.dunkel .kachel { background: var(--tile-d); }
.dunkel .muted, .dunkel .kopfzeile p { color: var(--muted-d); }
.karriere-kopf h2 { grid-column: 1 / span 7; }
.karriere-kopf p { grid-column: 8 / -1; font-size: var(--fs-z); line-height: 1.45; letter-spacing: -.01em; }
.stelle-kachel { grid-column: 1 / span 7; display: flex; flex-direction: column; min-height: 440px; padding: 48px 52px; border-radius: var(--r);
  background: var(--brand); color: var(--brand-text); }
.stelle-kachel h3 { font-size: var(--fs-h); font-weight: 700; letter-spacing: -.04em; line-height: 1.04; hyphens: manual; max-width: 12em; }
.stelle-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stelle-meta li { padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--brand-text) 35%, transparent); border-radius: 999px; font-size: var(--fs-k); font-weight: 600; }
.stelle-kachel .akte { margin-top: auto; padding-top: 40px; }
.btn-nacht { background: var(--brand-text); color: #fff; }
.angebot-kachel { grid-column: 8 / -1; display: flex; flex-direction: column; }
.angebot-kachel .haken { margin-top: 14px; }
.person { margin-top: auto !important; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.angebot-kachel .person { margin-top: auto; }
.angebot-kachel .haken + .person { margin-top: 28px; }
.person p { flex-basis: 100%; }

/* ---------- Kontakt ---------- */
.formular-kachel { grid-column: 1 / span 7; padding: 48px 52px; }
.formular-kachel > p { margin-top: 14px; }
.angaben-spalte { grid-column: 8 / -1; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.angaben .haken { margin-top: 18px; }
.vertrieb-kachel { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; background: var(--brand); color: var(--brand-text); }
.vertrieb-kachel > * + * { margin-top: 6px; }
.vertrieb-kachel { min-height: 170px; }
.vertrieb-kachel .ikon { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; margin: 0;
  background: color-mix(in srgb, var(--brand-text) 16%, transparent); display: flex; align-items: center; justify-content: center; }
.vertrieb-kachel p { padding-right: 56px; }
.mail-gross { display: inline-block; align-self: flex-start; font-size: var(--fs-z); font-weight: 650; letter-spacing: -.02em; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--brand-text) 50%, transparent); transition: text-decoration-color .2s; }
.mail-gross:hover { text-decoration-thickness: 2px; text-decoration-color: var(--brand-text); }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px !important; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld.breit, .formular .hinweis, .formular .absenden, .formular .status { grid-column: 1 / -1; }
.feld label { font-size: var(--fs-k); font-weight: 600; color: var(--muted); }
.feld input, .feld textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid transparent; border-radius: 14px; padding: 0 16px; height: 52px; width: 100%; }
.feld textarea { height: 132px; padding: 14px 16px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.hinweis { background: color-mix(in srgb, var(--brand) 10%, var(--tile)); border-radius: 14px; padding: 12px 16px; font-size: var(--fs-k); font-weight: 600; color: var(--ink); }
.absenden { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.status { font-size: var(--fs-k); font-weight: 600; color: var(--ink); min-height: 1em; }
.status:empty { display: none; }
.werk-kontakt { grid-column: span 6; display: flex; flex-direction: column; align-items: flex-start; }
.werk-kontakt > * { align-self: stretch; }
.werk-kontakt > .textlink { align-self: flex-start; margin-top: auto; padding-top: 20px; }
.werk-kontakt .muted { margin-top: 6px; }
.tel-gross { align-self: flex-start !important; font-size: var(--fs-h); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; word-spacing: .1em;
  margin-top: 22px !important; transition: color .2s; }
.tel-gross:hover { color: var(--brand); }
.zeilen { display: grid; }
.zeilen a, a[href^="tel:"] { white-space: nowrap; }
.zeilen div { display: grid; grid-template-columns: 10.5em 1fr; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.zeilen dt { color: var(--muted); }
.zeiten { display: grid; gap: 4px; }
.achtung { background: color-mix(in srgb, var(--brand) 10%, var(--tile)); border-radius: 14px; padding: 12px 16px; font-size: var(--fs-k); font-weight: 600; color: var(--ink); }
.anlieferung { grid-column: 1 / -1; padding: 6px 28px 10px; color: var(--muted); font-size: var(--fs-k); }
/* Ansprechpartner: eine Zeile, aufklappbar (native details, ohne JS) */
.kachel.ansprech { grid-column: 1 / -1; padding: 0; }
.ansprech > * + * { margin-top: 0; }
.ansprech summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 44px; border-radius: var(--r); }
.ansprech summary::-webkit-details-marker { display: none; }
.ansprech .auf { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; white-space: nowrap; }
.ansprech .auf::after { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat, var(--bg);
  transition: transform .35s var(--ease), background-color .2s; }
.ansprech summary:hover .auf::after { background-color: color-mix(in srgb, var(--brand) 18%, var(--bg)); }
.ansprech[open] .auf::after { transform: rotate(45deg); }
.ansprech-inhalt { padding: 0 44px 40px; }
.ansprech-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; margin-top: 22px; }
.ansprech-raster h4 { font-size: var(--fs-t); font-weight: 650; padding-bottom: 8px; }
.ansprech-raster li { padding: 11px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.ansprech-raster .bereich { font-size: var(--fs-k); color: var(--muted); }
.ansprech-raster .name { font-weight: 600; }
.ansprech-raster .wege { display: flex; flex-wrap: wrap; gap: 2px 16px; }

/* Fuß (einzeilig) */
.fuss { background: var(--nacht); color: var(--muted-d); font-size: var(--fs-k); }
.fuss .innen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 26px; padding-bottom: 26px; }
.fuss .firma { color: var(--ink-d); font-weight: 600; margin-right: auto; }
.fuss a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.fuss a:hover { color: var(--ink-d); }

/* Handy-Leiste */
.mbar { display: none; }

/* Unterseiten (Impressum, Datenschutz, folgt) */
.seite { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 8vw, 120px); }
.seite .kachel { max-width: 880px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); }
.seite h1 { font-size: var(--fs-h); font-weight: 700; letter-spacing: -.04em; line-height: 1.06; }
.rechtstext { overflow-wrap: anywhere; }
.rechtstext h2 { font-size: var(--fs-z); letter-spacing: -.02em; line-height: 1.3; margin-top: 36px; }
.rechtstext h3, .rechtstext h4 { font-size: var(--fs-t); font-weight: 650; letter-spacing: 0; margin-top: 26px; }
.rechtstext p, .rechtstext ul, .rechtstext ol, .rechtstext table { margin-top: 10px; }
.rechtstext h2 + p, .rechtstext h3 + p { margin-top: 8px; }
.rechtstext ul { list-style: disc; padding-left: 1.3em; }
.rechtstext ol { list-style: decimal; padding-left: 1.3em; }
.rechtstext li { margin-top: 4px; }
.rechtstext a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rechtstext a:hover { text-decoration-color: var(--brand); text-decoration-thickness: 2px; }
.rechtstext hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.rechtstext table { border-collapse: collapse; width: 100%; }
.rechtstext td, .rechtstext th { border-top: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.folgt-liste { display: grid; margin-top: 28px !important; }
.folgt-liste li { padding: 14px 0; border-top: 1px solid var(--line); }
.folgt-liste li:target { background: color-mix(in srgb, var(--brand) 10%, var(--tile)); border-radius: 14px; padding: 14px 16px; border-top-color: transparent; }
.folgt-liste .h3 { display: block; }

/* ======================= Tablet ======================= */
@media (max-width: 1100px) {
  :root { --gap: 12px; --r: 28px; --r-k: 24px; --kopf-h: 76px; }
  .menue, .kopf-bar > .btn { display: none; }
  .burger { display: block; }
  .kopf-bar { padding: 0 16px 0 28px; }
  .marke img { height: 52px; }
  .bento { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; padding: 0 16px 16px; }
  .k-bild { order: 1; aspect-ratio: 16 / 10.5; flex: none; padding: 40px 48px; }
  .k-text { order: 2; padding: 40px 44px; }
  .h1 { font-size: clamp(30px, 6.4vw, 60px); }
  .k-text .lead { margin-top: 18px; font-size: 19px; }
  .akte { margin-top: 28px; }
  .k-reihe { order: 3; height: 184px; flex: none; }
  .k-anruf .nr { font-size: 30px; }
  .innen { padding: 0 16px; }
  .kopfzeile { grid-template-columns: 1fr; padding: 0 12px; align-items: start; }
  .kopfzeile h2, .kopfzeile p, .karriere-kopf h2, .karriere-kopf p { grid-column: 1 / -1; }
  .kachel { padding: 34px 36px; }
  /* Leistungen: groß oben, zwei nebeneinander */
  .leist-bento { height: auto; grid-template-rows: auto auto; }
  .l-gross { grid-column: 1 / -1; grid-row: auto; }
  .l-gross .l-bild { aspect-ratio: 16 / 10; flex: none; padding: 36px 48px; }
  .l-kachel:not(.l-gross) { grid-column: span 6; }
  .l-kachel:not(.l-gross) .l-bild { aspect-ratio: 5 / 4; flex: none; padding: 24px; }
  .l-text { flex: 1; align-items: flex-end; }
  .v-text, .matrix { grid-column: 1 / -1; }
  .normen-text { grid-column: 1 / -1; padding: 0 12px; }
  .normen-wand { grid-column: 1 / -1; }
  .zeitleiste { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); row-gap: 40px; }
  .zeitleiste::before { display: none; }
  .zeitleiste li { border-top: 2px solid var(--brand); padding-top: 22px; }
  .zeitleiste li::before { top: -9px; }
  .werk { grid-column: span 6; }
  .werk.nacht-kachel { grid-column: 1 / -1; }
  .st-text, .st-bild { grid-column: 1 / -1; }
  .st-bild { order: -1; max-width: 640px; }
  .stelle-kachel, .angebot-kachel, .formular-kachel, .angaben-spalte { grid-column: 1 / -1; }
  .stelle-kachel { min-height: 0; padding: 40px 44px; }
  .formular-kachel { padding: 40px 44px; }
  .zeilen div { grid-template-columns: 1fr; gap: 0; }
  .ansprech summary { padding: 26px 36px; }
  .ansprech-inhalt { padding: 0 36px 36px; }
  .ansprech-raster { grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .ansprech-raster .gemeinsam { grid-column: 1 / -1; margin-bottom: 20px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .werk-kontakt .tel-gross { font-size: clamp(26px, 3.6vw, 40px); }
}

/* ======================= Handy ======================= */
@media (max-width: 760px) {
  :root { --gap: 10px; --r: 24px; --r-k: 20px; --kopf-h: 64px; --fs-z: 19px; --fs-t: 16px; }
  .entwurf { padding: 8px 16px 0; }
  .kopf-bar { padding: 0 8px 0 18px; gap: 12px; }
  .marke img { height: 40px; }
  .burger nav { top: 50px; }
  .bento { padding: 0 10px 14px; }
  .k-bild { aspect-ratio: 4 / 3.3; padding: 22px 20px; }
  .k-text { padding: 26px 22px 24px; }
  .h1 { font-size: clamp(28px, 8.4vw, 44px); }
  .k-text .lead { margin-top: 14px; font-size: 16px; line-height: 1.5; }
  .akte { margin-top: 22px; gap: 14px; }
  .akte .btn { width: 100%; height: 52px; }
  .k-reihe { display: flex; flex-direction: column; height: auto; }
  .k-kachel { padding: 16px 18px; }
  .k-anruf { order: 1; padding-right: 70px; }
  .k-anruf .ikon { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
  .k-anruf .nr { font-size: 24px; }
  .k-leist { order: 2; }
  .k-l { font-size: 17px; }
  .k-anruf .haupt::after { bottom: 60px; }
  .abschnitt { padding: 60px 0; }
  .innen { padding: 0 10px; }
  .kopfzeile { padding: 0 8px; margin-bottom: 26px; }
  .kachel { padding: 26px 22px; border-radius: var(--r); }
  .btn.gross { padding: 0 18px; }
  /* Leistungen: Zeichnungen gestapelt, Text darunter */
  .l-kachel:not(.l-gross) { grid-column: 1 / -1; }
  .l-gross .l-bild, .l-kachel:not(.l-gross) .l-bild { aspect-ratio: 5 / 4; padding: 22px; }
  .l-text, .l-gross .l-text { padding: 16px 20px 18px; }
  .verfahren-kachel { gap: 18px; }
  .v-text { padding-right: 0; }
  /* Übersicht: je Verfahren eine Zeile mit zwei Pillen */
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .matrix tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
  .matrix tbody tr.gruppe { border-top: 0; padding: 18px 0 2px; }
  .matrix tbody tr.gruppe:first-child { padding-top: 0; }
  .matrix tbody th, .matrix tbody td, .matrix tr.gruppe th { padding: 0; border: 0; }
  .matrix tbody th { flex-basis: 100%; }
  .matrix td { display: inline-flex; align-items: center; gap: 8px; }
  .matrix td::before { content: attr(data-l); font-size: var(--fs-k); color: var(--muted); }
  /* Normen: Wand zum seitlichen Wischen (sechs Reihen), rechts ausgeblendet */
  .normen-text { padding: 0 8px; }
  .normen-wand { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, auto); justify-content: start; justify-items: start; gap: 8px;
    overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -10px; padding: 2px 64px 10px 18px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .normen-wand::-webkit-scrollbar { display: none; }
  .normen-wand li { scroll-snap-align: start; }
  /* Zeitleiste senkrecht, Linie links */
  .zeit-kachel { padding: 26px 22px 30px; }
  .zeitleiste { display: block; padding: 0 0 0 30px; margin-top: 22px !important; }
  .zeitleiste::before { display: block; left: 7px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; transform-origin: center top; }
  .zeitleiste li { display: block; border: 0; padding: 0; }
  .zeitleiste li + li { margin-top: 22px; }
  .zeitleiste li::before { left: -30px; top: 3px; }
  .zeitleiste p { margin-top: 4px; hyphens: manual; -webkit-hyphens: manual; }
  .werk, .werk.nacht-kachel { grid-column: 1 / -1; }
  .werk .zahlen { padding-top: 22px; }
  .statement { --st-pad: 22px; padding: 22px 22px 30px; gap: 18px; }
  .st-text p { margin-top: 16px; }
  .karriere-kopf p { font-size: var(--fs-t); }
  .stelle-kachel { padding: 28px 22px; }
  .stelle-kachel .akte { padding-top: 28px; }
  .person { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
  .formular-kachel { padding: 28px 22px; }
  .formular { grid-template-columns: 1fr; }
  .absenden .btn { width: 100%; height: 52px; }
  .werk-kontakt { grid-column: 1 / -1; }
  .tel-gross { font-size: clamp(26px, 8vw, 34px); margin-top: 16px !important; }
  .zeilen div { grid-template-columns: 1fr; gap: 0; }
  .anlieferung { padding: 4px 12px 8px; }
  .ansprech summary { padding: 22px; }
  .ansprech .auf { gap: 10px; }
  .ansprech .auf-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ansprech-inhalt { padding: 0 22px 26px; }
  .ansprech-raster { grid-template-columns: 1fr; }
  .ansprech-raster > div:not(:last-child) { margin-bottom: 20px; }
  .fuss .innen { padding-bottom: 96px; }
  .fuss .firma { flex-basis: 100%; }
  .mbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; gap: 8px; padding: 6px;
    border-radius: 999px; background: rgba(22, 22, 23, .94); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .5);
    transition: transform .5s var(--ease), opacity .3s; }
  .mbar a { flex: 1; height: 50px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--ink-d); }
  .mbar a.an { background: var(--brand); color: var(--brand-text); flex: 1.35; }
  .mbar.aus { transform: translateY(calc(100% + 28px)); opacity: 0; pointer-events: none; }
}
/* Karriere-Knopf „Bewerbung in zwei Minuten vom Handy“: auf schmalen Handys kleinere Schrift (vorhandene Größe --fs-k), damit nichts überläuft */
@media (max-width: 400px) {
  .stelle-kachel .akte .btn.gross { font-size: var(--fs-k); padding: 0 12px; }
}
/* unter 360 px darf der Knopf zweizeilig werden (Text bleibt vollständig) */
@media (max-width: 359px) {
  .stelle-kachel .akte .btn.gross { white-space: normal; text-wrap: balance; height: auto; min-height: 52px; padding: 8px 20px; text-align: center; line-height: 1.25; }
  .person .mail { font-size: var(--fs-k); }
}

/* ---------- Bewegung nur live (html.bewegt, setzt main.js), Standbild = Endzustand ---------- */
html.bewegt .ein { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .2s, transform 1s var(--ease) .2s; }
html.bewegt.los .ein { opacity: 1; transform: none; }
html.bewegt .oeffnen { clip-path: inset(7% 7% 7% 7% round var(--r)); transition: clip-path 1.1s var(--ease); }
html.bewegt .oeffnen.offen { clip-path: inset(0 0 0 0 round var(--r)); }
html.bewegt .parallax img { transform: translateY(calc((.5 - var(--p, .5)) * 26px)); will-change: transform; }
/* Zeitleiste: Linie zieht sich durch, die Punkte erscheinen nacheinander (Texte stehen immer da) */
html.bewegt .zieh::before { transform: scaleX(0); transition: transform 1.6s var(--ease) .1s; }
html.bewegt .zieh li::before { transform: scale(0); transition: transform .5s var(--ease); }
html.bewegt .zieh.offen::before { transform: none; }
html.bewegt .zieh.offen li::before { transform: none; }
html.bewegt .zieh.offen li:nth-child(2)::before { transition-delay: .25s; }
html.bewegt .zieh.offen li:nth-child(3)::before { transition-delay: .5s; }
html.bewegt .zieh.offen li:nth-child(4)::before { transition-delay: .75s; }
html.bewegt .zieh.offen li:nth-child(5)::before { transition-delay: 1s; }
html.bewegt .zieh.offen li:nth-child(6)::before { transition-delay: 1.25s; }
@media (max-width: 760px) { html.bewegt .zieh::before { transform: scaleY(0); } html.bewegt .zieh.offen::before { transform: none; } }
@media (max-width: 1100px) and (min-width: 761px) { html.bewegt .zieh li::before { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.bewegt .ein, html.bewegt .oeffnen, html.bewegt .parallax img, html.bewegt .zieh::before, html.bewegt .zieh li::before { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .kopf, .mbar, .l-bild img { transition: none; }
  .l-kachel:hover .l-bild img { transform: none; }
}

/* ======================= Fotos (Version mit KI-Beispielbildern) =======================
   Steht nach den Breiten-Blöcken, damit es deren Innenabstände der Zeichnungs-Kacheln überschreibt. Ausschnitt je Foto über --fp. */
.foto img { object-fit: cover; object-position: var(--fp, 50% 50%); }
.k-bild.foto { padding: 0; background: var(--tile-d); --fp: 50% 42%; }
.l-kachel .l-bild.foto { padding: 0; background: var(--tile-d); }
#gestell .l-bild { --fp: 36% 58%; }
#trommel .l-bild { --fp: 48% 45%; }
#direktpassivierung .l-bild { --fp: 0% 50%; }
@media (max-width: 1100px) { #direktpassivierung .l-bild { --fp: 49% 50%; } }
/* Endzustand ohne eigenen Radius: Die Kachel rundet die äußeren Ecken, unten am Textfeld bleibt das Foto eckig wie im Standbild */
html.bewegt .l-bild.oeffnen.offen { clip-path: inset(0); }

/* Unternehmen: Foto über die ganze Breite, 28 px höher als der Rahmen für das Parallax (höchstens 13 px je Richtung) */
.halle-bild { grid-column: 1 / -1; margin: 0; aspect-ratio: 2.4 / 1; border-radius: var(--r); overflow: hidden; background: var(--tile-d); --fp: 56% 50%; }
.halle-bild img { display: block; width: 100%; height: calc(100% + 28px); margin-top: -14px; object-fit: cover; object-position: var(--fp); }

/* Nachhaltigkeit: Foto füllt die rechte Hälfte der blauen Kachel bis an den Rand */
.st-bild.foto { grid-column: 7 / -1; align-self: stretch; position: relative; min-height: 420px; max-width: none;
  margin: calc(-1 * var(--st-pad)) calc(-1 * var(--st-pad)) calc(-1 * var(--st-pad)) 0; --fp: 25% 50%; }
.st-bild.foto img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Karriere: Foto neben der Stelle, das Angebot darunter über die ganze Breite */
.azubi-bild { grid-column: 1 / span 5; margin: 0; position: relative; min-height: 440px; border-radius: var(--r); overflow: hidden; background: var(--tile-d); --fp: 50% 30%; }
.azubi-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fp); }
.azubi-bild + .stelle-kachel { grid-column: 6 / -1; }
.azubi-bild ~ .angebot-kachel { grid-column: 1 / -1; }
.azubi-bild ~ .angebot-kachel .person p { max-width: none; }
@media (min-width: 761px) {
  .azubi-bild ~ .angebot-kachel .haken { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

@media (max-width: 1100px) {
  .halle-bild { aspect-ratio: 16 / 9; }
  .statement { row-gap: var(--st-pad); }
  .st-bild.foto { grid-column: 1 / -1; order: -1; min-height: 0; aspect-ratio: 16 / 9; margin: calc(-1 * var(--st-pad)) calc(-1 * var(--st-pad)) 0; }
  .azubi-bild, .azubi-bild + .stelle-kachel { grid-column: 1 / -1; }
  .azubi-bild { min-height: 0; aspect-ratio: 16 / 10; }
}
/* Tablet ab 900 px: Nachhaltigkeit und Stelle wieder nebeneinander, damit nicht drei große Fotos untereinander stehen */
@media (min-width: 900px) and (max-width: 1100px) {
  /* Text fünf, Foto sieben Spalten: sonst ist die Schraube im schmalen Ausschnitt angeschnitten */
  .st-text { grid-column: 1 / span 5; }
  .st-bild.foto { grid-column: 6 / -1; order: 0; aspect-ratio: auto; min-height: 360px;
    margin: calc(-1 * var(--st-pad)) calc(-1 * var(--st-pad)) calc(-1 * var(--st-pad)) 0; }
  .azubi-bild { grid-column: 1 / span 5; aspect-ratio: auto; min-height: 0; }
  .azubi-bild + .stelle-kachel { grid-column: 6 / -1; }
}
/* Tablet quer (900 bis 1100 px): Startbereich wie am Desktop, damit die Überschrift im ersten Bildschirm steht */
@media (min-width: 900px) and (max-width: 1100px) and (orientation: landscape) {
  .bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 184px;
    height: calc(100svh - var(--kopf-h) - 44px); min-height: 600px; max-height: 900px; }
  .k-bild, .k-text, .k-reihe { order: 0; }
  /* Text sieben Spalten, Foto fünf: sonst sind die beiden kleinen Kacheln zu schmal für Telefonnummer und Leistungsnamen */
  .k-bild { grid-column: 8 / -1; grid-row: 1 / -1; aspect-ratio: auto; }
  .k-text { grid-column: 1 / span 7; grid-row: 1; padding: 32px 34px; }
  .k-reihe { grid-column: 1 / span 7; grid-row: 2; height: auto; }
  .k-l { font-size: 17px; }
  .k-text .lead { margin-top: 16px; }
  /* ohne JS (sonst setzt main.js die Größen passend zur Kachel) */
  .h1 { font-size: clamp(30px, 5.3vw, 60px); }
  .k-anruf .nr { font-size: clamp(22px, 2.7vw, 30px); }
}
@media (max-width: 760px) {
  .halle-bild { aspect-ratio: 3 / 2; }
  .st-bild.foto { aspect-ratio: 4 / 3; }
  .azubi-bild { aspect-ratio: 5 / 4; }
}

/* Bewegung: Startfoto zoomt beim Laden leicht zurück (nur live) */
html.bewegt .k-bild.foto img { transform: scale(1.07); transition: transform 2.6s var(--ease); }
html.bewegt.los .k-bild.foto img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.bewegt .k-bild.foto img { transform: none !important; transition: none !important; }
}
