/* =====================================================================
   Ideal Bau GmbH – Designsystem
   Farbwelt nach Original-Visitenkarte: Grau, Silber, Weiß.
   Schrift: Atkinson Hyperlegible, lokal gehostet, SIL Open Font License.
   Deutlich unterscheidbare Zeichen für i, I und l.
   ===================================================================== */

@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('/fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/fonts/AtkinsonHyperlegibleNext-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben (Annäherung an das fotografierte Printdesign) */
  --c-white: #ffffff;
  --c-stone: #f5f5f4;
  --c-line: #e3e3e3;
  --c-silver: #b8b8b8;
  --c-grey: #6b6b6b;
  --c-graphite: #282a2c;
  --c-text: #282a2c;
  --c-text-muted: #5c5d5f;
  --c-graphite-hover: #3c3e41;

  /* Schrift */
  --font-head: 'Atkinson Hyperlegible', sans-serif;
  --font-body: 'Atkinson Hyperlegible', sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 2.875rem);
  --fs-h1: clamp(2.375rem, 1.6rem + 3.6vw, 4.25rem);

  /* Raster */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 92px;

  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(40, 42, 44, 0.06);
  --shadow-md: 0 18px 40px -24px rgba(40, 42, 44, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* ---------- Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
[hidden] {
  display: none !important;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
  color: var(--c-graphite);
  /* Lange deutsche Komposita auf schmalen Bildschirmen umbrechen */
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  h1,
  h2,
  h3 {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 14 6 6;
  }
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}
ul,
ol {
  margin: 0;
  padding: 0;
}
address {
  font-style: normal;
}
::selection {
  background: var(--c-graphite);
  color: var(--c-white);
}

:focus-visible {
  outline: 3px solid var(--c-graphite);
  outline-offset: 3px;
}
.on-dark :focus-visible {
  outline-color: var(--c-white);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--c-graphite);
  color: var(--c-white);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.section--stone {
  background: var(--c-stone);
}
.section--tight {
  padding-block: calc(var(--section) * 0.6);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack, 24px);
}
.prose {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}
.prose h2 {
  margin-top: 0.8em;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
}
.prose h3 {
  margin-top: 0.6em;
  font-size: var(--fs-h4);
}
.prose ul {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.prose li::marker {
  color: var(--c-grey);
}
.prose a {
  text-underline-offset: 3px;
}
.muted {
  color: var(--c-text-muted);
}
.lead {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--c-text-muted);
  max-width: 62ch;
}

/* ---------- Eyebrow / Section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-grey);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--c-silver);
}
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}
.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 20px 64px;
}
.section-heading--split > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 860px) {
  .section-heading--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-graphite);
  --btn-fg: var(--c-white);
  --btn-bd: var(--c-graphite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.btn svg {
  flex: none;
  transition: transform 0.35s var(--ease);
}
.btn:hover {
  --btn-bg: var(--c-graphite-hover);
  --btn-bd: var(--c-graphite-hover);
  box-shadow: var(--shadow-md);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}
.btn:active {
  transform: translateY(1px);
}
.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--c-graphite);
  --btn-bd: var(--c-silver);
}
.btn--secondary:hover {
  --btn-bg: var(--c-white);
  --btn-fg: var(--c-graphite);
  --btn-bd: var(--c-graphite);
  box-shadow: none;
}
.btn--light {
  --btn-bg: var(--c-white);
  --btn-fg: var(--c-graphite);
  --btn-bd: var(--c-white);
}
.btn--light:hover {
  --btn-bg: var(--c-stone);
  --btn-fg: var(--c-graphite);
  --btn-bd: var(--c-stone);
}
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--c-white);
  --btn-bd: rgba(255, 255, 255, 0.45);
}
.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: var(--c-white);
  --btn-bd: var(--c-white);
  box-shadow: none;
}
.btn--small {
  min-height: 44px;
  padding: 0 18px;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: progress;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--c-graphite);
  text-decoration: none;
  border-bottom: 1.5px solid var(--c-silver);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}
.text-link:hover {
  border-color: var(--c-graphite);
}
.text-link svg {
  transition: transform 0.35s var(--ease);
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-white);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-color: var(--c-line);
  box-shadow: 0 6px 24px -18px rgba(40, 42, 44, 0.4);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  border-radius: var(--radius);
}
.brand img {
  width: auto;
  height: 72px;
}
.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-main__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-main__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-main__link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  background: var(--c-graphite);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-main__link:hover,
.nav-main__link[aria-current='page'] {
  color: var(--c-graphite);
}
.nav-main__link:hover::after,
.nav-main__link[aria-current='page']::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--c-graphite);
  white-space: nowrap;
}
.header-phone svg {
  color: var(--c-grey);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-graphite);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.menu-toggle__bars {
  position: relative;
  width: 18px;
  height: 12px;
}
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s ease;
}
.menu-toggle__bars span:nth-child(1) {
  top: 0;
}
.menu-toggle__bars span:nth-child(2) {
  top: 5px;
}
.menu-toggle__bars span:nth-child(3) {
  top: 10px;
}
.menu-toggle[aria-expanded='true'] .menu-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded='true'] .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.mobile-nav {
  display: none;
}
.menu-fallback {
  display: none;
}
.mobile-nav[hidden] {
  display: none !important;
}

@media (max-width: 1260px) {
  .header-phone__number {
    display: none;
  }
}
@media (max-width: 1120px) {
  :root {
    --header-h: 76px;
  }
  .brand img {
    height: 58px;
  }
  .nav-main {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  html:not(.js) .menu-toggle {
    display: none;
  }
  html:not(.js) .menu-fallback {
    display: inline-flex;
  }
  .mobile-nav {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    background: var(--c-white);
    border-top: 1px solid var(--c-line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.35s var(--ease),
      visibility 0s linear 0.35s;
  }
  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.25s ease,
      transform 0.35s var(--ease),
      visibility 0s;
  }
  .mobile-nav__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-block: 20px 40px;
  }
  .mobile-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
  }
  .mobile-nav__list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid var(--c-line);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--c-graphite);
  }
  .mobile-nav__list a[aria-current='page'] {
    color: var(--c-grey);
  }
  .mobile-nav__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mobile-nav__contact .btn {
    width: 100%;
  }
  body.menu-open {
    overflow: hidden;
  }
}
@media (max-width: 420px) {
  .brand img {
    height: 52px;
  }
  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--c-stone);
  background-image: url('/images/beton-textur.jpg');
  background-size: 512px 512px;
  border-bottom: 1px solid var(--c-line);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 56px;
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 112px);
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}
.hero__title .soft {
  color: var(--c-grey);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.hero__meta a {
  font-weight: 700;
  color: var(--c-graphite);
  text-decoration: none;
  border-bottom: 1px solid var(--c-silver);
}
.hero__meta a:hover {
  border-color: var(--c-graphite);
}
@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* Schnittzeichnung */
.section-figure {
  margin: 0;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  min-width: 0;
}
.section-figure svg {
  width: 100%;
  height: auto;
}
.section-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-grey);
}
.fig-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  fill: var(--c-graphite);
}
.fig-sub {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--c-text-muted);
}

/* ---------- Vertrauenszeile ---------- */
.trust {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}
.trust__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 24px 0;
  min-width: 0;
}
.trust__item + .trust__item {
  padding-left: 24px;
  border-left: 1px solid var(--c-line);
}
.trust__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-grey);
}
.trust__text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}
.trust__text strong {
  font-size: var(--fs-sm);
}
.trust__text span,
.trust__text a {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  overflow-wrap: anywhere;
}
.trust__text a {
  text-decoration: none;
  font-weight: 700;
  color: var(--c-graphite);
}
@media (max-width: 960px) {
  .trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust__item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .trust__item:nth-child(n + 3) {
    border-top: 1px solid var(--c-line);
  }
}
@media (max-width: 560px) {
  .trust__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .trust__item,
  .trust__item + .trust__item {
    padding: 18px 0;
    border-left: 0;
  }
  .trust__item + .trust__item {
    border-top: 1px solid var(--c-line);
  }
}

/* ---------- Leistungskarten ---------- */
.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 28px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s ease;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--c-silver);
  box-shadow: var(--shadow-md);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--c-stone);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-graphite);
}
.service-card__title {
  font-size: 1.375rem;
}
.service-card__title a {
  text-decoration: none;
}
.service-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.service-card__text {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.service-card__more {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-graphite);
}
.service-card__more svg {
  transition: transform 0.35s var(--ease);
}
.service-card:hover .service-card__more svg {
  transform: translateX(4px);
}

/* ---------- Über uns (Startseite) ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 2px solid var(--c-graphite);
}
.facts__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}
.facts__row dt {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.facts__row dd {
  margin: 0;
  font-weight: 700;
}
.facts--plain {
  border-top-width: 1px;
  border-top-color: var(--c-line);
}
@media (max-width: 860px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}
@media (max-width: 480px) {
  .facts__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* ---------- Ablauf ---------- */
.process {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
.process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px 32px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.process__num {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--c-silver);
}
.process__num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-line);
}
.process__step:last-child .process__num::after {
  display: none;
}
.process__step p {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}
.process-note {
  margin-top: 20px;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
@media (max-width: 860px) {
  .process {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Oberflächen (schematisch) ---------- */
.surfaces {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.surface {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.surface__swatch {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #c9c9c7;
  transition: transform 0.6s var(--ease);
}
.surface:hover .surface__swatch {
  transform: translateY(-3px);
}
.surface h3 {
  font-size: var(--fs-h4);
}
.surface p {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.surfaces-note {
  margin-top: 20px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
@media (max-width: 960px) {
  .surfaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .surfaces {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Planungsfaktoren ---------- */
.factors {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
}
.factor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-white);
  min-width: 0;
}
.factor h3 {
  font-size: var(--fs-h4);
}
.factor p {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.factor__idx {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-grey);
}
@media (max-width: 900px) {
  .factors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .factors {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 2px solid var(--c-graphite);
  max-width: 920px;
  min-width: 0;
}
.faq__item {
  border-bottom: 1px solid var(--c-line);
}
.faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3125rem;
  line-height: 1.25;
  color: var(--c-graphite);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__question {
  min-width: 0;
  overflow-wrap: anywhere;
}
.faq__icon {
  flex: none;
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--c-graphite);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq__item summary:hover .faq__icon {
  border-color: var(--c-silver);
  background: var(--c-stone);
}
.faq__answer {
  padding: 0 52px 24px 0;
  color: var(--c-text-muted);
  max-width: 70ch;
}
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] .faq__answer {
    animation: faq-in 0.35s var(--ease);
  }
}
@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- CTA ---------- */
.cta {
  background: var(--c-graphite);
  color: var(--c-white);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px 64px;
  align-items: center;
  padding-block: clamp(64px, 8vw, 104px);
}
.cta h2 {
  color: var(--c-white);
}
.cta .eyebrow {
  color: var(--c-silver);
}
.cta .eyebrow::before {
  background: var(--c-grey);
}
.cta p {
  color: #d9d9d9;
  max-width: 54ch;
}
.cta__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 32px;
}
.cta__contact a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--c-white);
}
.cta__contact a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.cta__contact span {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-silver);
  font-weight: 700;
}
.cta__contact strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}
.cta__contact a:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
@media (max-width: 860px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta__contact {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 12px;
  }
}

/* ---------- Unterseiten-Kopf & Breadcrumbs ---------- */
.page-head {
  background-color: var(--c-stone);
  background-image: url('/images/beton-textur.jpg');
  background-size: 512px 512px;
  border-bottom: 1px solid var(--c-line);
}
.page-head__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: clamp(36px, 5vw, 56px) clamp(48px, 6vw, 80px);
}
.page-head h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  max-width: 20ch;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.breadcrumbs li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--c-silver);
  border-right: 1.5px solid var(--c-silver);
  transform: rotate(45deg);
}
.breadcrumbs a {
  color: var(--c-text-muted);
  text-decoration: none;
  padding: 6px 0;
}
.breadcrumbs a:hover {
  color: var(--c-graphite);
  text-decoration: underline;
}
.breadcrumbs [aria-current='page'] {
  color: var(--c-graphite);
  font-weight: 700;
}

/* ---------- Leistungen-Seite ---------- */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--c-graphite);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.jump a:hover {
  border-color: var(--c-graphite);
}
.service-group + .service-group {
  margin-top: clamp(56px, 7vw, 96px);
}
.service-group__head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px 48px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--c-graphite);
}
.service-group__head p {
  color: var(--c-text-muted);
}
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 24px 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--c-line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-detail__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-stone);
}
.service-detail h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}
.service-detail__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-detail__body p {
  color: var(--c-text-muted);
}
.benefit {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-stone);
  border-left: 3px solid var(--c-silver);
  font-size: var(--fs-sm);
}
.benefit strong {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .service-group__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .benefit {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---------- Artikel mit Inhaltsverzeichnis ---------- */
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px;
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.toc h2 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-grey);
  margin-bottom: 12px;
}
.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.toc ol a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  color: var(--c-text-muted);
}
.toc ol a:hover {
  color: var(--c-graphite);
}
.toc .btn {
  width: 100%;
  margin-top: 20px;
}
.article .section-figure {
  margin-block: 8px;
}
@media (max-width: 1000px) {
  .article {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .toc {
    position: static;
    order: -1;
  }
}

/* ---------- Kontakt ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.form-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 44px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.form-card > h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
}
.form-intro {
  margin-top: 10px;
  color: var(--c-text-muted);
}
.form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 620px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field label,
.field legend {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--c-graphite);
}
.field .req {
  color: var(--c-grey);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #a9a9a9;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-text);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-graphite) 50%),
    linear-gradient(135deg, var(--c-graphite) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 52%,
    calc(100% - 15px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--c-grey);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-graphite);
  box-shadow: 0 0 0 3px rgba(40, 42, 44, 0.16);
}
.field [aria-invalid='true'] {
  border-color: var(--c-graphite);
  border-width: 2px;
  background: #fafafa;
}
.field__hint {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.field__error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-graphite);
}
.field__error::before {
  content: '!';
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-graphite);
  color: var(--c-white);
  font-size: 12px;
}
.field__error:empty {
  display: none;
}
.input-unit {
  position: relative;
}
.input-unit input {
  padding-right: 52px;
}
.input-unit span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  pointer-events: none;
}
.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--c-graphite);
}
.field .check label {
  font-weight: 400;
  color: var(--c-text-muted);
}
.check a {
  color: var(--c-graphite);
  font-weight: 700;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding-top: 8px;
  border-top: 1px solid var(--c-line);
}
.form-actions .btn {
  min-width: 220px;
}
.form-actions p {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.alert {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-graphite);
  background: var(--c-stone);
  font-size: var(--fs-sm);
}
.alert strong {
  font-size: var(--fs-base);
}
.alert ul {
  padding-left: 1.2em;
}
.alert a {
  font-weight: 700;
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-card {
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.contact-card__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-line);
  text-decoration: none;
  color: var(--c-graphite);
}
.contact-card__row:last-child {
  border-bottom: 0;
}
a.contact-card__row {
  transition: background-color 0.2s ease;
}
a.contact-card__row:hover {
  background: var(--c-stone);
}
.contact-card__row span {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-grey);
}
.contact-card__row strong {
  font-family: var(--font-head);
  font-size: 1.375rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.map-figure {
  margin: 0;
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.map-figure__img {
  position: relative;
  aspect-ratio: 1000 / 560;
  max-width: 100%;
  overflow: hidden;
  background: var(--c-stone);
}
.map-figure__img img,
.map-figure__img svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-figure__img img {
  object-fit: cover;
}
.map-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--c-line);
}
.map-figure small {
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

/* ---------- Rechtstexte ---------- */
.legal {
  max-width: 76ch;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.legal h2 {
  margin-top: 1.4em;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}
.legal h3 {
  margin-top: 0.8em;
  font-size: var(--fs-h4);
}
.legal ul {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.legal a {
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.review-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1.5px dashed var(--c-grey);
  background: var(--c-stone);
  font-size: var(--fs-sm);
}
.review-note strong {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
}
.pending {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--c-grey);
  background: var(--c-stone);
  font-size: 0.95em;
}

/* ---------- Danke / 404 ---------- */
.message-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 720px;
  padding-block: clamp(64px, 10vw, 140px);
}
.message-page__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line);
  background: var(--c-stone);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-stone);
  border-top: 1px solid var(--c-line);
}
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-block: 64px 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand__logo {
  display: inline-block;
  align-self: flex-start;
  padding: 10px 14px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
}
.footer-brand__logo img {
  height: 84px;
  width: auto;
}
.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  max-width: 36ch;
}
.footer-col h2 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-grey);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-col a,
.footer-col address,
.footer-col p {
  font-size: var(--fs-sm);
  color: var(--c-graphite);
}
.footer-col a {
  display: inline-block;
  padding: 5px 0;
  text-decoration: none;
}
.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-col address {
  line-height: 1.7;
}
.site-footer__bottom {
  border-top: 1px solid var(--c-line);
}
.site-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding-block: 20px;
  padding-bottom: var(--footer-chat-clearance, calc(76px + max(24px, env(safe-area-inset-bottom))));
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
.site-footer__bottom ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.site-footer__bottom ul::before,
.site-footer__bottom li + li::before {
  content: '·';
}
.site-footer__bottom li + li::before {
  margin-right: 8px;
}
.site-footer__bottom a {
  color: var(--c-text-muted);
  text-decoration: none;
  padding: 4px 0;
  display: inline-block;
}
.site-footer__bottom a:hover {
  color: var(--c-graphite);
  text-decoration: underline;
}
@media (max-width: 960px) {
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .site-footer__bottom .container {
    padding-bottom: var(--footer-chat-clearance, calc(72px + max(16px, env(safe-area-inset-bottom))));
  }
  .site-footer__bottom .container > p {
    flex-basis: 100%;
  }
  .site-footer__bottom ul::before {
    content: none;
  }
  .site-footer__main {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-line {display: inline-block;}
.premium-hero h1 > .hero-line {color: inherit;}

/* Bewegung wird erst nach erfolgreicher JS-Initialisierung aktiviert. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .motion-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-ready .motion-reveal.is-visible {opacity: 1;transform: none;}
  .motion-ready .motion-reveal:focus-within {opacity: 1;transform: none;transition: none;}
  .motion-ready .motion-image > img {transform: scale(1.04);transition: transform 1s cubic-bezier(.22,1,.36,1);}
  .motion-ready .motion-image.is-visible > img {transform: scale(1);}
  .motion-ready .hero-in:not(h1), .motion-ready .hero-line {
    animation: hero-in .95s cubic-bezier(.22,1,.36,1) both;
    animation-delay: var(--d, 0ms);
  }
  .motion-ready .hero-photo__image > img {animation: hero-settle 1.2s cubic-bezier(.22,1,.36,1) both;}
  @supports (animation-timeline: view()) and (animation-range: exit 0% exit 100%) {
    .motion-ready .hero-photo__image {
      animation: hero-scroll linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}
@keyframes hero-settle {from {transform: scale(1.06);} to {transform: scale(1);}}
@keyframes hero-scroll {from {transform: scale(1);} to {transform: scale(1.06);}}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes layer-in {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tag-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .cta,
  .site-footer__bottom ul,
  .skip-link {
    display: none !important;
  }
  .hero,
  .page-head {
    background: none;
  }
}

/* =====================================================================
   Formular-Erweiterungen: Auswahlkacheln, Gruppen, Schritt-Assistent
   ===================================================================== */
.field--wide {
  grid-column: 1 / -1;
}
fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset.field legend {
  padding: 0;
  margin-bottom: 10px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices--tiles .choice {
  flex: 1 1 160px;
}
.choices--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .choices--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 440px) {
  .choices--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #c8c8c8;
  border-radius: var(--radius);
  background: var(--c-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-graphite);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.choice:hover {
  border-color: var(--c-grey);
}
.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--c-graphite);
}
.choice:has(input:checked) {
  border-color: var(--c-graphite);
  background: var(--c-stone);
  box-shadow: inset 0 0 0 1px var(--c-graphite);
}
.choice:has(input:focus-visible) {
  outline: 3px solid var(--c-graphite);
  outline-offset: 2px;
}
fieldset[aria-invalid='true'] .choice {
  border-color: var(--c-graphite);
}
.field-group {
  padding: 20px;
  background: var(--c-stone);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field-group__title {
  font-weight: 700;
  font-size: var(--fs-sm);
}
.form--compact {
  margin-top: 18px;
  gap: 18px;
}
.form--compact .form-actions .btn {
  min-width: 0;
}
input[type='file'] {
  min-height: 0 !important;
  padding: 12px !important;
  background: var(--c-stone) !important;
  border-style: dashed !important;
  cursor: pointer;
}
input[type='file']::file-selector-button {
  margin-right: 14px;
  padding: 9px 14px;
  border: 1.5px solid var(--c-graphite);
  background: var(--c-white);
  color: var(--c-graphite);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
}

/* Schritt-Assistent */
.wizard {
  --progress: 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.wizard-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 28px;
  position: relative;
}
.wizard-progress li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 3px solid var(--c-line);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-text-muted);
  transition:
    border-color 0.4s var(--ease),
    color 0.3s ease;
}
.wizard-progress__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--c-silver);
  border-radius: 50%;
  background: var(--c-white);
  font-size: 13px;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.wizard.is-enhanced .wizard-progress li.is-done,
.wizard.is-enhanced .wizard-progress li.is-current {
  border-color: var(--c-graphite);
  color: var(--c-graphite);
}
.wizard.is-enhanced .wizard-progress li.is-done {
  cursor: pointer;
}
.wizard.is-enhanced .is-current .wizard-progress__num,
.wizard.is-enhanced .is-done .wizard-progress__num {
  background: var(--c-graphite);
  border-color: var(--c-graphite);
  color: var(--c-white);
}
html:not(.js) .wizard-progress {
  display: none;
}
@media (max-width: 620px) {
  .wizard-progress__label {
    display: none;
  }
  .wizard-progress li.is-current .wizard-progress__label {
    display: block;
    white-space: nowrap;
  }
  .wizard-progress {
    grid-template-columns: repeat(5, auto);
    justify-content: start;
    gap: 6px 16px;
  }
}
.wizard-step {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
html:not(.js) .wizard-step + .wizard-step {
  padding-top: 32px;
  border-top: 1px solid var(--c-line);
}
.wizard.is-enhanced .wizard-step:not([hidden]) {
  animation: step-in 0.45s var(--ease);
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.wizard-step__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wizard-step__head h2 {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
}
.wizard-step__head h2:focus {
  outline: none;
}
.wizard-step__head p {
  color: var(--c-text-muted);
}
.wizard-step__count {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-grey);
}
html:not(.js) .wizard-step__count {
  display: none;
}
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
}
.wizard-nav__spacer {
  flex: 1;
}
.wizard-nav .btn {
  min-width: 160px;
}
html:not(.js) [data-wizard-prev],
html:not(.js) [data-wizard-next] {
  display: none;
}
.wizard-help {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.wizard-help a {
  font-weight: 700;
  color: var(--c-graphite);
}
.review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 700px) {
  .review {
    grid-template-columns: minmax(0, 1fr);
  }
}
.review__block {
  border: 1px solid var(--c-line);
  padding: 18px 20px;
  background: var(--c-white);
  min-width: 0;
}
.review__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.review__head h3 {
  font-size: var(--fs-h4);
}
.review__edit {
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  min-height: 32px;
}
.review dl {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 6px 14px;
  margin: 0;
  font-size: var(--fs-sm);
}
.review dt {
  color: var(--c-text-muted);
}
.review dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------- Seitenkarten, Häkchenlisten, Kontaktwege ---------- */
.side-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--c-line);
  background: var(--c-white);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.side-card h2 {
  font-size: 1.5rem;
}
.ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--fs-sm);
}
.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.ticks svg {
  margin-top: 2px;
  color: var(--c-grey);
}
.channels {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 860px) {
  .channels {
    grid-template-columns: minmax(0, 1fr);
  }
}
.channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 26px;
  border: 1px solid var(--c-line);
  background: var(--c-white);
  text-decoration: none;
  color: var(--c-graphite);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s ease;
}
.channel:hover {
  transform: translateY(-3px);
  border-color: var(--c-silver);
  box-shadow: var(--shadow-md);
}
.channel__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  background: var(--c-stone);
  border: 1px solid var(--c-line);
}
.channel__k {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-grey);
}
.channel strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.channel__h {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.channel--primary {
  background: var(--c-graphite);
  border-color: var(--c-graphite);
  color: var(--c-white);
}
.channel--primary .channel__icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.channel--primary .channel__k,
.channel--primary .channel__h {
  color: #d4d4d4;
}

/* ---------- Checkliste & Tabelle ---------- */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px) {
  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .checklist-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-graphite);
  background: var(--c-white);
}
.checklist h3 {
  font-size: var(--fs-h4);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  background: var(--c-white);
}
.table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th,
.table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}
.table thead th {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-grey);
  background: var(--c-stone);
}
.table tbody th {
  width: 36%;
  font-weight: 700;
}
.table tbody tr:last-child > * {
  border-bottom: 0;
}
.downloads {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.download {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  text-decoration: none;
}
.download small {
  display: block;
  color: var(--c-text-muted);
}
.next-steps {
  list-style: none;
  counter-reset: ns;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-line);
}
.next-steps li {
  counter-increment: ns;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}
.next-steps li::before {
  content: counter(ns);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-graphite);
  color: var(--c-white);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.next-steps span {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
}
html:not(.js) [data-print] {
  display: none;
}
@media print {
  .page-head .btn-row,
  .cta,
  .site-footer {
    display: none !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Bilder / Illustrationen ---------- */
.visual {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: var(--c-stone);
  border: 1px solid var(--c-line);
}
.visual > img,
.visual > .art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.service-card--media {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.service-card--media .service-card__visual {
  border: 0;
  border-bottom: 1px solid var(--c-line);
}
.service-card--media:hover .visual > img,
.service-card--media:hover .visual > .art {
  transform: scale(1.04);
}
.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 26px;
  flex: 1;
}
.service-detail__visual {
  box-shadow: var(--shadow-md);
}
.about__visual {
  margin-top: 8px;
}
.wizard-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .wizard-teaser {
    grid-template-columns: minmax(0, 1fr);
  }
}
.teaser-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--c-graphite);
}
.teaser-steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}
.teaser-steps__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--c-silver);
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.teaser-steps li:hover .teaser-steps__num {
  background: var(--c-graphite);
  border-color: var(--c-graphite);
  color: var(--c-white);
}
.teaser-steps strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
}
.teaser-steps span.muted {
  font-size: var(--fs-sm);
}
@media (max-width: 520px) {
  .teaser-steps li {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .teaser-steps li > span.muted {
    grid-column: 2;
  }
}
@media (max-width: 560px) {
  .table {
    min-width: 0;
  }
  .table thead {
    display: none;
  }
  .table tr,
  .table th,
  .table td {
    display: block;
  }
  .table tbody th {
    width: auto;
    border-bottom: 0;
    padding-bottom: 2px;
  }
  .table tbody td {
    padding-top: 0;
  }
  .table tbody tr {
    border-bottom: 1px solid var(--c-line);
  }
  .table tbody tr > * {
    border-bottom: 0;
  }
}
.field input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.field input[type='number']::-webkit-inner-spin-button,
.field input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Mobile graphics occupy their own space below the text. */
@media (max-width: 700px) {
  .hero__inner > .section-figure {
    width: min(100%, 420px);
    justify-self: center;
  }
  .service-card__visual {
    max-height: 190px;
  }
  .wizard-progress {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
  }
  .wizard-progress li.is-current .wizard-progress__label {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* First design: quiet typography, IB mark and generous photo layouts. */
:root {
  --font-head: 'Atkinson Hyperlegible', sans-serif;
  --c-text: #2f2f2f;
  --c-text-muted: #6b6b6b;
  --container: 1320px;
  --fs-h2: clamp(2rem, 3.3vw, 3.4rem);
  --header-h: 96px;
}
h1, h2, h3 {letter-spacing: -.045em;}
h2 {font-weight: 400;line-height: 1.13;}
.site-header {background: rgba(255,255,255,.97);border-bottom: 1px solid #e4e4e2;}
.site-header__inner {gap: 24px;}
.identity {display: flex;align-items: center;gap: 12px;white-space: nowrap;}
.identity img, .brand .identity img, .footer-brand__logo .identity img {width: auto;height: 40px;object-fit: contain;}
.identity__type {display: flex;flex-direction: column;gap: 4px;}
.identity__type strong {font-size: 20px;letter-spacing: .03em;line-height: 1.1;color: #343436;}
.identity__type > span {font-size: 14px;letter-spacing: normal;color: #6b6b6b;font-weight: 400;line-height: 1.1;}
.brand .identity__type strong {letter-spacing: -.05em;font-weight: 700;}
.brand .identity__type > span {font-size: 8px;letter-spacing: .19em;font-weight: 700;line-height: 1.65;}
.nav-main__link {font-family: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', sans-serif;font-weight: 300;font-size: 13px;padding-inline: 9px;}
.header-phone {font-size: 12px;font-weight: 400;}
.btn {border-radius: 3px;min-height: 52px;font-size: 13px;gap: 20px;padding-inline: 24px;}
.header-cta {min-height: 44px;font-size: 12px;padding-inline: 20px;}
.eyebrow {font-size: 10px;letter-spacing: .15em;}
.eyebrow::before {width: 18px;height: 1px;}
.section {padding-block: clamp(72px, 8vw, 120px);}
.section-heading__intro {font-size: 15px;line-height: 1.85;}
.premium-hero {padding-top: 20px;background: #fff;}
.premium-hero__grid {display: grid;grid-template-columns: 1.4fr 1fr;gap: 64px;align-items: end;padding-top: 48px;padding-bottom: 48px;}
.premium-hero__copy > .eyebrow {margin-bottom: 24px;}
.premium-hero h1 {font-size: clamp(3.25rem, 5.4vw, 5.5rem);font-weight: 400;line-height: 1.03;letter-spacing: -.06em;}
.premium-hero h1 > span {color: #8b8b8b;}
.premium-hero__intro {max-width: 400px;margin-left: auto;padding-bottom: 8px;}
.premium-hero__intro > p {font-size: 15px;line-height: 1.85;color: #6b6b6b;}
.hero-actions {display: flex;align-items: flex-start;flex-direction: column;gap: 18px;margin-top: 26px;}
.hero-actions .text-link {font-size: 12px;font-weight: 400;}
.hero-assurance {display: block;margin-top: 24px;font-size: 11px;color: #6b6b6b;}
.hero-photo {padding-bottom: 0;}
.hero-photo__image {border: 0;}
.visual > img {filter: grayscale(1);}
.service-grid {gap: 32px 24px;}
.service-card--media {border: 0;box-shadow: none;background: #fff;}
.service-card--media .service-card__visual {border: 0;}
.service-card--media .service-card__body {padding: 24px 0 12px;gap: 14px;}
.service-card__title {font-size: 23px;font-weight: 400;}
.service-card__text {font-size: 14px;line-height: 1.8;}
.service-card__more {font-size: 12px;font-weight: 400;}
.service-card:hover {box-shadow: none;transform: translateY(-3px);}
.service-detail__visual {border: 0;box-shadow: none;}
.service-detail h3 {font-weight: 400;}
.service-detail p {font-size: 15px;line-height: 1.85;}
.about {align-items: center;gap: 60px;}
.about .lead {font-size: 20px;line-height: 1.65;}
.about .muted {font-size: 15px;line-height: 1.85;}
.about__visual {margin: 0;border: 0;}
.surface__photo {margin-bottom: 22px;border: 0;}
.surface h3 {font-size: 21px;font-weight: 400;}
.surface p {font-size: 14px;line-height: 1.8;}
.process__num {font-size: 40px;font-weight: 400;color: #b8b8b8;}
.process__step h3 {font-size: 23px;font-weight: 400;}
.process__step p, .factor p {font-size: 14px;line-height: 1.8;}
.factor {background: #fff;padding: 26px;}
.factor h3 {font-weight: 400;font-size: 20px;}
.wizard-teaser h2 {max-width: 19ch;}
.wizard-teaser .lead {font-size: 16px;line-height: 1.85;}
.teaser-steps {border-top-width: 1px;}
.teaser-steps strong {font-size: 19px;font-weight: 400;}
.teaser-steps span.muted {font-size: 12px;}
.faq {border-top: 1px solid #282a2c;}
.faq__item summary {font-size: 20px;font-weight: 400;padding-block: 25px;}
.faq__answer {font-size: 15px;line-height: 1.85;}
.cta::before {display: none;}
.cta p {font-size: 15px;}
.page-head {background-image: none;background-color: #f5f5f4;}
.page-head h1 {font-weight: 400;}
.page-head .lead {font-size: 17px;line-height: 1.8;}
.form-card {border: 1px solid #e4e4e2;box-shadow: none;}
.site-footer {background: #fff;}
.footer-brand__logo {padding: 0;border: 0;}
.footer-brand__logo .identity__type {flex-direction: row;align-items: baseline;gap: .3em;font-size: 20px;white-space: nowrap;}
.footer-brand__logo .identity__type strong {font-weight: 700;}
.footer-brand__logo .identity__type > span {font-weight: 400;color: #6b6b6b;}
.brand,
.brand:hover,
.brand:focus,
.brand:active,
.footer-brand__logo,
.footer-brand__logo:hover,
.footer-brand__logo:focus,
.footer-brand__logo:active {text-decoration: none;}
.footer-brand p, .footer-col a, .footer-col address, .footer-col p {font-size: 12px;}
.footer-col h2 {font-size: 11px;}
.photo-credits li {padding-block: 12px;overflow-wrap: anywhere;}
@media (max-width: 1250px) {
  .header-phone {display: none;}
  .site-header__inner {gap: 16px;}
  .brand .identity__type strong {font-size: 18px;}
  .nav-main__link {padding-inline: 7px;}
}
@media (max-width: 1120px) {
  :root {--header-h: 78px;}
  .brand .identity__type strong {font-size: 17px;}
  .brand .identity__type > span {font-size: 9px;}
  .identity img, .brand .identity img, .footer-brand__logo .identity img {width: auto;height: 34px;}
  .premium-hero__grid {gap: 36px;padding-top: 36px;}
  .premium-hero h1 {font-size: clamp(3rem, 6vw, 4.5rem);}
  .premium-hero__intro > p {font-size: 14px;}
}
@media (max-width: 700px) {
  :root {--gutter: 22px;}
  .premium-hero {padding-top: 0;}
  .premium-hero__grid {grid-template-columns: minmax(0,1fr);gap: 26px;padding-top: 34px;padding-bottom: 32px;}
  .premium-hero h1 {font-size: clamp(2.7rem, 10vw, 4.3rem);line-height: 1.07;}
  .premium-hero__copy > .eyebrow {margin-bottom: 18px;}
  .premium-hero__intro {max-width: none;margin: 0;}
  .premium-hero__intro > p {font-size: 14px;}
  .hero-assurance {margin-top: 18px;}
  .hero-photo__image {aspect-ratio: 1.5 / 1 !important;}
  .hero-photo__image > img {object-position: 55% center;}
  .about {gap: 30px;}
  .about .lead {font-size: 18px;}
  .service-grid {gap: 30px;}
  .service-card__title {font-size: 23px;}
  .service-card__visual {max-height: none;aspect-ratio: 1.7 / 1 !important;}
  .surface__photo {aspect-ratio: 1.4 / 1 !important;}
  .wizard-teaser h2 {max-width: none;}
}
@media (max-width: 420px) {
  .brand .identity__type strong {font-size: 16px;}
  .brand .identity__type > span {font-size: 9px;}
  .site-header__inner, .header-actions {gap: 8px;}
  .menu-toggle {padding-inline: 8px;}
  .menu-toggle__label {display: none;}
}

/* The photo-led service list is followed by a compact, text-only comparison. */
.surfaces--advice {gap: 24px;}
.surfaces--advice .surface {border-top: 1px solid var(--c-line);padding-top: 24px;}
.surfaces--advice .surface h3 {margin-top: 0;}
.surfaces--advice .surface p {margin-block: 14px 20px;}

/* Site-wide AI assistant: intentionally separate from the inquiry forms. */
.customer-chat {position: fixed;right: max(24px, env(safe-area-inset-right));bottom: max(24px, env(safe-area-inset-bottom));z-index: 60;font-family: var(--font-body);}
.chat-launcher {display: flex;align-items: center;justify-content: center;gap: 10px;min-height: 56px;padding: 14px 22px;background: #282a2c;color: #fff;border: 1px solid #6b6b6b;border-radius: 6px;box-shadow: 0 6px 24px #282a2c20;font: inherit;font-size: 14px;cursor: pointer;}
.chat-launcher:hover {background: #3c3e41;}
.chat-panel {position: fixed;right: auto;bottom: auto;width: min(430px, calc(100vw - 32px));height: min(650px, calc(100dvh - var(--header-h) - 120px));display: flex;flex-direction: column;background: #fff;color: #2f2f2f;border: 1px solid #d6d6d4;border-radius: 8px;box-shadow: 0 16px 56px #282a2c24;overflow-y: auto;overscroll-behavior: contain;isolation: isolate;}
.chat-head {display: flex;align-items: center;justify-content: space-between;gap: 12px;background: #f5f5f4;color: #282a2c;padding: 20px 14px 20px 34px;border-bottom: 1px solid #dededb;flex-shrink: 0;}
.chat-kicker {display: block;font-size: 11px;letter-spacing: .045em;color: #626460;margin-bottom: 8px;}
.chat-head h2 {margin: 0;font-size: 22px;line-height: 1.3;color: #282a2c;font-weight: 400;letter-spacing: -.02em;}
.chat-subtitle {font-size: 12px;color: #626460;margin-top: 6px;}
.chat-icon-button {display: grid;place-items: center;width: 44px;height: 44px;border: 0;border-radius: 50%;background: transparent;color: inherit;font: inherit;font-size: 28px;cursor: pointer;}
.chat-icon-button:hover {background: #e4e4e2;}
.chat-head :focus-visible {outline-color: #282a2c;}
.chat-intro {padding: 16px 18px 12px;flex-shrink: 0;}
.chat-intro > p {font-size: 14px;line-height: 1.6;}
.chat-intro .chat-disclosure {font-size: 11px;line-height: 1.55;color: #6b6b6b;margin-top: 8px;}
.chat-messages {flex: 1;min-height: 100px;overflow-y: auto;overscroll-behavior: contain;padding: 0 18px;scrollbar-width: thin;}
.chat-message {padding: 12px 14px;margin: 0 0 12px;border-radius: 8px;background: #f5f5f4;font-size: 14px;line-height: 1.65;overflow-wrap: anywhere;}
.chat-message--user {background: #e4e4e2;margin-left: 28px;}
.chat-message--assistant {margin-right: 12px;background: #fff;border-left: 2px solid #b8b8b4;border-radius: 0;padding-left: 14px;}
.chat-sender {display: block;font-size: 10px;font-weight: 700;letter-spacing: .04em;margin-bottom: 5px;}
.chat-message p {white-space: pre-wrap;}
.chat-suggestions {display: flex;flex-wrap: wrap;gap: 8px;padding: 8px 18px;flex-shrink: 0;}
.chat-suggestions button {border: 1px solid #b8b8b8;background: #fff;color: #2f2f2f;border-radius: 6px;min-height: 40px;padding: 8px 10px;font: inherit;font-size: 12px;text-align: left;cursor: pointer;}
.chat-suggestions button:hover {background: #f5f5f4;}
.chat-status {padding: 0 18px;font-size: 12px;color: #6b6b6b;flex-shrink: 0;}
.chat-status:not(:empty) {padding-block: 8px;}
.chat-error {margin: 8px 18px 0;padding: 10px 12px;background: #f5f5f4;border-left: 3px solid #282a2c;font-size: 12px;line-height: 1.6;flex-shrink: 0;}
.chat-form {padding: 12px 18px 10px;flex-shrink: 0;background: #fafaf9;border-top: 1px solid #e4e4e2;}
.chat-input-label {display: block;font-size: 12px;margin-bottom: 7px;color: #535550;}
.chat-sources {display: grid;gap: 6px;margin-top: 12px;padding-top: 10px;border-top: 1px solid #e4e4e2;font-size: 12px;line-height: 1.5;}
.chat-sources strong {font-weight: 400;color: #626460;}
.chat-sources a {text-decoration: underline;text-underline-offset: 3px;overflow-wrap: anywhere;}
.chat-compose {display: flex;align-items: flex-end;gap: 8px;border: 1px solid #b8b8b8;border-radius: 6px;padding: 5px;}
.chat-compose:focus-within {border-color: #282a2c;}
.chat-compose textarea {min-width: 0;width: 100%;min-height: 48px;max-height: 100px;resize: vertical;border: 0;background: #fff;color: #2f2f2f;font: inherit;font-size: 16px;line-height: 1.5;padding: 7px;}
.chat-compose button {width: 44px;height: 44px;flex: none;display: grid;place-items: center;border: 0;border-radius: 4px;background: #282a2c;color: #fff;cursor: pointer;}
.chat-compose button:disabled {opacity: .45;cursor: wait;}
.chat-privacy {font-size: 10px;line-height: 1.5;color: #6b6b6b;margin-top: 8px;}
.chat-foot {display: flex;justify-content: space-between;align-items: center;gap: 8px;border-top: 1px solid #e4e4e2;padding: 4px 16px;flex-shrink: 0;}
.chat-foot a, .chat-foot button {display: inline-flex;align-items: center;min-height: 40px;font: inherit;font-size: 11px;color: #2f2f2f;}
.chat-foot button {background: none;border: 0;text-decoration: underline;cursor: pointer;padding: 0;}
.menu-open .customer-chat {visibility: hidden;}
@media (max-width: 520px) {
  .customer-chat {right: max(16px, env(safe-area-inset-right));bottom: max(16px, env(safe-area-inset-bottom));}
  .chat-panel {height: min(640px, calc(100dvh - var(--header-h) - 108px));}
  .chat-launcher {min-height: 52px;padding: 12px 18px;}
  .chat-intro {padding-top: 12px;}
}
@media (max-height: 600px) {
  .chat-panel {height: calc(100dvh - var(--header-h) - 108px);}
  .chat-intro {display: none;}
  .chat-head {padding-block: 8px;}
  .chat-kicker, .chat-subtitle {display: none;}
  .chat-head h2 {font-size: 18px;}
  .chat-suggestions {display: none;}
}
@media print {.customer-chat {display: none !important;}}

/* Resize from the upper left, with equivalent keyboard and range controls. */
.chat-resize-handle {position: absolute;top: 0;left: 0;width: 30px;height: 30px;display: grid;place-items: center;z-index: 1;border: 0;border-radius: 7px 0 5px 0;background: #e9e9e6;color: #535550;cursor: nwse-resize;touch-action: none;}
.chat-resize-handle:hover {background: #dcdcd8;color: #282a2c;}
.is-resizing {user-select: none;}
.chat-size-settings {flex-shrink: 0;border-bottom: 1px solid #e4e4e2;background: #fff;font-size: 12px;}
.chat-size-settings summary {padding: 12px 18px;min-height: 44px;cursor: pointer;color: #535550;}
.chat-size-controls {padding: 0 18px 14px;display: grid;gap: 12px;}
.chat-size-controls label {display: grid;grid-template-columns: 1fr auto;align-items: center;gap: 6px;font-size: 12px;}
.chat-size-controls output {font-variant-numeric: tabular-nums;color: #626460;}
.chat-size-controls input[type="range"] {grid-column: 1 / -1;width: 100%;min-height: 28px;accent-color: #535550;padding: 0;cursor: ew-resize;}
.chat-size-controls button {justify-self: start;min-height: 36px;padding: 4px 10px;font: inherit;color: #282a2c;border: 1px solid #b8b8b8;border-radius: 4px;background: #f5f5f4;cursor: pointer;}
.chat-head > div {min-width: 0;}
.chat-icon-button {flex-shrink: 0;}

/* Shared location map directly above the footer. */
.footer-location {padding: 48px 0;background: #f5f5f4;border-top: 1px solid var(--c-line);}
.footer-location h2 {margin: 8px 0 24px;font-size: clamp(24px, 3vw, 34px);font-weight: 400;}
.footer-location .map-figure {display: grid;grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);}
.footer-location .map-figure figcaption {justify-content: center;border-top: 0;border-left: 1px solid var(--c-line);padding: 28px;}
.footer-location .map-figure address {font-style: normal;line-height: 1.8;}
@media (max-width: 700px) {
  .footer-location {padding: 32px 0;}
  .footer-location .map-figure {grid-template-columns: minmax(0, 1fr);}
  .footer-location .map-figure figcaption {border-left: 0;border-top: 1px solid var(--c-line);padding: 20px;}
}

/* Feine Interaktionen: nur Transform/Opacity, keine Layoutbewegung. */
.site-header {background: #fff;transition: none;box-shadow: none;}
.site-header.is-scrolled {box-shadow: none;}
.site-header::after {content: '';position: absolute;inset: 0;pointer-events: none;box-shadow: 0 6px 24px -18px rgba(40,42,44,.4);opacity: 0;}
.site-header.is-scrolled::after {opacity: 1;}
.hero-photo {overflow: hidden;overflow: clip;}
@media (prefers-reduced-motion: no-preference) {
  .site-header::after {transition: opacity .3s ease;}
  .service-card {transition: transform .3s cubic-bezier(.22,1,.36,1);isolation: isolate;}
  .service-grid > li {position: relative;isolation: isolate;}
  .service-grid > li::before {content: '';position: absolute;inset: 0;pointer-events: none;box-shadow: 0 12px 28px -16px rgba(40,42,44,.22);opacity: 0;transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1);z-index: -1;}
  .service-card:hover, .service-card:focus-within {box-shadow: none;}
  .service-grid > li:hover::before, .service-grid > li:focus-within::before {opacity: 1;transform: translateY(-3px);}
  .btn, .text-link {transition: transform .3s cubic-bezier(.22,1,.36,1);}
  .btn svg, .text-link svg, .service-card__more svg {transition: transform .3s cubic-bezier(.22,1,.36,1);}
  .btn:hover .btn__arrow, .service-card:hover .service-card__more svg {transform: translateX(3px);}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {animation: none !important;transition: none !important;scroll-behavior: auto !important;}
  .motion-reveal, .hero-in, .hero-line {opacity: 1 !important;transform: none !important;}
  .visual > img, .hero-photo__image, .service-card:hover, .service-card:focus-within,
  .btn:active, .btn:hover svg, .text-link:hover svg, .service-card:hover .service-card__more svg {transform: none !important;}
}
@media print {
  .motion-reveal, .hero-in, .hero-line {opacity: 1 !important;transform: none !important;animation: none !important;}
  .visual > img, .hero-photo__image {transform: none !important;animation: none !important;}
}

/* Breite erste und letzte Leistungskarte, bei gleicher Bildhöhe pro Ansicht. */
.service-grid--ten {container-type: inline-size;}
@media (min-width: 981px) {
  .service-grid--ten > li:first-child,
  .service-grid--ten > li:last-child {grid-column: span 2;}
  .service-grid--ten .service-card__visual {height: calc((100cqw - 48px) / 4.8);aspect-ratio: auto;flex: none;}
}
@media (min-width: 621px) and (max-width: 980px) {
  .service-grid--ten > li:first-child,
  .service-grid--ten > li:last-child {grid-column: 1 / -1;}
  .service-grid--ten .service-card__visual {height: calc((100cqw - 24px) / 3.2);aspect-ratio: auto;flex: none;}
}
@media (min-width: 621px) and (max-width: 700px) {
  .service-grid--ten .service-card__visual {height: calc((100cqw - 30px) / 3.4);aspect-ratio: auto !important;}
}

/* Consent stays readable independently of the compact chat introduction. */
.chat-consent {padding: 18px;flex: 1;}
.chat-consent h3 {font-size: 20px;line-height: 1.4;margin: 0 0 12px;}
.chat-consent p {font-size: 14px;line-height: 1.65;margin-bottom: 14px;}
.chat-consent a {text-decoration: underline;text-underline-offset: 3px;}
.chat-consent-actions {display: flex;flex-wrap: wrap;gap: 10px;}
.chat-consent-actions button {min-height: 44px;padding: 10px 14px;border: 1px solid #535550;border-radius: 4px;background: #282a2c;color: #fff;font: inherit;font-size: 14px;cursor: pointer;}
.chat-consent-actions [data-chat-cancel] {background: #fff;color: #282a2c;}
.chat-revoke {padding: 4px 18px;border-top: 1px solid #e4e4e2;flex-shrink: 0;}
.chat-revoke button {min-height: 40px;padding: 0;border: 0;background: none;color: #535550;font: inherit;font-size: 11px;text-decoration: underline;cursor: pointer;}

/* Informational privacy dialog; native modal behavior manages keyboard focus. */
.privacy-notice {box-sizing: border-box;width: min(560px, calc(100% - 32px));max-height: calc(100dvh - 32px);margin: auto;padding: clamp(22px, 4vw, 32px);overflow-y: auto;border: 1px solid var(--c-line);border-radius: 8px;background: var(--c-white);color: var(--c-text);font-family: var(--font-body);box-shadow: var(--shadow-md);}
.privacy-notice::backdrop {background: rgba(40, 42, 44, .18);}
.privacy-notice__eyebrow {margin: 0 0 12px;color: var(--c-text-muted);font-size: var(--fs-xs);letter-spacing: .08em;text-transform: uppercase;}
.privacy-notice h2 {margin: 0 0 18px;font-family: var(--font-head);font-size: clamp(24px, 4vw, 30px);line-height: 1.2;}
.privacy-notice #privacy-notice-description p {margin: 0 0 14px;font-size: var(--fs-sm);line-height: 1.6;}
.privacy-notice__actions {display: flex;align-items: center;justify-content: space-between;flex-wrap: wrap;gap: 20px;margin-top: 24px;padding-top: 20px;border-top: 1px solid var(--c-line);}
.privacy-notice__actions nav {display: flex;flex-wrap: wrap;gap: 10px 18px;font-size: var(--fs-sm);}
.privacy-notice__actions a {text-decoration: underline;text-underline-offset: 3px;}
.privacy-notice__actions a:hover {color: var(--c-text-muted);}
.privacy-notice__actions form {margin: 0;}
.privacy-notice__actions button {min-height: 44px;padding: 10px 20px;border: 1px solid var(--c-graphite);border-radius: 4px;background: var(--c-graphite);color: var(--c-white);font: inherit;cursor: pointer;}
.privacy-notice__actions button:hover {background: var(--c-graphite-hover);}
.privacy-notice :is(a, button):focus-visible {outline: 2px solid var(--c-graphite);outline-offset: 4px;}
@media (max-width: 480px) {
  .privacy-notice__actions {align-items: stretch;flex-direction: column;}
  .privacy-notice__actions button {width: 100%;}
}
@media (prefers-reduced-motion: no-preference) {
  .privacy-notice[open] {animation: privacy-notice-in .24s var(--ease);}
  @keyframes privacy-notice-in {from {opacity: 0;transform: translateY(6px);}to {opacity: 1;transform: translateY(0);}}
}
@media print {.privacy-notice {display: none !important;}}
