/* =========================================================
   SDG Service- und Dienstleistungsgesellschaft mbH
   Stylesheet – selbst gehostet, keine externen Abhängigkeiten
   ========================================================= */

/* ---------- Schriften (self-hosted, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.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+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.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: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/playfair-latin.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+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/playfair-latin-ext.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;
}
/* Echte Kursive – ohne diese Datei würde der Browser die Schrägstellung
   fälschen, was bei einer Serifenschrift sofort unsauber aussieht. */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/playfair-italic-latin.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+2074, U+20AC, U+2122, U+2191,
                 U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design-Tokens ---------- */
:root {
  /* Markenfarben, aus logo.png ausgelesen (#a11a16 Rot, #53504e Grau) */
  --brand:        #a11a16;   /* 7.9:1 auf Weiß  – als Fließtextfarbe zulässig */
  --brand-dark:   #7d120f;   /* 10.5:1 auf Weiß – Hover/Aktiv */
  --brand-tint:   #fbf2f1;
  --brand-line:   #eedcda;

  /* Neutrale Töne, warm auf das Logo-Grau abgestimmt */
  --ink:          #1b1917;   /* Überschriften  – 16.4:1 auf Weiß */
  --ink-body:     #3c3835;   /* Fließtext      – 11.4:1 auf Weiß */
  --ink-muted:    #5f5a57;   /*                –  6,8:1 auf Weiß (AA, knapp unter AAA) */
  --paper:        #ffffff;
  --sand:         #faf7f3;
  --sand-deep:    #f2ece3;
  --line:         #e7e0d6;
  --line-strong:  #948a80;   /* 3,4:1 auf Weiß, 3,2:1 auf --sand – Rahmen von Bedienelementen (WCAG 1.4.11) */

  /* Fokus: bewusst nicht markenrot, damit der Ring auch auf roten
     Flächen trägt. Tiefes Navy, 12:1 gegen Weiß. */
  --focus:        #14314e;

  /* Typografie */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  /* Fluide Skala – Basis 18 px, Untergrenze für alles 16 px (Zielgruppe 50+) */
  --fs-base:  clamp(1.125rem, 1.09rem + 0.18vw, 1.1875rem);  /* 18 → 19 px */
  --fs-lead:  clamp(1.1875rem, 1.10rem + 0.45vw, 1.375rem);  /* 19 → 22 px */
  --fs-small: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);       /* 16 → 17 px */
  --fs-micro: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);       /* 15 → 16 px */
  --fs-h1:    clamp(2.25rem, 1.65rem + 2.7vw, 4rem);         /* 36 → 64 px */
  --fs-h2:    clamp(1.75rem, 1.42rem + 1.5vw, 2.625rem);     /* 28 → 42 px */
  --fs-h3:    clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem);      /* 21 → 24 px */

  /* Abstände */
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --container: 74rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(27, 25, 23, .05), 0 2px 8px rgba(27, 25, 23, .04);
  --shadow:    0 2px 4px rgba(27, 25, 23, .04), 0 12px 32px rgba(27, 25, 23, .07);
  --shadow-lg: 0 4px 8px rgba(27, 25, 23, .04), 0 24px 60px rgba(27, 25, 23, .10);

  /* --header-base ist die gesetzte Bauhöhe. --header-h wird von main.js
     aus der GEMESSENEN Höhe nachgeführt und darf deshalb niemals wieder
     in die Höhe des Headers einfliessen – sonst entsteht mit dem
     ResizeObserver eine Rückkopplung, die den Header endlos wachsen lässt. */
  --header-base: 5.25rem;
  --header-h: 5.25rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Muss am Wurzelelement stehen: Das geschlossene Mobilmenue liegt per
     position:fixed rechts ausserhalb des Viewports. Ein overflow am body
     klammert es nicht ein, weil der Viewport sein Bezugsrahmen ist.
     clip statt hidden, damit der klebende Header weiter funktioniert. */
  overflow-x: clip;
}

/* Reserviert den Platz der Scrollleiste, damit beim Sperren des
   Hintergrund-Scrollens nichts springt – aber erst, wo Platz dafuer ist. */
@media (min-width: 48em) {
  html { scrollbar-gutter: stable; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Sicherheitsnetz gegen waagerechtes Scrollen; clip erlaubt weiterhin
     position:sticky im Gegensatz zu hidden. */
  overflow-x: clip;
}

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

address { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
  /* Lange deutsche Komposita dürfen auf schmalen Displays trennen */
  hyphens: auto;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; max-width: 62ch; text-wrap: pretty; hyphens: auto; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }

strong { color: var(--ink); font-weight: 600; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .45em; hyphens: auto; }
li::marker { color: var(--brand); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Doppelter Fokusring: dunkler Kern plus heller Hof, damit der
   Indikator auf hellen UND auf roten/dunklen Flächen sichtbar bleibt. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .85);
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }
/* Programmatisch fokussierte Abschnitte sollen keinen Rahmen bekommen */
main:focus-visible, section:focus-visible, div[tabindex='-1']:focus-visible {
  outline: 2px dashed var(--line-strong);
  outline-offset: 6px;
  box-shadow: none;
}

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

/* ---------- Hilfsklassen ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-section); }
.section--tint { background: var(--sand-deep); }
.section--paper { background: var(--paper); }

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

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

.skip-links { position: absolute; top: 0; left: 0; right: 0; z-index: 200; }
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  background: var(--brand);
  color: #fff;
  padding: .9rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease);
}
.skip-link:nth-of-type(2) { left: auto; right: var(--gutter); transform: translate(0, -140%); }
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }
.skip-link:nth-of-type(2):focus { transform: translate(0, 0); }

.eyebrow {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

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

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-bottom: 0; }
.section-head--center p { margin-inline: auto; }

.rule {
  width: 3.5rem;
  height: 2px;
  background: var(--brand);
  border: 0;
  margin: 0 0 1.75rem;
}
.section-head--center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 3rem;                 /* 48 px Zielgröße, WCAG 2.5.8 */
  padding: .8rem 1.45rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover {
  --btn-bg: var(--brand-dark);
  --btn-bd: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); color: #fff; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-dark); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--brand-tint); --btn-bd: var(--brand-tint); color: var(--brand-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.btn .icon { width: 1.15em; height: 1.15em; flex: none; }

/* Auf schmalen Displays volle Breite und größere Höhe */
@media (max-width: 30rem) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; min-height: 3.5rem; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding-block: .35rem;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--brand-dark); text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Kopfbereich / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 243, .85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(27, 25, 23, .06);
}
/* Bei sehr niedrigem Viewport (400 % Zoom, Querformat) nicht kleben –
   sonst frisst der Header den halben Bildschirm. WCAG 1.4.10 */
@media (max-height: 26rem) {
  /* relative statt static: klebt nicht mehr, behält aber seinen
     z-index und rutscht dadurch nicht unter den Menü-Hintergrund. */
  .site-header { position: relative; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-base);
  transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 4.5rem; }

.brand { display: inline-flex; align-items: center; flex: none; padding-block: .5rem; }
.brand img {
  height: clamp(2.75rem, 2.3rem + 1.4vw, 3.375rem);
  width: auto;
}

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.5rem); }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(.15rem, .8vw, 1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .7rem;
  color: var(--ink-body);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color .2s var(--ease);
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .35rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-list a:hover { color: var(--brand); }
.nav-list a:hover::after { transform: scaleX(1); }
/* Aktiver Punkt: nicht nur Farbe, sondern auch Gewicht und Linie */
.nav-list a[aria-current] { color: var(--brand); font-weight: 700; }
.nav-list a[aria-current]::after { transform: scaleX(1); }

.nav-toggle {
  /* Muss über dem Menüpanel (.nav, z-index 99) liegen, sonst ist der
     Schließen-Button bei geöffnetem Menü verdeckt und nicht klickbar. */
  position: relative;
  z-index: 101;
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0 1rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-micro);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle .icon { width: 1.35rem; height: 1.35rem; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded='true'] .icon--open { display: none; }
.nav-toggle[aria-expanded='true'] .icon--close { display: block; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(27, 25, 23, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

@media (max-width: 62em) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    width: min(24rem, 88vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 1rem) 1.75rem 2rem;
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform .35s var(--ease), visibility .35s var(--ease);
  }
  body.nav-open .nav { transform: translateX(0); visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { min-height: 3.25rem; padding: 1rem .25rem; font-size: 1.125rem; border-radius: 0; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current]::before {
    content: '';
    width: 3px;
    align-self: stretch;
    margin-right: .75rem;
    background: var(--brand);
  }

  .nav .btn { margin: 1.75rem 0 0; width: 100%; min-height: 3.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -15%;
  width: min(48rem, 70vw);
  max-inline-size: 48rem;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(161, 26, 22, .07), rgba(161, 26, 22, 0) 68%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 60em) {
  .hero-grid { grid-template-columns: 1.12fr .88fr; }
}

.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--brand); font-style: italic; }
.hero .lead { max-width: 34rem; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  color: var(--ink-muted);
}
.hero-note span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-note .icon { width: 1.1rem; height: 1.1rem; color: var(--brand); flex: none; }

.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--sand-deep);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 32%;
}
@media (min-width: 60em) {
  .hero-figure img { aspect-ratio: 4 / 5; }
}

/* ---------- Direktwahl-Leiste ---------- */
.dial {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
/* Feste Schwelle statt auto-fit: die Trennlinien unten schalten an einem
   Medienabfragepunkt um und muessten sonst raten, wann das Raster umbricht. */
.dial-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 52em) { .dial-grid { grid-template-columns: repeat(3, 1fr); } }
.dial-item { padding: 0; }
.dial-item + .dial-item { border-top: 1px solid var(--line); }
@media (min-width: 52em) {
  .dial-item + .dial-item { border-top: 0; border-left: 1px solid var(--line); }
}
.dial-item a {
  display: block;
  padding: clamp(1.35rem, 1rem + 1.5vw, 2rem) clamp(1rem, .5rem + 2vw, 2rem);
  text-decoration: none;
  color: inherit;
  transition: background-color .2s var(--ease);
}
.dial-item a:hover { background: var(--brand-tint); }
.dial-label {
  display: block;
  font-size: var(--fs-micro);
  color: var(--ink-muted);
  margin-bottom: .3rem;
}
.dial-number {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  font-weight: 600;
  color: var(--brand);
  line-height: 1.2;
}
.dial-number .icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  align-items: center;
}
@media (min-width: 60em) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.quote {
  margin: 0 0 1.75rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--brand);
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.2rem + .9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.quote p { margin: 0; max-width: none; }
.quote cite {
  display: block;
  margin-top: .85rem;
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-style: normal;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Feste Spaltenzahl statt auto-fit: bei sechs Einträgen entstünden sonst
   leere Rasterzellen, die als graue Flächen sichtbar werden. */
.value-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  list-style: none;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: var(--paper);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.value-list .icon { flex: none; width: 1.35rem; height: 1.35rem; margin-top: .15rem; color: var(--brand); }

@media (min-width: 38em) { .value-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .value-list { grid-template-columns: repeat(3, 1fr); } }
/* In der schmalen Seitenspalte des Kontaktbereichs immer einspaltig */
.contact-aside .value-list { grid-template-columns: 1fr; }

/* ---------- Einrichtungen ---------- */
.homes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: clamp(1.5rem, 1rem + 1.5vw, 2rem);
}

.home-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.home-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-lg);
}
.home-card:focus-within { border-color: var(--brand); }

.home-card__media { position: relative; background: var(--sand-deep); overflow: hidden; }
.home-card__media img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.home-card:hover .home-card__media img { transform: scale(1.03); }
.home-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27, 25, 23, .03) 0%, rgba(27, 25, 23, .24) 100%);
  pointer-events: none;
}

.home-card__city {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .45rem .9rem;
  background: rgba(255, 255, 255, .95);
  border-radius: 999px;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--ink);
}
.home-card__city .icon { width: 1em; height: 1em; color: var(--brand); }

.home-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
}
.home-card__body h3 { margin-bottom: .5rem; }
.home-card__desc { font-size: var(--fs-small); color: var(--ink-muted); margin-bottom: 1.35rem; }

.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: var(--fs-small); }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .5rem;
  line-height: 1.5;
}
.contact-list li:last-child { margin-bottom: 0; }
.contact-list .icon { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .25rem; color: var(--brand); }
.contact-list .label { color: var(--ink-muted); margin-right: .35rem; }
.contact-list a {
  display: inline-block;
  padding-block: .2rem;
  color: var(--ink-body);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  overflow-wrap: break-word;
}
.contact-list a:hover { color: var(--brand); text-decoration-color: currentColor; }

.home-card__foot { margin-top: auto; padding-top: .25rem; }

.homes-note {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: 1.35rem 1.65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
}
.homes-note p { max-width: none; }

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step { position: relative; margin: 0; padding-top: 3.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
}
.step::after {
  content: '';
  position: absolute;
  top: 2.6rem;
  left: 0;
  right: 1.5rem;
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::after { right: 0; }
.step h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.step p { font-size: var(--fs-small); color: var(--ink-muted); margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: start;
}
@media (min-width: 60em) {
  .contact-grid { grid-template-columns: 1.15fr .85fr; }
}

.contact-panel {
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-panel h2, .contact-panel h3 { color: #fff; }
.contact-panel p { color: rgba(255, 255, 255, .92); }
.contact-panel .rule { background: rgba(255, 255, 255, .55); }
.contact-panel .eyebrow { color: rgba(255, 255, 255, .85); }
/* Auf Rot trägt der Navy-Ring allein nicht – heller Ring nach außen */
.contact-panel :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(20, 49, 78, .55); }

.contact-lines { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-lines li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  margin: 0;
}
.contact-lines li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .25); }
.contact-lines .icon { flex: none; width: 1.35rem; height: 1.35rem; margin-top: .3rem; color: rgba(255, 255, 255, .85); }
.contact-lines .label {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: .1rem;
}
.contact-lines a, .contact-lines .value {
  display: inline-block;
  color: #fff;
  font-size: 1.0625rem;
  /* anywhere statt break-word: nur anywhere verkleinert auch die
     min-content-Breite. Sonst erzwingt "Dienstleistungsgesellschaft"
     eine Panelbreite von 314 px und der Kasten wird bei 320 px
     Viewport rechts abgeschnitten (WCAG 1.4.10 Reflow). */
  overflow-wrap: anywhere;
}
.contact-lines a { padding-block: .15rem; text-decoration-color: rgba(255, 255, 255, .55); }
.contact-lines a:hover { color: #fff; text-decoration-color: #fff; }

.contact-aside {
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-aside h3 { margin-bottom: 1rem; }
.contact-aside p { font-size: var(--fs-small); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  padding-block: clamp(3rem, 2.2rem + 3vw, 4.5rem) 0;
}
.site-footer h2, .site-footer h3 { color: #fff; }
/* Unterstrichen, weil die Linkfarbe sich im Footer nur um 1,05:1 vom
   umgebenden Text unterscheidet – Farbe allein genuegt nicht (WCAG 1.4.1). */
.site-footer a {
  color: rgba(255, 255, 255, .82);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: .2em;
}
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(20, 49, 78, .6); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.footer-brand img {
  height: 3.25rem;
  width: auto;
  margin-bottom: 1.25rem;
  /* Das Logo ist für helle Flächen gezeichnet – hier auf Weiß umrechnen */
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-brand p { font-size: var(--fs-small); max-width: 26rem; }

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); }
.footer-col li { margin-bottom: .75rem; line-height: 1.5; }
.footer-col a { display: inline-block; padding-block: .15rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: var(--fs-micro);
}
.footer-bottom p { max-width: none; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin: 0; }
.footer-links a { display: inline-block; padding-block: .35rem; }

/* ---------- Rechtstexte ---------- */
.page-head {
  padding-block: clamp(3rem, 2.2rem + 3vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--ink-muted); margin-bottom: 0; }

.breadcrumb { font-size: var(--fs-micro); color: var(--ink-muted); margin-bottom: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; color: var(--line-strong); }
.breadcrumb a { display: inline-block; padding-block: .25rem; color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--brand); }

.prose { max-width: var(--container-narrow); }
.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 2rem;
  margin-bottom: .6rem;
}
.prose h4 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: .4rem;
}
.prose address {
  font-style: normal;
  overflow-wrap: anywhere;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
.prose .note {
  padding: 1.35rem 1.65rem;
  background: var(--brand-tint);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.prose .note p { max-width: none; }
.prose .note p:last-child { margin-bottom: 0; }

.toc {
  padding: 1.5rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 3rem;
}
.toc h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
.toc ol { margin: 0; padding-left: 1.4em; font-size: var(--fs-small); }
.toc li { margin-bottom: .35em; }
.toc a { display: inline-block; padding-block: .2rem; color: var(--ink-body); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

.back-home { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.back-home:hover { text-decoration: underline; }
.back-home .icon { width: 1.1em; height: 1.1em; transform: rotate(180deg); }

/* ---------- Einblenden beim Scrollen ----------
   Sichtbar ist der Normalzustand. Der versteckte Ausgangszustand
   gilt nur, wenn JS läuft UND keine Bewegungsreduktion gewünscht ist. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Sprungziele unter dem klebenden Header ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ---------- Druck ---------- */
@media print {
  .site-header, .nav, .nav-backdrop, .skip-links, .btn-row, .footer-links { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
  .section { padding-block: 1.5rem; }
  .contact-panel { background: #fff; color: #000; border: 1px solid #000; }
  .contact-panel h2, .contact-panel p, .contact-panel a, .contact-panel .label { color: #000; }
}

/* ---------- Bewegungsreduktion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .home-card:hover { transform: none; }
  .home-card:hover .home-card__media img { transform: none; }
  .btn:hover { transform: none; }
  .link-arrow:hover .icon { transform: none; }
}

/* ---------- Erzwungene Farben (Windows-Kontrastdesign) ---------- */
@media (forced-colors: active) {
  /* Die Weiss-Umrechnung des Logos wird vom erzwungenen Farbmodus nicht
     zurueckgenommen und waere auf hellem Canvas unsichtbar. */
  .footer-brand img { filter: none; }
  .btn { border: 1px solid ButtonText; }
  .home-card, .contact-aside, .value-list, .toc, .homes-note { border: 1px solid CanvasText; }
  .home-card__media::after { display: none; }
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}

/* Zweiter Block in der Kontakt-Seitenspalte */
.contact-aside__second {
  margin-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  padding-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.contact-aside .contact-list { margin-bottom: 0; }
.contact-aside .contact-list .label { display: block; margin-right: 0; font-size: var(--fs-micro); }

/* Verhindert, dass eine Rufnummer am Bindestrich umbricht */
.nowrap { white-space: nowrap; }
