/* =========================================================================
   AC Montage | Stylesheet
   Palette from the logo: forest green, bronze, bone.
   Type: Cormorant Garamond (display, echoes the logo wordmark) + Jost (text).

   Shape rule: buttons, inputs, panels and images use var(--r) (4px).
               Round seals (icon badges, swatches, arrow circles) use 50%,
               echoing the round logo seal.
   Z-index scale: mobile menu 40, header 50, skip link 100.

   Fonts are self-hosted in assets/fonts (GDPR): variable woff2, latin subset.
   Rebuild with tools/build-fonts.py after changing the sources.
   ========================================================================= */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-italic-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-latin-variable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --green-950: #131d18;
  --green-900: #1c2a23;
  --green-800: #253830;
  --bronze-600: #7e5a2d;
  --bronze-500: #a87b45;
  --bronze-300: #cdaa78;
  --bone-50: #faf9f5;
  --bone-100: #f3f2ec;
  --bone-200: #e8e6dd;

  --bg: var(--bone-100);
  --surface: var(--bone-50);
  --surface-2: var(--bone-200);
  --ink: #17211c;
  --ink-2: #3a4640;
  --muted: #56625b;
  --line: rgb(23 33 28 / 0.12);
  --line-strong: rgb(23 33 28 / 0.24);
  --accent: var(--bronze-500);
  --accent-ink: var(--bronze-600);
  --btn-bg: var(--green-900);
  --btn-ink: var(--bone-50);
  --btn-bg-hover: var(--green-800);
  --focus: var(--green-900);
  --error: #a3362b;
  --scrim: 15 23 19;
  --shadow: 0 1px 2px rgb(28 42 35 / 0.06), 0 18px 40px -18px rgb(28 42 35 / 0.28);

  --r: 4px;
  --header-h: 72px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light dark;
  interpolate-size: allow-keywords;
}

/* Dunkles Design. Der Regelsatz steht zweimal: einmal für die
   Systemeinstellung, solange niemand etwas gewählt hat, und einmal für die
   ausdrückliche Wahl über den Schalter. CSS kann einen Block nicht zwischen
   Media Query und Attributselektor teilen. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1713;
    --surface: #152019;
    --surface-2: #1a261f;
    --ink: #eceae2;
    --ink-2: #cfd3cc;
    --muted: #a3ada6;
    --line: rgb(236 234 226 / 0.12);
    --line-strong: rgb(236 234 226 / 0.24);
    --accent: var(--bronze-300);
    --accent-ink: var(--bronze-300);
    --btn-bg: #eceae2;
    --btn-ink: var(--green-900);
    --btn-bg-hover: #f7f5ef;
    --focus: var(--bronze-300);
    --error: #f0a497;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.6);
  }
}

:root[data-theme="dark"] {
    --bg: #0f1713;
    --surface: #152019;
    --surface-2: #1a261f;
    --ink: #eceae2;
    --ink-2: #cfd3cc;
    --muted: #a3ada6;
    --line: rgb(236 234 226 / 0.12);
    --line-strong: rgb(236 234 226 / 0.24);
    --accent: var(--bronze-300);
    --accent-ink: var(--bronze-300);
    --btn-bg: #eceae2;
    --btn-ink: var(--green-900);
    --btn-bg-hover: #f7f5ef;
    --focus: var(--bronze-300);
    --error: #f0a497;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.6);
}

/* Formularelemente und Bildlaufleisten sollen der Wahl folgen */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: var(--bronze-300);
  color: var(--green-950);
}

[hidden] {
  display: none !important;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-ink);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--surface-2);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

/* ---------- Type ---------- */
.h1 {
  font-size: clamp(2.7rem, 1rem + 4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.h1 em {
  font-style: italic;
  color: var(--accent);
  padding-bottom: 0.06em;
}

.h2 {
  font-size: clamp(2.2rem, 1.5rem + 2.3vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
}

.h3 {
  font-size: clamp(1.45rem, 1.3rem + 0.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.lead {
  max-width: 46ch;
  font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  transition: transform 0.35s var(--ease-out);
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--btn-bg-hover);
  }
}

@media (hover: hover) {
  .btn--primary:hover .icon {
    transform: translateX(3px);
  }
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

@media (hover: hover) {
  .btn--ghost:hover {
    border-color: var(--ink);
  }
}

.btn--ghost .icon {
  color: var(--accent-ink);
}

/* Absendeknopf im Anfrageformular. Grün wie WhatsApp, damit man auf den
   ersten Blick sieht, was beim Klick passiert. */
.btn--whatsapp {
  background: #1f9d55;
  border-color: #1f9d55;
  color: #fff;
}

@media (hover: hover) {
  .btn--whatsapp:hover {
    background: #1a8449;
    border-color: #1a8449;
  }
}

.btn--whatsapp .icon {
  color: currentColor;
}

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.btn[aria-busy="true"] {
  opacity: 0.75;
  cursor: progress;
}

.link-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.link-icon .icon {
  color: var(--accent-ink);
}

@media (hover: hover) {
  .link-icon:hover span {
    text-decoration: underline;
  }
}

.icon-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

@media (hover: hover) {
  .icon-btn:hover:not(:disabled) {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
  }
}

.icon-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- Brand lockup ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.07em;
  padding-right: 0.06em;
}

.brand__mark span {
  color: var(--accent);
}

.brand__word {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.header-sentinel {
  position: absolute;
  top: 0;
  height: 8px;
  width: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header .brand {
  margin-right: auto;
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(20px, 2.2vw, 34px);
}

.nav a {
  position: relative;
  padding-block: 6px;
  font-size: 0.98rem;
  color: var(--ink-2);
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) {
  .nav a:hover {
    color: var(--ink);
  }
}

@media (hover: hover) {
  .nav a:hover::after {
    transform: scaleX(1);
  }
}

.header-phone {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
}

.header-phone .icon {
  color: var(--accent-ink);
}

.header-phone__label {
  display: none;
}

.site-header .btn--primary {
  display: none;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

@media (hover: hover) {
  .theme-toggle:hover {
    border-color: var(--ink-2);
    background: var(--surface-2);
  }
}

/* Passendes Zeichen zeigen: Mond im hellen Design, Sonne im dunklen */
.theme-toggle .icon--sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon--moon { display: block; }

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

@media (min-width: 640px) {
  .site-header .btn--primary {
    display: inline-flex;
  }
}

/* 1340px: darunter passen Navigation, Telefon, WhatsApp und Knopf nicht
   nebeneinander. Muss zur Abfrage in main.js passen. */
@media (min-width: 1340px) {
  .site-header__inner {
    gap: 24px;
  }

  .nav {
    display: flex;
    margin-right: 8px;
  }

  .header-phone {
    width: auto;
    height: auto;
    display: inline-flex;
    gap: 8px;
    border: 0;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .header-phone__label {
    display: inline;
  }

  .menu-toggle {
    display: none;
  }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 16px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--bg);
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu__actions {
  display: grid;
  gap: 20px;
  justify-items: start;
}

html.menu-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(16px, 3vw, 40px) clamp(56px, 7vw, 96px);
}

.hero__grid {
  display: grid;
  gap: 36px;
}

.hero__copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero__media {
  overflow: hidden;
  border-radius: var(--r);
  height: clamp(280px, 72vw, 520px);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    align-items: center;
    gap: clamp(40px, 5vw, 88px);
    min-height: min(calc(100dvh - var(--header-h) - 64px), 760px);
  }

  .hero__media {
    align-self: stretch;
    height: auto;
    min-height: 460px;
  }
}

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--line);
}

.trust__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 16px;
  padding-block: 22px;
}

.trust__item + .trust__item {
  border-top: 1px solid var(--line);
}

.trust__item .icon {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  color: var(--accent-ink);
}

.trust__title {
  font-weight: 500;
  color: var(--ink);
}

.trust__text {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 640px) {
  .trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .trust__item + .trust__item {
    border-top: 0;
  }

  .trust__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 1024px) {
  .trust__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
  }

  .trust__item {
    padding: 30px clamp(18px, 2vw, 28px);
  }

  .trust__item:first-child {
    padding-left: 0;
  }

  .trust__item:nth-child(n + 3) {
    border-top: 0;
  }

  .trust__item + .trust__item {
    border-left: 1px solid var(--line);
  }
}

/* ---------- Services bento ---------- */
.bento {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--green-900);
}

.tile__link {
  position: absolute;
  inset: 0;
  display: block;
  color: #f4f2ec;
  text-decoration: none;
  isolation: isolate;
}

.tile__link:focus-visible {
  outline-offset: -4px;
  outline-color: var(--bronze-300);
}

.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.tile__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgb(var(--scrim) / 0.86) 0%,
    rgb(var(--scrim) / 0.45) 38%,
    rgb(var(--scrim) / 0) 72%
  );
}

.tile__body {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 6px;
  padding: clamp(18px, 2.2vw, 28px);
}

.tile__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: clamp(1.6rem, 1.35rem + 0.8vw, 2.05rem);
  font-weight: 500;
  line-height: 1.1;
  color: #f4f2ec;
  hyphens: manual;
}

.tile--xl .tile__title {
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem);
}

.tile__text {
  max-width: 40ch;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgb(244 242 236 / 0.86);
}

.tile__arrow {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(244 242 236 / 0.5);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tile__arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) {
  .tile__link:hover img {
    transform: scale(1.045);
  }
}

@media (hover: hover) {
  .tile__link:hover .tile__arrow {
    background: #f4f2ec;
    color: var(--green-900);
  }
}

@media (hover: hover) {
  .tile__link:hover .tile__arrow .icon {
    transform: translate(1px, -1px);
  }
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(220px, 30vw, 300px);
  }

  .tile {
    aspect-ratio: auto;
  }

  .tile--xl {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tile--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(230px, 19vw, 290px);
  }
}

/* ---------- Planner ---------- */
.planner {
  display: grid;
  gap: 16px;
}

.panel {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

/* Mobile: 3D view first, then options, summary and contact.
   Desktop: 3D view and summary stay visible next to the options. */
.planner__aside {
  display: contents;
}

.planner__stage {
  order: -1;
  display: grid;
  gap: 10px;
}

/* Schrittanzeige: fuenf Abschnitte statt einem sehr langen Formular. Die
   3D-Ansicht bleibt daneben stehen, sie gehoert nicht zu den Schritten. */
.schritte {
  order: -2;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.schritte::-webkit-scrollbar {
  display: none;
}

/* Natuerliche Breite: Beschriftungen sollen nicht abgeschnitten werden.
   Wird die Reihe zu breit, laesst sie sich seitlich schieben. */
.schritte__punkt {
  flex: 0 0 auto;
}

.schritte__punkt[hidden] {
  display: none;
}

.schritte__knopf {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .schritte__knopf:hover {
    border-color: var(--ink-2);
  }
}

.schritte__knopf:focus-visible {
  outline: 2px solid var(--bronze-500);
  outline-offset: 2px;
}

.schritte__nr {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
}

.schritte__titel {
  white-space: nowrap;
}

.schritte__punkt.is-erledigt .schritte__knopf {
  color: var(--ink);
}

.schritte__punkt.is-erledigt .schritte__nr {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.schritte__punkt.is-aktiv .schritte__knopf {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
  font-weight: 500;
}

/* Fuenf Namen nebeneinander passen erst auf breiten Bildschirmen. Darunter
   traegt nur der aktuelle Schritt seinen Namen, die uebrigen bleiben Ziffern -
   besser als abgeschnittene Woerter oder eine Leiste, die seitlich wegrutscht. */
@media (max-width: 1299px) {
  .schritte__punkt:not(.is-aktiv) .schritte__titel {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .schritte__punkt:not(.is-aktiv) .schritte__knopf {
    justify-content: center;
    padding: 8px 10px;
  }
}

.schritt:focus {
  outline: none;
}

.schritt__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.schritt__nav [data-schritt-weiter] {
  margin-left: auto;
}

@media (min-width: 1024px) {
  .planner {
    grid-template-columns: minmax(0, 13fr) minmax(0, 11fr);
    grid-template-areas:
      "schritte aside"
      "config aside"
      "contact aside";
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 16px;
    align-items: start;
  }

  .schritte {
    grid-area: schritte;
  }

  .planner__config {
    grid-area: config;
  }

  .planner__contact {
    grid-area: contact;
  }

  .planner__aside {
    grid-area: aside;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: grid;
    gap: 16px;
  }

  .planner__stage {
    order: 0;
  }
}

/* 3D viewer: its own studio backdrop (day or evening), independent of the page theme */
.viewer {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: radial-gradient(120% 95% at 50% 18%, #fdfcf8 0%, #eeebe3 58%, #e1ded4 100%);
  color: #17211c;
  /* Die Werkzeugleisten richten sich nach der Breite der Ansicht, nicht nach
     der des Fensters: im Planer ist die Ansicht nur etwa halb so breit. */
  container-type: inline-size;
}

.viewer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 95% at 50% 18%, #2c3b33 0%, #17221c 60%, #0e1511 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.viewer.is-evening {
  color: #eceae2;
}

.viewer.is-evening::before {
  opacity: 1;
}

.viewer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.viewer__canvas:active {
  cursor: grabbing;
}

.viewer__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  font-size: 0.95rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.viewer.is-ready .viewer__status {
  opacity: 0;
  visibility: hidden;
}

.viewer__seal {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(23 33 28 / 0.18);
  border-radius: 50%;
  color: var(--bronze-600);
}

.viewer__seal .icon {
  width: 26px;
  height: 26px;
}

.viewer__error {
  display: none;
  max-width: 34ch;
}

.viewer.is-error .viewer__loading {
  display: none;
}

.viewer.is-error .viewer__error {
  display: block;
}

/* Eine gemeinsame Zeile ueber der Ansicht. Passen nicht alle Knoepfe nebenein-
   ander, rutscht die rechte Gruppe in eine zweite Zeile, statt sich zu ueber-
   decken. So bleiben alle Beschriftungen lesbar. */
.viewer__bar {
  position: absolute;
  inset: 12px 12px auto 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viewer__tools,
.viewer__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.viewer__toolbar {
  margin-left: auto;
}

.viewer__tools .viewer-btn[aria-pressed="true"] {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--bone-50);
}

@container (max-width: 420px) {
  /* Erst wenn selbst eine Gruppe allein nicht mehr in eine Zeile passt, bleiben
     nur die Zeichen. Die Beschriftung bleibt fuer Vorleseprogramme erhalten. */
  .viewer__tools .viewer-btn span,
  .viewer__toolbar .viewer-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .viewer__tools .viewer-btn,
  .viewer__toolbar .viewer-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

.header-whatsapp {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

@media (hover: hover) {
  .header-whatsapp:hover {
    border-color: var(--ink-2);
    background: var(--surface-2);
  }
}

@media (min-width: 900px) {
  .header-whatsapp {
    display: inline-flex;
  }
}

/* Beide Leisten erscheinen erst, wenn die 3D-Ansicht steht */
.viewer:not(.is-ready) .viewer__toolbar,
.viewer:not(.is-ready) .viewer__tools {
  opacity: 0;
  pointer-events: none;
}

.viewer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgb(23 33 28 / 0.16);
  border-radius: var(--r);
  background: rgb(251 250 246 / 0.9);
  color: #17211c;
  font-size: 0.9rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .viewer-btn:hover {
    border-color: rgb(23 33 28 / 0.42);
  }
}

.viewer-btn:active {
  transform: translateY(1px);
}

.viewer-btn:focus-visible {
  outline: 2px solid var(--bronze-500);
  outline-offset: 2px;
}

.viewer-btn .icon {
  width: 18px;
  height: 18px;
}

.viewer-btn--icon {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.viewer-btn[aria-pressed="true"] {
  border-color: #17211c;
  background: #17211c;
  color: #f3f2ec;
}

.viewer.is-evening .viewer-btn {
  border-color: rgb(236 234 226 / 0.22);
  background: rgb(15 23 19 / 0.72);
  color: #eceae2;
}

.viewer.is-evening .viewer-btn[aria-pressed="true"] {
  border-color: #eceae2;
  background: #eceae2;
  color: #17211c;
}

.viewer__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r);
  background: rgb(23 33 28 / 0.8);
  color: #f3f2ec;
  font-size: 0.86rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.viewer.is-ready .viewer__hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.viewer__hint .icon {
  width: 18px;
  height: 18px;
}

.viewer__caption {
  font-size: 0.86rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .viewer:not(.is-ready):not(.is-error) .viewer__seal {
    animation: viewer-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes viewer-pulse {
  50% {
    opacity: 0.45;
  }
}

.fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldset + .fieldset {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* Floated so the legend sits inside the fieldset instead of on its top border */
.legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 18px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.legend + * {
  clear: both;
}

.legend small {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--muted);
}

/* Kurzer Hinweis unter einer Legende, erklaert die Auswahl in einem Satz */
.fieldset__hilfe {
  margin: -10px 0 14px;
  max-width: 54ch;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Product option cards */
.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.option {
  position: relative;
  display: block;
  cursor: pointer;
}

.option input,
.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.option__card {
  position: relative;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.option__card > .icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.3;
  color: var(--accent-ink);
}

/* Vorschau auf der Produktkarte, aus dem eigenen 3D-Modell gerendert. Kein
   Stockfoto, deshalb stimmt das Bild immer mit dem Konfigurator ueberein. */
.option__bild {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--r) - 6px);
  background: var(--surface-2);
}

.option input:checked + .option__card .option__bild {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.option__label {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.option__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.3s var(--ease-out);
}

.option__check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

@media (hover: hover) {
  .option:hover .option__card {
    border-color: var(--ink-2);
  }
}

.option input:checked + .option__card {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--surface);
}

.option input:checked + .option__card .option__check {
  opacity: 1;
  transform: none;
}

.option input:focus-visible + .option__card,
.chip input:focus-visible + .chip__body {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip__body {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
  font-size: 0.97rem;
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip__body small {
  font-size: 0.82rem;
  color: var(--muted);
}

.chip__check {
  display: none;
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

@media (hover: hover) {
  .chip:hover .chip__body {
    border-color: var(--ink-2);
  }
}

.chip input:checked + .chip__body {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.chip input:checked + .chip__body .chip__check {
  display: block;
}

.chip input:checked + .chip__body small {
  color: color-mix(in srgb, var(--bg) 80%, var(--ink));
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(128 128 128 / 0.45);
}

.swatch--custom {
  background: conic-gradient(#8f3b2c, #c4a35a, #4b6b52, #3b5a78, #8f3b2c);
}

/* Geteilte Ausführung: unten Paneel, oben Glas */
.swatch--split {
  background: linear-gradient(to bottom, #cfd8d6 0 50%, #383e42 50% 100%);
}

/* Seitenwände: linke und rechte Seite getrennt */
.seiten {
  display: grid;
  gap: 22px;
}

@media (min-width: 640px) {
  .seiten {
    grid-template-columns: 1fr 1fr;
    gap: 18px 26px;
  }
}

/* Unterpunkt einer Auswahl: eingerückt und mit Linie, damit erkennbar
   bleibt, dass er zur Wahl darüber gehört */
.fieldset--unterpunkt {
  margin-left: 14px;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
}

@media (min-width: 640px) {
  .fieldset--unterpunkt {
    margin-left: 20px;
    padding-left: 28px;
  }
}

/* Unterpunkt innerhalb einer Auswahl, etwa die Lichtfarbe unter der Beleuchtung */
.fieldset__unterwahl {
  margin-top: 20px;
}

.seiten__tuer {
  margin-top: 12px;
}

.seiten__kopf {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.range__eingabe {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
}

.range__eingabe:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(from var(--focus) r g b / 0.16);
}

.range__zahl {
  width: 4.2ch;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.range__zahl:focus {
  outline: none;
}

/* Die Pfeilchen des Zahlenfeldes stören hier nur */
.range__zahl::-webkit-outer-spin-button,
.range__zahl::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.range__zahl {
  -moz-appearance: textfield;
}

.range__einheit {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Dimensions */
.dims {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .dims {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
  }
}

.range {
  display: grid;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.range__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.range__head label {
  font-weight: 500;
  color: var(--ink);
}

.range__value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.range__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

.is-disabled .range {
  opacity: 0.4;
}

input[type="range"] {
  --fill: 50%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]:disabled {
  cursor: not-allowed;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / var(--fill) 100% no-repeat,
    var(--line-strong);
}

input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: var(--line-strong);
}

input[type="range"]::-moz-range-progress {
  height: 2px;
  background: var(--ink);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
}

input[type="range"]:focus-visible {
  outline: none;
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--ink-2);
}

.checkbox input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.dims__unknown {
  margin-top: 24px;
}

/* Summary: Bezeichnung links, Wert rechts. Das spart gegenueber zwei
   Zeilen je Angabe rund die Haelfte der Hoehe. */
.summary {
  container-type: inline-size;
  padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary__product {
  margin: 1px 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.summary__list {
  display: grid;
  gap: 0 clamp(16px, 3cqi, 28px);
  margin: 0;
}

.summary__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.summary__row dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.summary__row dd {
  margin: 0 0 0 auto;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: right;
  color: var(--ink);
}

/* Genug Platz: zwei Spalten nebeneinander */
@container (min-width: 430px) {
  .summary__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.summary__note {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.summary__note .icon {
  margin-top: 2px;
  color: var(--accent-ink);
}

/* Desktop: keep 3D view and summary within one screen height */
@media (min-width: 1024px) {
  .viewer {
    aspect-ratio: 3 / 2;
  }

  .summary__product {
    font-size: 1.3rem;
  }
}

.is-updated {
  animation: value-flash 0.7s var(--ease-out);
}

@keyframes value-flash {
  from {
    color: var(--accent);
  }
}

/* Contact fields */
.form-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.field__label {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
}

.req {
  color: var(--accent-ink);
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.input {
  min-height: 124px;
  resize: vertical;
}

@media (hover: hover) {
  .input:hover {
    border-color: var(--ink-2);
  }
}

.input:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 26%, transparent);
}

.field__hint {
  font-size: 0.87rem;
  color: var(--muted);
}

.field__error {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--error);
}

.field.is-invalid .input {
  border-color: var(--error);
}

.field.is-invalid .field__error {
  display: flex;
}

.consent a {
  color: var(--ink);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
}

.form-actions .fine {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-alert {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--error) 40%, transparent);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--error) 8%, transparent);
  color: var(--ink);
}

/* Fuer Menschen unsichtbar, aber nicht per display:none - manche Bots pruefen
   darauf. Deshalb aus dem Sichtfeld geschoben. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Bildraetsel: neun Zeichen, eines kommt nur einmal vor. Das Bild kommt vom
   eigenen Server, die Loesung bleibt dort - hier wird nur der Klick gemeldet. */
.raetsel {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.raetsel__aufgabe {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.raetsel__flaeche {
  position: relative;
  display: block;
  max-width: 330px;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: none;
  cursor: crosshair;
  overflow: hidden;
}

.raetsel__flaeche:focus-visible {
  outline: 2px solid var(--bronze-500);
  outline-offset: 2px;
}

.raetsel__bild {
  display: block;
  width: 100%;
  height: auto;
}

/* Zeigt, wohin geklickt wurde - ohne Rueckmeldung weiss niemand, ob es zaehlte */
.raetsel__punkt {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 3px solid var(--accent, #7a5c34);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.35);
  pointer-events: none;
}

.field.is-invalid .raetsel__flaeche {
  border-color: var(--error);
}

.input--kurz {
  max-width: 160px;
}

/* Die Rechenaufgabe steht eine Zeile fuer sich, sonst bricht die Beschriftung
   samt Pflichtstern um. */
.rechenfrage {
  margin: -2px 0 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

/* Ein Knopf, der wie ein Link aussieht: im Fliesstext einer Meldung */
.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (hover: hover) {
  .linkbtn:hover {
    color: var(--accent-strong, var(--accent));
  }
}

.btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.02rem;
}

.success {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 720px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.success:focus {
  outline: none;
}

.success__seal {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--bronze-300);
}

.success__seal .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.success__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

/* ---------- Systeme im Detail ---------- */
.detail {
  margin-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--line-strong);
}

/* Eine Liste statt sieben Kaesten: zugeklappt stehen nur Ueberschrift und ein
   Satz da, alles Weitere kommt auf Klick. Der vollstaendige Text bleibt im
   Quelltext, damit Suchmaschinen ihn weiterhin lesen. */
.detail__item {
  border-bottom: 1px solid var(--line-strong);
}

.detail__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  list-style: none;
  cursor: pointer;
}

.detail__item summary::-webkit-details-marker {
  display: none;
}

.detail__item summary:focus-visible {
  outline: 2px solid var(--bronze-500);
  outline-offset: 3px;
}

.detail__kopf {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.detail__titel {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.05rem + 0.4vw, 1.42rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.detail__kurz {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--muted);
}

.detail__toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.35s var(--ease-out), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.detail__toggle .icon {
  width: 16px;
  height: 16px;
}

@media (hover: hover) {
  .detail__item summary:hover .detail__toggle {
    border-color: var(--ink);
  }
}

.detail__item[open] .detail__toggle {
  transform: rotate(45deg);
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.detail__inhalt {
  max-width: 66ch;
  padding: 0 clamp(0px, 4vw, 54px) 24px 0;
}

.detail__fakten {
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.detail__fakten li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.detail__fakten li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, var(--bronze-500));
}

.detail__inhalt p {
  color: var(--ink-2);
}

@supports selector(::details-content) {
  .detail__item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
  }

  .detail__item[open]::details-content {
    block-size: auto;
  }
}

/* ---------- Process ---------- */
.process {
  display: grid;
  gap: 56px;
}

.process__intro {
  display: grid;
  gap: 18px;
  align-content: start;
}

.process__media {
  margin: 18px 0 0;
}

.process__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}

@media (min-width: 1024px) {
  .process {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(56px, 7vw, 120px);
    align-items: start;
  }

  .process__intro {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }

  .process__media img {
    aspect-ratio: 5 / 4;
  }
}

.steps {
  position: relative;
  display: grid;
  gap: clamp(44px, 6vw, 76px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27.5px;
  width: 1px;
  background: var(--line-strong);
}

.steps::after {
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(1);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after {
      transform: scaleY(0);
      animation: line-grow linear both;
      animation-timeline: view();
      animation-range: cover 18% cover 62%;
    }
  }
}

@keyframes line-grow {
  to {
    transform: scaleY(1);
  }
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: clamp(20px, 3vw, 32px);
}

.step__seal {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent-ink);
}

.step__seal .icon {
  width: 26px;
  height: 26px;
}

.step__body {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.step__body p {
  max-width: 54ch;
}

/* ---------- Gallery ---------- */
.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.gallery__head .section-head {
  margin-bottom: 0;
}

.gallery__controls {
  display: flex;
  gap: 8px;
}

.gallery__track {
  --track-pad: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--track-pad);
  padding-inline: var(--track-pad);
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__track:focus-visible {
  outline-offset: -2px;
}

.gallery__item {
  flex: none;
  height: clamp(280px, 34vw, 480px);
  margin: 0;
  scroll-snap-align: start;
}

.gallery__item img {
  width: auto;
  height: 100%;
  max-width: 86vw;
  object-fit: cover;
  border-radius: var(--r);
}

/* ---------- About ---------- */
.about__media {
  overflow: hidden;
  border-radius: var(--r);
}

.about__media img {
  width: 100%;
  height: clamp(320px, 50vw, 640px);
  object-fit: cover;
}

.about__panel {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: start;
  margin: -56px 12px 0;
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .about__panel {
    width: min(680px, 62%);
    margin: clamp(-200px, -14vw, -120px) 0 0 clamp(32px, 5vw, 72px);
  }
}

.about__points {
  display: grid;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.about__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.about__points .icon {
  margin-top: 1px;
  color: var(--accent-ink);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 40px;
}

.faq__intro {
  display: grid;
  gap: 18px;
  align-content: start;
}

.faq__links {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: clamp(56px, 7vw, 120px);
    align-items: start;
  }

  .faq__intro {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

.faq__list {
  border-top: 1px solid var(--line-strong);
}

.faq__item {
  border-bottom: 1px solid var(--line-strong);
}

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.15rem + 0.45vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__toggle {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.4s var(--ease-out), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq__toggle .icon {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .faq__item summary:hover .faq__toggle {
    border-color: var(--ink);
  }
}

.faq__item[open] .faq__toggle {
  transform: rotate(45deg);
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.faq__answer {
  max-width: 64ch;
  padding: 0 clamp(0px, 5vw, 62px) 26px 0;
}

.faq__answer p + p {
  margin-top: 10px;
}

@supports selector(::details-content) {
  .faq__item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
  }

  .faq__item[open]::details-content {
    block-size: auto;
  }
}

/* ---------- Deep green closing block (contact + footer) ---------- */
.deep {
  --bg: var(--green-900);
  --surface: var(--green-800);
  --ink: #f1efe8;
  --ink-2: #d3d8d1;
  --muted: #a9b4ac;
  --line: rgb(241 239 232 / 0.14);
  --line-strong: rgb(241 239 232 / 0.28);
  --accent: var(--bronze-300);
  --accent-ink: var(--bronze-300);
  --btn-bg: #f1efe8;
  --btn-ink: var(--green-900);
  --btn-bg-hover: #fbf9f3;
  --focus: var(--bronze-300);
  color-scheme: dark;
  background: var(--bg);
  color: var(--ink-2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .deep {
    --bg: #0a110d;
    --surface: #111b16;
  }
}

:root[data-theme="dark"] .deep {
  --bg: #0a110d;
  --surface: #111b16;
}

.contact {
  padding-block: var(--section-y) clamp(56px, 8vw, 104px);
}

.contact__grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(56px, 8vw, 140px);
    align-items: end;
  }
}

.contact__copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.contact__copy .btn {
  margin-top: 8px;
}

.contact__list {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .contact__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

.contact__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
}

.contact__item .icon {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--accent);
}

.contact__label {
  font-size: 0.86rem;
  color: var(--muted);
}

.contact__value {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

@media (hover: hover) {
  a.contact__value:hover {
    text-decoration: underline;
  }
}

.site-footer {
  padding-block: clamp(56px, 8vw, 104px) 32px;
}

/* Footer directly after the contact block, which already provides the spacing */
.site-footer--continued {
  padding-top: 0;
}

.footer {
  display: grid;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .footer {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 48px;
  }
}

.footer__tagline {
  margin-top: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer__nav,
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

@media (min-width: 1024px) {
  .footer__nav {
    justify-content: center;
  }
}

.footer__nav a,
.footer__legal a {
  color: var(--ink-2);
  text-decoration: none;
}

@media (hover: hover) {
  .footer__nav a:hover,
  .footer__legal a:hover {
    color: var(--ink);
    text-decoration: underline;
  }
}

.footer__legal {
  font-size: 0.92rem;
  color: var(--muted);
}

.footer__einstellungen {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink-2);
  cursor: pointer;
}

@media (hover: hover) {
  .footer__einstellungen:hover {
    color: var(--ink);
    text-decoration: underline;
  }
}

/* ---------- Legal pages ---------- */
.legal {
  padding-block: clamp(40px, 6vw, 88px) var(--section-y);
}

.legal__inner {
  max-width: 780px;
}

.legal .h1 {
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.8rem);
  margin-bottom: 28px;
}

.legal h2 {
  margin: 44px 0 12px;
  font-size: 1.75rem;
  font-weight: 600;
}

.legal h3 {
  margin: 24px 0 8px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.legal p,
.legal li {
  max-width: 68ch;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.legal a {
  color: var(--ink);
}

.notice {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
}

.notice .icon {
  margin-top: 3px;
  color: var(--accent-ink);
}

.placeholder {
  display: inline-block;
  margin-block: 2px;
  padding: 6px 10px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.back-link {
  margin-bottom: 32px;
}

.back-link .icon {
  transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) {
  .back-link:hover .icon {
    transform: translateX(-3px);
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-hero] {
    animation: rise-in 1s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 90ms + 80ms);
  }

  .hero__media img {
    animation: settle 1.6s var(--ease-out) both;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 80ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* Fade only: a shift would push the text across the strip's border lines */
  .js .trust [data-reveal] {
    transform: none;
  }

  .mobile-menu:not([hidden]) {
    animation: menu-in 0.35s var(--ease-out);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
}

@keyframes settle {
  from {
    transform: scale(1.06);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }
}

@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;
  }
}

/* ==========================================================================
   Kundenbewertungen (Widget eines Anbieters)
   Das Aussehen der Bewertungen selbst bestimmt der Anbieter. Hier steht nur,
   was drumherum gehoert: der Platzhalter, solange keine Zustimmung vorliegt.
   ========================================================================== */
.bw-sperre {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-align: center;
}

.bw-sperre__text {
  margin: 0 0 18px;
  color: var(--ink-2);
}

.bw-sperre__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
}

.bw-sperre__fein {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.bw-sperre__fein a {
  color: var(--accent-ink);
}

/* ==========================================================================
   Einwilligung für externe Dienste
   Karte am unteren Rand, keine Vollbild-Sperre: so bleibt der Inhalt sichtbar und
   Suchmaschinen bewerten die Seite nicht schlechter.
   ========================================================================== */
.cc {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 430px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 2px 6px rgb(28 42 35 / 0.1), 0 24px 60px -20px rgb(28 42 35 / 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.cc.is-offen {
  opacity: 1;
  transform: none;
}

.cc__titel {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.cc__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.cc__text a {
  color: var(--accent-ink);
  text-underline-offset: 2px;
}

.cc__gruppen {
  margin: 14px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cc__gruppe {
  border-bottom: 1px solid var(--line);
}

.cc__schalter {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 10px 0;
  cursor: pointer;
}

.cc__schalter:has(input:disabled) {
  cursor: default;
}

/* Die Checkbox liegt unsichtbar ueber dem Regler, damit die Tastatur
   weiter funktioniert. */
.cc__schalter input {
  grid-area: 1 / 1;
  width: 36px;
  height: 20px;
  margin: 2px 0 0;
  opacity: 0;
  cursor: inherit;
}

.cc__regler {
  grid-area: 1 / 1;
  width: 36px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.2s var(--ease-out);
  pointer-events: none;
}

.cc__regler::after {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 3px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(28 42 35 / 0.3);
  transition: transform 0.2s var(--ease-out);
}

.cc__schalter input:checked ~ .cc__regler {
  background: var(--accent);
}

.cc__schalter input:checked ~ .cc__regler::after {
  transform: translateX(16px);
}

.cc__schalter input:disabled ~ .cc__regler {
  opacity: 0.65;
}

.cc__schalter input:focus-visible ~ .cc__regler {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.cc__wort {
  grid-area: 1 / 2 / 3 / 3;
  display: grid;
  gap: 2px;
}

.cc__name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.cc__info {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.cc__knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc__btn {
  flex: 1 1 130px;
  justify-content: center;
}

.cc__link {
  display: block;
  margin: 10px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (hover: hover) {
  .cc__link:hover {
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc {
    transition: none;
  }
}

/* ==========================================================================
   Tippflächen auf Touch-Geräten
   Mit dem Finger braucht es mindestens 44px. Mit der Maus bleibt alles, wie
   es ist, deshalb hängt der Block an der Zeigerart und nicht an der Breite.
   ========================================================================== */
.theme-toggle {
  width: 44px;
  height: 44px;
}

/* Schmale Handys: engerer Abstand, damit die Knöpfe nicht gestaucht werden */
@media (max-width: 420px) {
  .site-header__inner {
    gap: 8px;
  }
}

@media (pointer: coarse) {
  .viewer-btn {
    min-height: 44px;
  }

  .viewer-btn--icon {
    width: 44px;
  }

  .range__zahl {
    min-height: 44px;
  }

  .footer__nav,
  .footer__legal {
    row-gap: 0;
  }

  .footer__nav a,
  .footer__legal a,
  .footer__einstellungen,
  .link-icon,
  a.contact__value {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer__legal > span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Einwilligung: auf breiten Bildschirmen rechts unten. Links läge sie über
   dem Einleitungstext und dem ersten Knopf der Startseite. */
@media (min-width: 900px) {
  .cc {
    left: auto;
    right: 24px;
    bottom: 24px;
  }
}

/* ==========================================================================
   Leistungsseiten (eine Seite je Bauart)
   Kopf wie auf der Startseite, darunter Fließtext mit einer Faktenspalte.
   ========================================================================== */
.pfad {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.pfad li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-strong);
}

.pfad a {
  color: var(--ink-2);
  text-decoration: none;
}

@media (hover: hover) {
  .pfad a:hover {
    color: var(--ink);
    text-decoration: underline;
  }
}

.leistung__grid {
  display: grid;
  gap: 48px;
}

.prose h2 {
  margin: 52px 0 14px;
  font-size: clamp(1.75rem, 1.5rem + 0.9vw, 2.2rem);
  line-height: 1.12;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  max-width: 68ch;
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 14px;
}

.prose a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.leistung__fakten {
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.leistung__fakten h2 {
  margin-bottom: 16px;
  font-size: 1.6rem;
  line-height: 1.15;
}

.leistung__fakten .detail__fakten {
  gap: 10px;
  margin-bottom: 28px;
}

.leistung__fakten .detail__fakten li {
  font-size: 1rem;
}

.leistung__hinweis {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .leistung__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(56px, 7vw, 120px);
    align-items: start;
  }

  .leistung__fakten {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }
}

.weitere__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.weitere__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}

.weitere__list .icon {
  flex: none;
  color: var(--accent-ink);
  transition: transform 0.35s var(--ease-out);
}

@media (hover: hover) {
  .weitere__list a:hover .icon {
    transform: translateX(4px);
  }
}

@media (min-width: 640px) {
  .weitere__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 5vw, 72px);
  }
}

/* Verweis von der Startseite auf die Leistungsseite */
.detail__mehr {
  margin-top: 14px;
}

@media (pointer: coarse) {
  .pfad a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .pfad {
    align-items: center;
  }
}
