/* =========================================================
   Richard Mertens – Landingpage
   Werte aus dem Design System (design-system/tokens/*.css)
   Mobile first · 0 px Ecken · 3 px nur an Buttons · keine Schatten
   ========================================================= */

/* ---------- Schriften (variable Fonts, lokal) ---------- */
@font-face {
  font-family: 'Source Sans 3';
  src: url('fonts/SourceSans3-variable.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-variable.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Farben */
  --rm-night: #0F1B2D;
  --rm-deep: #1A2A42;
  --rm-deep-line: #2A3B55;
  --rm-gold: #B8964F;
  --rm-gold-dark: #8E7136;
  --rm-gold-hover: #A88844;
  --rm-gold-light: #E3CF9E;
  --rm-gold-light-hover: #D9C186;
  --rm-stone: #ECEBE7;
  --rm-stone-line: #D6D3CB;
  --rm-white: #FFFFFF;
  --rm-ink: #1E2633;
  --rm-ink-2: #4A5361;
  --rm-mist: #C9CFD8;

  /* Schrift */
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Raster & Abstände */
  --container-max: 1240px;
  --page-pad: 20px;
  --gutter: 32px;
  --section-gap: 80px;
  --nav-h: 64px;
  --frame-offset: 16px;

  /* Form & Bewegung */
  --radius-button: 3px;
  --ease-calm: cubic-bezier(.25, .1, .25, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;

  /* Ebenen */
  --z-nav: 50;
}

@media (min-width: 768px) {
  :root {
    --page-pad: 32px;
    --frame-offset: 24px;
  }
}
@media (min-width: 1100px) {
  :root {
    --section-gap: 140px;
    --nav-h: 84px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font: 400 18px/1.6 var(--font-sans);
  color: var(--rm-ink);
  background: var(--rm-white);
}

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

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

::selection { background: var(--rm-gold-light); color: var(--rm-night); }

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

/* Lenis */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--page-pad));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.skip-link {
  position: absolute;
  left: var(--page-pad);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--rm-gold-light);
  color: var(--rm-night);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.hide-xs { display: none; }
@media (min-width: 400px) { .hide-xs { display: inline; } }

/* ---------- Icons (Lucide, Strich) ---------- */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Überzeile ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 13px/1.2 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rm-gold);
}
.eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--rm-gold);
  flex-shrink: 0;
}
.eyebrow--dark { color: var(--rm-gold-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font: 600 16px/1.2 var(--font-sans);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-calm),
    color var(--dur-fast) var(--ease-calm),
    border-color var(--dur-fast) var(--ease-calm);
}
.btn--lg { min-height: 58px; padding: 16px 28px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* Hauptbutton in der Akzentfarbe Gold, Schrift Nachtblau (Kontrast 6,2 : 1) */
.btn--primary {
  background: var(--rm-gold);
  color: var(--rm-night);
}
.btn--primary:hover { background: var(--rm-gold-hover); }

.btn--outline-light {
  background: transparent;
  color: var(--rm-white);
  border-color: rgba(255, 255, 255, .7);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--rm-gold-light);
}

/* Micro-Interactions: Pfeil rückt nach rechts, Hörer neigt sich leicht */
.btn__arrow { transition: transform var(--dur-base) var(--ease-calm); }
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(3px); }

.btn__phone {
  color: var(--rm-gold-light);
  transform-origin: 50% 50%;
  transition: transform var(--dur-base) var(--ease-calm);
}
.btn:hover .btn__phone,
.btn:focus-visible .btn__phone { transform: rotate(-12deg); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-button);
  color: var(--rm-gold-light);
  transition: border-color var(--dur-fast) var(--ease-calm), background-color var(--dur-fast) var(--ease-calm);
}
.icon-btn:hover { border-color: var(--rm-gold-light); background: rgba(255, 255, 255, .06); }

/* ---------- Kopfleiste ---------- */
.topbar {
  display: none;
  background: var(--rm-night);
  border-bottom: 1px solid var(--rm-deep-line);
  color: var(--rm-mist);
  font: 400 14px/1 var(--font-sans);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.topbar__list {
  display: flex;
  gap: 28px;
}
.topbar__list li,
.topbar__list a,
.topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar a {
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-calm);
}
.topbar a:hover { color: var(--rm-white); }
.topbar .icon {
  width: 15px;
  height: 15px;
  color: var(--rm-gold);
}
.topbar__address { display: none; }

@media (min-width: 900px) {
  .topbar { display: block; }
}
@media (min-width: 1100px) {
  .topbar__address { display: inline-flex; }
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--rm-night);
  border-bottom: 1px solid var(--rm-deep-line);
  transition: border-color var(--dur-base) var(--ease-calm);
}
.site-nav.is-scrolled { border-bottom-color: rgba(184, 150, 79, .45); }

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
}
.brand__name {
  font: 500 20px/1 var(--font-serif);
  color: var(--rm-white);
  letter-spacing: .005em;
  white-space: nowrap;
}
.brand__sub {
  font: 600 10px/1.2 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rm-gold);
  white-space: nowrap;
}

.site-nav__links { display: none; }

/* Sprachumschalter DE | EN – klein und unauffällig */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: .08em;
  color: var(--rm-mist);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--rm-mist);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-calm);
}
.lang-switch a:hover { color: var(--rm-white); }
.lang-switch a[aria-current="true"] {
  color: var(--rm-gold-light);
  text-decoration: underline;
  text-decoration-color: var(--rm-gold);
  text-underline-offset: 6px;
}
.lang-switch__sep { color: var(--rm-deep-line); }
@media (max-width: 479px) {
  .site-nav__inner { gap: 8px; }
  .site-nav__actions { gap: 4px; }
  .site-nav__actions .btn--sm { padding: 10px 12px; }
  .lang-switch { gap: 0; }
  .lang-switch a { min-width: 24px; padding: 0 2px; }
}
@media (max-width: 399px) {
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 9px; letter-spacing: .14em; }
}

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

@media (min-width: 1100px) {
  .brand__name { font-size: 23px; }
  .brand__sub { font-size: 11px; }

  .site-nav__inner { gap: 40px; }

  .site-nav__links {
    display: flex;
    gap: 34px;
    margin-left: auto;
  }
  .site-nav__links a {
    position: relative;
    padding-bottom: 6px;
    font: 500 15px/1.2 var(--font-sans);
    color: var(--rm-white);
    text-decoration: none;
  }
  /* goldene 1-px-Linie wächst beim Hover von links */
  .site-nav__links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--rm-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--dur-base) var(--ease-calm);
  }
  .site-nav__links a:hover::after,
  .site-nav__links a:focus-visible::after { transform: scaleX(1); }

  .site-nav__actions .icon-btn { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--rm-night);
  color: var(--rm-white);
  overflow: hidden;
}

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

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  container-type: inline-size;
}

/* Die Schriftgröße richtet sich nach der Breite der Textspalte: Die hinterlegte Zeile
   ist ca. 12,3 em breit und soll – wo möglich – immer in eine Zeile passen. */
.hero__title {
  font: 500 clamp(2.25rem, 100cqi / 12.3, 3.4rem)/1.12 var(--font-serif);
  letter-spacing: -.01em;
}
.hero__line { display: block; }

/* gold hinterlegte Zeile – Hintergrund läuft bei Umbruch pro Zeile mit */
.hero__hl {
  display: block;
  margin-top: .12em;
  margin-left: -.2em;
  line-height: 1.3;
  text-wrap: balance;
}
/* passt die Zeile bei Mindestgröße in die Spalte (≥ 2.25rem × 12.3), bricht sie nie um */
@container (min-width: 443px) {
  .hero__hl { white-space: nowrap; }
}
.hero__hl-text {
  padding: .02em .2em .08em;
  background: var(--rm-gold);
  color: var(--rm-night);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  max-width: 34em;
  font: 400 18px/1.6 var(--font-sans);
  color: var(--rm-mist);
}

.checklist {
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--rm-white);
}
.checklist .icon {
  margin-top: 1px;
  color: var(--rm-gold);
  stroke-width: 2;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* Mobil: Buttons vor die Häkchen, damit der Anruf ohne Scrollen erreichbar ist */
.hero__ctas { order: 1; }
.hero__note { order: 2; }
.hero__content .checklist { order: 3; }
.hero__ctas .btn { width: 100%; }

.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--rm-mist);
}
.hero__note .icon {
  width: 16px;
  height: 16px;
  color: var(--rm-gold);
}

/* ---------- Bild (gemeinsam) ---------- */
.hero__media {
  position: relative;
}
.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
}
.hero__media img {
  object-fit: cover;
}

/* ---------- Vertrauensleiste ---------- */
.hero__trust {
  position: relative;
  border-top: 1px solid var(--rm-deep-line);
  background: var(--rm-night);
}
.trust {
  display: grid;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}
.trust__item + .trust__item { border-top: 1px solid var(--rm-deep-line); }

.trust__figure {
  min-width: 2.6em;
  font: 500 30px/1 var(--font-serif);
  color: var(--rm-gold-light);
}
.trust__icon {
  width: 30px;
  height: 30px;
  margin-right: 48px; /* 30 + 48 = Breite der Zahlenspalte (2.6em × 30px) → gleiche Textkante */
  color: var(--rm-gold);
  stroke-width: 1.25;
}
.trust__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--rm-mist);
}
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--rm-gold);
}

@media (min-width: 768px) {
  .hero__ctas,
  .hero__note,
  .hero__content .checklist { order: 0; }

  .hero__content { gap: 26px; }
  .hero__lead { font-size: 19px; line-height: 1.55; }
  .checklist li { font-size: 18px; }

  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero__ctas .btn { width: auto; }

  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__item { padding: 26px 0; }
  .trust__item + .trust__item {
    border-top: 0;
    border-left: 1px solid var(--rm-deep-line);
    padding-left: var(--gutter);
  }
}

/* ---------------------------------------------------------
   Hero-Bild
   Mobil: Bild oben komplett sichtbar, unten fließt es ins Nachtblau.
   900–1199 px: ganzes Querformat rechts, fließt zu allen Seiten ins Nachtblau.
   Desktop: Foto in voller Sektionshöhe rechts, links lang gezogener Übergang.
   --------------------------------------------------------- */
.hero__media {
  order: -1;
  margin-inline: calc(var(--page-pad) * -1);
  aspect-ratio: 16 / 9;
}
/* Ausschnitt unten verankert: oben wird etwas Regal abgeschnitten, Richard sitzt komplett am Tisch */
.hero__media img { object-position: 50% 100%; }

.hero__content {
  position: relative;
  z-index: 2; /* Text liegt immer über Bild und Schleier */
  padding-top: 24px;
  padding-bottom: 56px;
}

/* Ab Tablet quer: Bild sitzt rechts in der Sektion, Text links */
@media (min-width: 900px) {
  .hero__stage {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(600px, calc(100svh - 124px - 100px), 800px);
  }
  .hero__grid { position: static; }

  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    aspect-ratio: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .hero__content {
    max-width: 470px;
    margin: 0;
    padding-block: 44px 48px;
  }
}

/* 900–1199 px: Die Sektion ist hier hoch und schmal. Ein randloses Bild müsste Richard
   anschneiden – daher steht das ganze Querformat rechts und fließt zu allen Seiten
   (außer rechts) ins Nachtblau. */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero__media {
    display: flex;
    align-items: center;
    width: 54%;
  }
  .hero__media picture { height: auto; }
  .hero__media img {
    height: auto;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 24%),
      linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(90deg, transparent 0%, #000 24%),
      linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
            mask-composite: intersect;
  }
}

/* Desktop: eigene breite Bildfassung (richard-hero-wide-*, 2,1 : 1). Darin ist das linke
   Viertel des Fotos fließend in die Länge gezogen – nach links hin immer stärker – und die
   rechte Seite mit Richard unverändert. Volle Sektionshöhe, Richard komplett sichtbar; der
   Übergang ins Nachtblau läuft über die halbe Fläche, ohne dass sich Richards Position ändert.
   Richards Bereich entspricht den rechten 71,43 % der Fläche (Foto 1,5 von 2,1). */
@media (min-width: 1200px) {
  .hero__media {
    width: auto;
    aspect-ratio: 2.1 / 1;
    /* Foto ragt 20 % seiner Breite über den rechten Rand (= 14,29 % der Gesamtfläche) */
    transform: translateX(14.29%);
    /* weiche Kurve über die halbe Fläche → keine sichtbare Kante */
    -webkit-mask-image: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 0, 0, .03) 5%,
      rgba(0, 0, 0, .09) 10%,
      rgba(0, 0, 0, .18) 15%,
      rgba(0, 0, 0, .3) 20%,
      rgba(0, 0, 0, .44) 25%,
      rgba(0, 0, 0, .58) 30%,
      rgba(0, 0, 0, .72) 35%,
      rgba(0, 0, 0, .84) 40%,
      rgba(0, 0, 0, .93) 45%,
      rgba(0, 0, 0, .985) 49%,
      #000 52%);
            mask-image: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 0, 0, .03) 5%,
      rgba(0, 0, 0, .09) 10%,
      rgba(0, 0, 0, .18) 15%,
      rgba(0, 0, 0, .3) 20%,
      rgba(0, 0, 0, .44) 25%,
      rgba(0, 0, 0, .58) 30%,
      rgba(0, 0, 0, .72) 35%,
      rgba(0, 0, 0, .84) 40%,
      rgba(0, 0, 0, .93) 45%,
      rgba(0, 0, 0, .985) 49%,
      #000 52%);
  }
  .hero__media img { object-position: 50% 50%; }

  /* Nachtblau-Schleier über dem gedehnten Bereich: zieht den Übergang zusätzlich */
  .hero__media::before,
  .hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }
  .hero__media::before {
    background: linear-gradient(90deg,
      rgba(15, 27, 45, .8) 0%,
      rgba(15, 27, 45, .62) 15%,
      rgba(15, 27, 45, .42) 28%,
      rgba(15, 27, 45, .2) 38%,
      rgba(15, 27, 45, .06) 45%,
      rgba(15, 27, 45, 0) 50%);
  }
  /* unterer Rand läuft weich in die Vertrauensleiste */
  .hero__media::after {
    background: linear-gradient(0deg, var(--rm-night) 0%, rgba(15, 27, 45, 0) 14%);
  }

  .hero__content { max-width: 560px; }
}

/* ab 1440 px ragt das Foto nur 14 % über den Rand (= 10 % der Gesamtfläche) */
@media (min-width: 1440px) {
  .hero__media { transform: translateX(10%); }
}

/* =========================================================
   SEKTIONEN – gemeinsame Bausteine
   ========================================================= */
.section {
  padding-block: var(--section-gap);
  background: var(--rm-white);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}
.section-title {
  font: 500 clamp(2rem, 1.55rem + 1.9vw, 2.75rem)/1.15 var(--font-serif);
  letter-spacing: -.005em;
  color: var(--rm-ink);
  text-wrap: balance;
}
.section-lead {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--rm-ink);
}

@media (min-width: 768px) {
  .section-head { gap: 24px; margin-bottom: 72px; }
  .section-lead { font-size: 20px; line-height: 1.55; }
}

.section--alt { background: var(--rm-stone); }

/* Textlink mit Pfeil (gold-dunkel → Tinte) */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--rm-gold-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-calm);
}
.text-link:hover { color: var(--rm-ink); }
button.text-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-link:hover .btn__arrow,
.text-link:focus-visible .btn__arrow { transform: translateX(3px); }

/* =========================================================
   LEISTUNGEN – weiße, eckige Karten auf Hellgrau
   ========================================================= */
.services__grid {
  display: grid;
  gap: 16px;
}
.service {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 32px 28px;
  background: var(--rm-white);
  border-top: 2px solid var(--rm-gold);
}
.service__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  color: var(--rm-gold);
  stroke-width: 1.25;
}
.service__title {
  font: 600 clamp(1.3rem, 1.15rem + .6vw, 1.5rem)/1.3 var(--font-serif);
  color: var(--rm-ink);
}
.service__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--rm-ink-2);
}

.services__more {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 28px;
  border: 1px solid var(--rm-stone-line);
  background: rgba(255, 255, 255, .5);
}
.services__more-icon {
  width: 36px;
  height: 36px;
  color: var(--rm-gold);
  stroke-width: 1.25;
}
.services__more-body { display: grid; gap: 6px; }
.services__more-title {
  font: 600 1.2rem/1.3 var(--font-serif);
  color: var(--rm-ink);
}
.services__more-body p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--rm-ink-2);
}

@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .service { padding: 40px 36px; }
  .services__more {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
    padding: 28px 36px;
  }
}
@media (min-width: 1200px) {
  .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service__icon { width: 56px; height: 56px; }
}

/* =========================================================
   VORTEILE & ERGEBNIS – nummerierte Liste + dunkler Kasten
   ========================================================= */
.benefits__grid {
  display: grid;
  gap: 56px;
}

.numbered { margin: 0; padding: 0; list-style: none; }
.numbered__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--rm-stone-line);
}
.numbered__item:last-child { border-bottom: 1px solid var(--rm-stone-line); }
.numbered__index {
  padding-top: 6px;
  font: 600 15px/1 var(--font-sans);
  letter-spacing: .12em;
  color: var(--rm-gold-dark);
}
.numbered__title {
  margin-bottom: 8px;
  font: 600 clamp(1.3rem, 1.15rem + .6vw, 1.5rem)/1.3 var(--font-serif);
  color: var(--rm-ink);
}
.numbered__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--rm-ink-2);
  max-width: 36em;
}

.why {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 24px;
  padding: 36px 28px;
  background: var(--rm-night);
  color: var(--rm-white);
}
.why__title {
  font: 500 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.2 var(--font-serif);
}
.why__list li { font-size: 17px; }
.why__cta { width: 100%; }
.why__note {
  font-size: 15px;
  color: var(--rm-mist);
}

@media (min-width: 768px) {
  .numbered__item { grid-template-columns: 64px 1fr; padding: 32px 0; }
  .why { padding: 48px 44px; }
  .why__list li { font-size: 18px; }
  .why__cta { width: auto; }
}
@media (min-width: 1100px) {
  .benefits__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 80px;
    align-items: start;
  }
  /* dunkler Kasten auf Höhe der Liste */
  .why { margin-top: 120px; }
}

/* =========================================================
   MANDANTENSTIMME – großes Zitat, Schach abgedunkelt
   ========================================================= */
.quote-feature {
  position: relative;
  overflow: hidden;
  padding-block: 56px;
  background: var(--rm-night);
  color: var(--rm-white);
}
.quote-feature__bg,
.quote-feature__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.quote-feature__bg img {
  object-fit: cover;
  object-position: 50% 60%;
}
.quote-feature__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, .82);
}
.quote-feature__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.quote-feature .eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--rm-gold);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--rm-mist);
}
.quote-feature__figure { margin: 0; display: grid; gap: 18px; justify-items: center; }
.quote-feature__text { margin: 0; max-width: 1040px; }
.quote-feature__text p {
  font: 400 clamp(1.3rem, 1.05rem + 1vw, 1.75rem)/1.45 var(--font-serif);
  text-wrap: balance;
}
.quote-feature__source {
  font: 600 13px/1.2 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rm-gold);
}
@media (min-width: 768px) {
  .quote-feature { padding-block: 64px; }
}

/* =========================================================
   WEITERE BEWERTUNGEN – mobil untereinander, ab Tablet 2 × 2
   ========================================================= */
.reviews .section-head { margin-bottom: 40px; }
/* mobil: Slider mit gleich hohen Karten. Nur die lange Stimme ist auf die Höhe der
   übrigen gekürzt und lässt sich mit „Weiterlesen“ in der Karte aufklappen. */
.reviews__track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: 0 var(--page-pad) 4px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--page-pad);
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 86%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: 16px;
  padding: 28px 24px;
  background: var(--rm-white);
  border-top: 2px solid var(--rm-gold);
  scroll-snap-align: start;
}
.review--long { grid-template-rows: auto auto auto 1fr; }
.review--long .review__source { align-self: end; }
.review--long .review__text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}
.review.is-open .review__text p {
  display: block;
  -webkit-line-clamp: unset;
}
.review__more {
  justify-self: start;
  min-height: 32px;
  margin-top: -6px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 15px/1 var(--font-sans);
  color: var(--rm-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Punkte unter dem Slider */
.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}
.reviews__dots button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.reviews__dots button::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  background: var(--rm-stone-line);
  transition: background-color var(--dur-fast) var(--ease-calm);
}
.reviews__dots button[aria-current="true"]::before { background: var(--rm-gold); }
.review .stars svg { width: 18px; height: 18px; }
.review__text { margin: 0; }
.review__text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--rm-ink);
}
.review__source {
  font: 600 12px/1.3 var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rm-gold-dark);
}

@media (min-width: 768px) {
  .reviews .section-head { margin-bottom: 56px; }
  .reviews__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: calc(var(--container-max) + 2 * var(--page-pad));
    margin-inline: auto;
    overflow: visible;
  }
  .review,
  .review--long { grid-template-rows: auto 1fr auto; padding: 40px 36px; }
  .review--long .review__text p { display: block; -webkit-line-clamp: unset; }
  .review__more,
  .reviews__dots { display: none; }
}
/* 2 × 2: lange und kurze Stimmen sind paarweise kombiniert, Karten einer Reihe gleich hoch,
   die Quelle sitzt immer unten – dadurch wirkt das Raster ruhig trotz unterschiedlicher Längen */
@media (min-width: 768px) {
  .review { grid-template-rows: auto 1fr auto; }
}
@media (min-width: 1200px) {
  .review { padding: 44px 48px; }
  .review__text p { font-size: 18px; }
}

/* =========================================================
   ABLAUF – vier Schritte; mobil senkrechte, ab Desktop waagerechte Goldlinie
   ========================================================= */
.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 0 0 36px 64px;
}
.step:last-child { padding-bottom: 0; }
/* Linie zwischen den Nummern */
.step::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--rm-gold);
  opacity: .5;
}
.step:last-child::before { display: none; }
.step__index {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rm-gold);
  font: 600 15px/1 var(--font-sans);
  letter-spacing: .08em;
  color: var(--rm-gold-dark);
  background: var(--rm-white);
}
.step__title {
  padding-top: 8px;
  font: 600 clamp(1.3rem, 1.15rem + .6vw, 1.5rem)/1.3 var(--font-serif);
  color: var(--rm-ink);
}
.step__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--rm-ink-2);
  max-width: 34em;
}
.process__cta { margin-top: 48px; }
.process__cta .btn { width: 100%; }

@media (min-width: 768px) {
  .process__cta .btn { width: auto; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
  .step { padding: 72px 0 0; }
  .step::before {
    left: 52px;
    right: -40px;
    top: 22px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .process__cta { margin-top: 64px; }
}

/* =========================================================
   ÜBER MICH – Porträt mit versetztem Goldrahmen, Text rechts
   ========================================================= */
.about__grid {
  display: grid;
  gap: 56px;
}
.about__media {
  position: relative;
  width: calc(100% - var(--frame-offset));
  max-width: 480px;
  margin: 0;
  aspect-ratio: 4 / 5;
}
.about__media picture {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__frame {
  position: absolute;
  top: var(--frame-offset);
  left: var(--frame-offset);
  right: calc(var(--frame-offset) * -1);
  bottom: calc(var(--frame-offset) * -1);
  border: 1px solid var(--rm-gold);
}
.about__content {
  display: grid;
  justify-items: start;
  gap: 24px;
}
.about__text { display: grid; gap: 16px; }
.about__text p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--rm-ink);
  max-width: 36em;
}
.checklist--light li { color: var(--rm-ink); }
.about__cta { width: 100%; margin-top: 8px; }

@media (min-width: 768px) {
  .about__cta { width: auto; }
}
@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 96px;
    align-items: center;
  }
  .about__media { max-width: none; }
}

/* =========================================================
   FAQ – Fragen zum Aufklappen, eckig, goldenes Plus, 1-px-Linien
   ========================================================= */
.faq__grid { display: grid; }
.accordion { border-top: 1px solid var(--rm-stone-line); }
.accordion__item { border-bottom: 1px solid var(--rm-stone-line); }
.accordion__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  font: 600 clamp(1.15rem, 1.05rem + .45vw, 1.35rem)/1.35 var(--font-serif);
  color: var(--rm-ink);
  list-style: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-calm);
}
.accordion__q::-webkit-details-marker { display: none; }
.accordion__q:hover { color: var(--rm-gold-dark); }
.accordion__plus {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform var(--dur-base) var(--ease-calm);
}
.accordion__plus::before,
.accordion__plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--rm-gold);
  transform: translateY(-50%);
}
.accordion__plus::after { transform: translateY(-50%) rotate(90deg); }
.accordion__item[open] .accordion__plus { transform: rotate(45deg); }
.accordion__a { padding: 0 48px 28px 0; }
.accordion__a p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--rm-ink-2);
  max-width: 40em;
}

@media (min-width: 1100px) {
  .faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 96px;
    align-items: start;
  }
  .faq__head { margin-bottom: 0; }
}

.accordion__a { display: grid; gap: 14px; }
.accordion__a a { color: var(--rm-gold-dark); }
.accordion__a a:hover { color: var(--rm-ink); }

/* =========================================================
   KONTAKT – Infos + Monument links, Formular rechts
   ========================================================= */
.contact__grid { display: grid; gap: 48px; }
.contact__info {
  display: grid;
  align-content: start;
  gap: 22px;
}
.contact__details {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.contact__details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--rm-ink);
}
.contact__details .icon { color: var(--rm-gold); }
.contact__details a {
  color: var(--rm-ink);
  text-decoration: underline;
  text-decoration-color: var(--rm-gold);
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease-calm);
}
.contact__details a:hover { color: var(--rm-gold-dark); }
.contact__media {
  margin: 12px 0 0;
  aspect-ratio: 4 / 3;
}
.contact__media img { width: 100%; height: 100%; object-fit: cover; }

.contact-form {
  display: grid;
  gap: 20px;
  padding: 28px 22px;
  background: var(--rm-white);
  border-top: 2px solid var(--rm-gold);
}
/* Fallen-Feld für Spam-Bots: außerhalb des Bildschirms, für Menschen unsichtbar */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form { position: relative; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 20px; }
.field label {
  font: 600 15px/1.3 var(--font-sans);
  color: var(--rm-ink);
}
.field__opt { font-weight: 400; color: var(--rm-ink-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--rm-stone-line);
  border-radius: 0;
  background: var(--rm-white);
  font: 400 17px/1.4 var(--font-sans);
  color: var(--rm-ink);
  transition: border-color var(--dur-fast) var(--ease-calm);
}
.field textarea { resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--rm-gold); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--rm-gold);
  outline-offset: 0;
  border-color: var(--rm-gold);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #A33A2C; }
.field__error { font-size: 15px; color: #A33A2C; }

.contact-form__submit { width: 100%; margin-top: 4px; }
.contact-form__submit[disabled] { opacity: .6; cursor: wait; }
.contact-form__note {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--rm-ink-2);
}
.contact-form__note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--rm-gold); }
.contact-form__note a { color: var(--rm-gold-dark); }
.contact-form__status:empty { display: none; }
.contact-form__status {
  padding: 16px 18px;
  border-left: 2px solid var(--rm-gold);
  background: var(--rm-stone);
  font-size: 17px;
  color: var(--rm-ink);
}
.contact-form__status.is-error { border-left-color: #A33A2C; }

@media (min-width: 768px) {
  .contact-form { padding: 44px 40px; gap: 22px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .contact-form__submit { width: auto; justify-self: start; }
}
@media (min-width: 1100px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 80px;
    align-items: start;
  }
}

/* =========================================================
   PROBLEME
   Vier Fragen im Raster; feine 1-px-Linien nur zwischen den Feldern
   ========================================================= */
.problems__grid { display: grid; }

.problem {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 32px 0;
}
.problem + .problem { border-top: 1px solid var(--rm-stone-line); }
.problem:first-child { padding-top: 0; }
.problem:last-child { padding-bottom: 0; }

.problem__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.problem__icon {
  width: 48px;
  height: 48px;
  color: var(--rm-gold);
  stroke-width: 1.25;
}
.problem__index {
  font: 600 15px/1 var(--font-sans);
  letter-spacing: .12em;
  color: var(--rm-gold-dark);
}
.problem__title {
  font: 600 clamp(1.3rem, 1.15rem + .6vw, 1.5rem)/1.3 var(--font-serif);
  color: var(--rm-ink);
}
.problem__text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--rm-ink-2);
  max-width: 34em;
}

.problems__closing {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-top: 56px;
  font: 400 clamp(1.35rem, 1.15rem + .8vw, 1.75rem)/1.4 var(--font-serif);
  color: var(--rm-ink);
  text-wrap: balance;
}
/* kurze goldene Linie als Auftakt */
.problems__closing::before {
  content: '';
  width: 56px;
  height: 1px;
  background: var(--rm-gold);
}

@media (min-width: 768px) {
  .problems__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Linienkreuz: senkrecht zwischen den Spalten, waagerecht zwischen den Reihen */
  .problem:nth-child(2) { border-top: 0; }
  .problem:nth-child(even) { border-left: 1px solid var(--rm-stone-line); }

  .problem,
  .problem:first-child,
  .problem:last-child { padding: 44px 48px 44px 0; }
  .problem:nth-child(even) { padding: 44px 0 44px 48px; }
  /* obere Reihe ohne Abstand nach oben, untere ohne Abstand nach unten */
  .problem:nth-child(-n+2) { padding-top: 0; }
  .problem:nth-last-child(-n+2) { padding-bottom: 0; }

  .problems__closing { margin-top: 80px; }
}

@media (min-width: 1100px) {
  .problem,
  .problem:first-child,
  .problem:last-child { padding-right: 72px; }
  .problem:nth-child(even) { padding-left: 72px; padding-right: 0; }
  .problem:nth-child(-n+2) { padding-top: 0; }
  .problem:nth-last-child(-n+2) { padding-bottom: 0; }
  .problem__icon { width: 56px; height: 56px; }
}

/* =========================================================
   ÜBERGANG – Justitia, abgedunkelt, großer CTA
   ========================================================= */
.bridge {
  position: relative;
  overflow: hidden;
  padding-block: 84px;
  background: var(--rm-night);
  color: var(--rm-white);
}
/* Bild steht rechts in voller Höhe und im Originalformat (Kopf und Waage komplett),
   links läuft es weich ins Nachtblau */
.bridge__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  aspect-ratio: 2000 / 1220;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 20%, rgba(0, 0, 0, .8) 40%, #000 55%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 20%, rgba(0, 0, 0, .8) 40%, #000 55%);
}
.bridge__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
/* Nachtblau-Schleier über dem Bild */
.bridge__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 27, 45, .78) 0%, rgba(15, 27, 45, .45) 100%);
}
/* Desktop: der Grund hellt sich schon hinter dem Text auf und führt so ins Bild */
@media (min-width: 768px) {
  .bridge {
    background: linear-gradient(90deg, var(--rm-night) 0%, var(--rm-night) 12%, #232F42 45%, #2B3648 100%);
  }
}
.bridge__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 22px;
}
/* Textspalte bleibt links vom Justitia-Bild */
.bridge__inner > * { max-width: 640px; }
.bridge__title {
  font: 500 clamp(2rem, 1.4rem + 2.6vw, 3.25rem)/1.15 var(--font-serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.bridge__text {
  max-width: 34em;
  font-size: 18px;
  line-height: 1.6;
  color: var(--rm-mist);
}
.bridge__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.bridge__ctas .btn { width: 100%; }
.bridge__note {
  font-size: 15px;
  color: var(--rm-mist);
}

/* Mobil: Bild als Band oben, komplett sichtbar, läuft nach unten ins Nachtblau */
@media (max-width: 767px) {
  .bridge { padding-top: calc(100vw * 1220 / 2000 * .8); }
  .bridge__bg {
    left: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
}

@media (min-width: 768px) {
  .bridge { padding-block: 88px; }
  .bridge__text { font-size: 20px; line-height: 1.55; }
  .bridge__ctas { flex-direction: row; flex-wrap: wrap; gap: 16px; width: auto; }
  .bridge__ctas .btn { width: auto; }
}

/* =========================================================
   FOOTER – Nachtblau, Abschlusszeile, Kontakt, Rechtliches
   ========================================================= */
.site-footer {
  padding-block: 72px 32px;
  background: var(--rm-night);
  color: var(--rm-mist);
  font-size: 16px;
}
.site-footer a {
  color: var(--rm-white);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-calm);
}
.site-footer a:hover { color: var(--rm-gold-light); }
.site-footer a.btn { color: var(--rm-night); }
.site-footer__top {
  display: grid;
  justify-items: start;
  gap: 28px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rm-deep-line);
}
.site-footer__claim {
  font: 500 clamp(1.9rem, 1.4rem + 2vw, 2.9rem)/1.15 var(--font-serif);
  color: var(--rm-white);
  text-wrap: balance;
}
.site-footer__grid {
  display: grid;
  gap: 28px;
  padding-block: 40px;
}
.site-footer__name {
  font: 500 20px/1.3 var(--font-serif);
  color: var(--rm-white);
}
.site-footer__sub {
  margin-top: 6px;
  font: 600 11px/1.2 var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rm-gold);
}
.site-footer__contact { font-style: normal; line-height: 1.8; }
.site-footer__links { display: grid; gap: 8px; align-content: start; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rm-deep-line);
  font-size: 14px;
}
.site-footer__legal { display: flex; gap: 24px; }

@media (min-width: 768px) {
  .site-footer { padding-block: 96px 36px; }
  .site-footer__top {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding-bottom: 56px;
  }
  .site-footer__grid { grid-template-columns: 2fr 2fr 1fr; padding-block: 48px; }
}

.site-footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--rm-white);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-calm);
}
.site-footer__legal button:hover { color: var(--rm-gold-light); }

/* =========================================================
   CONSENT-BANNER
   Nicht blockierend (unten), „Ablehnen“ und „Akzeptieren“ gleichwertig gestaltet
   ========================================================= */
.cc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0 12px 12px;
  pointer-events: none;
}
.cc[hidden] { display: none; }
.cc__inner {
  max-width: 760px;
  max-height: min(85vh, 760px);
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px;
  background: var(--rm-white);
  border: 1px solid var(--rm-stone-line);
  border-top: 2px solid var(--rm-gold);
  color: var(--rm-ink);
  pointer-events: auto;
}
.cc__view { display: grid; gap: 14px; }
.cc__view[hidden] { display: none; }
.cc__title {
  font: 600 1.3rem/1.3 var(--font-serif);
  color: var(--rm-ink);
}
.cc__title:focus { outline: none; }
.cc__text { font-size: 15px; line-height: 1.55; color: var(--rm-ink); }
.cc__links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.cc__links a { color: var(--rm-gold-dark); text-underline-offset: 3px; }
.cc__links a:hover { color: var(--rm-ink); }
.cc__actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
/* gleiche Größe, Farbe und Kontrast für alle Entscheidungs-Buttons */
.cc__btn {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--rm-night);
  border-radius: var(--radius-button);
  background: var(--rm-night);
  color: var(--rm-white);
  font: 600 16px/1.2 var(--font-sans);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-calm);
}
.cc__btn:hover { background: var(--rm-deep); }
.cc__link {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: none;
  font: 600 16px/1.2 var(--font-sans);
  color: var(--rm-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cc__link:hover { color: var(--rm-gold-dark); }

.cc__cats { display: grid; border-top: 1px solid var(--rm-stone-line); }
.cc__cat {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rm-stone-line);
}
.cc__cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cc__cat-label { font: 600 16px/1.3 var(--font-sans); cursor: pointer; }
.cc__cat-text { font-size: 15px; line-height: 1.5; color: var(--rm-ink-2); }

/* Schalter: eckig, im Ruhezustand grau, aktiv Nachtblau */
.cc__switch {
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 26px;
  margin: 0;
  border: 1px solid var(--rm-ink-2);
  border-radius: 0;
  background: var(--rm-stone);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-calm);
}
.cc__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--rm-ink-2);
  transition: transform var(--dur-base) var(--ease-calm), background-color var(--dur-fast);
}
.cc__switch:checked { background: var(--rm-night); border-color: var(--rm-night); }
.cc__switch:checked::after { transform: translateX(22px); background: var(--rm-white); }
.cc__switch:disabled { cursor: not-allowed; opacity: .6; }
.cc__switch:focus-visible { outline: 2px solid var(--rm-gold); outline-offset: 2px; }

.cc__details summary {
  width: max-content;
  font-size: 14px;
  font-weight: 600;
  color: var(--rm-gold-dark);
  cursor: pointer;
}
.cc__details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 10px 0 4px;
  font-size: 14px;
  line-height: 1.45;
}
.cc__details dt { font-weight: 600; }
.cc__details dd { margin: 0; color: var(--rm-ink-2); }

/* Desktop: erste Ebene breit und flach – Text links, Buttons rechts */
@media (min-width: 1000px) {
  .cc__inner { max-width: 1240px; padding: 24px 32px; }
  .cc__view[data-cc-view="main"] {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 48px;
    row-gap: 8px;
    align-items: center;
  }
  .cc__view[data-cc-view="main"] > .cc__title,
  .cc__view[data-cc-view="main"] > .cc__text,
  .cc__view[data-cc-view="main"] > .cc__links { grid-column: 1; }
  .cc__view[data-cc-view="main"] > .cc__title { font-size: 1.15rem; }
  .cc__view[data-cc-view="main"] > .cc__actions {
    grid-column: 2;
    grid-row: 1 / span 3;
    grid-template-columns: repeat(2, 200px);
    margin-top: 0;
  }
  /* Einstellungen bleiben übersichtlich mittig */
  .cc__view[data-cc-view="settings"] { max-width: 760px; margin-inline: auto; }
}

@media (max-width: 479px) {
  .cc__details dl { grid-template-columns: 1fr; }
  .cc__details dd { margin-bottom: 6px; }
}
@media (min-width: 640px) {
  .cc { padding: 0 24px 24px; }
  .cc__inner { padding: 28px 32px; }
  .cc__actions { grid-template-columns: 1fr 1fr; align-items: center; }
  .cc__view[data-cc-view="main"] .cc__link { grid-column: 1 / -1; justify-self: center; }
  .cc__view[data-cc-view="settings"] .cc__actions { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   RECHTSTEXTE (Datenschutz)
   ========================================================= */
.legal { padding-block: 64px 96px; background: var(--rm-white); }
.legal__inner { max-width: 780px; }
.legal h1 {
  margin: 16px 0 12px;
  font: 500 clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem)/1.15 var(--font-serif);
  color: var(--rm-ink);
}
.legal__meta { margin-bottom: 40px; font-size: 15px; color: var(--rm-ink-2); }
.legal h2 {
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rm-stone-line);
  font: 600 clamp(1.35rem, 1.2rem + .6vw, 1.6rem)/1.3 var(--font-serif);
  color: var(--rm-ink);
}
.legal h3 {
  margin: 28px 0 10px;
  font: 600 18px/1.4 var(--font-sans);
  color: var(--rm-ink);
}
.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--rm-ink);
}
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--rm-gold-dark); }
.legal .todo {
  padding: 2px 6px;
  background: #FFF3C4;
  font-weight: 600;
}
.legal__back { display: inline-flex; margin-bottom: 8px; }

/* =========================================================
   Reduzierte Bewegung
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
