/* Zimmerei Müller – Prototyp
   Aufbau nach dem Vorbild apple.com/de, eigene Gestaltung:
   Archivo (Breitenachse), warmes Kalkweiß, Anthrazit, Tannengrün aus dem bisherigen Logo. */

/* Art Direction (Awwwards-Skill): Warm Editorial. Gefühl beim Laden: Vertrauen und Stolz aufs Handwerk.
   Eine Schriftfamilie (Archivo) mit Breitenachse als Signatur, ein Akzent (Tannengrün), kein reines Weiß. */
:root {
  --white: #fdfcfa;
  --paper: #fbfaf7;
  --tile: #f1eee8;
  --tile-2: #e9e4db;
  --ink: #1b1a17;
  --ink-2: #5b574f;
  --line: rgba(27, 26, 23, 0.12);
  --dark: #131210;
  --dark-2: #1f1d1a;
  --on-dark: #f4f1ea;
  --on-dark-2: #aaa499;
  --line-dark: rgba(244, 241, 234, 0.16);
  --accent: #1e6b3c;
  --accent-hover: #17592f;
  --accent-soft: #e2ede5;
  --accent-on-dark: #8fd6a6;
  --ph: #c0732b;
  --danger: #b3261e;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --nav-h: 52px;
  --gutter: clamp(16px, 4vw, 44px);
  --maxw: 1120px;
  --gap: 12px;
  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  scrollbar-color: #bdb6aa var(--white);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
/* Lange deutsche Einzelwörter (Fördermittelrechner, Energieberatung) dürfen umbrechen statt überzulaufen */
h1, h2, h3, legend, .t-display, .statement__text, .address__big { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--accent-on-dark); }
.on-dark ::selection { background: var(--accent-on-dark); color: var(--dark); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-size: .9375rem;
}
.skip:focus { top: 12px; }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typografie ---------- */
.t-display {
  font-size: clamp(3.25rem, 1.6rem + 6.4vw, 6rem);
  line-height: .95;
  letter-spacing: -.036em;
  font-weight: 780;
  font-stretch: 112%;
}
.t-h2 {
  font-size: clamp(2.375rem, 1.4rem + 3.8vw, 4.25rem);
  line-height: 1;
  letter-spacing: -.032em;
  font-weight: 760;
  font-stretch: 110%;
}
.t-h3 {
  font-size: clamp(1.875rem, 1.35rem + 1.7vw, 2.625rem);
  line-height: 1.04;
  letter-spacing: -.026em;
  font-weight: 740;
  font-stretch: 108%;
}
.t-h4 {
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -.012em;
  font-weight: 680;
  font-stretch: 104%;
}
.t-sub {
  font-size: clamp(1.1875rem, 1rem + .75vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -.012em;
  font-weight: 420;
}
.t-lead {
  font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: -.008em;
}
.t-small { font-size: .8125rem; line-height: 1.5; letter-spacing: .004em; }
.muted { color: var(--ink-2); }
.on-dark .muted { color: var(--on-dark-2); }

/* Platzhalter: alles, was der Betrieb noch bestätigen oder liefern muss */
.ph {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--ph);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  cursor: help;
}

/* ---------- Hinweisleiste ---------- */
.ribbon {
  background: var(--tile);
  color: var(--ink-2);
  text-align: center;
  font-size: .8125rem;
  line-height: 1.4;
  padding: 10px var(--gutter);
}
.ribbon strong { color: var(--ink); font-weight: 620; }

/* ---------- Globale Navigation ---------- */
.gnav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: rgba(251, 250, 247, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 220ms ease;
}
.gnav--static { position: relative; }
.gnav.is-scrolled { box-shadow: 0 10px 28px -18px rgba(27, 26, 23, .35); }
@media (prefers-reduced-transparency: reduce) {
  .gnav, .lnav { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.gnav__inner {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink); flex: none;
}
.brand__name {
  font-size: 1.0625rem; line-height: 1;
  font-weight: 790; font-stretch: 118%; letter-spacing: -.02em;
}
.brand__name span { font-weight: 430; color: var(--ink-2); }
/* Logo: drei Dächer mit „M“, diagonal übereinander (erzeugt mit tools/logo.py) */
.brand__mark { display: block; height: 40px; width: auto; color: var(--accent); flex: none; }
@media (hover: hover) {
  .brand__mark path { transition: transform 420ms cubic-bezier(.16, 1, .3, 1); }
  /* SVG-Einheiten: 5 entsprechen bei 38 px Höhe etwa 1,3 Bildschirmpixeln */
  .brand:hover .brand__mark path:nth-child(2) { transform: translateY(-5px); }
  .brand:hover .brand__mark path:nth-child(3) { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .brand:hover .brand__mark path { transform: none !important; } }
.gnav__links {
  display: none;
  margin: 0 0 0 auto; padding: 0; list-style: none;
  gap: clamp(12px, 1.5vw, 26px);
}
.gnav__links a {
  font-size: .8125rem; text-decoration: none; color: var(--ink);
  opacity: .78; transition: opacity 160ms ease;
  padding: 6px 0; white-space: nowrap;
}
.gnav__links a:hover, .gnav__links a[aria-current="page"] { opacity: 1; }
.gnav .gnav__cta { margin-left: auto; }
.gnav__cta + .gnav__menu { margin-left: 4px; }
.gnav__menu {
  margin-left: auto;
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-items: center;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px;
}
.gnav__menu svg { width: 22px; height: 22px; }
/* Volle Navigation erst ab 1100 px, darunter das Menü (sonst wird es zu eng) */
@media (min-width: 1100px) {
  .gnav__links { display: flex; }
  .gnav__menu { display: none; }
  .gnav .gnav__cta { margin-left: 0; }
}

/* Menü auf dem Handy */
.mmenu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0;
  transition: opacity 180ms var(--ease-out), visibility 0s linear 180ms;
}
.mmenu.is-open {
  visibility: visible; opacity: 1;
  transition: opacity 220ms var(--ease-out);
}
.mmenu__head {
  height: var(--nav-h); flex: none;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.mmenu__close {
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-items: center;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px;
}
.mmenu__close svg { width: 22px; height: 22px; }
.mmenu__body { padding: 20px var(--gutter) 40px; overflow-y: auto; }
.mmenu__list { list-style: none; margin: 0; padding: 0; }
.mmenu__list a {
  display: block; padding: 7px 0;
  font-size: 1.875rem; line-height: 1.15; font-weight: 720; font-stretch: 110%; letter-spacing: -.024em;
  text-decoration: none;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.mmenu.is-open .mmenu__list a {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i, 0) * 26ms);
}
.mmenu__meta { margin-top: 32px; color: var(--ink-2); font-size: .9375rem; }
.mmenu__meta a { color: var(--accent); font-weight: 600; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .mmenu__list a { transform: none; transition: opacity 200ms ease; }
}

/* ---------- Buttons und Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 580; letter-spacing: -.004em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 34px; padding: 0 15px; font-size: .8125rem; font-weight: 600; }
.btn--primary { background-color: var(--accent); color: #fff; }
/* Ghost-Button: Farbe wischt von links herein und nach rechts hinaus */
.btn--ghost {
  --wipe: var(--accent);
  border-color: var(--accent); color: var(--accent);
  background: linear-gradient(var(--wipe), var(--wipe)) no-repeat right center / 0% 100%;
  transition: background-size 420ms cubic-bezier(.16, 1, .3, 1), color 200ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}
.on-dark .btn--primary { background-color: var(--accent-on-dark); color: var(--dark); }
.on-dark .btn--ghost { --wipe: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--accent-on-dark); }
/* Hover nur auf Geräten mit Maus, damit am Handy nichts „hängen“ bleibt */
@media (hover: hover) {
  .btn--primary:hover { background-color: var(--accent-hover); }
  .on-dark .btn--primary:hover { background-color: #a9e2bb; }
  .btn--ghost:hover { background-size: 100% 100%; background-position: left center; color: #fff; }
  .on-dark .btn--ghost:hover { color: var(--dark); }
}
.btn[disabled] { opacity: .55; cursor: progress; }

.more {
  display: inline-flex; align-items: center; gap: .3em;
  color: var(--accent); font-weight: 560; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 220ms var(--ease-out);
  padding-bottom: 1px;
}
.more svg { width: .7em; height: .7em; transition: transform 200ms var(--ease-out); }
@media (hover: hover) {
  .more:hover { background-size: 100% 1.5px; }
  .more:hover svg { transform: translateX(2px); }
}
.on-dark .more { color: var(--accent-on-dark); }

/* ---------- Kachel-Stapel (wie die Startseite von apple.com) ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding-bottom: var(--gap); }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(52px, 7vw, 76px) var(--gutter) 0;
}
.tile--light { background: var(--tile); }
.tile--white { background: var(--white); }
.tile--dark { background: var(--dark); color: var(--on-dark); }
.tile__sub { margin-top: .4em; max-width: 34ch; }
.tile__ctas {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 12px 14px; margin-top: 22px;
}
.tile__media {
  margin-top: clamp(30px, 4.5vw, 50px);
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
}
.tile__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 0%;
}
@media (min-width: 740px) {
  .tile__media { width: min(100%, 1000px); }
  .tile__media img { aspect-ratio: 2 / 1; }
}

/* Einstieg der Hero-Kachel: einmal beim Laden */
@keyframes enter {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
}
@keyframes enter-media {
  from { opacity: 0; transform: scale(1.035); }
}
[data-enter] { animation: enter 900ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
[data-enter="media"] { animation-name: enter-media; animation-duration: 1300ms; }
@media (prefers-reduced-motion: reduce) {
  [data-enter] { animation: enter-fade 400ms ease both; }
  @keyframes enter-fade { from { opacity: 0; } }
}

/* ---------- Offene Stellen ---------- */
.jobs {
  background: var(--white);
  padding: clamp(56px, 7vw, 88px) var(--gutter);
}
.jobs__inner { max-width: var(--maxw); margin: 0 auto; }
.jobs__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.jobs__list { border-top: 1px solid var(--line); }
.job {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 160ms ease;
}
@media (hover: hover) { .job:hover { background: var(--paper); } }
.job__title {
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.15;
  font-weight: 700; font-stretch: 106%; letter-spacing: -.02em;
}
.job__meta { grid-column: 1; color: var(--ink-2); font-size: .9375rem; }
.job__go {
  grid-column: 2; grid-row: 1 / span 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tile); color: var(--ink);
  transition: background-color 160ms ease, color 160ms ease, transform 200ms var(--ease-out);
}
.job__go svg { width: 14px; height: 14px; }
@media (hover: hover) { .job:hover .job__go { background: var(--accent); color: #fff; transform: translateX(3px); } }
.job:active .job__go { background: var(--accent); color: #fff; }
@media (min-width: 740px) {
  .job { grid-template-columns: 1fr auto auto; padding: 24px 8px; }
  .job__meta { grid-column: 2; grid-row: 1; }
  .job__go { grid-column: 3; grid-row: 1; }
}

/* ---------- Vergleich Zeichnung / Modell ---------- */
.compare {
  --pos: 50%;
  position: relative;
  margin-top: clamp(30px, 4.5vw, 50px);
  width: calc(100% + 2 * var(--gutter));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
@media (min-width: 740px) {
  .compare { width: min(100%, 1000px); border-radius: 20px; margin-bottom: clamp(52px, 7vw, 76px); }
}
.compare img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.compare__photo { object-position: 50% 0%; }
.compare__model {
  object-fit: contain !important;
  background: #fff;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(27, 26, 23, .14);
  pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(27, 26, 23, .45), 0 0 0 1px rgba(27, 26, 23, .08);
  transition: transform 160ms var(--ease-out);
}
.compare__knob svg { width: 20px; height: 20px; }
.compare.is-dragging .compare__knob { transform: scale(1.08); }
.compare__tag {
  position: absolute; top: 14px;
  font-size: .75rem; font-weight: 640; letter-spacing: .01em;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: none;
}
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare__range:focus-visible + .compare__focus { opacity: 1; }
.compare__focus {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 3px var(--accent);
  border-radius: inherit;
}

/* ---------- Raster mit vier Kacheln ---------- */
.grid {
  display: grid; gap: var(--gap);
  padding: 0 var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .grid { grid-template-columns: 1fr 1fr; } }
.gtile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(44px, 5vw, 56px) 24px 0;
  min-height: clamp(500px, 46vw, 600px);
}
.gtile .tile__sub { max-width: 30ch; }
.gtile__media {
  margin-top: auto; padding-top: 30px;
  width: calc(100% + 48px);
}
.gtile__media img {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; object-position: 50% 0%;
  transition: transform 700ms var(--ease-out);
}
.gtile__media--contain { width: min(100%, 520px); padding-bottom: 28px; }
.gtile__media--contain img { aspect-ratio: 16 / 10; object-fit: contain; }
@media (hover: hover) {
  .gtile:hover .gtile__media img { transform: scale(1.025); }
}

/* ---------- Projekte (Leiste zum Wischen) ---------- */
.rail-section {
  background: var(--paper);
  padding: clamp(56px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
}
.rail-head {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto clamp(22px, 3vw, 34px);
  padding: 0 var(--gutter);
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
}
.rail-ctrl { display: none; gap: 10px; }
@media (min-width: 740px) { .rail-ctrl { display: flex; } }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: var(--tile-2); color: var(--ink); cursor: pointer;
  transition: background-color 160ms ease, opacity 160ms ease, transform 140ms var(--ease-out);
}
.rail-btn:hover { background: #ddd6ca; }
.rail-btn:active { transform: scale(.94); }
.rail-btn[disabled] { opacity: .35; cursor: default; }
.rail-btn svg { width: 16px; height: 16px; }
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(84vw, 440px);
  gap: 16px;
  margin: 0; padding: 4px var(--gutter) 12px;
  list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1208px) {
  .rail {
    padding-inline: calc((100vw - var(--maxw)) / 2);
    scroll-padding-inline: calc((100vw - var(--maxw)) / 2);
  }
}
.pcard { scroll-snap-align: start; }
.pcard a {
  display: block; text-decoration: none;
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 26, 23, .06), 0 10px 24px -18px rgba(27, 26, 23, .3);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
@media (hover: hover) {
  .pcard a:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(27, 26, 23, .06), 0 18px 34px -20px rgba(27, 26, 23, .38); }
  .pcard a:hover img { transform: scale(1.03); }
}
.pcard__img { overflow: hidden; }
.pcard__img img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0%;
  transition: transform 700ms var(--ease-out);
}
.pcard__body { padding: 18px 20px 20px; }
.pcard__kind { color: var(--ink-2); font-size: .875rem; margin-top: 4px; }

/* ---------- Aussage in großer Schrift ---------- */
.statement {
  background: var(--white);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.statement__inner { max-width: 980px; margin: 0 auto; }
.statement__text {
  font-size: clamp(1.875rem, 1.1rem + 3vw, 3.5rem);
  line-height: 1.1; letter-spacing: -.03em;
  font-weight: 700; font-stretch: 108%;
}
.statement__text .muted { font-weight: 600; }
.statement__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; font-size: 1.0625rem; }

/* ---------- Kontaktband ---------- */
.contact {
  background: var(--dark); color: var(--on-dark);
  padding: clamp(56px, 7vw, 88px) var(--gutter);
}
.contact__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 28px 48px; align-items: end;
}
@media (min-width: 860px) { .contact__inner { grid-template-columns: 1.3fr 1fr; } }
.contact__facts { display: grid; gap: 6px; font-size: 1.0625rem; }
.contact__facts a { color: var(--accent-on-dark); font-weight: 600; text-decoration: none; }
.contact__facts a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Footer ---------- */
.foot {
  background: var(--tile);
  color: var(--ink-2);
  font-size: .8125rem; line-height: 1.5;
  padding: 26px var(--gutter) 30px;
}
.foot__inner { max-width: var(--maxw); margin: 0 auto; }
.foot__note { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.foot__note p + p { margin-top: 8px; }
.foot__cols {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) { .foot__cols { grid-template-columns: repeat(4, 1fr); } }
.foot__cols h2 { font-size: .8125rem; font-weight: 640; color: var(--ink); margin-bottom: 8px; letter-spacing: 0; }
.foot__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.foot__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-top: 16px;
}
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Hinweis für noch nicht gebaute Seiten ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  transform: translate(-50%, 16px); opacity: 0;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 14px;
  font-size: .9375rem; line-height: 1.35;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5);
  transition: transform 320ms var(--ease-out), opacity 220ms var(--ease-out);
  pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Jobseite (wie eine Produktseite auf apple.com)
   ========================================================= */
.lnav {
  position: sticky; top: 0; z-index: 30;
  height: var(--nav-h);
  background: rgba(251, 250, 247, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow 220ms ease;
}
.lnav.is-scrolled { box-shadow: 0 10px 28px -18px rgba(27, 26, 23, .35); }
.lnav__inner {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 22px;
}
.lnav__title {
  font-size: 1.1875rem; font-weight: 720; font-stretch: 106%; letter-spacing: -.02em;
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.lnav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 22px; }
.lnav__links a {
  font-size: .8125rem; text-decoration: none; color: var(--ink); opacity: .72;
  transition: opacity 160ms ease; padding: 6px 0; position: relative;
}
.lnav__links a:hover { opacity: 1; }
.lnav__links a[aria-current="true"] { opacity: 1; }
.lnav__links a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor;
}
@media (min-width: 900px) { .lnav__links { display: flex; } }

.section { padding: clamp(72px, 9vw, 128px) var(--gutter); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--light { background: var(--tile); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__head { max-width: 760px; }
.section__head .t-lead { margin-top: 20px; }

.jhero {
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(48px, 7vw, 84px) var(--gutter) 0;
  overflow: hidden;
}
.jhero__facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  margin-top: 20px; padding: 0; list-style: none;
  color: var(--ink-2); font-size: .9375rem;
}
.jhero__facts li { display: inline-block; }
.jhero__facts li + li::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .55; margin: -2px 12px 0;
}

/* Alltag: Fotos in unterschiedlichen Formaten */
.collage {
  display: grid; gap: var(--gap);
  margin-top: clamp(36px, 5vw, 56px);
  grid-template-columns: 1fr 1fr;
}
.collage figure { overflow: hidden; border-radius: 16px; background: var(--tile); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__a { grid-column: 1 / -1; }
.collage__a img { aspect-ratio: 16 / 9; object-position: 50% 0%; }
.collage__b img, .collage__c img { aspect-ratio: 1 / 1; }
@media (min-width: 820px) {
  .collage { grid-template-columns: 1fr 1fr; }
  .collage__a img { aspect-ratio: 21 / 9; }
  .collage__b img, .collage__c img { aspect-ratio: 3 / 2; }
}

.tasks {
  display: grid; gap: 0 48px;
  margin-top: clamp(40px, 5vw, 64px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .tasks { grid-template-columns: 1fr 1fr; } }
.tasks > div { padding: 20px 0; border-top: 1px solid var(--line); }
.tasks dt { font-weight: 680; font-size: 1.125rem; letter-spacing: -.01em; }
.tasks dd { margin-top: 4px; color: var(--ink-2); }

/* Technik-Abschnitt */
.tech {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (min-width: 900px) {
  .tech { grid-template-columns: 1.1fr 1fr; }
  .tech .t-h2 { font-size: clamp(2.375rem, 1.2rem + 2.6vw, 3.75rem); }
}
.tech__media { border-radius: 18px; overflow: hidden; }
.tech__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 30% 0%; }
.tech__steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.tech__steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.tech__steps svg { width: 22px; height: 22px; color: var(--accent-on-dark); margin-top: 2px; }

/* Konditionen wie „Technische Daten" */
.specs { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.spec {
  display: grid; gap: 4px 40px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 740px) { .spec { grid-template-columns: 220px 1fr; } }
.spec dt { font-weight: 680; font-size: 1.0625rem; }
.spec dd { color: var(--ink); }
.spec dd .muted { display: block; font-size: .9375rem; margin-top: 2px; }

/* Vergleich der Einstiege */
.cmp-wrap { margin-top: clamp(36px, 5vw, 56px); overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.cmp {
  width: 100%; min-width: 660px;
  border-collapse: collapse; text-align: left;
  font-size: 1rem;
}
.cmp th, .cmp td { padding: 16px 18px 16px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp thead th { border-bottom: 0; padding-bottom: 6px; }
.cmp thead th:first-child, .cmp tbody th { width: 160px; }
.cmp__level { font-size: 1.5rem; font-weight: 740; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.1; }
.cmp tbody th { font-weight: 640; color: var(--ink-2); font-size: .9375rem; }
.cmp tfoot td { border-bottom: 0; padding-top: 22px; }

/* Bewerbung */
.apply {
  display: grid; gap: clamp(32px, 5vw, 64px);
}
@media (min-width: 940px) { .apply { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.apply__aside { display: grid; gap: 24px; }
.apply__alt {
  display: grid; gap: 10px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.apply__alt a {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 620; text-decoration: none; color: var(--accent);
}
.apply__alt svg { width: 20px; height: 20px; }

.form {
  background: var(--white);
  border-radius: 22px;
  padding: clamp(22px, 3.5vw, 36px);
  box-shadow: 0 1px 2px rgba(27, 26, 23, .05), 0 22px 44px -30px rgba(27, 26, 23, .35);
  display: grid; gap: 20px;
}
.field { display: grid; gap: 7px; }
.field__label { font-weight: 640; font-size: .9375rem; }
.field__label small { font-weight: 420; color: var(--ink-2); font-size: .875rem; }
.input, .select, .textarea {
  width: 100%;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #d9d3c8; border-radius: 12px;
  padding: 12px 14px; min-height: 50px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.textarea { min-height: 96px; resize: vertical; }
.select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b574f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-right: 42px;
}
.input::placeholder, .textarea::placeholder { color: #807a70; }
.input:hover, .select:hover, .textarea:hover { border-color: #c4bdb0; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 107, 60, .14);
}
.field.is-invalid .input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.field__error { display: none; color: var(--danger); font-size: .875rem; }
.field.is-invalid .field__error { display: block; }
.row2 { display: grid; gap: 20px; }
@media (min-width: 620px) { .row2 { grid-template-columns: 1fr 1fr; } }

.seg {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  padding: 4px; border-radius: 14px; background: var(--tile);
  border: 0; margin: 0;
}
@media (min-width: 520px) { .seg { grid-template-columns: repeat(4, 1fr); } }
.seg.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg label { min-width: 0; text-align: center; line-height: 1.2; -webkit-hyphens: auto; hyphens: auto; }
.seg legend { padding: 0; margin-bottom: 7px; }
.seg label {
  position: relative; display: grid; place-items: center;
  min-height: 42px; padding: 0 8px; border-radius: 10px;
  font-size: .9375rem; font-weight: 560; cursor: pointer;
  transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 160ms ease;
  color: var(--ink-2);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(27, 26, 23, .1), 0 4px 10px -6px rgba(27, 26, 23, .3);
}
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg-field { display: grid; gap: 7px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9375rem; color: var(--ink-2); }
.check input {
  -webkit-appearance: none; appearance: none; margin: 1px 0 0;
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid #c4bdb0; background: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.check input::after {
  content: ""; width: 11px; height: 6px;
  border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg) scale(.6); opacity: 0;
  transition: transform 160ms var(--ease-out), opacity 120ms ease;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.check a { color: var(--accent); }
.field.is-invalid .check input { border-color: var(--danger); }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form__submit .btn { min-width: 200px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.done {
  display: none;
  background: var(--white); border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(27, 26, 23, .05), 0 22px 44px -30px rgba(27, 26, 23, .35);
}
.done.is-on { display: grid; gap: 14px; animation: enter 600ms var(--ease-out) both; }
.done__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.done__icon svg { width: 26px; height: 26px; }

.others {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline;
  max-width: var(--maxw); margin: 0 auto;
}

/* =========================================================
   Weitere Seitentypen
   ========================================================= */

/* Einfacher Seitenkopf ohne großes Bild */
.phero { background: var(--white); padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(32px, 5vw, 56px); }
.phero__inner { max-width: var(--maxw); margin: 0 auto; }
.phero .t-display { font-size: clamp(3rem, 1.6rem + 5vw, 5.25rem); }
.phero .t-sub { margin-top: 16px; max-width: 40ch; }
.phero .tile__ctas { justify-content: flex-start; }

/* Bild-Text-Zeilen, abwechselnd */
.frows { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(40px, 6vw, 72px); }
.frow { display: grid; gap: clamp(22px, 4vw, 56px); align-items: center; }
@media (min-width: 860px) {
  .frow { grid-template-columns: 1fr 1fr; }
  .frow:nth-child(even) .frow__media { order: 2; }
}
.frow__media { border-radius: 18px; overflow: hidden; background: var(--tile); }
.frow__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0%; }
.frow__media--left img { object-position: 0% 0%; }
.frow__media--white { background: #fff; border: 1px solid var(--line); }
.frow__media--white img { object-fit: contain; padding: 10px; }
.frow p { margin-top: 14px; }

/* Text und Bild nebeneinander */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split__media { order: -1; }
}
.split__media { border-radius: 18px; overflow: hidden; background: var(--tile); }
.split__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0%; }
.split__media--left img { object-position: 0% 0%; }
.split__media--white { background: #fff; }
.split__media--white img { object-fit: contain; aspect-ratio: 16 / 10; }
.split .t-lead { margin-top: 18px; }

/* Häkchen-Liste */
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.on-dark .checks svg { color: var(--accent-on-dark); }

/* Ablauf in Schritten (die Reihenfolge trägt Information) */
.steps {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
  display: grid; counter-reset: step;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(var(--n, 3), 1fr); gap: 28px; } }
.steps li { counter-increment: step; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 720; font-size: .9375rem; margin-bottom: 14px;
}
.steps h3 { font-size: 1.1875rem; line-height: 1.25; font-weight: 680; letter-spacing: -.01em; }
.steps p { margin-top: 6px; color: var(--ink-2); }
.on-dark .steps li { border-color: var(--line-dark); }
.on-dark .steps li::before { background: rgba(143, 214, 166, .14); color: var(--accent-on-dark); }
.on-dark .steps p { color: var(--on-dark-2); }

/* Schlagwörter und Filter */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--tile); color: var(--ink);
  font: inherit; font-size: .9375rem; font-weight: 540;
}
button.chip {
  border: 0; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
button.chip:hover { background: var(--tile-2); }
button.chip:active { transform: scale(.97); }
button.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.on-dark .chip { background: var(--dark-2); color: var(--on-dark); }

/* CAD-Modelle auf Weiß */
.renders { display: grid; gap: var(--gap); margin-top: clamp(36px, 5vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .renders { grid-template-columns: repeat(3, 1fr); } }
.renders figure { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.renders img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 10px; }

/* Technische Daten auf dunklem Grund */
.on-dark .specs, .on-dark .spec { border-color: var(--line-dark); }
.on-dark .spec dd { color: var(--on-dark); }
.on-dark .spec dd .muted { color: var(--on-dark-2); }

/* Zwei Spalten mit Überschrift */
.duo { display: grid; gap: 32px 56px; margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { padding-top: 22px; border-top: 2px solid var(--ink); }
.duo p { margin-top: 10px; color: var(--ink-2); }
.duo .more { margin-top: 14px; }

/* Abschlussband mit Handlungsaufforderung */
.cta-band { background: var(--tile); padding: clamp(64px, 8vw, 112px) var(--gutter); text-align: center; }
.cta-band p { margin: 14px auto 0; max-width: 46ch; }

/* Projektübersicht */
.pfilter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.pfilter .chips { margin: 0; }
.pgrid { display: grid; gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pitem {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 26, 23, .06), 0 10px 24px -18px rgba(27, 26, 23, .3);
  animation: enter-fade 360ms var(--ease-out) both;
}
.pitem[hidden] { display: none; }
.pitem__img { overflow: hidden; }
.pitem img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 0%; transition: transform 700ms var(--ease-out); }
.pitem img.left { object-position: 0% 0%; }
@media (hover: hover) { .pitem:hover img { transform: scale(1.03); } }
.pitem__body { padding: 16px 18px 18px; }
.pitem__kind { color: var(--ink-2); font-size: .875rem; margin-top: 4px; }
@keyframes enter-fade { from { opacity: 0; } }

/* Personen */
.people { display: grid; gap: 0 48px; margin-top: clamp(32px, 5vw, 48px); }
@media (min-width: 760px) { .people { grid-template-columns: 1fr 1fr; } }
.person { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.person__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 740; font-size: 1.25rem; font-stretch: 110%;
}
.person p { margin-top: 4px; color: var(--ink-2); }

/* Kontakt */
.kgrid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 940px) { .kgrid { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.klist { list-style: none; margin: 0; padding: 0; }
.klist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.klist svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.klist a { color: var(--accent); font-weight: 620; text-decoration: none; }
.klist a:hover { text-decoration: underline; text-underline-offset: .2em; }
.klist small { display: block; color: var(--ink-2); font-size: .875rem; }
.input[type="file"] { padding: 10px 12px; font-size: .9375rem; cursor: pointer; }
.input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; font-size: .875rem;
  margin-right: 12px; padding: 7px 14px; border-radius: 999px; border: 0;
  background: var(--tile); color: var(--ink); cursor: pointer;
}
.field__hint { color: var(--ink-2); font-size: .875rem; }

/* Rechtstexte */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 720; letter-spacing: -.02em; margin: 44px 0 10px; }
.prose h3 { font-size: 1.125rem; font-weight: 680; margin: 26px 0 6px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 4px; }
.note { background: var(--tile); border-radius: 14px; padding: 16px 18px; color: var(--ink-2); }

/* Anfahrt: die Adresse als Motiv */
.address__big {
  margin-top: 14px;
  font-size: clamp(2.75rem, 1.2rem + 6vw, 6rem); line-height: .98;
  letter-spacing: -.035em; font-weight: 780; font-stretch: 112%;
}
.address__row {
  display: grid; gap: 24px 48px; align-items: center;
  margin-top: clamp(32px, 4vw, 48px); padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
@media (min-width: 900px) { .address__row { grid-template-columns: 1fr auto; } }
.address__facts { display: grid; gap: 10px; margin: 0; }
.address__facts div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; }
.address__facts dt { color: var(--on-dark-2); }
.address__note { margin-top: 22px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Klempner: Stehfalz aus vorbewittertem Zink statt Foto */
.zinc {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .22)),
    repeating-linear-gradient(90deg,
      transparent 0 calc(var(--seam, 92px) - 5px),
      rgba(255, 255, 255, .16) calc(var(--seam, 92px) - 5px) calc(var(--seam, 92px) - 3px),
      rgba(0, 0, 0, .34) calc(var(--seam, 92px) - 3px) calc(var(--seam, 92px) - 1px),
      transparent calc(var(--seam, 92px) - 1px) var(--seam, 92px)),
    #4a5055;
  color: #f3f4f5;
}
.zinc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, .14), transparent 60%);
}
.zinc > * { position: relative; z-index: 1; }
.zinc .muted, .zinc .jhero__facts { color: #c9ced2; }
.jhero.zinc { padding-bottom: clamp(64px, 9vw, 120px); min-height: min(78svh, 760px); justify-content: center; }
@media (max-width: 739px) { .zinc { --seam: 64px; } }

/* Kapitelleiste der Startseite (wie die Produktleiste auf apple.com) */
.chapters { background: var(--white); padding: 22px 0 16px; }
.chapters ul {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; justify-content: center; gap: clamp(4px, 2.4vw, 34px);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.chapters ul::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .chapters ul { justify-content: flex-start; } }
.chapters a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 88px; padding: 6px 4px; border-radius: 12px;
  text-decoration: none; color: var(--ink); text-align: center;
  font-size: .75rem; font-weight: 560; line-height: 1.25;
}
.chapters svg { width: 40px; height: 40px; transition: color 160ms ease, transform 240ms var(--ease-out); }
@media (hover: hover) { .chapters a:hover svg { color: var(--accent); transform: translateY(-2px); } }
.chapters em { font-style: normal; font-size: .6875rem; font-weight: 640; color: #a3561a; margin-top: -5px; }

/* =========================================================
   Energieberatung, Schnellcheck und Fördermittelrechner
   ========================================================= */
.ehero { background: var(--white); padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(56px, 7vw, 96px); }
.ehero__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .ehero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.ehero .t-display { font-size: clamp(3rem, 1.5rem + 4.6vw, 5rem); }
.ehero .t-sub { margin-top: 18px; max-width: 34ch; }
.ehero .tile__ctas { justify-content: flex-start; }

.qcheck {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 30px);
  display: grid; gap: 20px;
  box-shadow: 0 1px 2px rgba(27, 26, 23, .05), 0 26px 50px -36px rgba(27, 26, 23, .4);
  text-align: left;
}
.qcheck__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.qcheck__rangehead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.qcheck__cost { font-weight: 680; font-variant-numeric: tabular-nums; }
.qcheck__result { border-top: 1px solid var(--line); padding-top: 18px; }
.qcheck__value {
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.5rem); line-height: 1;
  font-weight: 760; font-stretch: 110%; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: var(--accent);
  margin: 4px 0 8px;
}
.qcheck .btn { justify-self: start; }
.tile .qcheck { width: min(100%, 560px); margin-top: clamp(30px, 4.5vw, 50px); margin-bottom: clamp(52px, 7vw, 76px); }

.range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0;
  --fill: 50%;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--fill), var(--tile-2) var(--fill));
}
.range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--tile-2); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 0;
  box-shadow: 0 2px 6px rgba(27, 26, 23, .3), 0 0 0 1px rgba(27, 26, 23, .08);
  transition: transform 140ms var(--ease-out);
}
.range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 2px 6px rgba(27, 26, 23, .3), 0 0 0 1px rgba(27, 26, 23, .08);
}
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(30, 107, 60, .25), 0 2px 6px rgba(27, 26, 23, .3); }

/* Rechner */
.calc-section { padding-top: clamp(28px, 4vw, 44px); }
.calc__steps {
  list-style: none; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.calc__step {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 0 0; border: 0; border-top: 3px solid var(--tile-2); background: none;
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer;
  transition: border-color 220ms var(--ease-out), color 160ms ease;
}
.calc__step[disabled] { cursor: default; opacity: .6; }
.calc__step[aria-current="step"] { border-color: var(--accent); color: var(--ink); }
.calc__step.is-done { border-color: var(--accent); }
.calc__num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8125rem;
  background: var(--tile-2); color: var(--ink-2);
}
.calc__step[aria-current="step"] .calc__num, .calc__step.is-done .calc__num { background: var(--accent); color: #fff; }
@media (max-width: 719px) { .calc__step span:last-child { display: none; } .calc__step { justify-content: center; } }

.calc__layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .calc__layout { grid-template-columns: 1fr 300px; } }
.calc__form {
  background: var(--white); border-radius: 24px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 1px 2px rgba(27, 26, 23, .05), 0 22px 44px -32px rgba(27, 26, 23, .35);
}
.calc__panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__panel legend, .calc__result h2 { padding: 0; margin-bottom: 6px; }
.calc__intro { margin-bottom: 24px; }
.calc__err { display: none; margin-top: 14px; }
.calc__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc__nav [data-next] { margin-left: auto; }
.calc__sub { margin-top: 28px; }

.choices { display: grid; gap: 12px; }
@media (min-width: 760px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choices--compact { grid-template-columns: 1fr; }
@media (min-width: 640px) { .choices--compact { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .choices--compact { grid-template-columns: repeat(3, 1fr); } }
.choice {
  position: relative; display: grid; gap: 6px; align-content: start;
  padding: 18px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid #d9d3c8; background: var(--paper);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out);
}
.choice:hover { border-color: #c4bdb0; }
.choice:active { transform: scale(.985); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice__title { font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; }
.choice__text { color: var(--ink-2); font-size: .9375rem; }
.choice__meta { color: var(--accent); font-size: .8125rem; font-weight: 600; margin-top: 4px; }

.mgroup + .mgroup { margin-top: 26px; }
.mgroup__title { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 8px; }
.measures { display: grid; border-top: 1px solid var(--line); }
.measure {
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) { .measure { grid-template-columns: 1fr 200px; } }
.measure__check { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; font-weight: 560; }
.measure__check input {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none;
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c4bdb0; background: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.measure__check input::after {
  content: ""; width: 11px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg) scale(.6); opacity: 0;
  transition: transform 160ms var(--ease-out), opacity 120ms ease;
}
.measure__check input:checked { background: var(--accent); border-color: var(--accent); }
.measure__check input:checked::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.measure__cost .input { min-height: 44px; padding: 8px 12px; text-align: right; font-variant-numeric: tabular-nums; }
.measure:not(:has(input:checked)) .measure__cost { opacity: .45; }
.measure:not(:has(input:checked)) .measure__cost:focus-within { opacity: 1; }
.calc__form .check + .check { margin-top: 10px; }

.calc__summary {
  position: sticky; top: calc(var(--nav-h) + 16px);
  background: var(--dark); color: var(--on-dark);
  border-radius: 24px; padding: 24px;
}
.calc__summary .muted { color: var(--on-dark-2); }
.summary__value {
  font-size: 2.5rem; line-height: 1.05; font-weight: 760; font-stretch: 110%; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: var(--accent-on-dark); margin: 6px 0 4px;
}
.summary__list { margin: 18px 0 0; display: grid; gap: 0; }
.summary__list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-dark); font-size: .9375rem; }
.summary__list dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
[tabindex="-1"]:focus { outline: none; }
.summary__stand { margin-top: 16px; }
@media (max-width: 999px) {
  .calc__summary { position: static; order: -1; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 16px; }
  .calc__summary .summary__value { grid-row: 1 / span 2; grid-column: 2; font-size: 1.875rem; margin: 0; }
  .calc__summary .summary__list, .calc__summary .summary__stand { display: none; }
}

.result__totals { display: grid; gap: 12px; margin: 18px 0 8px; }
@media (min-width: 640px) { .result__totals { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.total { background: var(--paper); border-radius: 16px; padding: 16px 18px; }
.total__value {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height: 1.05; margin-top: 4px;
  font-weight: 760; font-stretch: 110%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--accent);
}
.total__value--muted { color: var(--ink); }
.rtable { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.rtable th, .rtable td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable thead th { font-size: .8125rem; color: var(--ink-2); font-weight: 600; padding-bottom: 8px; }
.rtable td:last-child, .rtable th:last-child { text-align: right; padding-right: 0; }
.rtable__title { display: block; font-weight: 680; }
.rtable__sub { display: block; color: var(--ink-2); font-size: .8125rem; font-weight: 420; margin-top: 2px; }
@media (max-width: 699px) {
  .rtable thead { display: none; }
  .rtable tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .rtable th, .rtable td { border: 0; padding: 0; text-align: left !important; }
  .rtable th[scope="row"] { grid-column: 1 / -1; margin-bottom: 6px; }
  .rtable td::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--ink-2); }
}
.result__notes { margin-top: 24px; }
.result__notes ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: .9375rem; display: grid; gap: 6px; }

@media print {
  .ribbon, .gnav, .lnav, .mmenu, .foot, .calc__steps, .calc__nav, .calc__summary, .phero, .calc__result .tile__ctas, .toast, .skip { display: none !important; }
  .calc__form { box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* =========================================================
   Awwwards-Feinschliff
   ========================================================= */

/* Kein reines Weiß: Renderings mit weißem Hintergrund verschmelzen per Multiply mit dem warmen Grund */
.renders figure, .frow__media--white, .split__media--white, .pitem { background: var(--white); }
.gtile__media--contain img, .renders img, .split__media--white img, .frow__media--white img { mix-blend-mode: multiply; }

/* Signatur-Moment: Überschriften werden beim Laden „aufgerichtet“, von unten nach oben freigelegt */
@keyframes raise {
  from { clip-path: inset(100% -0.1em -0.25em -0.1em); transform: translateY(.18em); opacity: .2; }
  to { clip-path: inset(-0.2em -0.1em -0.25em -0.1em); transform: none; opacity: 1; }
}
h1[data-enter] { animation: raise 1100ms cubic-bezier(.16, 1, .3, 1) both; animation-delay: 120ms; }
@media (prefers-reduced-motion: reduce) { h1[data-enter] { animation: enter-fade 400ms ease both; } }

/* Fotos setzen sich beim Scrollen sanft an ihren Platz (nur wo der Browser es nativ kann) */
.tile__media { overflow: hidden; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile:not(:first-child) .tile__media img,
    .split__media:not(.split__media--left):not(.split__media--white) img,
    .collage img {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    @keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
  }
}

/* Rhythmus brechen: Stellenliste als geteiltes Layout mit stehender Überschrift */
@media (min-width: 960px) {
  .jobs__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; align-items: start; }
  .jobs__head { position: sticky; top: calc(var(--nav-h) + 28px); flex-direction: column; align-items: flex-start; margin: 0; }
}

/* Seitenwechsel als ruhige Überblendung, Navigation bleibt stehen */
@view-transition { navigation: auto; }
.gnav { view-transition-name: gnav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Handy: Daumen-Leiste auf Karriereseiten */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: none; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 247, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -10px 28px -18px rgba(27, 26, 23, .35);
  transform: translateY(110%);
  transition: transform 380ms cubic-bezier(.16, 1, .3, 1);
}
.mbar .btn { flex: 1; }
.mbar.is-on { transform: none; }
@media (max-width: 739px) { .mbar { display: flex; } }
@media (prefers-reduced-motion: reduce) { .mbar { transition: none; } }

/* Grid-Kinder dürfen schmaler werden als ihr längstes Wort (sonst schiebt z. B. „reinschnuppern“ die Seite auf) */
.split > *, .tech > *, .apply > *, .kgrid > *, .frow > *, .duo > *, .people > *,
.calc__layout > *, .contact__inner > *, .ehero__inner > *, .address__row > *, .tasks > * { min-width: 0; }

/* Sehr schmale Handys (320 px): Navigation verdichten */
@media (max-width: 379px) {
  .gnav__inner { gap: 12px; }
  .brand__name { font-size: .9375rem; }
  .brand { gap: 7px; }
  .brand__mark { height: 34px; }
}
/* Ganz schmale Handys: Wortmarke zweizeilig, damit Logo, „Bewerben“ und Menü nebeneinander passen */
@media (max-width: 359px) {
  .brand__name { display: grid; font-size: .875rem; line-height: 1.02; }
  .brand__name span { font-size: .8125rem; }
  .lnav__inner { gap: 12px; }
  .lnav__title { font-size: 1rem; }
}
.lnav__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* 404 */
.notfound { min-height: 70svh; display: grid; align-content: center; }
.notfound .tile__ctas { justify-content: flex-start; }

/* Bilder mit Logo-Streifen am rechten Rand: von links oben her vergrößert, damit der Streifen herausfällt */
.pitem img.left, .split__media--left img, .frow__media--left img { transform-origin: 0 0; transform: scale(1.16); }
@media (hover: hover) { .pitem:hover img.left { transform: scale(1.19); } }
.prose .note { margin-bottom: 28px; }

/* Eigene Fotos: Bildausschnitt steuern (Standard ist oben, .pos-c Mitte, .pos-b unten) */
.pos-c img { object-position: 50% 50%; }
.pos-b img { object-position: 50% 100%; }

/* Baustellen-Serie: drei Schritte, nummeriert */
.serie { display: grid; gap: var(--gap); margin-top: clamp(36px, 5vw, 56px); grid-template-columns: 1fr; counter-reset: schritt; }
@media (min-width: 720px) { .serie { grid-template-columns: repeat(3, 1fr); } }
.serie figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--tile); counter-increment: schritt; }
.serie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.serie figcaption { display: flex; gap: 10px; align-items: baseline; padding: 12px 14px 14px; font-size: .9375rem; color: var(--ink-2); }
.serie figcaption::before { content: counter(schritt, decimal-leading-zero); font-weight: 680; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Renderings aus der Dietrich's-Planung: freigestellt auf hellem Grund */
.render { background: var(--tile); }
.render img { object-fit: contain !important; object-position: 50% 50% !important; mix-blend-mode: normal !important; transform: none !important; }
.pitem__img.render img, .pcard__img.render img { padding: 3% 5%; }
.render--tag { position: relative; }
.render--tag::after {
  content: "3D-Modell"; position: absolute; left: 12px; top: 12px;
  font-size: .75rem; font-weight: 640; padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink-2);
}
.fig-note { margin-top: 10px; font-size: .875rem; color: var(--ink-2); }
.pitem__link { color: inherit; text-decoration: none; }
.pitem__link::after { content: ""; position: absolute; inset: 0; }
.pitem:has(.pitem__link) { position: relative; cursor: pointer; }
@media (hover: hover) { .pitem:has(.pitem__link):hover .pitem__link { text-decoration: underline; text-underline-offset: 3px; } }
.on-dark .fig-note { color: var(--on-dark-2); }

/* Drehbares 3D-Modell */
.modell {
  position: relative; width: 100%; max-width: 1040px; margin: clamp(30px, 4.5vw, 50px) auto 0;
  aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--tile);
}
.modell__poster, .modell__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.modell__poster { object-fit: contain; transition: opacity 500ms var(--ease-out); }
.modell__canvas { opacity: 0; transition: opacity 500ms var(--ease-out); cursor: grab; touch-action: pan-y; }
.modell__canvas:active { cursor: grabbing; }
.modell.is-live .modell__canvas { opacity: 1; }
.modell.is-live .modell__poster { opacity: 0; }
.modell__start {
  position: absolute; left: 50%; bottom: clamp(14px, 3vw, 24px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .9375rem;
  padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 24px -10px rgba(27, 26, 23, .5);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.modell__start svg { width: 18px; height: 18px; }
@media (hover: hover) { .modell__start:hover { background: #000; } }
.modell__start:active { transform: translateX(-50%) scale(.97); }
.modell__start:disabled { cursor: progress; opacity: .85; }
.modell__hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-size: .8125rem; color: var(--ink-2); background: rgba(255, 255, 255, .88);
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity 300ms ease;
}
.modell__hint.is-on { opacity: 1; }
.modell__note { text-align: center; margin-top: 12px; font-size: .875rem; color: var(--ink-2); }

/* Jedes Modellbild öffnet per Klick die 3D-Ansicht */
.has3d { position: relative; }
.auf3d {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; font: inherit; color: inherit;
  border-radius: inherit;
}
.auf3d:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.tag3d {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; font-weight: 640; line-height: 1;
  padding: 7px 11px 7px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 2px 10px -4px rgba(27, 26, 23, .35);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
  pointer-events: none;
}
.tag3d svg { width: 16px; height: 16px; color: var(--accent); }
@media (hover: hover) {
  .has3d:hover .tag3d, .pcard a:hover .tag3d { background: var(--ink); color: #fff; }
  .has3d:hover .tag3d svg, .pcard a:hover .tag3d svg { color: var(--accent-on-dark); }
  .has3d:hover img { transform: scale(1.025) !important; }
}
.has3d img { transition: transform 600ms var(--ease-out) !important; }
.pcard__img.render { position: relative; }
.more--btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.compare__more { text-align: center; margin: 18px 0 clamp(44px, 6vw, 68px); }
.compare:has(+ .compare__more) { margin-bottom: 0; }
.more--btn svg:first-child { width: 18px; height: 18px; }

/* 3D-Fenster */
.m3d {
  width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 26px; overflow: hidden;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.m3d::backdrop { background: rgba(19, 18, 16, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.m3d[open] { animation: m3d-auf 380ms cubic-bezier(.16, 1, .3, 1); }
@keyframes m3d-auf { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .m3d[open] { animation: none; } }
.m3d__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px 14px 24px; }
.m3d__kicker { font-size: .8125rem; color: var(--accent); font-weight: 640; }
.m3d__titel { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin-top: 2px; }
.m3d__tools { display: flex; gap: 8px; flex: none; }
.m3d__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--tile); color: var(--ink);
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.m3d__btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .m3d__btn:hover { background: var(--tile-2); } }
.m3d__btn:active { transform: scale(.94); }
.m3d__stage { position: relative; aspect-ratio: 16 / 9; max-height: calc(100dvh - 180px); background: var(--tile); }
.m3d__stage .modell__canvas { opacity: 1; position: absolute; inset: 0; width: 100%; height: 100%; }
.m3d__status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-2); font-size: .9375rem; }
.m3d__status[hidden] { display: none; }
.m3d__foot { padding: 12px 24px 16px; font-size: .8125rem; color: var(--ink-2); }
@media (max-width: 699px) {
  .m3d { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .m3d[open] { display: flex; flex-direction: column; }
  .m3d__stage { flex: 1; aspect-ratio: auto; max-height: none; }
  .m3d__head { padding-left: 18px; }
  .m3d__foot { padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); }
}

/* Video-Clip aus der Abbundhalle */
.clip { position: relative; margin: clamp(36px, 5vw, 56px) auto 0; max-width: 880px; }
.clip__frame { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip__toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(19, 18, 16, .55); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.clip__toggle svg { width: 18px; height: 18px; }
@media (hover: hover) { .clip__toggle:hover { background: rgba(19, 18, 16, .8); } }
.clip__toggle:active { transform: scale(.94); }
.clip__toggle .i-play { display: none; }
.clip.is-paused .clip__toggle .i-play { display: block; }
.clip.is-paused .clip__toggle .i-pause { display: none; }
.clip__badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .75rem; font-weight: 640; padding: 6px 10px; border-radius: 999px;
  background: rgba(19, 18, 16, .55); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.clip__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a4f; box-shadow: 0 0 0 3px rgba(255, 90, 79, .25); }
.clip.is-paused .clip__badge::before { background: #aaa499; box-shadow: none; }
.clip figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 14px; font-size: .9375rem; }
.clip figcaption a { white-space: nowrap; }

/* Energieberatung: Dachsanierung mit Zuschuss */
.eyebrow { display: block; font-size: 1rem; font-weight: 660; color: var(--accent); margin-bottom: 12px; letter-spacing: -.005em; }
.ehero__trust { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px; font-size: .9375rem; color: var(--ink-2); max-width: 40ch; }
.ehero__trust svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }

/* Rechenbeispiel als Beleg */
.beleg {
  background: #fff; border-radius: 24px; padding: clamp(22px, 3.5vw, 34px);
  box-shadow: 0 1px 2px rgba(27, 26, 23, .06), 0 24px 48px -30px rgba(27, 26, 23, .35);
  font-variant-numeric: tabular-nums;
}
.beleg__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.beleg__list { margin: 0; }
.beleg__list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.beleg__list dt { font-weight: 640; }
.beleg__list dt small { display: block; font-weight: 420; font-size: .8125rem; color: var(--ink-2); margin-top: 2px; }
.beleg__list dd { margin: 0; font-weight: 640; white-space: nowrap; }
.beleg__list .beleg__bonus dd { color: var(--accent); }
.beleg__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 18px; }
.beleg__total strong {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); line-height: 1; font-weight: 780; font-stretch: 110%;
  letter-spacing: -.035em; color: var(--accent); white-space: nowrap;
}
.beleg__note { margin-top: 16px; font-size: .8125rem; color: var(--ink-2); }
.vorher-nachher { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; max-width: 460px; }
.vorher-nachher div { border-radius: 16px; padding: 14px 16px; background: var(--tile); }
.vorher-nachher div:last-child { background: var(--accent-soft); }
.vorher-nachher span { display: block; font-size: .8125rem; color: var(--ink-2); }
.vorher-nachher strong { display: block; margin-top: 2px; font-size: 1.625rem; font-weight: 760; font-stretch: 108%; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.vorher-nachher div:first-child strong { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(27, 26, 23, .35); }
.vorher-nachher div:last-child strong { color: var(--accent); }

/* Wer macht was: Sie / Wir */
.wer { display: grid; gap: var(--gap); margin-top: clamp(36px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .wer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); align-items: stretch; } }
.wer__col { border-radius: 24px; padding: clamp(24px, 3.5vw, 40px); }
.wer__col--sie { background: var(--tile); }
.wer__col--wir { background: var(--dark); color: var(--on-dark); }
.wer__who { font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: .95; font-weight: 800; font-stretch: 115%; letter-spacing: -.045em; }
.wer__col--wir .wer__who { color: var(--accent-on-dark); }
.wer__sub { margin-top: 10px; color: var(--ink-2); }
.wer__col--wir .wer__sub { color: var(--on-dark-2); }
.wer ol, .wer ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; counter-reset: wer; }
.wer li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); font-size: 1.0625rem; }
.wer__col--wir li { border-color: var(--line-dark); }
.wer ol li::before {
  counter-increment: wer; content: counter(wer);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8125rem; font-weight: 700; background: #fff; color: var(--ink);
}
.wer ul svg { width: 22px; height: 22px; color: var(--accent-on-dark); margin-top: 1px; }
@media (min-width: 860px) { .wer ul { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.wer__foot { margin-top: 22px; font-size: .9375rem; color: var(--on-dark-2); }
.wer__foot a { color: var(--on-dark); }

/* Hinweis auf Förderung in anderen Seiten */
.callout {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 26px;
  background: var(--accent-soft); border-radius: 18px; padding: 16px 18px;
}
.callout > svg { flex: none; width: 28px; height: 28px; color: var(--accent); }
.callout p { color: var(--ink); }
.callout .more { margin-top: 6px; }

/* Lange Einzelwörter als Hauptüberschrift (z. B. „Zimmermannsarbeiten“): am Handy an die Breite koppeln */
@media (max-width: 640px) { .t-display--lang { font-size: min(10.6vw, 3.25rem); } }

/* Startseite: Aufricht-Animation */
.aufrichten { margin: clamp(30px, 4.5vw, 50px) auto 0; width: min(100%, 1100px); }
.aufrichten__buehne { position: relative; aspect-ratio: 16 / 9; }
@media (max-width: 699px) { .aufrichten__buehne { aspect-ratio: 4 / 3.4; } }
.aufrichten__poster, .aufrichten__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aufrichten__poster { object-fit: contain; transition: opacity 500ms var(--ease-out); }
.aufrichten__canvas { opacity: 0; transition: opacity 400ms var(--ease-out); }
.aufrichten.is-live .aufrichten__canvas { opacity: 1; }
.aufrichten.is-live .aufrichten__poster { opacity: 0; }
.aufrichten.is-fertig .aufrichten__canvas { cursor: grab; }
.aufrichten__info {
  margin-top: 6px; min-height: 36px;
  display: flex; justify-content: center; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  font-size: .875rem; color: var(--ink-2); pointer-events: none;
}
.aufrichten__nochmal {
  pointer-events: auto; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity 300ms ease, transform 300ms var(--ease-out);
  visibility: hidden;
}
.aufrichten.is-fertig .aufrichten__nochmal { opacity: 1; transform: none; visibility: visible; }
@media (hover: hover) { .aufrichten__nochmal:hover { background: var(--ink); color: #fff; } }

/* FAQ für Bewerber */
@media (min-width: 960px) {
  .faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; align-items: start; }
  .faq-wrap .section__head { position: sticky; top: calc(var(--nav-h) * 2 + 24px); margin: 0; }
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.125rem; font-weight: 660; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1a17' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 260ms var(--ease-out), background-color 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
@media (hover: hover) { .faq summary:hover::after { background-color: var(--tile-2); } }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 62ch; }
.faq details[open] p { animation: enter-fade 280ms var(--ease-out); }

/* Kundenstimmen */
.stimmen { display: grid; gap: var(--gap); margin-top: clamp(36px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .stimmen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stimme { margin: 0; background: #fff; border-radius: 22px; padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 2px rgba(27,26,23,.06), 0 18px 36px -28px rgba(27,26,23,.35); }
.stimme blockquote { margin: 0; font-size: 1.125rem; line-height: 1.45; letter-spacing: -.005em; }
.stimme blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.stimme figcaption { margin-top: auto; font-size: .875rem; color: var(--ink-2); }
.stimme figcaption strong { display: block; color: var(--ink); font-weight: 650; }
.stimme--leer { background: transparent; box-shadow: none; border: 1.5px dashed var(--line); }
.stimme--leer blockquote { color: var(--ink-2); }
.stimmen__google { margin-top: 22px; text-align: center; }
.sterne { color: #e3a008; letter-spacing: .08em; margin-right: 4px; }

/* Anfahrtskarte (OpenStreetMap-Daten, tools/karte.py): Route zeichnet sich, Nadel fällt */
.karte { margin: clamp(32px, 4vw, 48px) 0 0; }
.karte__svg { display: block; width: 100%; height: auto; border-radius: 22px; background: #191815; }
.karte__land { fill: #191815; }
.karte__wasser path { fill: #1f3d40; }
.karte__strasse path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.karte__strasse--klein path { stroke: rgba(244, 241, 234, .07); stroke-width: .9; }
.karte__strasse--mittel path { stroke: rgba(244, 241, 234, .2); stroke-width: 1.5; }
.karte__strasse--gross path { stroke: rgba(244, 241, 234, .34); stroke-width: 2.6; }
.karte text { font-family: var(--font); fill: var(--on-dark-2); font-size: 15px; paint-order: stroke; stroke: #191815; stroke-width: 4px; stroke-linejoin: round; }
.karte__ort circle { fill: var(--on-dark-2); }
.karte__ort--gross text { font-size: 22px; font-weight: 700; fill: var(--on-dark); }
.karte__ort--klein text { font-size: 13px; }
.karte__see { font-style: italic; fill: #6fa3a6 !important; font-size: 16px !important; letter-spacing: .06em; }
.karte__start circle { fill: var(--on-dark); }
.karte__start text { fill: var(--on-dark); font-weight: 600; }
.karte__route-schatten { fill: none; stroke: var(--accent-on-dark); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 600ms ease 2.2s; }
.karte__route {
  fill: none; stroke: var(--accent-on-dark); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.6s cubic-bezier(.45, 0, .25, 1);
}
.karte__fahrt { fill: #fff; stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity 300ms ease; }
.karte__hof .karte__nadel { fill: var(--accent-on-dark); opacity: 0; transform: translateY(-40px); transition: transform 600ms cubic-bezier(.34, 1.56, .64, 1) 2.5s, opacity 200ms ease 2.5s; }
.karte__hof .karte__nadel circle { fill: #191815; }
.karte__hof-text { font-size: 19px !important; font-weight: 700; fill: var(--on-dark) !important; opacity: 0; transition: opacity 400ms ease 2.9s; }
.karte__hof-sub { opacity: 0; transition: opacity 400ms ease 3s; }
.karte__puls { fill: none; stroke: var(--accent-on-dark); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.karte.is-live .karte__route { stroke-dashoffset: 0; }
.karte.is-live .karte__route-schatten { opacity: .16; }
.karte.is-live .karte__fahrt { opacity: 1; }
.karte.is-live .karte__hof .karte__nadel { opacity: 1; transform: none; }
.karte.is-live .karte__hof-text, .karte.is-live .karte__hof-sub { opacity: 1; }
.karte.is-live .karte__puls { animation: karte-puls 2.4s ease-out 3s infinite; }
.karte.is-live .karte__puls--2 { animation-delay: 4.2s; }
@keyframes karte-puls { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
.karte__info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 12px; font-size: .9375rem; color: var(--on-dark-2); }
.karte__info strong { color: var(--on-dark); }
.karte__osm { font-size: .8125rem; }
.karte__osm a { color: inherit; }
@media (max-width: 699px) {
  .karte__svg { border-radius: 16px; }
  .karte text { font-size: 30px; stroke-width: 7px; }
  .karte__ort--gross text { font-size: 38px; }
  .karte__ort--klein, .karte__ort--caputh, .karte__strasse--klein { display: none; }
  .karte__see { font-size: 28px !important; }
  .karte__hof-text { font-size: 34px !important; transform: translate(14px, -8px); }
  .karte__hof-sub { display: none; }
  /* Nadel auf dem Handy größer, Spitze bleibt auf der Adresse */
  .karte__hof .karte__nadel { transform: translateY(-40px) scale(1.7); }
  .karte.is-live .karte__hof .karte__nadel { transform: scale(1.7); }
  .karte__puls { stroke-width: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .karte__route, .karte__nadel, .karte__route-schatten, .karte__hof-text, .karte__hof-sub { transition: none !important; }
  .karte.is-live .karte__puls { animation: none; }
}

/* Formular: Hinweis, wenn das Senden fehlschlägt */
.form__fail { margin-top: 14px; color: #b42318; font-size: .9375rem; }
.form__fail[hidden] { display: none; }
