/* ==========================================================================
   SDB Gebäudeservice – main.css
   1 Schrift · 2 Tokens · 3 Basis · 4 Layout & Typografie · 5 Komponenten
   6 Bereiche der Startseite · 7 Unterseiten · 8 Bewegung
   ========================================================================== */

/* 1 · Schrift (lokal eingebunden, keine Verbindung zu Google) ------------- */
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2 · Tokens --------------------------------------------------------------- */
:root {
  --ink: #0d0e10;
  --ink-2: #16181b;
  --ink-3: #1f2226;
  --paper: #f5f3ee;
  --paper-2: #ece9e2;
  --white: #fcfbf8;
  --line: #dcd8cf;
  --line-strong: #c4c0b6;
  --line-dark: rgba(245, 243, 238, 0.12);
  --text: #0d0e10;
  --text-2: #56585d;
  --text-3: #8b8c8f;
  --on-dark: #f5f3ee;
  --on-dark-2: rgba(245, 243, 238, 0.64);
  --accent: #2d5bff;
  --accent-hover: #1d46e8;
  --accent-soft: rgba(45, 91, 255, 0.1);
  --accent-on-dark: #8aa4ff;
  --danger: #c23a2b;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1440px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 9.5rem);
  --header-h: 5rem;
}

/* 3 · Basis ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

@media (min-width: 900px) { body { font-size: 1.0625rem; } }

img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
ul, ol { padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

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

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

.skip-link {
  position: fixed;
  left: 1rem; top: -5rem;
  z-index: 300;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.icon { width: 1em; height: 1em; flex: none; }

/* 4 · Layout & Typografie -------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--flush-top { padding-top: 0; }

.display {
  font-size: clamp(2.8rem, 1.05rem + 7.1vw, 8.25rem);
  line-height: 0.93;
  letter-spacing: -0.045em;
  font-weight: 500;
  font-stretch: 92%;
}

.h2 {
  font-size: clamp(2.25rem, 1.15rem + 4.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-stretch: 94%;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 500;
}

.lead {
  font-size: clamp(1.08rem, 1rem + 0.38vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-2);
}
.section--dark .lead { color: var(--on-dark-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 1px;
  background: var(--accent);
  flex: none;
}

.section-head {
  display: grid;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-head__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.section--dark .section-head__meta { border-color: var(--line-dark); color: var(--on-dark-2); }
.section-head__index {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.section-head__title { max-width: 15ch; }
.section-head__lead { max-width: 34rem; }

@media (min-width: 900px) {
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .section-head__meta { grid-column: 1 / -1; margin-bottom: 1.5rem; }
  .section-head__title { grid-column: 1 / span 7; }
  .section-head__lead { grid-column: 9 / span 4; }
}

/* 5 · Komponenten ---------------------------------------------------------- */

/* Buttons */
.btn {
  --h: 3.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: var(--h);
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.5s var(--ease-out), opacity 0.3s;
}
.btn--icon { padding-right: 0.45rem; }
.btn__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  flex: none;
}
.btn__icon svg { width: 1rem; height: 1rem; transition: transform 0.55s var(--ease-out); }
.btn__icon svg + svg { position: absolute; transform: translateX(-180%); }
.btn:hover .btn__icon svg:first-child { transform: translateX(180%); }
.btn:hover .btn__icon svg + svg { transform: translateX(0); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #262a30; }
.btn--dark .btn__icon { background: rgba(255, 255, 255, 0.12); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--light .btn__icon { background: var(--ink); color: #fff; }
.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn--outline { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--outline:hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--sm { --h: 2.75rem; padding: 0 1.2rem; font-size: 0.9375rem; }
.btn--lg { --h: 4rem; font-size: 1.0625rem; padding-left: 1.9rem; }
.btn--lg.btn--icon { padding-right: 0.55rem; }
.btn--lg .btn__icon { width: 2.9rem; height: 2.9rem; }
.btn .wa-icon { width: 1.25rem; height: 1.25rem; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__icon svg { opacity: 0; }
.btn.is-loading .btn__icon::after {
  content: "";
  position: absolute;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Textlink */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 0.4s var(--ease);
}
.link:hover::after { opacity: 1; }
.link .icon { transition: transform 0.45s var(--ease-out); }
.link:hover .icon { transform: translateX(3px); }

/* Häkchen-Punkt */
.check-dot {
  display: grid;
  place-items: center;
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: rgba(138, 164, 255, 0.2);
  color: #b4c5ff;
  flex: none;
}
.check-dot svg { width: 0.72rem; height: 0.72rem; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.logo__mark { width: 2.3rem; height: 2.3rem; flex: none; }
.logo__mark .cut { stroke: var(--mark-cut, var(--paper)); transition: stroke 0.4s var(--ease); }
.logo__text { display: grid; line-height: 1; }
.logo__name { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.03em; }
.logo__sub {
  margin-top: 0.28rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  --mark-cut: var(--ink);
  transition: transform 0.55s var(--ease-out), background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 0.4s var(--ease);
}
.site-header.is-scrolled,
.site-header--solid {
  color: var(--ink);
  --mark-cut: var(--paper);
  background: rgba(245, 243, 238, 0.84);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 rgba(13, 14, 16, 0.08);
}
.site-header.is-scrolled .site-header__inner { height: 4.25rem; }
.site-header.is-hidden { transform: translateY(-100%); }

.nav { display: none; }
.nav__list { display: flex; gap: 0.15rem; list-style: none; }
.nav__link {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.86;
  transition: opacity 0.3s, background-color 0.3s;
}
.nav__link:hover { opacity: 1; background: rgba(128, 128, 128, 0.14); }

.site-header__actions { display: flex; align-items: center; gap: 0.6rem; }
.header-phone {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.header-phone svg { width: 1.05rem; height: 1.05rem; }
.site-header__cta { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
  transition: box-shadow 0.3s;
}
.menu-toggle__bars { position: relative; width: 1.15rem; height: 0.7rem; }
.menu-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: calc(100% - 1.5px); }
.menu-open .menu-toggle__bars span:first-child { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-open .menu-toggle__bars span:last-child { top: calc(50% - 0.75px); transform: rotate(-45deg); }

@media (min-width: 700px) { .site-header__cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }

/* Mobiles Menü */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--on-dark);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.menu-open { overflow: hidden; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }
.menu-open .site-header {
  color: var(--on-dark);
  --mark-cut: var(--ink);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}
.mobile-menu__list { list-style: none; display: grid; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: clamp(2.1rem, 9vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + 80ms);
}
.mobile-menu__link small {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-2);
  font-variant-numeric: tabular-nums;
}
.menu-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu__foot { display: grid; gap: 1.25rem; }
.mobile-menu__contact { display: grid; gap: 0.35rem; color: var(--on-dark-2); font-size: 1rem; }
.mobile-menu__contact a { color: var(--on-dark); font-weight: 500; }

/* Chips für Facts */
.facts { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.fact {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
  color: var(--text-2);
  white-space: nowrap;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(6rem + env(safe-area-inset-bottom));
  z-index: 150;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 20px 40px -16px rgba(13, 14, 16, 0.5);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 2rem; } }

/* 6 · Bereiche der Startseite ---------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: max(100svh, 38rem);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 55%; transform: scale(1.08); animation: heroZoom 2.8s var(--ease-out) 0.1s forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.6) 0%, rgba(8, 9, 11, 0.12) 26%, rgba(8, 9, 11, 0.28) 55%, rgba(8, 9, 11, 0.9) 100%),
    linear-gradient(90deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0) 65%);
}
.hero__content { padding-top: 7.5rem; padding-bottom: clamp(1.75rem, 4.5vw, 3.25rem); }
.hero__kicker {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-on-dark); flex: none; }
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-on-dark);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.hero__title { display: block; }
.hero__slogan { display: block; max-width: 17ch; }
.br-md { display: none; }
@media (min-width: 700px) { .br-md { display: inline; } .hero__slogan { max-width: none; } }
.hero__slogan .soft { color: rgba(255, 255, 255, 0.56); }
.hero__bottom {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(1.5rem, 3.2vw, 2.75rem);
}
.hero__sub {
  max-width: 30rem;
  font-size: clamp(1.08rem, 1rem + 0.42vw, 1.35rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__trust {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 0.5rem 1.05rem 0;
  font-size: 0.85rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
}
@media (max-width: 519px) {
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .hero__actions .btn--ghost { justify-content: center; }
}
@media (min-width: 900px) {
  .hero__bottom { grid-template-columns: minmax(0, 30rem) auto; justify-content: space-between; align-items: end; }
  .hero__trust { grid-template-columns: repeat(4, 1fr); }
  .hero__trust li { padding: 1.35rem 1rem 1.5rem 0; font-size: 0.9375rem; }
  .hero__trust li + li { padding-left: 1.4rem; border-left: 1px solid rgba(255, 255, 255, 0.16); }
}

/* Marquee Zielgruppen */
.marquee {
  overflow: hidden;
  padding-block: clamp(1.25rem, 2.6vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; list-style: none; }
.marquee__list li {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.75rem);
  padding-right: clamp(1.4rem, 3vw, 2.75rem);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text-2);
}
.marquee__list li::after { content: ""; width: 0.42rem; height: 0.42rem; border-radius: 1px; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Leistungen */
.services { display: grid; gap: 1rem; }
.svc {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(13, 14, 16, 0.05);
}
.svc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease-out); }
.svc__idx {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 3;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 14, 16, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.svc__corner { display: none; }
.svc__body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.35rem 1.5rem; }
.svc__title { font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
.svc__text { margin-top: 0.6rem; font-size: 0.975rem; line-height: 1.55; color: var(--text-2); }
.svc__more { display: grid; grid-template-rows: 1fr; flex: 1; }
.svc__more-inner { display: flex; flex-direction: column; min-height: 0; }
.svc__list { display: grid; gap: 0.4rem; margin-top: 1rem; list-style: none; font-size: 0.9375rem; }
.svc__list li { display: flex; align-items: baseline; gap: 0.65rem; }
.svc__list li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); flex: none; transform: translateY(-2px); }
.svc__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.svc__cta::before { content: ""; position: absolute; inset: 0; z-index: 4; }
.svc__arrow {
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.svc__arrow svg { width: 0.9rem; height: 0.9rem; }
.svc:hover .svc__arrow { transform: translateX(4px); background: var(--accent); }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc:has(.svc__cta:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.svc__cta:focus-visible { outline: none; }

.rail-ui { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.rail-progress { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rail-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(calc(var(--p, 0) * 400%));
}
.rail-hint { font-size: 0.8125rem; color: var(--text-2); white-space: nowrap; }

.services-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.services-foot p { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); letter-spacing: -0.015em; }

@media (max-width: 699px) {
  .services {
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .services::-webkit-scrollbar { display: none; }
  .svc { scroll-snap-align: start; }
}
@media (min-width: 700px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .rail-ui { display: none; }
}

/* Desktop: Bildkarten mit Hover-Details */
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .services { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(24rem, 29vw, 31rem); }
  .svc { grid-column: span 4; background: var(--ink); color: #fff; box-shadow: none; }
  .svc--w7 { grid-column: span 7; }
  .svc--w5 { grid-column: span 5; }
  .svc__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .svc__media img {
    transform: scale(1.07) translate3d(var(--mx, 0px), var(--my, 0px), 0);
    transition: transform 1.6s var(--ease-out);
  }
  .svc:hover .svc__media img { transform: scale(1.13) translate3d(var(--mx, 0px), var(--my, 0px), 0); }
  .svc::before,
  .svc::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .svc::after { background: linear-gradient(180deg, rgba(8, 9, 11, 0.08) 0%, rgba(8, 9, 11, 0) 22%, rgba(8, 9, 11, 0.12) 45%, rgba(8, 9, 11, 0.55) 70%, rgba(8, 9, 11, 0.9) 100%); }
  .svc::before { background: rgba(8, 9, 11, 0.42); opacity: 0; transition: opacity 0.7s var(--ease); z-index: 2; }
  .svc:hover::before, .svc:focus-within::before { opacity: 1; }
  .svc__idx { top: 1.5rem; left: 1.6rem; }
  .svc__corner {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.8rem; height: 2.8rem;
    border-radius: 50%;
    background: rgba(13, 14, 16, 0.38);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.7s var(--ease-out), background-color 0.4s;
  }
  .svc__corner svg { width: 1rem; height: 1rem; }
  .svc:hover .svc__corner { transform: rotate(-45deg); background: var(--accent); }
  .svc__body { position: absolute; inset: auto 0 0; z-index: 3; padding: 1.75rem 1.75rem 1.8rem; }
  .svc__title { font-size: clamp(1.6rem, 0.9rem + 1vw, 2.15rem); }
  .svc__text { max-width: 30rem; color: rgba(255, 255, 255, 0.8); }
  .svc__more { grid-template-rows: 0fr; flex: none; opacity: 0; transition: grid-template-rows 0.75s var(--ease-out), opacity 0.5s var(--ease); }
  .svc:hover .svc__more, .svc:focus-within .svc__more { grid-template-rows: 1fr; opacity: 1; }
  .svc__more-inner { overflow: hidden; }
  .svc__list { margin-top: 1.1rem; color: rgba(255, 255, 255, 0.9); }
  .svc__list li::before { background: var(--accent-on-dark); }
  .svc__cta { margin-top: 0; padding-top: 1.2rem; color: #fff; }
  .svc__arrow { background: #fff; color: var(--ink); }
  .svc:hover .svc__arrow { color: #fff; }
  .svc:hover .svc__media img { transform: scale(1.13) translate3d(var(--mx, 0px), var(--my, 0px), 0); }
}

/* Vorher / Nachher */
.ba-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.ba-tab {
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-dark-2);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.ba-tab:hover { color: var(--on-dark); }
.ba-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.ba-panel:not([hidden]) { animation: fadeIn 0.7s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-l);
  background: var(--ink-3);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__img--before.is-simulated { filter: saturate(0.66) contrast(0.86) brightness(0.86) sepia(0.3); }
.ba__grime, .ba__haze { position: absolute; inset: 0; pointer-events: none; }
.ba__grime {
  mix-blend-mode: multiply;
  opacity: 0.9;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .18 0 0 0 2.6 -1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600' preserveAspectRatio='none'%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0055 .008' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .26 0 0 0 3.4 -1.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 45%, rgba(70, 55, 30, 0.38) 100%);
  background-size: 240px 240px, 100% 100%, 100% 100%;
}
.ba__haze {
  mix-blend-mode: screen;
  background:
    linear-gradient(180deg, rgba(214, 206, 186, 0.16), rgba(214, 206, 186, 0.08)),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0) 0 60px, rgba(226, 219, 200, 0.045) 60px 70px, rgba(255, 255, 255, 0) 70px 150px);
}
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 0; outline: none; }
.ba__line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 24px rgba(0, 0, 0, 0.3); }
.ba__knob {
  position: absolute;
  top: 50%; left: 0;
  display: grid;
  place-items: center;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  background: rgba(252, 251, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out);
}
.ba__knob svg { width: 1.5rem; height: 1.5rem; }
.ba.is-dragging .ba__knob { transform: translate(-50%, -50%) scale(1.1); }
.ba__handle:focus-visible .ba__knob { outline: 2px solid var(--accent-on-dark); outline-offset: 4px; }
.ba__label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(13, 14, 16, 0.56);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.3s var(--ease);
}
.ba__label--before { left: 1rem; }
.ba__label--after { right: 1rem; }
.ba.hide-before .ba__label--before, .ba.hide-after .ba__label--after { opacity: 0; }
.ba-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  color: var(--on-dark-2);
}
.ba-caption strong { color: var(--on-dark); font-weight: 500; }
@media (min-width: 700px) { .ba { aspect-ratio: 16 / 10; } }
@media (min-width: 1100px) { .ba { aspect-ratio: 16 / 8.6; } .ba__label { top: 1.5rem; } .ba__label--before { left: 1.5rem; } .ba__label--after { right: 1.5rem; } }

/* Versprechen */
.manifesto {
  max-width: 24ch;
  font-size: clamp(1.9rem, 0.95rem + 3.4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.manifesto .word { color: #c5c1b7; transition: color 0.45s var(--ease); }
.manifesto .word.is-on { color: var(--ink); }
.manifesto__sign { margin-top: 2rem; display: flex; align-items: center; gap: 0.9rem; font-size: 0.9375rem; color: var(--text-2); }
.manifesto__sign::before { content: ""; width: 2.5rem; height: 1px; background: var(--line-strong); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  list-style: none;
}
.stat { padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--line); }
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.12em;
  font-size: clamp(2.9rem, 1.9rem + 4.6vw, 6.4rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.stat__unit { margin-left: 0.08em; font-size: 0.34em; letter-spacing: -0.02em; color: var(--accent); }
.stat__title { margin-top: 1.2rem; font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.stat__text { max-width: 22rem; margin-top: 0.4rem; font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }
@media (min-width: 640px) {
  .stats { gap: 0 2rem; }
  .stat { padding: 1.75rem 0 2rem; }
  .stat__title { margin-top: 1.4rem; font-size: 1.125rem; }
  .stat__text { font-size: 0.9375rem; }
}
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Ablauf / Timeline */
.timeline-wrap { position: relative; }
.timeline { position: relative; display: grid; gap: 2.75rem; padding-left: 2.4rem; list-style: none; }
.timeline__track { position: absolute; top: 0.5rem; bottom: 0.5rem; left: 0.55rem; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.timeline__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; }
.step__dot {
  position: absolute;
  top: 0.55rem; left: calc(-2.4rem + 0.55rem + 1px - 8px);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 2px var(--line-strong);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step.is-active .step__dot { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.step__num {
  display: block;
  font-size: clamp(2.6rem, 2rem + 2.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #bdb9af;
  font-variant-numeric: tabular-nums;
  transition: color 0.6s var(--ease);
}
.step.is-active .step__num { color: var(--ink); }
.step__title { margin-top: 1rem; font-size: 1.28rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.step__text { max-width: 22rem; margin-top: 0.6rem; font-size: 0.975rem; color: var(--text-2); }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-left: 0; padding-top: 3.5rem; }
  .timeline__track { inset: 7px 0 auto 0; width: auto; height: 2px; }
  .timeline__fill { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .step__dot { top: -3.5rem; left: 0; }
}

/* Referenzen */
.projects { display: grid; gap: clamp(3rem, 7vw, 5rem) 1.25rem; }
.project__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.project--tall .project__frame { aspect-ratio: 4 / 5; }
.project--wide .project__frame { aspect-ratio: 16 / 10; }
.project__img {
  position: absolute;
  top: -8%; left: 0;
  width: 100%; height: 116%;
  object-fit: cover;
  transition: scale 1.4s var(--ease-out);
}
.project:hover .project__img { scale: 1.04; }
.project__meta { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.project__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.project__title { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.8rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
.project__no { font-size: 0.8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; white-space: nowrap; }
@media (min-width: 900px) {
  .projects { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .project:nth-child(1) { grid-column: 1 / span 8; }
  .project:nth-child(2) { grid-column: 9 / span 4; margin-top: 9rem; }
  .project:nth-child(3) { grid-column: 1 / span 5; }
  .project:nth-child(4) { grid-column: 6 / span 7; margin-top: 7rem; }
}

/* Angebots-Konfigurator */
.config-wrap { display: grid; gap: 1.25rem; align-items: start; }
.config {
  position: relative;
  padding: clamp(1.25rem, 3.6vw, 3rem);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(13, 14, 16, 0.04), 0 40px 80px -48px rgba(13, 14, 16, 0.35);
}
.config__steps { display: flex; justify-content: space-between; gap: 0.25rem; list-style: none; }
.config__stepbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.3s var(--ease);
}
.config__stepbtn span { font-variant-numeric: tabular-nums; }
.config__stepbtn.is-done { color: var(--text-2); }
.config__stepbtn.is-active { color: var(--ink); }
.config__stepbtn:disabled { cursor: default; }
.config__stepbtn:not(:disabled):hover { color: var(--ink); }
.config__bar { height: 2px; margin: 0.8rem 0 clamp(2rem, 4.5vw, 3rem); border-radius: 2px; background: var(--line); overflow: hidden; }
.config__bar span { display: block; height: 100%; width: var(--progress, 20%); background: var(--accent); transition: width 0.7s var(--ease-out); }
@media (max-width: 699px) {
  .config__stepbtn b { display: none; }
  .config__stepbtn.is-active b { display: inline; }
}

.config__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.js .config__step { display: none; }
.js .config__step.is-active { display: block; animation: stepIn 0.6s var(--ease-out); }
.config__step + .config__step { margin-top: 2.5rem; }
.js .config__step + .config__step { margin-top: 0; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
.config__step.shake { animation: shake 0.45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.config__q {
  display: block;
  width: 100%;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.35vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.config__q:focus { outline: none; }
.config__q small { display: block; margin-top: 0.55rem; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; color: var(--text-2); }

.choices { display: grid; gap: 0.75rem; }
.choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.4s var(--ease-out);
}
.choice:hover .choice__box { box-shadow: inset 0 0 0 1px var(--text-3); transform: translateY(-2px); }
.choice input:checked + .choice__box { background: var(--white); box-shadow: inset 0 0 0 2px var(--accent); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice__icon { width: 2.4rem; height: 2.4rem; margin-bottom: 0.85rem; }
.choice__title { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.choice__text { font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.choice__check {
  position: absolute;
  top: 1rem; right: 1rem;
  display: grid;
  place-items: center;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: #fff;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.choice__check svg { width: 0.75rem; height: 0.75rem; opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.choice input:checked + .choice__box .choice__check { background: var(--accent); box-shadow: none; }
.choice input:checked + .choice__box .choice__check svg { opacity: 1; transform: none; }
.choices--4 .choice__box { padding: 1.1rem 1.1rem 1.2rem; }
.freq { display: flex; gap: 3px; margin-bottom: 1rem; }
.freq i { width: 9px; height: 9px; border-radius: 2px; background: var(--line); transition: background-color 0.3s; }
.freq i.on { background: var(--ink); }
.choice input:checked + .choice__box .freq i.on { background: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem 0.72rem 0.85rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chip span::before {
  content: "";
  width: 1rem; height: 1rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  flex: none;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--text-3); }
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip input:checked + span::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
  box-shadow: none;
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.area__display { position: relative; display: flex; align-items: baseline; gap: 0.6rem; }
.area__input, .area__mirror {
  font-size: clamp(3.2rem, 2rem + 4.4vw, 5.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.area__input {
  width: 4ch;
  min-width: 1.2ch;
  padding: 0;
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}
.area__mirror { position: absolute; visibility: hidden; white-space: pre; pointer-events: none; }
.area__input:hover { border-bottom-color: var(--line); }
.area__input:focus { outline: none; border-bottom-color: var(--accent); }
.area__unit { font-size: clamp(1.3rem, 1rem + 1vw, 2rem); font-weight: 500; color: var(--text-2); letter-spacing: -0.02em; }
.range {
  --fill: 50%;
  display: block;
  width: 100%;
  height: 2.5rem;
  margin: 1.25rem 0 0.2rem;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 18px rgba(13, 14, 16, 0.2);
  transition: transform 0.25s var(--ease-out);
}
.range::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--line-strong), 0 8px 18px rgba(13, 14, 16, 0.2); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--accent), 0 8px 18px rgba(13, 14, 16, 0.2); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--accent), 0 8px 18px rgba(13, 14, 16, 0.2); }
.area__scale { display: flex; justify-content: space-between; font-size: 0.8125rem; color: var(--text-2); }
.presets { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.preset {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.preset:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.preset.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }
.area-unknown .area__display, .area-unknown .range, .area-unknown .area__scale, .area-unknown .presets { opacity: 0.35; pointer-events: none; }

.check { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.check input {
  display: grid;
  place-items: center;
  width: 1.3rem; height: 1.3rem;
  margin: 0.08rem 0 0;
  border-radius: 6px;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  flex: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.check input:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 90% no-repeat;
  box-shadow: none;
}
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.check--area { margin-top: 1.5rem; }
.check.is-invalid input { box-shadow: inset 0 0 0 2px var(--danger); }

.fields { display: grid; gap: 0.75rem; }
@media (min-width: 640px) {
  .fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .field { grid-column: span 3; }
  .field--s { grid-column: span 2; }
  .field--l { grid-column: span 4; }
  .field--full { grid-column: 1 / -1; }
}
.field { position: relative; }
.field input, .field textarea, .field select {
  display: block;
  width: 100%;
  height: 3.65rem;
  padding: 1.4rem 1rem 0.45rem;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1rem;
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { height: auto; min-height: 7.5rem; padding-top: 1.7rem; line-height: 1.5; resize: vertical; }
.field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2356585d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}
.field label {
  position: absolute;
  top: 1.15rem; left: 1rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text-2);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease-out), color 0.25s;
}
.field input:hover, .field textarea:hover, .field select:hover { box-shadow: inset 0 0 0 1px var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 2px var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-0.62rem) scale(0.76); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--danger); }
.field__error, .config__error { display: block; margin-top: 0.4rem; font-size: 0.8125rem; line-height: 1.4; color: var(--danger); }
.config__error { margin-top: 1rem; font-size: 0.875rem; }
.js .config:not(.is-gewerbe) [data-only="gewerbe"] { display: none; }

.upload { position: relative; margin-top: 1rem; }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.6rem 1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.upload__drop svg { width: 1.6rem; height: 1.6rem; margin-bottom: 0.35rem; color: var(--text-2); }
.upload__drop strong { font-weight: 500; color: var(--ink); }
.upload__drop span { font-size: 0.975rem; }
.upload__drop small { font-size: 0.8125rem; color: var(--text-2); }
.upload__drop:hover, .upload.is-dragover .upload__drop { border-color: var(--accent); background: var(--accent-soft); }
.upload__input:focus-visible + .upload__drop { outline: 2px solid var(--accent); outline-offset: 3px; }
.upload__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; list-style: none; }
.upload__list:empty { display: none; }
.upload__item { position: relative; width: 4.6rem; height: 4.6rem; overflow: hidden; border-radius: var(--radius-s); background: var(--paper-2); animation: fadeIn 0.4s var(--ease-out); }
.upload__item img { width: 100%; height: 100%; object-fit: cover; }
.upload__file { display: grid; place-items: center; height: 100%; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-2); }
.upload__remove {
  position: absolute;
  top: 0.25rem; right: 0.25rem;
  display: grid;
  place-items: center;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: rgba(13, 14, 16, 0.72);
  color: #fff;
}
.upload__remove svg { width: 0.7rem; height: 0.7rem; }
.upload__msg { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--danger); }

.consent { margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.config__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.config__status { font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.config__buttons { display: flex; gap: 0.6rem; margin-left: auto; }
html:not(.js) [data-prev], html:not(.js) [data-next], html:not(.js) .config__progress { display: none; }
@media (max-width: 519px) {
  .config__nav { flex-direction: column-reverse; align-items: stretch; }
  .config__buttons { margin-left: 0; }
  .config__buttons .btn { flex: 1; }
  .config__buttons [data-submit] { justify-content: space-between; }
  .config__status { text-align: center; }
}
.config__alert {
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-s);
  background: rgba(194, 58, 43, 0.08);
  color: #7c2419;
  font-size: 0.9375rem;
}
.config__alert a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.config__success { padding-block: clamp(1rem, 4vw, 3rem); text-align: center; }
.config__success-icon {
  display: grid;
  place-items: center;
  width: 4.5rem; height: 4.5rem;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  animation: pop 0.7s var(--ease-out);
}
.config__success-icon svg { width: 2rem; height: 2rem; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.6s 0.3s var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.config__success h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.config__success p { max-width: 30rem; margin: 1rem auto 0; color: var(--text-2); }
.config__success .btn { margin-top: 2rem; }

.summary {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--on-dark);
}
.summary__title { display: none; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.summary__title small { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--on-dark-2); font-weight: 400; letter-spacing: 0; }
.summary__list { display: none; }
.summary__list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark); font-size: 0.9375rem; }
.summary__list > div:first-child { border-top: 1px solid var(--line-dark); }
.summary__list dt { color: var(--on-dark-2); }
.summary__list dd { text-align: right; font-weight: 500; color: rgba(245, 243, 238, 0.35); transition: color 0.3s; }
.summary__list dd.is-set { color: var(--on-dark); animation: fadeIn 0.5s var(--ease-out); }
.summary__trust { display: grid; gap: 0.7rem; list-style: none; font-size: 0.9375rem; }
.summary__trust li { display: flex; align-items: center; gap: 0.7rem; }
.summary__direct { display: grid; gap: 0.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.summary__direct p { font-size: 0.875rem; color: var(--on-dark-2); }
.summary__direct a { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 500; }
.summary__direct svg { width: 1.1rem; height: 1.1rem; }
@media (min-width: 1100px) {
  .config-wrap { grid-template-columns: minmax(0, 1fr) 23rem; gap: 1.5rem; }
  .summary { position: sticky; top: 6rem; }
  .summary__title { display: flex; }
  .summary__list { display: grid; }
}

/* Über uns / Warum wir */
.about { display: grid; gap: 1.5rem; margin-bottom: clamp(4rem, 8vw, 7rem); }
.about__lead { max-width: 40ch; font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.4rem); line-height: 1.22; letter-spacing: -0.028em; font-weight: 500; text-wrap: pretty; }
.about__text { max-width: 30rem; color: var(--text-2); }
@media (min-width: 900px) {
  .about { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .about__lead { grid-column: 1 / span 8; }
  .about__text { grid-column: 9 / span 4; }
}
.why { display: grid; }
.why__media { display: none; }
.why__item { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.why__img-m { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; margin-bottom: 1.75rem; border-radius: var(--radius); }
.why__num { font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.why__title { max-width: 14ch; margin-top: 0.9rem; font-size: clamp(2.1rem, 1.2rem + 3.1vw, 4.2rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.why__text { max-width: 27rem; margin-top: 1.1rem; color: var(--text-2); }
@media (min-width: 1000px) {
  .why { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .why__media {
    position: sticky;
    top: 6.5rem;
    display: block;
    grid-column: 1 / span 5;
    height: min(calc(100vh - 9rem), 46rem);
    overflow: hidden;
    border-radius: var(--radius-l);
    background: var(--paper-2);
  }
  .why__media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 1s var(--ease), transform 1.8s var(--ease-out);
  }
  .why__media img.is-active { opacity: 1; transform: none; }
  .why__list { grid-column: 7 / span 6; }
  .why__item { display: flex; flex-direction: column; justify-content: center; min-height: 64vh; opacity: 0.25; transition: opacity 0.7s var(--ease); }
  .why__item.is-active { opacity: 1; }
  .why__item:last-child { border-bottom: 1px solid var(--line); }
  .why__img-m { display: none; }
}

/* Kontakt & Einsatzgebiet */
.contact { display: grid; gap: 3rem; }
.contact__list { display: grid; margin-top: 2.25rem; }
.contact__row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.contact__row:last-child { border-bottom: 1px solid var(--line); }
.contact__row dt { font-size: 0.9375rem; color: var(--text-2); }
.contact__row dd { font-weight: 500; }
.contact__row dd a { transition: color 0.3s; }
.contact__row dd a:hover { color: var(--accent); }
.contact__row dd small { display: block; margin-top: 0.2rem; font-size: 0.875rem; font-weight: 400; color: var(--text-2); }
.areas-title { margin-top: 2.5rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-2); }
.areas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; list-style: none; }
.area-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.area-link svg { width: 0.85rem; height: 0.85rem; transition: transform 0.4s var(--ease-out); }
.area-link:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.area-link:hover svg { transform: translate(2px, -2px); }
.areas-more { margin-top: 1rem; font-size: 0.9375rem; color: var(--text-2); }

.map {
  position: relative;
  overflow: hidden;
  min-height: 34rem;
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--on-dark);
}
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__label {
  position: absolute;
  left: 50%; bottom: calc(50% + 2.2rem);
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-s);
  background: rgba(13, 14, 16, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--on-dark-2);
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}
.map__label strong { font-size: 0.9375rem; font-weight: 600; color: var(--on-dark); }
.map__art .ring { transform-origin: center; transform-box: fill-box; animation: ring 3s var(--ease-out) infinite; }
.map__art .ring:nth-of-type(2) { animation-delay: 1.5s; }
@keyframes ring { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
.map__consent {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 2;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(13, 14, 16, 0.74);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.map__consent p { font-size: 0.8125rem; line-height: 1.5; color: var(--on-dark-2); }
.map__consent p a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; }
.map__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.map__frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.map.is-loaded .map__consent { display: none; }
@media (min-width: 1000px) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .contact__info { grid-column: 1 / span 5; }
  .map { grid-column: 7 / span 6; min-height: 100%; }
  .map__consent { inset: auto 1.5rem 1.5rem; max-width: 26rem; }
}

/* Call to Action */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 13vw, 11.5rem);
  background: var(--ink);
  color: var(--on-dark);
}
.cta__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 70%);
}
.cta__glow {
  position: absolute;
  z-index: -1;
  left: var(--gx, 72%);
  top: var(--gy, 38%);
  width: 62vmax; height: 62vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 91, 255, 0.34), rgba(45, 91, 255, 0) 62%);
  transform: translate(-50%, -50%);
  transition: left 1.6s var(--ease-out), top 1.6s var(--ease-out);
  pointer-events: none;
}
.cta__title { max-width: 16ch; font-size: clamp(2.6rem, 1.1rem + 5.4vw, 6.9rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.045em; font-stretch: 92%; text-wrap: balance; }
.cta__text { max-width: 34rem; margin-top: 1.75rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); color: var(--on-dark-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.75rem; }
@media (max-width: 519px) { .cta__actions .btn { width: 100%; justify-content: space-between; } .cta__actions .btn--ghost { justify-content: center; } }

/* Footer */
.footer { overflow: hidden; padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line-dark); background: var(--ink); color: var(--on-dark); }
.footer__top { display: grid; gap: 2.75rem; }
.footer__brand p { max-width: 21rem; margin-top: 1.25rem; font-size: 0.9375rem; color: var(--on-dark-2); }
.footer__col h2 { margin-bottom: 1.1rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); }
.footer__col ul { display: grid; gap: 0.6rem; list-style: none; }
.footer__col li, .footer__col a, .footer__col address, .footer__col p { font-size: 0.9375rem; line-height: 1.6; }
.footer__col a { opacity: 0.9; transition: opacity 0.3s, color 0.3s; }
.footer__col a:hover { opacity: 1; color: #fff; }
.footer__col .muted { color: var(--on-dark-2); }
.socials { display: flex; gap: 0.5rem; margin-top: 1.75rem; list-style: none; }
.socials a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark); transition: background-color 0.3s, color 0.3s; }
.socials a:hover { background: var(--paper); color: var(--ink); }
.socials svg { width: 1.1rem; height: 1.1rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: var(--on-dark-2);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; }
.footer__legal a:hover { color: var(--on-dark); }
.footer__word-wrap { overflow: hidden; }
.footer__word {
  display: inline-block;
  margin-bottom: -0.16em;
  font-size: 11vw;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: #1a1c20;
  -webkit-user-select: none;
  user-select: none;
}
.footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
.footer__brand, .footer__col--wide { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .footer__top { gap: 2.75rem 2rem; }
  .footer__col--wide { grid-column: auto; }
}
@media (min-width: 1100px) {
  .footer__top { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .footer__brand { grid-column: auto; }
}

/* Schnellkontakt */
.fab { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 80; display: none; }
.fab__link {
  display: flex;
  align-items: center;
  height: 3.5rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px -14px rgba(13, 14, 16, 0.55);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.6s var(--ease-out), background-color 0.3s;
}
.fab__link:hover { background: #22252a; }
.fab__link svg { width: 1.4rem; height: 1.4rem; color: #25d366; flex: none; }
.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.6s var(--ease-out), opacity 0.4s var(--ease), margin-left 0.6s var(--ease-out);
}
.fab__link:hover .fab__label, .fab__link:focus-visible .fab__label { max-width: 16rem; margin-left: 0.7rem; opacity: 1; }
.fab.is-visible .fab__link { transform: none; }
@media (min-width: 900px) { .fab { display: block; } }

.actionbar {
  position: fixed;
  left: 0.75rem; right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  max-width: 30rem;
  margin-inline: auto;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(13, 14, 16, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -14px rgba(13, 14, 16, 0.55);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.6s var(--ease-out);
}
.actionbar.is-visible { transform: none; }
.actionbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}
.actionbar a svg { width: 1.15rem; height: 1.15rem; }
.actionbar .is-primary { background: var(--accent); }
.actionbar .wa svg { color: #25d366; }
@media (min-width: 900px) { .actionbar { display: none; } }

/* 7 · Unterseiten ---------------------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero .display { font-size: clamp(2.6rem, 1.3rem + 5vw, 6rem); }
.page-hero .lead { max-width: 38rem; margin-top: 1.5rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; list-style: none; font-size: 0.875rem; color: var(--text-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--ink); }

.prose { max-width: 46rem; }
.prose h2 { margin: 2.75rem 0 0.9rem; font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.prose h3 { margin: 1.75rem 0 0.6rem; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose address { margin: 0 0 1rem; color: var(--text-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose > :first-child { margin-top: 0; }

.city-hero { display: grid; gap: 2.5rem; padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); }
.city-hero .display { font-size: clamp(2.6rem, 1.2rem + 5vw, 6.2rem); }
.city-hero__lead { max-width: 36rem; margin-top: 1.75rem; }
.city-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.city-hero__media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-l); background: var(--paper-2); }
.city-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.city-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; list-style: none; font-size: 0.9375rem; color: var(--text-2); }
.city-facts li { display: flex; align-items: center; gap: 0.55rem; }
.city-facts .check-dot { background: var(--accent-soft); color: var(--accent); }
@media (min-width: 1000px) {
  .city-hero { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 2rem; }
  .city-hero__text { grid-column: 1 / span 7; }
  .city-hero__media { grid-column: 8 / span 5; aspect-ratio: 4 / 5; }
}

.svc-rows { display: grid; list-style: none; border-top: 1px solid var(--line); }
.svc-row a {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s var(--ease-out), background-color 0.3s;
}
.svc-row__no { font-size: 0.8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.svc-row__title { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.75rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.svc-row__text { display: block; margin-top: 0.3rem; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
.svc-row__arrow { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.5s var(--ease-out); }
.svc-row__arrow svg { width: 0.95rem; height: 0.95rem; }
.svc-row a:hover { padding-left: 0.75rem; }
.svc-row a:hover .svc-row__arrow { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(-45deg); }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .split__side { grid-column: 1 / span 4; position: sticky; top: 7rem; }
  .split__main { grid-column: 6 / span 7; }
}
.split__side .h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); }

.district-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.district-list li { padding: 0.55rem 1rem; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9375rem; }
.district-list a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 0.3s; }
.district-list a:hover { text-decoration-color: currentColor; }

.points { display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.point { padding: 1.75rem; border-radius: var(--radius); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.point__no { font-size: 0.8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.point__title { margin-top: 2.5rem; font-size: 1.3rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.point__text { margin-top: 0.6rem; font-size: 0.975rem; color: var(--text-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 2.3rem; height: 2.3rem;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='%230d0e10' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
  transition: transform 0.45s var(--ease-out), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 42rem; padding-bottom: 1.5rem; color: var(--text-2); }

.notice-404 { min-height: 100svh; display: grid; align-content: center; }

/* 8 · Bewegung -------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js [data-split]:not(.is-split) { opacity: 0; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0 0.1em; margin: -0.06em 0 -0.1em; }
.w__i { display: inline-block; transform: translateY(112%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms + 120ms); }
.is-loaded .w__i { transform: none; }

.reveal-all [data-reveal], .reveal-all [data-split] { opacity: 1 !important; transform: none !important; }
.reveal-all .w__i { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-split] { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__list[aria-hidden="true"] { display: none; }
}
