/* =========================================================================
   Ingenieurbüro Schönmann – zentrale Stil-Datei
   QUELLE (nicht generiert). Look ausschließlich über die Tokens in :root ändern.
   Preset-Basis: Clean Light, angepasst ("Ingenieursplan")
   ========================================================================= */

/* ---------- Schriften (lokal, woff2) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Marke / Akzent */
  --accent: #0f5f66;          /* Petrol – 7,4:1 auf Weiß */
  --accent-strong: #0a464c;
  --accent-2: #dfeceb;        /* Petrol-Tönung für Flächen */
  --accent-on-ink: #8ccfd3;   /* Petrol hell, für dunkle Flächen */

  /* Flächen */
  --bg: #f6f4ef;              /* Papier */
  --bg-deep: #ece9e1;
  --surface: #ffffff;
  --card-bg: #fbfaf7;
  --ink-bg: #14212b;          /* dunkle Fläche (Kontakt) */

  /* Text */
  --ink: #14212b;
  --text: #27343d;
  --text-soft: #56636b;       /* 5,6:1 auf Papier */
  --on-accent: #ffffff;
  --on-ink: #f6f4ef;
  --on-ink-soft: #b3bec4;

  /* Linien */
  --line: #dad6cc;
  --line-strong: #b5b0a3;
  --line-on-ink: #34434e;

  /* Schatten */
  --shadow: 0 1px 2px rgba(20, 33, 43, .06), 0 12px 28px -16px rgba(20, 33, 43, .22);
  --shadow-brand: 0 12px 28px -14px rgba(15, 95, 102, .55);

  /* Schriften */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display-stretch: 88%;

  /* Typo-Skala */
  --fs-display: clamp(2.5rem, 1.45rem + 4.6vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.7vw, 3.5rem);
  --fs-h3: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
  --fs-lead: clamp(1.15rem, 1.04rem + .5vw, 1.4rem);
  --fs-body: clamp(1.0625rem, 1rem + .25vw, 1.125rem);
  --fs-label: 1rem;
  --fs-statement: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);

  /* Layout */
  --maxw: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --bus-pad: clamp(1.75rem, 1rem + 3vw, 4rem);  /* Abstand Inhalt ↔ Buslinie */
  --bus-w: 2px;
  --radius: 6px;
  --radius-sm: 3px;

  /* Abstands-Skala */
  --s-1: .25rem;  --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
  --s-9: clamp(4rem, 2.5rem + 6vw, 7rem);
  --s-10: clamp(5rem, 3rem + 8vw, 9.5rem);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
p { margin: 0 0 var(--s-4); max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  color: var(--ink);
  margin: 0;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: .98; font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.04; font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 650; }
strong { font-weight: 600; color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--ink-bg); color: var(--on-ink); padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: var(--s-4); color: var(--on-ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.placeholder {
  background: var(--accent-2); color: var(--accent-strong);
  padding: 0 .3em; border-radius: var(--radius-sm); font-weight: 600;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5);
  font: 600 1.0625rem/1.2 var(--font-body);
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); text-decoration: none; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn-sm { min-height: 44px; padding: var(--s-2) var(--s-4); font-size: 1rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px;
  font-weight: 600; text-decoration: none; color: var(--accent);
}
.link-arrow span[aria-hidden] { transition: transform .15s ease; }
.link-arrow:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 72px; }
.brand { display: flex; align-items: center; min-height: 44px; padding-block: var(--s-2); flex: 0 1 auto; min-width: 0; }
.brand-logo { height: clamp(28px, 1.2rem + 2.6vw, 46px); width: auto; }

.nav-d { display: none; list-style: none; gap: var(--s-1); align-items: center; }
.nav-d a, .nav-m a {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.nav-d a:hover, .nav-m a:hover { color: var(--accent); }
.nav-d a[aria-current="page"], .nav-m a[aria-current="page"] { color: var(--accent); }
.header-tel { display: none; }

.nav-m { position: static; }
.nav-m summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s-2);
  min-height: 44px; min-width: 44px; padding: 0 var(--s-3);
  font-weight: 600; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.nav-m summary::-webkit-details-marker { display: none; }
.nav-m .burger { width: 18px; height: 12px; position: relative; border-block: 2px solid currentColor; }
.nav-m .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; }
.nav-m[open] .burger { border-color: transparent; }
.nav-m[open] .burger::after { transform: rotate(45deg); box-shadow: 0 0 0 0 currentColor; }
.nav-m[open] .burger::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transform: rotate(-45deg); }
.nav-m ul {
  list-style: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: var(--s-2) var(--gutter) var(--s-5);
}
.nav-m li + li { border-top: 1px solid var(--line); }
.nav-m a { min-height: 52px; padding: 0; font-size: 1.125rem; }

@media (min-width: 60em) {
  .nav-m { display: none; }
  .nav-d { display: flex; }
  .header-tel { display: inline-flex; }
  .header-in { min-height: 84px; }
}

/* ---------- Buslinie (Signatur) ---------- */
.sec { position: relative; padding-block: var(--s-9); }
.sec::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: var(--bus-w);
  left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  background: var(--accent);
}
.sec > .wrap { padding-left: calc(var(--gutter) + var(--bus-pad)); }
.sec-hero::before { top: var(--s-8); }
.sec-end::before { bottom: auto; height: var(--s-9); }

/* Gruppenadress-Etikett mit Busknoten */
.ga {
  position: relative; display: flex; align-items: baseline; gap: var(--s-3);
  font-size: var(--fs-label); font-weight: 600; color: var(--accent);
  margin: 0 0 var(--s-5); letter-spacing: .01em;
}
.ga::before {
  content: ""; position: absolute; top: .35em;
  left: calc(-1 * var(--bus-pad) - 6px + var(--bus-w) / 2);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.ga-addr { font-variant-numeric: tabular-nums; font-family: var(--font-body); letter-spacing: .04em; }
.ga-addr::after { content: "·"; margin-left: var(--s-3); color: var(--line-strong); }

/* ---------- Hero ---------- */
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero-text h1 { margin-bottom: var(--s-5); }
.hero-text h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text); max-width: 34ch; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.hero-actions .tel-line { font-weight: 600; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-actions .tel-line:hover { color: var(--accent); }
.hero-meta { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--text-soft); font-size: 1rem; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

.plan { margin: 0; }
.plan svg { width: 100%; }
.plan-legend {
  list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--s-2) var(--s-5);
  margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line);
  font-size: 1rem; color: var(--text);
}
@media (min-width: 30em) { .plan-legend { grid-template-columns: 1fr 1fr; } }
.plan-legend li { display: flex; gap: var(--s-2); align-items: baseline; }
.plan-legend b {
  flex: none; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .875rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* SVG-Zeichnung: nur Token-Farben */
.p-wall { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.p-thin { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.p-fill { fill: var(--surface); }
.p-tint { fill: var(--accent-2); }
.p-ground { stroke: var(--ink); stroke-width: 2.5; }
.p-hatch { stroke: var(--line-strong); stroke-width: 1.5; }
.p-bus { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.p-wire { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.p-dev { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.p-node { fill: var(--accent); }
.p-node-t { fill: var(--on-accent); font: 600 20px/1 var(--font-body); }
.p-pulse { fill: none; stroke: var(--accent-on-ink); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 18 1400; stroke-dashoffset: 18; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .p-pulse { animation: telegram 4.5s ease-in-out 1s 2 both; }
  @keyframes telegram {
    0% { stroke-dashoffset: 18; opacity: 1; }
    80% { stroke-dashoffset: -440; opacity: 1; }
    100% { stroke-dashoffset: -440; opacity: 0; }
  }
}

@media (min-width: 60em) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-8); }
  .sec-hero { padding-top: var(--s-9); }
}

/* ---------- Statement ---------- */
.statement {
  font-family: var(--font-display); font-stretch: var(--display-stretch);
  font-size: var(--fs-statement); line-height: 1.12; font-weight: 600; color: var(--ink);
  max-width: 24ch; letter-spacing: -.015em; margin: 0 0 var(--s-6);
}
.statement span { color: var(--accent); }
.cols-2 { display: grid; gap: var(--s-5) var(--s-8); }
@media (min-width: 48em) { .cols-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Leistungen (editoriale Liste) ---------- */
.sec-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.sec-head p { color: var(--text-soft); margin: 0; }
@media (min-width: 60em) { .sec-head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s-8); } }

.svc { list-style: none; border-top: 2px solid var(--ink); }
.svc-item {
  display: grid; gap: var(--s-3); padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.svc-no { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; font-size: 1rem; letter-spacing: .04em; }
.svc-item h3 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); }
.svc-item p { margin: 0; color: var(--text); }
.svc-item ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.svc-item li {
  font-size: 1rem; padding: .15em .7em; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--text); background: var(--card-bg);
}
@media (min-width: 60em) {
  .svc-item { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.25fr) auto; gap: var(--s-6); align-items: start; }
  .svc-item .link-arrow { align-self: start; margin-top: -.4rem; }
}

/* ---------- Für wen ---------- */
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }
.aud { list-style: none; display: grid; border-top: 1px solid var(--line); }
.aud li { padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.aud h3 { margin-bottom: var(--s-2); }
.aud p { margin: 0; color: var(--text-soft); }
.aud .aud-key { background: var(--accent-2); margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); border-radius: var(--radius); border-bottom-color: transparent; }
.aud .aud-key p { color: var(--text); }
.aud-tag { display: inline-block; font-size: .9375rem; font-weight: 600; color: var(--accent-strong); margin-bottom: var(--s-2); }
@media (min-width: 48em) {
  .aud { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); }
  .aud .aud-key { margin-inline: 0; }
}
@media (min-width: 60em) {
  .aud-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: start; }
  .aud-wrap .sec-intro { position: sticky; top: var(--s-6); }
}
.sec-intro h2 { margin-bottom: var(--s-5); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.chips li { font-size: 1rem; padding: .15em .7em; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); background: var(--card-bg); }
.sec-intro p { color: var(--text-soft); }

/* ---------- Ablauf ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; margin-top: var(--s-7); }
.step { position: relative; padding: 0 0 var(--s-6) var(--s-7); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 2px solid var(--accent);
  color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums;
}
.step::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.25rem; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.3rem; margin: .2rem 0 var(--s-2); }
.step p { margin: 0; color: var(--text-soft); }
@media (min-width: 60em) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
  .step { padding: var(--s-8) 0 0; }
  .step::after { left: 2.25rem; right: calc(-1 * var(--s-6)); top: calc(1.125rem - 1px); bottom: auto; width: auto; height: 2px; }
  .step:last-child::after { display: block; right: 0; background: linear-gradient(to right, var(--line), transparent); }
}

/* ---------- Warum KNX: große Aussage + Fakten ---------- */
.knx-grid { display: grid; gap: var(--s-7); }
.big { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; color: var(--ink);
  font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem); line-height: .92; letter-spacing: -.035em; margin: 0; }
.big span { display: block; color: var(--accent); }
.facts { margin: 0; display: grid; }
.facts div { padding: var(--s-5) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-1); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--ink); font-size: 1.125rem; }
.facts dd { margin: 0; color: var(--text-soft); }
@media (min-width: 60em) { .knx-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; } }

/* ---------- Über mich ---------- */
.about { display: grid; gap: var(--s-7); }
.portrait {
  width: 100%; max-width: 26rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-deep);
  box-shadow: calc(-1 * var(--s-3)) var(--s-3) 0 0 var(--accent-2);
  margin-left: var(--s-3);
}
.about blockquote { margin: 0 0 var(--s-5); padding-left: var(--s-5); border-left: 3px solid var(--accent); font-size: var(--fs-lead); color: var(--ink); }
.about .sig { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 650; font-size: 1.35rem; color: var(--ink); margin-top: var(--s-5); }
.about-text-first .portrait { order: 2; max-width: 20rem; }
@media (min-width: 60em) {
  .about { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: center; }
  .about-text-first .portrait { order: 0; max-width: 26rem; }
}

/* ---------- Kontakt (dunkel) ---------- */
.sec-ink { background: var(--ink-bg); color: var(--on-ink); }
.sec-ink::before { background: var(--accent-on-ink); }
.sec-ink .ga { color: var(--accent-on-ink); }
.sec-ink .ga::before { background: var(--ink-bg); border-color: var(--accent-on-ink); }
.sec-ink .ga-addr::after { color: var(--line-on-ink); }
.sec-ink h2, .sec-ink strong { color: var(--on-ink); }
.sec-ink p { color: var(--on-ink-soft); }
.sec-ink a { color: var(--on-ink); }
.sec-ink :focus-visible { outline-color: var(--accent-on-ink); }
.sec-ink .placeholder { background: var(--line-on-ink); color: var(--on-ink); }
.contact { display: grid; gap: var(--s-7); }
.tel-big {
  display: inline-block; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 4rem); line-height: 1.25; letter-spacing: -.02em;
  text-decoration: none; color: var(--on-ink); margin: var(--s-5) 0 var(--s-3); font-variant-numeric: tabular-nums;
  border-bottom: 3px solid var(--accent-on-ink); padding-bottom: .12em;
}
.tel-big:hover { color: var(--accent-on-ink); }
.contact-list { margin: 0; display: grid; }
.contact-list div { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-top: 1px solid var(--line-on-ink); }
.contact-list dt { font-size: .9375rem; color: var(--on-ink-soft); }
.contact-list dd { margin: 0; color: var(--on-ink); font-size: 1.0625rem; }
.contact-list a { min-height: 44px; display: inline-flex; align-items: center; }
.btn-light { background: var(--on-ink); color: var(--ink); }
.btn-light:hover { background: var(--accent-on-ink); color: var(--ink); text-decoration: none; }
@media (min-width: 60em) { .contact { grid-template-columns: 1.2fr .8fr; gap: var(--s-8); align-items: end; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-bg); color: var(--on-ink-soft); border-top: 1px solid var(--line-on-ink); padding-block: var(--s-7) var(--s-6); font-size: 1rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--accent-on-ink); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--accent-on-ink); }
.foot-grid { display: grid; gap: var(--s-6); }
.foot-grid h2 { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; color: var(--on-ink); letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--s-2); }
.foot-grid ul { list-style: none; }
.foot-grid p { margin: 0; color: var(--on-ink-soft); }
.foot-brand { margin-bottom: var(--s-4) !important; }
.foot-brand img { height: 40px; width: auto; }
.foot-bottom { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line-on-ink); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between; }
.foot-bottom ul { list-style: none; display: flex; gap: var(--s-5); }
.site-footer .placeholder { background: var(--line-on-ink); color: var(--on-ink); }
@media (min-width: 48em) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Mobile Aktionsleiste ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
  padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(20, 33, 43, .35);
}
.callbar .btn { min-height: 48px; padding-inline: var(--s-3); }
body { padding-bottom: 72px; }
@media (min-width: 60em) { .callbar { display: none; } body { padding-bottom: 0; } }

/* ---------- Unterseiten ---------- */
.page-hero { padding-bottom: var(--s-8); }
.h1-page { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem); line-height: 1.02; margin-bottom: var(--s-5); max-width: 20ch; }
.page-hero .lead { max-width: 52ch; }
.crumbs { margin-bottom: var(--s-6); font-size: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-2); padding: 0; margin: 0; }
.crumbs li { display: flex; align-items: center; gap: var(--s-2); color: var(--text-soft); }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--text-soft); min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.sec-tight { padding-top: 0; }
.mt-4 { margin-top: var(--s-4); }
.h2-sm { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: var(--s-6); }
.mini-h { font-family: var(--font-body); font-stretch: normal; font-size: 1.125rem; font-weight: 600; margin: var(--s-6) 0 var(--s-3); letter-spacing: 0; }
.lead-sm { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }

.detail { display: grid; gap: var(--s-5); }
@media (min-width: 60em) { .detail { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; } }

/* Checkliste mit Busknoten als Aufzählungszeichen */
.check-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: var(--s-4) 0 var(--s-4) var(--s-6); border-bottom: 1px solid var(--line); color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: calc(var(--s-4) + .45em);
  width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--accent); background: var(--surface);
}
.sec:not(.sec-alt) .check-list li::before { background: var(--bg); }
.check-list-sm li { padding-block: var(--s-3); }
.check-list-sm li::before { top: calc(var(--s-3) + .45em); }

/* Werdegang */
.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; gap: var(--s-1) var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.tl-year { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.25rem; margin-bottom: var(--s-1); }
.timeline p { margin: 0; color: var(--text-soft); }
@media (min-width: 48em) { .timeline li { grid-template-columns: 8rem 1fr; } }
.sig-sub { color: var(--text-soft); margin-top: calc(-1 * var(--s-3)); }
.facts-3 { margin-top: var(--s-6); }
@media (min-width: 60em) {
  .facts-3 { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-6); }
  .facts-3 div:last-child { border-bottom: 0; }
}

/* Kontaktseite (hell) */
.tel-big-light { color: var(--ink); border-bottom-color: var(--accent); }
.tel-big-light:hover { color: var(--accent); }
.contact-list-light div { border-top-color: var(--line); }
.contact-list-light dt { color: var(--text-soft); }
.contact-list-light dd { color: var(--ink); }

/* KNX-Partner (Logo unverändert, auf weißer Fläche) */
.partner-badge { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-5) 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.partner-logo { flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s-2) var(--s-3); }
.partner-logo img { width: 104px; height: auto; }
.partner-badge p { margin: 0; color: var(--text-soft); font-size: 1rem; line-height: 1.5; }

/* Rechtstexte */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin: var(--s-7) 0 var(--s-3); }
.prose p { color: var(--text); }
.notice { padding: var(--s-4); border-left: 3px solid var(--accent); background: var(--accent-2); border-radius: var(--radius-sm); }
.notice .placeholder { background: transparent; padding: 0; }
.small-note { color: var(--text-soft); margin-top: var(--s-7); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
