/* Autoschlüssel-Doktor: Stylesheet
   Richtung „Befund“: helles Papier, Nachtblau als Tinte, Bernstein als einziger Markenakzent.
   Werte und Regeln: _planung/DESIGN.md. Mobile first; Breakpoints 30em, 48em, 64em, 80em. */

/* ------------------------------------------------------------------ Schriften */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Ersatzschrift während des Ladens: Arial auf Archivo-Maße gebracht, damit der Text kaum springt.
   Gemessen an einem deutschen Mustersatz: Archivo 400 ist im Mittel 1,1 % schmaler als Arial. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 98.9%;
  ascent-override: 88.8%;
  descent-override: 21.2%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------ Tokens */

:root {
  --c-ink-950: #0E1B22;
  --c-ink-900: #13252E;
  --c-ink-800: #1C3340;
  --c-ink-700: #2B4654;

  --c-steel-600: #4B5E68;
  --c-steel-550: #62737C;
  --c-steel-500: #6B7D86;
  --c-steel-400: #97A9B2;
  --c-steel-300: #BCC8CD;
  --c-field: #74858E;

  --c-paper-50: #F7F5F1;
  --c-paper-100: #EFEBE4;
  --c-paper-200: #E2DCD2;
  --c-paper-300: #D6CFC3;
  --c-option-line: #C9C2B6;
  --c-white: #FFFFFF;

  --c-amber-100: #FCEFD8;
  --c-amber-400: #F2A93B;
  --c-amber-500: #E3972A;
  --c-amber-700: #8F520A;

  --c-green-100: #E2F0EA;
  --c-green-600: #2C6E5D;
  --c-green-300: #8FCBB7;
  --c-red-50: #FBE9E7;
  --c-red-600: #B3261E;
  --c-blue-100: #E6EEF2;

  --bg-page: var(--c-paper-50);
  --text: var(--c-ink-950);
  --link: var(--c-amber-700);
  --link-hover: var(--c-ink-950);
  --line: var(--c-paper-200);
  --line-dark: rgba(247, 245, 241, 0.14);
  --focus-light: var(--c-ink-950);
  --focus-dark: var(--c-amber-400);

  --font-sans: "Archivo Variable", "Archivo Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --stretch-head: 87.5%;

  /* Fluide Größen: Minimum bei 390 px, Maximum bei 1440 px Viewport */
  --fs-display: clamp(2.375rem, 1.911rem + 1.905vw, 3.625rem);   /* 38 → 58, Startseiten-H1 */
  --fs-h1: clamp(2.125rem, 1.614rem + 2.095vw, 3.5rem);          /* 34 → 56 */
  --fs-h2: clamp(1.75rem, 1.425rem + 1.333vw, 2.625rem);         /* 28 → 42 */
  --fs-h2-service: clamp(1.625rem, 1.3rem + 1.333vw, 2.5rem);    /* 26 → 40 */
  --fs-h2-steps: clamp(1.5rem, 1.221rem + 1.143vw, 2.25rem);     /* 24 → 36 */
  --fs-h3: clamp(1.3125rem, 1.196rem + 0.476vw, 1.625rem);       /* 21 → 26 */
  --fs-lead-hero: clamp(1.0625rem, 0.993rem + 0.286vw, 1.25rem); /* 17 → 20 */
  --fs-lead: clamp(1rem, 0.93rem + 0.286vw, 1.1875rem);          /* 16 → 19 */
  --fs-body: clamp(1.0625rem, 1.039rem + 0.095vw, 1.125rem);     /* 17 → 18 */
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --space-section: clamp(3.5rem, 2.2rem + 5.333vw, 7rem);        /* 56 → 112 */
  --space-gutter: clamp(1.25rem, 0.786rem + 1.905vw, 3rem);      /* 20 → 48 */

  --w-container: 75rem;
  --w-text: 45rem;
  --header-h: 4rem;
  --header-h-lg: 4.75rem;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(14, 27, 34, 0.06), 0 1px 1px rgba(14, 27, 34, 0.04);
  --shadow-2: 0 2px 4px rgba(14, 27, 34, 0.05), 0 10px 24px -8px rgba(14, 27, 34, 0.14);
  --shadow-3: 0 4px 8px rgba(14, 27, 34, 0.06), 0 22px 44px -14px rgba(14, 27, 34, 0.26);
  --ring-amber: 0 0 0 4px rgba(242, 169, 59, 0.45);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 420ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur: 0.01ms;
    --dur-slow: 0.01ms;
  }
}

/* ------------------------------------------------------------------ Grundlagen */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
}

html.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

p,
li,
dd,
blockquote,
address,
figcaption,
label,
legend {
  hyphens: auto;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 760;
  font-stretch: var(--stretch-head);
  line-height: 1.1;
  letter-spacing: -0.015em;
  hyphens: manual;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.06;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

strong,
b {
  font-weight: 620;
}

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

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

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--focus-dark);
}

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

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

.nowrap {
  white-space: nowrap;
}

.icon {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--w-container) + 2 * var(--space-gutter));
  margin-inline: auto;
  padding-inline: var(--space-gutter);
}

.wrap--text {
  max-width: calc(var(--w-text) + 2 * var(--space-gutter));
}

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

.on-dark {
  background: var(--c-ink-950);
  color: var(--c-paper-50);
}

.band-alt {
  background: var(--c-paper-100);
}

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

/* ------------------------------------------------------------------ Kleine Bausteine */

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--c-ink-950);
  color: var(--c-paper-50);
  font-weight: 620;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
  color: var(--c-paper-50);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--c-steel-600);
  hyphens: manual;
}

.eyebrow--page {
  color: var(--c-amber-700);
}

.on-dark .eyebrow {
  color: var(--c-amber-400);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-ink-700);
}

.on-dark .lead {
  color: var(--c-steel-300);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.4;
  color: var(--c-amber-700);
  text-decoration: none;
}

.more-link:hover {
  color: var(--c-ink-950);
  text-decoration: underline;
}

.more-link .icon {
  width: 20px;
  height: 20px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.more-link:hover .icon {
  transform: translateX(3px);
}

.on-dark .more-link {
  color: var(--c-amber-400);
}

.on-dark .more-link:hover {
  color: var(--c-paper-50);
}

/* Textlinks in Absätzen auf dunklem Grund (Bernstein 700 wäre dort zu dunkel) */
.on-dark p a:not([class]) {
  color: var(--c-amber-400);
}

.on-dark p a:not([class]):hover {
  color: var(--c-paper-50);
}

@media (min-width: 48em) {
  .eyebrow {
    font-size: var(--fs-label);
  }
}

/* ------------------------------------------------------------------ Buttons */

.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 6px 24px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 620;
  font-stretch: normal;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  hyphens: manual;
}

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

.btn .icon {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn--sm {
  --btn-h: 44px;
  padding-inline: 18px;
  font-size: 1rem;
}

.btn--lg {
  --btn-h: 60px;
  padding-inline: 30px;
  font-size: 1.125rem;
}

.btn--primary {
  background: var(--c-amber-400);
  color: var(--c-ink-950);
}

.btn--primary:hover {
  background: var(--c-amber-500);
  color: var(--c-ink-950);
}

.btn--secondary {
  background: var(--c-ink-950);
  color: var(--c-paper-50);
}

.btn--secondary:hover {
  background: var(--c-ink-700);
  color: var(--c-paper-50);
}

.btn--ghost {
  color: var(--c-ink-950);
  box-shadow: inset 0 0 0 1.5px var(--c-ink-950);
}

.btn--ghost:hover {
  background: var(--c-ink-950);
  color: var(--c-paper-50);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--c-paper-200);
  color: var(--c-steel-500);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn.is-loading,
.btn.is-loading:disabled {
  background: var(--c-amber-400);
  color: var(--c-ink-950);
  opacity: 0.8;
  cursor: progress;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

/* Hauptaktionen auf dem Telefon über die volle Breite */
@media (max-width: 47.99em) {
  .btn--phone-block {
    display: flex;
    width: 100%;
    --btn-h: 56px;
    padding-inline: 22px;
    font-size: 1.0625rem;
  }
}

/* ------------------------------------------------------------------ Kopfzeile */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-paper-50);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow var(--dur) var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -12px rgba(14, 27, 34, 0.25);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
  transition: height var(--dur) var(--ease-out);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
}

.site-header__logo img {
  width: auto;
  height: 28px;
  transition: height var(--dur) var(--ease-out);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.site-header__cta {
  --btn-h: 44px;
  padding-inline: 14px;
  font-size: 0.9375rem;
}

.site-header__cta-extra {
  display: none;
}

.btn--current,
.btn--current:hover {
  background: transparent;
  color: var(--c-ink-950);
  box-shadow: inset 0 0 0 1.5px var(--c-amber-400);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-ink-950);
  box-shadow: inset 0 0 0 1.5px var(--c-paper-200);
  cursor: pointer;
}

.menu-toggle:hover {
  box-shadow: inset 0 0 0 1.5px var(--c-ink-950);
  color: var(--c-ink-950);
}

.site-nav {
  display: none;
}

@media (max-width: 22.49em) {
  .site-header__logo img {
    height: 34px;
  }
}

@media (min-width: 30em) {
  .site-header__cta-extra {
    display: inline;
  }

  .site-header__cta {
    padding-inline: 18px;
    font-size: 1rem;
  }
}

@media (min-width: 64em) {
  html {
    scroll-padding-top: 5.5rem;
  }

  .site-header__bar {
    height: var(--header-h-lg);
  }

  .site-header__logo img {
    height: 40px;
  }

  .site-header.is-scrolled .site-header__bar {
    height: 64px;
  }

  .site-header.is-scrolled .site-header__logo img {
    height: 34px;
  }

  .site-nav {
    display: block;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav__link {
    display: inline-block;
    padding: 6px 0;
    color: var(--c-ink-950);
    font-size: 1rem;
    font-weight: 520;
    line-height: 1.5;
    text-decoration: none;
  }

  .site-nav__link:hover {
    color: var(--c-amber-700);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 6px;
  }

  .site-nav__link[aria-current="page"] {
    font-weight: 620;
    box-shadow: inset 0 -3px 0 var(--c-amber-400);
  }

  .site-nav__link[aria-current="page"]:hover {
    text-decoration: none;
  }

  .site-header__actions {
    margin-left: 36px;
  }

  .site-header__cta {
    --btn-h: 44px;
    padding-inline: 18px;
  }

  .menu-toggle {
    display: none !important;
  }
}

/* ------------------------------------------------------------------ Menü auf dem Telefon */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--c-ink-950);
  color: var(--c-paper-50);
}

.mobile-menu:target,
.mobile-menu.is-open {
  display: flex;
  animation: menu-in var(--dur) var(--ease-out);
}

/* Mit JavaScript steuert nur noch die Klasse das Menü, nicht mehr der Anker #menue */
.js .mobile-menu:target:not(.is-open) {
  display: none;
}

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

.mobile-menu__top {
  border-bottom: 1px solid rgba(247, 245, 241, 0.12);
}

.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--header-h);
}

.mobile-menu__bar img {
  width: auto;
  height: 28px;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-paper-50);
  box-shadow: inset 0 0 0 1.5px rgba(247, 245, 241, 0.25);
  cursor: pointer;
}

.mobile-menu__close:hover {
  color: var(--c-paper-50);
  box-shadow: inset 0 0 0 1.5px var(--c-paper-50);
}

.mobile-menu__list {
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(247, 245, 241, 0.12);
  color: var(--c-paper-50);
  font-size: 1.75rem;
  font-weight: 760;
  font-stretch: var(--stretch-head);
  line-height: 1.2;
  text-decoration: none;
}

.mobile-menu__link .icon {
  color: var(--c-steel-400);
}

.mobile-menu__link:hover,
.mobile-menu__link[aria-current="page"],
.mobile-menu__link:hover .icon,
.mobile-menu__link[aria-current="page"] .icon {
  color: var(--c-amber-400);
}

.mobile-menu__cta {
  padding-block: 28px;
}

.mobile-menu__cta .btn {
  --btn-h: 56px;
}

@media (max-width: 22.49em) {
  .mobile-menu__link {
    font-size: 1.5rem;
  }
}

@media (min-width: 64em) {
  .mobile-menu,
  .mobile-menu:target,
  .mobile-menu.is-open {
    display: none;
  }
}

/* ------------------------------------------------------------------ Fußzeile */

.site-footer {
  border-top: 1px solid rgba(247, 245, 241, 0.12);
  background: var(--c-ink-950);
  color: var(--c-steel-300);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: 40px 28px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__brand img {
  width: auto;
  height: 30px;
}

.site-footer__brand p {
  max-width: 34ch;
}

.site-footer__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--c-steel-400);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-amber-400);
  text-decoration: none;
}

.site-footer__mail:hover {
  color: var(--c-amber-400);
  text-decoration: underline;
}

.site-footer__mail .icon {
  width: 20px;
  height: 20px;
}

.site-footer__contact .btn {
  --btn-h: 48px;
  width: 100%;
  margin-top: 6px;
}

.site-footer__pages ul,
.site-footer__legal ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__pages .site-footer__label {
  margin-bottom: 4px;
}

.site-footer__pages a,
.site-footer__legal a {
  color: var(--c-steel-300);
  text-decoration: none;
}

.site-footer__pages a {
  display: inline-block;
  line-height: 2.2;
}

.site-footer__pages a:hover,
.site-footer__legal a:hover {
  color: var(--c-amber-400);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 18px 28px;
  border-top: 1px solid rgba(247, 245, 241, 0.12);
  color: var(--c-steel-400);
  font-size: 0.8125rem;
}

.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-footer__legal a {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 48em) {
  .site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1.3fr 1fr;
    gap: 32px;
    padding-block: 56px 44px;
  }

  .site-footer__contact .btn {
    --btn-h: 44px;
    width: auto;
  }

  .site-footer__pages ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .site-footer__pages .site-footer__label {
    margin-bottom: 10px;
  }

  .site-footer__pages a {
    line-height: 1.6;
  }

  .site-footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 22px 28px;
    font-size: 0.875rem;
  }

  .site-footer__legal ul {
    gap: 4px 24px;
  }
}

@media (min-width: 64em) {
  .site-footer__grid {
    gap: 48px;
    padding-block: 72px 56px;
  }

  .site-footer__brand {
    gap: 18px;
  }

  .site-footer__brand img {
    height: 40px;
  }

  .site-footer__label {
    font-size: 0.75rem;
  }

  .site-footer__contact {
    gap: 12px;
  }

  .site-footer__contact .site-footer__label {
    margin-bottom: 4px;
  }
}

/* ------------------------------------------------------------------ Abschnittsköpfe */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head__title {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-head__intro {
  font-size: 1rem;
  color: var(--c-steel-600);
}

.on-dark .section-head__intro {
  color: var(--c-steel-300);
}

@media (min-width: 48em) {
  .section-head__intro {
    font-size: 1.125rem;
  }
}

@media (min-width: 64em) {
  .section-head--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
  }

  .section-head--7-5 {
    grid-template-columns: 7fr 5fr;
  }
}

/* ------------------------------------------------------------------ Startseite: Hero */

.hero {
  padding-block: 26px 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero .eyebrow {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.5;
}

.hero .eyebrow .icon {
  display: none;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 820;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.hero__lead {
  max-width: 40ch;
  font-size: var(--fs-lead-hero);
  line-height: 1.55;
  color: var(--c-ink-700);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.hero__facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__facts .icon {
  width: 18px;
  height: 18px;
  color: var(--c-green-600);
}

.hero__figure {
  position: relative;
  margin: 10px 0 0;
}

.hero__caption {
  display: none;
}

.hero__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  background: var(--c-paper-100);
}

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

/* Beschriftungen am Hero-Foto: Lage in Prozent des Rahmens (DESIGN.md 8.7) */
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translate(-6px, -6px);
  transform-origin: 6px 50%;
  pointer-events: none;
  animation: chip-in var(--dur-slow) var(--ease-out) both;
  animation-delay: 450ms;
}

.hero-chip--left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 6px), -6px);
  transform-origin: calc(100% - 6px) 50%;
}

.hero-chip:nth-of-type(2) {
  animation-delay: 510ms;
}

.hero-chip:nth-of-type(3) {
  animation-delay: 570ms;
}

.hero-chip:nth-of-type(4) {
  animation-delay: 630ms;
}

@keyframes chip-in {
  from {
    opacity: 0;
    scale: 0.6;
  }
}

.hero-chip__dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-amber-400);
  box-shadow: 0 0 0 3px rgba(14, 27, 34, 0.82);
}

.hero-chip__label {
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(247, 245, 241, 0.95);
  box-shadow: 0 2px 6px rgba(14, 27, 34, 0.18);
  color: var(--c-ink-950);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-chip--tasten { left: 35.5%; top: 56%; }
.hero-chip--klapp { left: 54.5%; top: 37.5%; }
.hero-chip--bart { left: 84.2%; top: 25%; display: none; }
.hero-chip--gehaeuse { left: 30%; top: 82%; }

@media (prefers-reduced-motion: reduce) {
  .hero-chip {
    animation: none;
  }
}

@media (min-width: 48em) {
  .hero {
    padding-block: 48px 72px;
  }

  .hero .eyebrow {
    font-size: var(--fs-label);
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero__facts {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 6px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
  }

  .hero__facts .icon {
    width: 20px;
    height: 20px;
  }

  .hero-chip--bart {
    display: flex;
  }
}

@media (min-width: 64em) {
  .hero {
    padding-block: 64px 104px;
  }

  .hero__grid {
    grid-template-columns: 11fr 13fr;
    gap: 56px;
    align-items: center;
  }

  .hero__text {
    gap: 24px;
  }

  .hero .eyebrow {
    display: flex;
  }

  .hero .eyebrow .icon {
    display: block;
    width: 20px;
    height: 20px;
  }

  .hero__figure {
    margin: 0;
  }

  .hero__caption {
    display: block;
    position: absolute;
    right: 0;
    top: -30px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--c-steel-600);
  }

  .hero__frame {
    aspect-ratio: 5 / 4;
    border-radius: var(--r-lg);
  }

  .hero__frame img {
    object-position: 55% 50%;
  }

  .hero-chip {
    gap: 8px;
    transform: translate(-7px, -7px);
    transform-origin: 7px 50%;
  }

  .hero-chip--left {
    transform: translate(calc(-100% + 7px), -7px);
    transform-origin: calc(100% - 7px) 50%;
  }

  .hero-chip__dot {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 4px rgba(14, 27, 34, 0.82), 0 0 0 9px rgba(242, 169, 59, 0.28);
  }

  .hero-chip__label {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .hero-chip--tasten { left: 31.6%; top: 56%; }
  .hero-chip--klapp { left: 54.4%; top: 37.5%; }
  .hero-chip--bart { left: 90%; top: 25%; }
  .hero-chip--gehaeuse { left: 25%; top: 82%; }
}

/* Zwischen 1024 und 1280 px passen beide großen Knöpfe sonst nicht nebeneinander */
@media (min-width: 64em) and (max-width: 79.99em) {
  .hero__grid {
    gap: 40px;
  }

  .hero__actions .btn--lg {
    padding-inline: 24px;
  }
}

/* ------------------------------------------------------------------ Präparat (Produktfotos des Inhabers) */

.specimen {
  position: relative;
  overflow: hidden;
  background: var(--c-paper-100);
}

/* mix-blend-mode lässt den weißen Fotohintergrund in der Papierfläche verschwinden.
   Höchstens natürliche Höhe / 1,5, damit die kleinen Originale auf 1,5x-Bildschirmen scharf bleiben. */
.specimen img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: 76%;
  max-width: 82%;
  max-height: 266px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.ticks {
  --t: 12px;
  --w: 1.5px;
  --c: var(--c-ink-950);
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--w),
    linear-gradient(var(--c), var(--c)) left top / var(--w) var(--t),
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--w),
    linear-gradient(var(--c), var(--c)) right top / var(--w) var(--t),
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--w),
    linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--t),
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--w),
    linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--t);
  background-repeat: no-repeat;
}

.specimen__cap {
  position: absolute;
  left: 32px;
  bottom: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--c-steel-600);
}

/* ------------------------------------------------------------------ Startseite: Leistungen */

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

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

.service-grid > li {
  display: flex;
}

.service-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--c-ink-950);
  text-decoration: none;
}

.service-card:hover {
  color: var(--c-ink-950);
}

.service-card__media {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-paper-100);
}

.service-card__media > picture,
.service-card__media > picture img,
.service-card__media > img.photo {
  width: 100%;
  height: 100%;
}

.service-card__media img.photo,
.service-card__media picture img {
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.service-card__media.specimen img {
  height: 80%;
}

.service-card__media .ticks,
.service-card__media .specimen__cap,
.service-card__tag {
  display: none;
}

.service-card__meta {
  display: none;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-wrap: pretty;
}

.service-card__text {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--c-steel-600);
}

.service-card__more {
  display: none;
}

.service-card__chevron {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--c-steel-600);
}

.services__more {
  margin-top: 22px;
}

@media (min-width: 48em) {
  .service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
    border-top: 0;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--c-white);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  }

  .service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
  }

  .service-card__media {
    width: auto;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }

  .service-card__media.specimen img {
    height: 76%;
  }

  .service-card__media .ticks {
    display: block;
  }

  .service-card__media .specimen__cap {
    display: block;
  }

  .service-card__tag {
    display: block;
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 10px;
    border-radius: var(--r-pill);
    background: var(--c-paper-50);
    color: var(--c-ink-950);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .service-card:hover .service-card__media img.photo,
  .service-card:hover .service-card__media picture img {
    transform: scale(1.04);
  }

  .service-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
    padding: 22px 24px 24px;
  }

  .service-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .service-card__num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--c-steel-600);
  }

  .service-card__meta .icon {
    color: var(--c-steel-500);
  }

  .service-card__title {
    font-size: 1.3125rem;
    font-weight: 760;
    line-height: 1.2;
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: text-decoration-color var(--dur-fast) var(--ease-out);
  }

  .service-card:hover .service-card__title {
    text-decoration-color: var(--c-amber-400);
  }

  .service-card__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .service-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--c-amber-700);
    font-size: 0.9375rem;
    font-weight: 620;
  }

  .service-card__more .icon {
    width: 18px;
    height: 18px;
    transition: transform var(--dur-fast) var(--ease-out);
  }

  .service-card:hover .service-card__more .icon {
    transform: translateX(3px);
  }

  .service-card__chevron {
    display: none;
  }

  .services__more {
    margin-top: 40px;
  }
}

@media (min-width: 64em) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 48px;
  }

  .services__more {
    margin-top: 48px;
  }
}

/* ------------------------------------------------------------------ Schritte: Zeitleiste und Route */

.steps {
  position: relative;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 28px;
}

.step:last-child {
  padding-bottom: 0;
}

/* Gestrichelte Linie von Knoten zu Knoten, liegt hinter den Kreisen */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21.25px;
  top: 22px;
  bottom: -22px;
  border-left: 1.5px dashed rgba(247, 245, 241, 0.22);
}

.step__node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-ink-800);
  color: var(--c-paper-50);
}

.step__node .icon {
  width: 20px;
  height: 20px;
}

.step__body {
  min-width: 0;
}

.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--c-steel-400);
}

.step__title {
  margin: 2px 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--c-paper-50);
}

.step__text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--c-steel-400);
}

.step--key .step__node {
  background: var(--c-amber-400);
  color: var(--c-ink-950);
}

.step--key .step__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: var(--c-ink-800);
  box-shadow: inset 0 0 0 1.5px var(--c-amber-400);
}

.step--key .step__num {
  color: var(--c-amber-400);
}

.step--key .step__title {
  margin: 0;
}

.step--key .step__text {
  color: var(--c-steel-300);
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 10px;
  background: var(--c-paper-50);
  color: var(--c-ink-950);
}

.callout__pulse {
  width: 96px;
  height: 20px;
  color: var(--c-amber-700);
}

.callout__title {
  font-size: 1rem;
  font-weight: 760;
  font-stretch: var(--stretch-head);
  line-height: 1.25;
}

.callout__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-ink-700);
}

/* Die Pulslinie zeichnet sich einmal, sobald sie sichtbar wird (nur mit JavaScript). */
/* 148 = Länge des Pfads in Einheiten der viewBox */
.js .callout__pulse path {
  stroke-dasharray: 148;
  stroke-dashoffset: 148;
}

.js .callout__pulse.is-visible path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .js .callout__pulse path {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 48em) {
  .step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 36px;
  }

  .step:not(:last-child)::before {
    left: 27.25px;
    top: 28px;
    bottom: -28px;
  }

  .step__node {
    width: 56px;
    height: 56px;
    box-shadow: 0 0 0 8px var(--c-ink-950);
  }

  .step__node .icon {
    width: 24px;
    height: 24px;
  }

  .step__num {
    font-size: 0.75rem;
  }

  .step__title {
    margin: 4px 0 6px;
    font-size: 1.25rem;
  }

  .step__text {
    max-width: 62ch;
    font-size: 1rem;
  }

  .step--key .step__node {
    box-shadow: 0 0 0 8px var(--c-ink-950);
  }

  .step--key .step__body {
    padding: 22px 24px;
    border-radius: var(--r-lg);
  }

  .callout {
    gap: 8px;
    padding: 18px 18px 16px;
    border-radius: 14px;
  }

  .callout__pulse {
    width: 120px;
    height: 24px;
  }

  .callout__title {
    font-size: 1.125rem;
  }

  .callout__text {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}

/* Route auf breiten Bildschirmen: hin in Reihe 1, zurück in Reihe 2, Schritt 4 als Karte rechts */
@media (min-width: 64em) {
  .steps--route {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.45fr;
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 48px;
    margin-top: 64px;
    isolation: isolate;
  }

  .steps--route > .step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 270px;
    padding: 0;
  }

  .steps--route .step__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .steps--route .step__title {
    margin: 0;
  }

  .steps--route .step__text {
    max-width: 30ch;
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .steps--route .step--1 { grid-area: 1 / 1; }
  .steps--route .step--2 { grid-area: 1 / 2; }
  .steps--route .step--3 { grid-area: 1 / 3; }
  .steps--route .step--5 { grid-area: 2 / 3; }
  .steps--route .step--6 { grid-area: 2 / 2; }

  /* Linienstücke: jeder Schritt zeichnet seine Strecke, % bezieht sich auf die Spaltenbreite */
  .steps--route > .step::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 27.25px;
    bottom: auto;
    left: 28px;
    width: calc(100% + 24px);
    border-left: 0;
    border-top: 1.5px dashed rgba(247, 245, 241, 0.28);
  }

  .steps--route > .step--3::before {
    width: calc(100% - 4px);
  }

  .steps--route > .step--5::before {
    left: calc(4px - 100%);
    width: calc(200% + 20px);
  }

  .steps--route > .step--6::before {
    left: calc(4px - 100%);
    width: calc(100% + 24px);
  }

  .steps--route > .step--4::before {
    display: none;
  }

  /* Pfeile mittig zwischen zwei Knoten */
  .steps--route > .step:not(.step--4)::after {
    content: "";
    position: absolute;
    top: 19px;
    left: calc(50% + 31px);
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(247,245,241,0.45)' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  }

  /* Rückweg nach links. .step.step--N braucht es, sonst gewinnt die Regel darüber (höhere Spezifität) */
  .steps--route > .step.step--5::after,
  .steps--route > .step.step--6::after,
  .steps--route::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(247,245,241,0.45)' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E");
  }

  /* Pfeil zwischen Zielpunkt und Schritt 6 sowie der grüne Zielpunkt: Pseudo-Elemente im Raster */
  .steps--route::before {
    content: "";
    grid-area: 2 / 1;
    align-self: start;
    justify-self: start;
    width: 18px;
    height: 18px;
    margin: 19px 0 0 calc(50% + 31px);
    background-position: center;
    background-size: 18px 18px;
    background-repeat: no-repeat;
  }

  .steps--route::after {
    content: "";
    grid-area: 2 / 1;
    align-self: start;
    justify-self: start;
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7F5F1' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
    box-shadow: 0 0 0 8px var(--c-ink-950);
  }

  .steps--route > .step--4 {
    grid-area: 1 / 4 / 3 / 5;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto 1fr;
    gap: 14px;
    min-height: 0;
    padding: 26px;
    border-radius: var(--r-lg);
    background: var(--c-ink-800);
    box-shadow: inset 0 0 0 1.5px var(--c-amber-400), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  }

  .steps--route > .step--4 .step__body {
    display: contents;
  }

  .steps--route > .step--4 .step__node {
    grid-area: 1 / 1;
    box-shadow: none;
  }

  .steps--route > .step--4 .step__num {
    grid-area: 1 / 2;
    align-self: center;
    justify-self: end;
  }

  .steps--route > .step--4 .step__title {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    font-weight: 760;
    line-height: 1.15;
  }

  .steps--route > .step--4 .step__text {
    grid-column: 1 / -1;
    max-width: none;
    color: var(--c-steel-300);
  }

  .steps--route > .step--4 .callout {
    grid-column: 1 / -1;
    align-self: end;
  }
}

/* ------------------------------------------------------------------ Startseite: Ablauf-Band */

.process__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}

.process__actions .more-link {
  justify-content: center;
  padding-block: 8px;
}

.process .section-head__intro {
  margin-bottom: 4px;
}

@media (min-width: 48em) {
  .process__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line-dark);
  }

  .process__actions .more-link {
    padding-block: 0;
  }
}

@media (min-width: 64em) {
  .process__actions {
    margin-top: 64px;
  }
}

/* ------------------------------------------------------------------ Startseite: Meister */

.meister__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.meister__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meister__photo {
  max-width: 17.5rem;
  margin-top: 4px;
}

.meister__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 16px;
}

.meister__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.quote blockquote {
  position: relative;
  margin: 0;
  padding-left: 22px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-ink-950);
}

.quote blockquote::before {
  content: "„";
  content: "„" / "";
  position: absolute;
  left: -4px;
  top: -10px;
  font-size: 48px;
  font-weight: 820;
  line-height: 1;
  color: var(--c-amber-400);
}

.quote figcaption {
  padding-left: 22px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--c-steel-600);
  hyphens: manual;
}

.facts {
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-paper-300);
}

.facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-paper-300);
  font-size: 1rem;
  font-weight: 520;
  line-height: 1.45;
}

.facts li:last-child {
  border-bottom: 0;
}

.facts .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--c-amber-700);
}

@media (min-width: 48em) {
  .quote blockquote {
    padding-left: 28px;
  }

  .quote blockquote::before {
    left: -6px;
    top: -14px;
    font-size: 64px;
  }

  .quote figcaption {
    padding-left: 28px;
    font-size: var(--fs-label);
  }

  .facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }

  .facts li {
    gap: 12px;
    padding: 16px 16px 16px 0;
    font-size: 1.0625rem;
  }

  .facts li:nth-child(even) {
    padding: 16px 0 16px 16px;
    border-left: 1px solid var(--c-paper-300);
  }

  .facts li:nth-last-child(-n + 2):nth-child(odd),
  .facts li:last-child {
    border-bottom: 0;
  }

  .facts .icon {
    width: 24px;
    height: 24px;
    margin-top: 0;
  }
}

@media (min-width: 64em) {
  .meister__grid {
    grid-template-columns: 4fr 8fr;
    grid-template-areas: "photo head" "photo body";
    column-gap: 72px;
    row-gap: 22px;
  }

  .meister__head {
    grid-area: head;
    align-self: end;
  }

  .meister__photo {
    grid-area: photo;
    align-self: center;
    max-width: 340px;
    margin: 0;
  }

  .meister__photo img {
    aspect-ratio: 4 / 5;
    object-position: 50% 35%;
    border-radius: var(--r-lg);
  }

  .meister__body {
    grid-area: body;
    align-self: start;
    gap: 22px;
  }

  .quote {
    gap: 14px;
  }

  .quote blockquote {
    font-size: 1.3125rem;
  }
}

/* ------------------------------------------------------------------ Startseite: Ehrlich gesagt */

.honest__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.honest__figure {
  position: relative;
  order: -1;
  margin: 0 0 8px;
}

.honest__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.photo-tag {
  display: none;
}

.honest__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.honest__text p {
  max-width: 56ch;
  color: var(--c-ink-700);
}

@media (min-width: 48em) {
  .photo-tag {
    display: block;
    position: absolute;
    left: 20px;
    bottom: 18px;
    margin: 0;
    padding: 6px 10px;
    border-radius: var(--r-pill);
    background: rgba(14, 27, 34, 0.72);
    color: var(--c-paper-50);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
  }
}

@media (min-width: 64em) {
  .honest__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
  }

  .honest__figure {
    order: 0;
    margin: 0;
  }

  .honest__figure img {
    border-radius: var(--r-lg);
  }

  .honest__text {
    gap: 22px;
  }
}

/* ------------------------------------------------------------------ Häufige Fragen (Akkordeon) */

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
  color: var(--c-ink-950);
  font-size: 1.125rem;
  font-weight: 620;
  font-stretch: var(--stretch-head);
  line-height: 1.3;
  transition: color var(--dur-fast) var(--ease-out);
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::marker {
  content: "";
}

.faq__q:hover {
  color: var(--c-amber-700);
}

.faq__q:focus-visible {
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--c-ink-950);
  box-shadow: inset 0 0 0 1.5px var(--c-ink-950);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

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

.faq__q:hover .faq__icon {
  background: var(--c-ink-950);
  color: var(--c-paper-50);
  box-shadow: none;
}

.faq[open] .faq__icon,
.faq[open] .faq__q:hover .faq__icon {
  background: var(--c-amber-400);
  color: var(--c-ink-950);
  box-shadow: none;
}

.faq[open] .faq__plus-v {
  opacity: 0;
}

.faq__a {
  padding: 0 0 18px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink-700);
}

.faq__a p + p {
  margin-top: 0.75em;
}

@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), content-visibility var(--dur) allow-discrete;
  }

  .faq[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@media (min-width: 48em) {
  .faq__q {
    gap: 16px;
    padding: 22px 0;
    font-size: 1.25rem;
  }

  .faq__icon {
    width: 36px;
    height: 36px;
  }

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

  .faq__a {
    padding: 0 56px 24px 0;
    font-size: 1.0625rem;
  }
}

/* Startseite: drei Fragen */
.faq-teaser {
  padding-bottom: var(--space-section);
}

.faq-teaser__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "list" "link";
  gap: 18px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.faq-teaser__head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-teaser .faq-list {
  grid-area: list;
}

.faq-teaser__link {
  grid-area: link;
  justify-self: start;
}

@media (min-width: 64em) {
  .faq-teaser__grid {
    grid-template-columns: 5fr 7fr;
    grid-template-areas: "head list" "link list";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    row-gap: 18px;
    align-items: start;
    padding-top: 104px;
  }

  .faq-teaser__head {
    gap: 18px;
  }
}

/* ------------------------------------------------------------------ Abschlussband mit Foto */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(247, 245, 241, 0.12);
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 27, 34, 0.78) 0%, rgba(14, 27, 34, 0.94) 55%);
}

.cta-band__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-block: 72px 56px;
}

.cta-band h2 {
  max-width: 20ch;
  color: var(--c-paper-50);
}

.cta-band p {
  max-width: 46ch;
  font-size: 1rem;
  color: var(--c-steel-300);
}

.cta-band .btn {
  margin-top: 6px;
}

@media (min-width: 48em) {
  .cta-band::before {
    background: linear-gradient(90deg, rgba(14, 27, 34, 0.96) 0%, rgba(14, 27, 34, 0.9) 55%, rgba(14, 27, 34, 0.3) 100%);
  }

  .cta-band__bg img {
    object-position: 50% 55%;
  }

  .cta-band__content {
    gap: 22px;
    padding-block: 88px;
  }

  .cta-band p {
    font-size: 1.125rem;
  }
}

@media (min-width: 80em) {
  .cta-band::before {
    background: linear-gradient(90deg, rgba(14, 27, 34, 0.96) 0%, rgba(14, 27, 34, 0.86) 40%, rgba(14, 27, 34, 0.12) 100%);
  }

  .cta-band__content {
    padding-block: 104px;
  }
}

/* Helles Abschlussband (Fragen-Seite) */
.cta-light__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cta-light__inner p {
  max-width: 52ch;
  color: var(--c-ink-700);
}

.cta-light__inner .btn {
  margin-top: 6px;
}

/* ------------------------------------------------------------------ Seitenköpfe der Unterseiten */

.page-head {
  padding-block: 32px 8px;
}

.page-head__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-head__text .lead {
  max-width: 56ch;
}

@media (min-width: 64em) {
  .page-head {
    padding-block: 72px 24px;
  }

  .page-head__text {
    gap: 16px;
  }

  .page-head__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: start;
  }
}

/* ------------------------------------------------------------------ Leistungen: Sprungliste */

.jump-list {
  margin-top: 20px;
  padding: 12px 18px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--c-white);
}

.jump-list__title {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 620;
  font-stretch: normal;
  letter-spacing: 0;
  line-height: 1.4;
}

.jump-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jump-list li {
  break-inside: avoid;
}

.jump-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--c-ink-950);
  font-size: 1rem;
  font-weight: 520;
  line-height: 1.35;
  text-decoration: none;
}

.jump-list li:last-child a {
  border-bottom: 0;
}

.jump-list a:hover {
  color: var(--c-amber-700);
}

.jump-list .icon--service {
  display: none;
  color: var(--c-amber-700);
}

.jump-list .icon--chevron {
  width: 18px;
  height: 18px;
  color: var(--c-steel-500);
}

.jump-list a:hover .icon--chevron {
  color: var(--c-amber-700);
}

@media (min-width: 48em) {
  .jump-list {
    padding: 18px 24px 8px;
    border-radius: 16px;
  }

  .jump-list__title {
    margin-bottom: 4px;
    font-size: 1.0625rem;
  }

  .jump-list ul {
    columns: 2;
    column-gap: 40px;
  }

  .jump-list a {
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    font-size: 1.0625rem;
  }

  .jump-list .icon--service {
    display: block;
  }

  .jump-list li:nth-child(5) a {
    border-bottom: 0;
  }
}

@media (min-width: 64em) {
  .jump-list {
    margin-top: 0;
  }

  .jump-list ul {
    columns: 1;
  }

  .jump-list li:nth-child(5) a {
    border-bottom: 1px solid var(--line);
  }
}

/* ------------------------------------------------------------------ Leistungen: Abschnitte */

.service {
  scroll-margin-top: 1rem;
}

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

.service-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.service__grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 32px 40px;
}

.service__media {
  width: 100%;
  max-width: 40rem;
}

.service__index {
  display: none;
}

.service__photo img,
.service__media .specimen {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.service__photo img {
  object-fit: cover;
}

.service__media .specimen img {
  height: 70%;
}

.service__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.service__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service__title {
  font-size: var(--fs-h2-service);
  line-height: 1.12;
}

.service__lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-ink-700);
}

.service__block h3,
.note__title {
  margin: 0 0 8px;
  font-size: clamp(1.1875rem, 1.141rem + 0.19vw, 1.3125rem);
  font-weight: 760;
  line-height: 1.25;
}

.service__block p {
  color: var(--c-ink-700);
}

.service__block > * + p {
  margin-top: 12px;
}

.sign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sign-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.sign-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--c-amber-700);
}

.service__body > .btn {
  align-self: stretch;
}

@media (min-width: 48em) {
  .service__body > .btn {
    align-self: flex-start;
  }

  .sign-list li {
    grid-template-columns: 20px minmax(0, 1fr);
    font-size: 1.0625rem;
  }

  .sign-list .icon {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 64em) {
  .service-list {
    margin-top: 56px;
  }

  .service__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
    padding-block: 64px;
  }

  .service__media {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: none;
  }

  .service__index {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--c-steel-600);
  }

  .service__photo img,
  .service__media .specimen {
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
  }

  .service__media .specimen img {
    height: 66%;
  }

  .service__media .ticks {
    --t: 14px;
    inset: 16px;
  }

  .service__media .specimen__cap {
    left: 40px;
    bottom: 13px;
  }

  .service__body {
    gap: 28px;
  }

  .service__intro {
    gap: 14px;
  }
}

/* Das Bild läuft nur mit, wenn das Fenster hoch genug ist, sonst würde es abgeschnitten. */
@media (min-width: 64em) and (min-height: 48em) {
  .service__media {
    position: sticky;
    top: 100px;
  }
}

/* ------------------------------------------------------------------ Hinweise */

.note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
}

.note > .icon {
  margin-top: 1px;
}

.note__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.note__title {
  margin: 0;
}

.note p {
  font-size: 1rem;
  line-height: 1.6;
}

.note--info {
  background: var(--c-blue-100);
  color: var(--c-ink-950);
}

.note--hint {
  background: var(--c-amber-100);
  color: var(--c-ink-950);
}

.note--hint > .icon {
  color: var(--c-amber-700);
}

.note--hint .note__lead {
  font-weight: 620;
}

.note--hint .note__text {
  color: var(--c-ink-700);
}

.note--small p {
  font-size: 0.9375rem;
}

.note--small .note__body {
  gap: 2px;
}

@media (min-width: 48em) {
  .note {
    padding: 18px 20px;
  }

  .note p {
    font-size: 1.0625rem;
  }

  .note--small p {
    font-size: 1rem;
  }

  .note--small .note__lead {
    font-size: 1.0625rem;
  }
}

/* ------------------------------------------------------------------ Ablauf-Seite */

.ablauf-head {
  padding-block: 36px 48px;
}

.ablauf-head .page-head__text {
  gap: 12px;
}

@media (max-width: 63.99em) {
  .ablauf-head .page-head__grid > .lead {
    margin-top: 16px;
  }
}

.steps-layout {
  margin-top: 24px;
}

.steps-layout__aside h2 {
  font-size: var(--fs-h2-steps);
  color: var(--c-paper-50);
}

.mini-index {
  display: none;
}

.steps--timeline {
  margin-top: 24px;
}

.steps--timeline .step__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 2px 0 6px;
  font-size: 1.1875rem;
  font-weight: 760;
  line-height: 1.2;
}

.steps--timeline .step__title .step__num {
  flex: none;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.steps--timeline .step__text {
  color: var(--c-steel-300);
}

.steps--timeline .step__node {
  box-shadow: 0 0 0 6px var(--c-ink-950);
}

.steps--timeline .step--key .step__node {
  box-shadow: 0 0 0 6px var(--c-ink-950), 0 0 0 7.5px rgba(242, 169, 59, 0.5);
}

.steps--timeline .step--key .step__body {
  gap: 14px;
}

.step__card-main {
  display: flex;
  flex-direction: column;
}

.step__card-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.befund {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--c-paper-300);
  color: var(--c-ink-950);
}

.befund__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--c-ink-950);
}

.befund__row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed var(--c-paper-300);
  font-size: 0.875rem;
  line-height: 1.35;
}

.befund__row:last-child {
  border-bottom: 0;
}

.befund__row > span {
  hyphens: manual;
  overflow-wrap: normal;
}

.befund__part {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--c-steel-600);
  hyphens: manual;
}

.befund__action {
  font-weight: 620;
  color: var(--c-amber-700);
}

.befund__action--ok {
  color: var(--c-green-600);
}

/* Schmale Telefone: Bauteil über Befund und Maßnahme, sonst wird die mittlere Spalte zu eng */
@media (max-width: 29.99em) {
  .befund__row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 2px;
  }

  .befund__part {
    grid-column: 1 / -1;
  }
}

@media (min-width: 48em) {
  .steps--timeline .step {
    gap: 28px;
    padding-bottom: 40px;
  }

  .steps--timeline .step:last-child {
    padding-bottom: 0;
  }

  .steps--timeline .step__node {
    box-shadow: 0 0 0 8px var(--c-ink-950);
  }

  .steps--timeline .step--key .step__node {
    box-shadow: 0 0 0 8px var(--c-ink-950), 0 0 0 9.5px rgba(242, 169, 59, 0.5);
  }

  .steps--timeline .step__title {
    margin: 4px 0 8px;
    font-size: 1.375rem;
  }

  .steps--timeline .step__text {
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  .steps--timeline .step--key .step__body {
    margin-top: -8px;
    padding: 26px 28px 28px;
  }

}

@media (min-width: 64em) {
  .ablauf-head {
    padding-block: 80px 72px;
  }

  .ablauf-head .page-head__grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: end;
  }

  .steps-layout {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 48px;
    align-items: start;
    margin-top: 64px;
  }

  .steps-layout__aside {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .steps--timeline {
    margin-top: 0;
  }

  .mini-index {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    color: var(--c-steel-400);
    font-size: 0.9375rem;
  }

  .mini-index li {
    margin-left: -12px;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
  }

  .mini-index li.is-current {
    background: var(--c-ink-800);
    color: var(--c-amber-400);
    font-weight: 620;
  }
}

@media (min-width: 80em) {
  .steps--timeline .step--key .step__body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
  }
}

/* Versand */
.versand__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.versand__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.versand__main h2 {
  font-size: var(--fs-h2-service);
}

.versand__main > p {
  color: var(--c-ink-700);
}

.tips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 32px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.tip__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-paper-100);
  color: var(--c-amber-700);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.tip__title {
  display: block;
  margin-bottom: 2px;
  font-size: 1.0625rem;
  font-weight: 620;
  line-height: 1.4;
}

.tip__text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--c-ink-700);
}

.versand__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.versand__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% 50%;
  border-radius: 16px;
}

.address-box {
  overflow: hidden;
  border-radius: 14px;
  background: var(--c-white);
  box-shadow: inset 0 0 0 2px var(--c-ink-950);
  scroll-margin-top: 6rem;
}

.address-box__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 16px;
  background: var(--c-ink-950);
  color: var(--c-amber-400);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.address-box__label .icon {
  width: 18px;
  height: 18px;
}

.address-box address {
  padding: 16px 18px 4px;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 520;
  line-height: 1.5;
}

.address-box p {
  padding: 8px 18px 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-steel-600);
}

.rueckweg h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.rueckweg p {
  font-size: 1rem;
  color: var(--c-ink-700);
}

@media (min-width: 48em) {
  .tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .address-box {
    border-radius: 16px;
  }

  .address-box__label {
    padding: 10px 20px;
    font-size: 0.75rem;
  }

  .address-box address {
    padding: 20px 22px 6px;
    font-size: 1.1875rem;
  }

  .address-box p {
    padding: 8px 22px 20px;
    font-size: 0.9375rem;
  }
}

@media (min-width: 64em) {
  .versand__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: start;
  }
}

@media (min-width: 64em) and (min-height: 50em) {
  .versand__aside {
    position: sticky;
    top: 100px;
  }
}

/* Einfacher Textabschnitt (Noch Fragen?, Grenzen, Wo ich arbeite) */
.text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.text-block p {
  color: var(--c-ink-700);
}

/* ------------------------------------------------------------------ Fragen-Seite */

.faq-page {
  padding-block: 24px var(--space-section);
}

.faq-group + .faq-group {
  margin-top: 48px;
}

.faq-group h2 {
  margin-bottom: 12px;
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: 0;
}

@media (min-width: 64em) {
  .faq-page {
    padding-top: 40px;
  }

  .faq-group + .faq-group {
    margin-top: 64px;
  }
}

/* ------------------------------------------------------------------ Über mich */

.about-head {
  padding-block: 32px 48px;
}

.about-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.about-head__title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-head__photo {
  max-width: 17.5rem;
}

.about-head__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 16px;
}

.about-head__intro {
  max-width: 52ch;
}

.about-path__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-path__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-path__text p {
  max-width: 66ch;
  color: var(--c-ink-700);
}

.vita {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vita li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 22px;
}

.vita li:last-child {
  padding-bottom: 0;
}

.vita li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21.25px;
  top: 22px;
  bottom: -22px;
  border-left: 1.5px dashed var(--c-paper-300);
}

.vita__node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-paper-100);
  color: var(--c-ink-950);
  box-shadow: 0 0 0 6px var(--c-paper-50);
}

.vita__node .icon {
  width: 20px;
  height: 20px;
}

.vita__label {
  display: block;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--c-steel-600);
}

.vita__text {
  display: block;
  font-size: 1rem;
  font-weight: 520;
  line-height: 1.45;
}

.expect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.expect-grid li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--c-white);
}

.expect-grid .icon {
  color: var(--c-amber-700);
}

.expect-grid p {
  color: var(--c-ink-700);
}

.expect-grid strong {
  color: var(--c-ink-950);
}

.about-name__grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.about-name__mark {
  width: 120px;
  height: auto;
}

.about-name__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-name__text p {
  max-width: 60ch;
  color: var(--c-ink-700);
}

@media (min-width: 48em) {
  .vita li {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 26px;
  }

  .vita li:not(:last-child)::before {
    left: 27.25px;
    top: 28px;
    bottom: -28px;
  }

  .vita__node {
    width: 56px;
    height: 56px;
    box-shadow: 0 0 0 8px var(--c-paper-50);
  }

  .vita__node .icon {
    width: 24px;
    height: 24px;
  }

  .vita__label {
    margin-top: 4px;
  }

  .vita__text {
    font-size: 1.0625rem;
  }

  .expect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
  }

  .expect-grid li {
    padding: 24px 26px;
  }

  .about-name__grid {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

  .about-name__mark {
    width: 160px;
  }
}

@media (min-width: 64em) {
  .about-head {
    padding-block: 72px 96px;
  }

  .about-head__grid {
    grid-template-columns: 5fr 7fr;
    grid-template-areas: "photo title" "photo intro";
    column-gap: 72px;
    row-gap: 24px;
  }

  .about-head__title {
    grid-area: title;
    align-self: end;
    gap: 16px;
  }

  .about-head__photo {
    grid-area: photo;
    align-self: center;
    max-width: 380px;
  }

  .about-head__photo img {
    aspect-ratio: 4 / 5;
    object-position: 50% 35%;
    border-radius: var(--r-lg);
  }

  .about-head__intro {
    grid-area: intro;
    align-self: start;
  }

  .about-path__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 72px;
    align-items: start;
  }

  .vita {
    margin-top: 8px;
  }
}

/* ------------------------------------------------------------------ Anfrage-Seite */

.request {
  padding-block: 24px var(--space-section);
}

.request__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "note" "need" "form";
  gap: 12px;
}

.request__intro {
  grid-area: intro;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request__intro .lead {
  max-width: 54ch;
}

.request__note {
  grid-area: note;
  margin-top: 4px;
}

.request__need {
  grid-area: need;
}

.request__form {
  grid-area: form;
  min-width: 0;
  margin-top: 6px;
}

.request__aside {
  display: none;
}

.need-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--c-paper-100);
}

.need-box__title {
  font-size: 0.9375rem;
  font-weight: 620;
  font-stretch: normal;
  letter-spacing: 0;
  line-height: 1.4;
}

.need-box ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.need-box li {
  display: flex;
  gap: 10px;
}

.need-box .icon {
  width: 20px;
  height: 20px;
  color: var(--c-amber-700);
}



.num-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--c-ink-700);
}

.num-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
}

.num-list__n {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--c-amber-700);
}

@media (min-width: 48em) {
  .need-box {
    gap: 10px;
    padding: 20px 22px;
    border-radius: 16px;
  }

  .need-box__title {
    font-size: 1rem;
  }
}

@media (min-width: 64em) {
  .request {
    padding-top: 56px;
  }

  .request__grid {
    grid-template-columns: 8fr 4fr;
    grid-template-areas: "intro need" "note aside" "form aside";
    grid-template-rows: auto auto 1fr;
    column-gap: 40px;
    row-gap: 20px;
  }

  .request__intro {
    align-self: end;
    gap: 14px;
  }

  .request__need {
    align-self: end;
  }

  .request__note {
    margin-top: 16px;
  }

  .request__form {
    margin-top: 0;
  }

  .request__aside {
    grid-area: aside;
    display: block;
    align-self: start;
    position: sticky;
    top: 88px;
    margin-top: 16px;
  }

  /* Auf der Anfrage-Seite bleibt die Kopfzeile auf dem Telefon nicht stehen: oben steht die Fortschrittsleiste. */
}

@media (max-width: 63.99em) {
  .page-anfrage .site-header {
    position: relative;
  }
}

/* Formular */
.form-card {
  min-width: 0;
}


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

legend {
  padding: 0;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

.form-section + .form-section {
  margin-top: 0;
}

.form-section:last-of-type {
  padding-bottom: 4px;
}

.form-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-h3);
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0;
}

.form-section__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-ink-950);
  color: var(--c-amber-400);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: 0;
}

.choice-group > legend {
  width: 100%;
  margin-bottom: 14px;
}

.label,
.group-legend {
  display: block;
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.4;
  color: var(--c-ink-950);
}

.optional {
  font-weight: 400;
  color: var(--c-steel-600);
}

.hint {
  display: block;
  margin: 0 0 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--c-steel-600);
}

.hint--group {
  margin: -6px 0 12px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field__feedback {
  padding-bottom: 20px;
}

.field--last .field__feedback {
  padding-bottom: 0;
}

/* Zwei Felder nebeneinander: Untergitter, damit Label, Hinweis und Feld auf einer Linie stehen */
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 16px;
}

.field-row > .field {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
}

.field-row > .field > .label { grid-row: 1; }
.field-row > .field > .hint { grid-row: 2; }
.field-row > .field > .control { grid-row: 3; }
.field-row > .field > .field__feedback { grid-row: 4; }

.control {
  position: relative;
}

.input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--c-field);
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-ink-950);
  font-size: 1.0625rem;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.input::placeholder {
  color: var(--c-steel-550);
  opacity: 1;
}

.input:hover {
  border-color: var(--c-ink-950);
}

.input:focus {
  outline: 2px solid transparent;
  border-color: var(--c-ink-950);
  box-shadow: inset 0 0 0 0.5px var(--c-ink-950), var(--ring-amber);
}

.input[aria-invalid="true"] {
  border-color: var(--c-red-600);
  box-shadow: inset 0 0 0 0.5px var(--c-red-600);
}

.input[aria-invalid="true"]:focus {
  box-shadow: inset 0 0 0 0.5px var(--c-red-600), var(--ring-amber);
}

.input.is-valid {
  padding-right: 46px;
  border-color: var(--c-green-600);
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C6E5D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") right 14px center / 20px 20px no-repeat;
}

textarea.input {
  height: auto;
  min-height: 120px;
  padding: 12px 14px 26px;
  line-height: 1.5;
  resize: vertical;
}

select.input {
  padding-right: 48px;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1B22' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 24px 24px no-repeat;
  cursor: pointer;
}

.input:disabled {
  border-color: var(--c-paper-200);
  background-color: var(--c-paper-100);
  color: #7E8C93;
}

.counter {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--c-steel-600);
  pointer-events: none;
}

.counter.is-over {
  color: var(--c-red-600);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 0.9375rem;
  font-weight: 520;
  line-height: 1.4;
  color: var(--c-red-600);
}

.field-error .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.field-error + .field-error {
  margin-top: 4px;
}

.typo-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--c-blue-100);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.typo-hint strong {
  overflow-wrap: anywhere;
}

.typo-hint .btn {
  --btn-h: 36px;
  margin-left: auto;
  padding: 4px 14px;
  font-size: 0.9375rem;
}

.form-note {
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-steel-600);
}

.form-note .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* Echte Eingabefelder bleiben im Label, unsichtbar, aber per Tastatur erreichbar */
.choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

/* Karten zur Mehrfachauswahl (Anliegen) */
.choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: inset 0 0 0 1px var(--c-option-line);
  cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.choice:hover {
  box-shadow: inset 0 0 0 1.5px var(--c-ink-950);
}

.choice__icon {
  display: none;
}

.choice__title {
  display: block;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.3;
}

.choice__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--c-white);
  color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--c-field);
}

.choice__box .icon {
  width: 15px;
  height: 15px;
}

.choice:has(.choice-input:checked) {
  background: var(--c-amber-100);
  box-shadow: inset 0 0 0 2px var(--c-ink-950);
}

.choice-input:checked ~ .choice__box {
  background: var(--c-ink-950);
  color: var(--c-amber-400);
  box-shadow: none;
}

.choice:has(.choice-input:checked) .choice__icon {
  background: var(--c-amber-400);
}

.choice:has(.choice-input:focus-visible),
.keytype:has(.choice-input:focus-visible),
.pill:has(.choice-input:focus-visible),
.consent:has(.choice-input:focus-visible) {
  outline: 2px solid var(--c-ink-950);
  outline-offset: 2px;
}

.choices.is-invalid .choice:not(:has(.choice-input:checked)) {
  box-shadow: inset 0 0 0 1px var(--c-red-600);
}

.choice-note {
  margin-top: 12px;
}

/* Ohne JavaScript steht der Hinweis zum Fahrzeug vor Ort als einfache Hilfezeile da. */
.no-js .choice-note {
  display: block;
  padding: 0;
  background: none;
  font-size: 0.875rem;
  color: var(--c-steel-600);
}

.no-js .choice-note > .icon {
  display: none;
}

.no-js .choice-note p {
  font-size: 0.875rem;
}

/* Schlüsselart */
.keytypes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.keytype {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: inset 0 0 0 1px var(--c-option-line);
  font-size: 0.9375rem;
  line-height: 1.35;
  cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.keytype:hover {
  box-shadow: inset 0 0 0 1.5px var(--c-ink-950);
}

.keytype__pic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-paper-100);
}

.keytype__text strong {
  font-weight: 620;
}

.radio-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: inset 0 0 0 1.5px var(--c-field);
}

.keytype .radio-dot {
  margin-left: auto;
}

.keytype:has(.choice-input:checked) {
  background: var(--c-amber-100);
  box-shadow: inset 0 0 0 2px var(--c-ink-950);
}

.keytype:has(.choice-input:checked) .keytype__pic {
  background: var(--c-amber-400);
}

.choice-input:checked ~ .radio-dot {
  background: var(--c-amber-400);
  box-shadow: inset 0 0 0 5px var(--c-ink-950);
}

.keytypes.is-invalid .keytype:not(:has(.choice-input:checked)) {
  box-shadow: inset 0 0 0 1px var(--c-red-600);
}

@media (min-width: 30em) {
  .keytypes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 80em) {
  .keytypes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .keytype {
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 18px 12px 16px;
    font-size: 0.875rem;
    text-align: center;
  }

  .keytype__pic {
    width: 52px;
    height: 52px;
  }

  .keytype__pic .icon {
    width: 28px;
    height: 28px;
  }

  .keytype__text strong {
    display: block;
  }

  .keytype__text--inline strong {
    display: inline;
  }

  .keytype .radio-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
  }
}

/* Auswahl als Pille (Batterie, Anzahl, geöffnet) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 24px;
  background: var(--c-white);
  box-shadow: inset 0 0 0 1.5px var(--c-field);
  font-size: 0.9375rem;
  line-height: 1.3;
  cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.pill:hover {
  box-shadow: inset 0 0 0 1.5px var(--c-ink-950);
}

.pill:has(.choice-input:checked) {
  background: var(--c-amber-100);
  box-shadow: inset 0 0 0 2px var(--c-ink-950);
  font-weight: 620;
}

.pills.is-invalid .pill {
  box-shadow: inset 0 0 0 1.5px var(--c-red-600);
}

.group {
  min-width: 0;
}

.group .hint {
  margin-bottom: 10px;
}

.group-legend + .pills,
.group-legend + .keytypes {
  margin-top: 10px;
}

.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 16px;
  align-items: start;
}

@media (min-width: 48em) {
  .pills {
    gap: 10px;
  }

  .pill {
    padding-inline: 16px;
    font-size: 1rem;
  }

  .field-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fotos */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  border: 2px dashed var(--c-field);
  border-radius: var(--r-md);
  background: var(--c-white);
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-amber-400);
  color: var(--c-ink-950);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.dropzone__icon .icon--upload {
  display: none;
}

.dropzone__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dropzone__btn {
  display: none;
  --btn-h: 48px;
  pointer-events: none;
}

.js .dropzone__btn {
  display: inline-flex;
}


.dropzone__input {
  max-width: 100%;
  font-size: 0.9375rem;
}

.dropzone__input::file-selector-button {
  height: 44px;
  margin-right: 12px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-ink-950);
  color: var(--c-paper-50);
  font: inherit;
  font-weight: 620;
  cursor: pointer;
}

.js .dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone:hover .dropzone__btn {
  background: var(--c-ink-700);
}

.dropzone:has(.dropzone__input:focus-visible) .dropzone__btn {
  outline: 2px solid var(--c-ink-950);
  outline-offset: 3px;
}

.dropzone.is-dragover {
  border-style: solid;
  border-color: var(--c-ink-950);
  background: var(--c-amber-100);
}

.dropzone.is-dragover .dropzone__icon {
  background: var(--c-ink-950);
  color: var(--c-amber-400);
}

.dropzone.is-full {
  cursor: not-allowed;
}

.dropzone.is-full .dropzone__btn {
  background: var(--c-paper-200);
  color: var(--c-steel-500);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-paper-100);
}

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

.thumb__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 27, 34, 0.86);
  color: var(--c-paper-50);
  cursor: pointer;
}

/* größere Trefferfläche als die sichtbaren 32 px */
.thumb__remove::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.thumb__remove:hover {
  background: var(--c-ink-950);
}

.thumb__remove:focus-visible {
  outline: 2px solid var(--c-amber-400);
  outline-offset: 2px;
}

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

.thumb--busy,
.thumb--file,
.thumb--error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.thumb__progress {
  position: relative;
  width: 56px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--c-paper-200);
}

.thumb__progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  border-radius: 2px;
  background: var(--c-ink-950);
  animation: progress 1.1s var(--ease-out) infinite;
}

@keyframes progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(190%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thumb__progress::after {
    animation: none;
  }
}

.thumb--file {
  color: var(--c-steel-600);
}

.thumb__type {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thumb--error {
  background: var(--c-red-50);
  color: var(--c-red-600);
  box-shadow: inset 0 0 0 2px var(--c-red-600);
}

@media (min-width: 48em) {
  .dropzone {
    flex-direction: row;
    gap: 20px;
    padding: 24px;
    background: var(--c-paper-50);
    text-align: left;
  }

  .dropzone__icon {
    width: 56px;
    height: 56px;
  }

  .dropzone__icon .icon--upload {
    display: block;
  }

  .dropzone__icon .icon--camera {
    display: none;
  }

  .dropzone__body {
    align-items: flex-start;
    gap: 6px;
  }

  .dropzone__btn {
    --btn-h: 44px;
  }


  .thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
  }

  .thumb {
    width: 112px;
    height: 112px;
  }

  .thumb__progress {
    width: 64px;
  }
}

/* Einwilligung und Absenden */
.consent {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-radius: var(--r-xs);
  cursor: pointer;
}

.consent__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 6px;
  background: var(--c-white);
  color: transparent;
  box-shadow: inset 0 0 0 1.5px var(--c-field);
}

.consent__box .icon {
  width: 17px;
  height: 17px;
}

.choice-input:checked ~ .consent__box {
  background: var(--c-ink-950);
  color: var(--c-amber-400);
  box-shadow: none;
}

.consent.is-invalid .consent__box {
  box-shadow: inset 0 0 0 2px var(--c-red-600);
}

.consent__text {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.consent-feedback .field-error {
  margin-left: 40px;
}

.submit-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}

.submit-row .btn {
  --btn-h: 56px;
  width: 100%;
}

.submit-row__note {
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  color: var(--c-steel-600);
}

/* Fehlerübersicht oben im Formular */
.error-summary {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--c-red-50);
  box-shadow: inset 0 0 0 2px var(--c-red-600);
  scroll-margin-top: 6rem;
}

.error-summary > .icon {
  color: var(--c-red-600);
}

.error-summary__title {
  margin: 0 0 6px;
  color: var(--c-red-600);
  font-size: 1rem;
  font-weight: 620;
  font-stretch: normal;
  letter-spacing: 0;
  line-height: 1.4;
}

.error-summary ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.error-summary a {
  color: var(--c-ink-950);
}

.error-summary a:hover {
  color: var(--c-red-600);
}

/* Honigtopf: für Menschen unsichtbar, auch für Bildschirmleser ausgeblendet */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Fortschritt: Kasten am Rand (breit) und Leiste (schmal) */
.progress-nav {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--c-white);
}

.progress-nav__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.6875rem;
}

.progress-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-nav a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  color: var(--c-steel-600);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
}

.progress-nav a:hover {
  color: var(--c-ink-950);
  text-decoration: underline;
}

.progress-nav__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--c-steel-600);
  box-shadow: inset 0 0 0 1.5px var(--c-field);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1;
}

.progress-nav__dot .icon {
  display: none;
  width: 14px;
  height: 14px;
}

.progress-nav a.is-done .progress-nav__dot {
  background: var(--c-green-600);
  color: var(--c-paper-50);
  box-shadow: none;
}

.progress-nav a.is-done .progress-nav__dot .icon {
  display: block;
}

.progress-nav a.is-done .progress-nav__n {
  display: none;
}

.progress-nav a[aria-current="step"] {
  color: var(--c-ink-950);
  font-weight: 620;
}

.progress-nav a[aria-current="step"] .progress-nav__dot {
  background: var(--c-amber-400);
  color: var(--c-ink-950);
  box-shadow: none;
}

.progress-nav a[aria-current="step"] .progress-nav__dot .icon {
  display: none;
}

.progress-nav a[aria-current="step"] .progress-nav__n {
  display: inline;
}

.progress-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 calc(-1 * var(--space-gutter)) 4px;
  padding: 12px var(--space-gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 241, 0.98);
  box-shadow: 0 8px 20px -14px rgba(14, 27, 34, 0.35);
}

.progress-bar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.progress-bar__name {
  font-weight: 620;
}

.progress-bar__count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-steel-600);
}

.progress-bar__segments {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.progress-bar__segments span {
  height: 4px;
  border-radius: 2px;
  background: var(--c-paper-200);
  transition: background-color var(--dur) var(--ease-out);
}

.progress-bar__segments .is-done {
  background: var(--c-ink-950);
}

.progress-bar__segments .is-current {
  background: var(--c-amber-400);
}

/* Server-Meldung im Formularbereich (Antwort ohne Seitenwechsel) */
.server-message:focus {
  outline: none;
}

@media (min-width: 48em) {
  .form-card {
    padding: 8px 32px 32px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--c-white);
    box-shadow: var(--shadow-2);
  }


  .form-section {
    gap: 20px;
    padding-block: 36px;
  }

  .form-section:last-of-type {
    padding-bottom: 0;
  }

  .form-section__title {
    gap: 14px;
  }

  .form-section__num {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hint {
    margin-bottom: 10px;
  }

  .input {
    padding: 0 16px;
  }

  textarea.input {
    min-height: 132px;
    padding: 14px 16px 26px;
  }

  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .choice {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    gap: 14px;
    padding: 14px 16px;
  }

  .choice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--c-paper-100);
    transition: background-color var(--dur-fast) var(--ease-out);
  }

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

  .consent {
    gap: 14px;
  }

  .consent__text {
    font-size: 1rem;
  }

  .consent-feedback .field-error {
    margin-left: 42px;
  }

  .submit-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    padding-top: 8px;
  }

  .submit-row .btn {
    --btn-h: 60px;
    width: auto;
    padding-inline: 30px;
    font-size: 1.125rem;
  }

  .submit-row__note {
    max-width: 36ch;
    font-size: 0.9375rem;
    text-align: left;
  }

  .progress-bar {
    margin-inline: 0;
    margin-bottom: 12px;
    padding-inline: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
  }
}

/* Neben der Abschnittsnavigation sind die Anliegen-Karten schmal; ohne Symbol bleibt Platz für den Titel */
@media (min-width: 64em) and (max-width: 74.99em) {
  .choice {
    grid-template-columns: minmax(0, 1fr) 22px;
  }

  .choice__icon {
    display: none;
  }
}

@media (min-width: 64em) {
  .form-card {
    padding: 8px 40px 40px;
  }

  .progress-bar {
    display: none !important;
  }
}

/* Windows-Kontrastmodus: Schatten fallen weg, deshalb dort die echten Eingabefelder zeigen */
@media (forced-colors: active) {
  .choice-input {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .choice__box,
  .radio-dot,
  .consent__box {
    display: none;
  }

  .choice,
  .keytype,
  .pill {
    border: 1px solid CanvasText;
  }

  .input {
    border: 1px solid CanvasText;
  }
}

/* ------------------------------------------------------------------ Statuskarte (Erfolg, Fehler, 404) */

.status {
  padding-block: 28px var(--space-section);
}

.status-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 720px;
  margin-inline: auto;
}

.status-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-green-100);
  color: var(--c-green-600);
}

.status-card__icon .icon {
  width: 28px;
  height: 28px;
}

.status-card__icon--warn {
  width: 44px;
  height: 44px;
  background: var(--c-red-50);
  color: var(--c-red-600);
}

.status-card__icon--warn .icon {
  width: 24px;
  height: 24px;
}

.status-card__icon--question {
  background: var(--c-paper-100);
  color: var(--c-ink-950);
}

.status-card h1,
.status-card .status-card__title {
  font-size: clamp(1.75rem, 1.611rem + 0.571vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.status-card h2 {
  margin-top: 8px;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.status-card p,
.status-card li {
  color: var(--c-ink-700);
}

.status-card .note p,
.status-card .num-list li {
  color: inherit;
}

.status-card ul.error-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-card ul.error-list li {
  color: var(--c-ink-950);
}

.status-card__small {
  font-size: 0.9375rem;
  color: var(--c-steel-600);
}

.status-card .note {
  align-self: stretch;
}







.status-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
  margin-top: 6px;
}


@media (min-width: 48em) {
  .status {
    padding-top: 56px;
  }

  .status-card {
    gap: 18px;
    padding: 40px 38px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--c-white);
    box-shadow: var(--shadow-2);
  }

  .status-card__icon {
    width: 64px;
    height: 64px;
  }

  .status-card__icon .icon {
    width: 34px;
    height: 34px;
  }

  .status-card__icon--warn {
    width: 44px;
    height: 44px;
  }

  .status-card__icon--warn .icon {
    width: 24px;
    height: 24px;
  }





  .status-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-self: flex-start;
  }
}

/* Server-Meldung im Formular: die Karte steht ohne eigenen Rahmen in der Formularkarte */
.server-message .status-card {
  max-width: none;
  padding: 24px 0 8px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* ------------------------------------------------------------------ Rechtstexte */

.legal {
  padding-block: 32px var(--space-section);
}

.legal__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.legal h2 {
  display: flex;
  gap: 12px;
  margin: 40px 0 12px;
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: 0;
}

.legal__num {
  flex: none;
  padding-top: 0.28em;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  font-stretch: normal;
  line-height: 1;
  color: var(--c-amber-700);
}

.legal h3 {
  margin: 28px 0 8px;
  font-size: clamp(1.125rem, 1.078rem + 0.19vw, 1.25rem);
  letter-spacing: 0;
}

.legal p,
.legal li,
.legal address {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink-700);
}

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

.legal address {
  font-style: normal;
}

.legal strong {
  color: var(--c-ink-950);
}

.legal ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal ul > li {
  position: relative;
  padding-left: 20px;
}

.legal ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-steel-600);
}

.legal a {
  overflow-wrap: anywhere;
}

.legal__stand {
  margin-top: 4px;
}

.legal-box {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: inset 0 0 0 2px var(--c-ink-950);
}

.legal-box p {
  color: var(--c-ink-950);
}

.muster {
  margin-top: 24px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--c-white);
}

.muster > :first-child {
  margin-top: 0;
}

.muster h2 {
  margin-top: 28px;
}

.muster__title {
  font-size: 1.125rem;
}

.fill-list {
  counter-reset: none;
}

.legal .fill-list > li {
  padding-bottom: 4px;
}

.fill-list__space {
  display: block;
  height: 2.2em;
  border-bottom: 1px dotted var(--c-steel-500);
}

/* Noch offene Stellen in den Rechtstexten: bleiben sichtbar, bis Inhaber und Anwalt sie klären */
mark.offen {
  padding: 1px 5px;
  border-radius: var(--r-xs);
  background: var(--c-amber-100);
  color: var(--c-ink-950);
  outline: 1.5px dashed var(--c-amber-700);
  outline-offset: 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.offen__label {
  font-weight: 620;
}

@media (min-width: 48em) {
  .legal-box {
    padding: 20px 24px;
  }

  .muster {
    padding: 32px 36px;
  }

  .legal h2 {
    margin-top: 48px;
  }

  .muster h2 {
    margin-top: 32px;
  }
}

@media (min-width: 64em) {
  .legal {
    padding-top: 72px;
  }
}

/* ------------------------------------------------------------------ Druck */

@media print {
  .site-header,
  .mobile-menu,
  .site-footer,
  .skip-link,
  .cta-band,
  .cta-light {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .muster,
  .legal-box {
    box-shadow: none;
    border: 1px solid #999;
    break-inside: avoid;
  }

  mark.offen {
    outline: 1px dashed #000;
  }
}
