:root {
  /* Functional colors */
  --color-brand-primary: #a8481a;
  --color-brand-primary-hover: #85370f;
  --color-brand-accent: #e86a2a;
  --color-brand-secondary: #7c8a6e;
  --color-text-default: #332c27;
  --color-text-muted: #625950;
  --color-bg-base: #fbf7f1;
  --color-bg-surface: #ffffff;
  --color-bg-soft: #f0e7da;
  --color-border-subtle: #e3dcd1;
  --color-state-success: #41743d;
  --color-state-error: #9e3e2a;
  --color-focus: #e86a2a;
  --color-overlay: rgba(51, 44, 39, 0.44);
  --color-brand-wash: rgba(232, 106, 42, 0.08);
  --color-brand-soft: rgba(232, 106, 42, 0.14);
  --color-brand-line: rgba(232, 106, 42, 0.25);
  --color-surface-glass: rgba(255, 255, 255, 0.96);
  --color-surface-strong: rgba(255, 255, 255, 0.99);
  --color-surface-translucent: rgba(255, 255, 255, 0.82);
  --color-band-strong: rgba(240, 231, 218, 0.98);
  --color-band-translucent: rgba(240, 231, 218, 0.72);
  --color-base-strong: rgba(251, 247, 241, 0.98);
  --color-shadow-soft: rgba(51, 44, 39, 0.08);
  --color-shadow-faint: rgba(51, 44, 39, 0.04);
  --color-border-strong: rgba(51, 44, 39, 0.13);
  --color-success-soft: rgba(65, 116, 61, 0.1);
  --color-error-soft: rgba(158, 62, 42, 0.1);
  --color-footer-text: rgba(255, 255, 255, 0.8);
  --color-footer-line: rgba(255, 255, 255, 0.16);
  --color-on-dark: #ffffff;
  --color-footer: #332c27;

  /* Backwards-compatible aliases used by existing templates */
  --color-brand: var(--color-brand-accent);
  --color-brand-dark: var(--color-brand-primary);
  --color-secondary: var(--color-brand-secondary);
  --color-background: var(--color-bg-base);
  --color-surface: var(--color-bg-surface);
  --color-band: var(--color-bg-soft);
  --color-text: var(--color-text-default);
  --color-muted: var(--color-text-muted);
  --color-line: var(--color-border-subtle);

  /* Typography */
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-size-small: 0.875rem;
  --font-size-body: 1rem;
  --font-size-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --font-size-h1: clamp(2.35rem, 11vw, 3.65rem);
  --font-size-h2: clamp(1.85rem, 7.5vw, 2.7rem);
  --font-size-h3: clamp(1.35rem, 5vw, 1.8rem);
  --fs-eyebrow: 0.75rem;
  --fs-sm: var(--font-size-small);
  --fs-base: var(--font-size-body);
  --fs-lead: var(--font-size-lead);
  --fs-h2: var(--font-size-h3);
  --fs-h1: var(--font-size-h1);
  --line-height-tight: 1.12;
  --line-height-base: 1.7;
  --line-height-relaxed: 1.82;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Spacing and layout */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --section-space: var(--space-2xl);
  --container-width: 73.75rem;
  --container-padding: 1rem;
  --control-min-height: 2.75rem;
  --measure: 65ch;

  /* Shapes and effects */
  --radius-small: 0.625rem;
  --radius-medium: 1rem;
  --radius-card: 1.5rem;
  --radius-button: 999px;
  --radius-pill: var(--radius-button);
  --radius-circle: 50%;
  --radius-pebble: 48% 52% 38% 62% / 40% 38% 62% 60%;
  --shadow-card: 0 1.25rem 3.75rem rgba(51, 44, 39, 0.08);
  --shadow-menu: 0 1.5rem 3.75rem rgba(51, 44, 39, 0.18);
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  /* Verhindert horizontales Scrollen durch dekorative, überstehende
     Elemente auf schmalen Displays, ohne position: sticky zu brechen. */
  overflow-x: clip;
  overflow-wrap: break-word;
  background: var(--color-bg-base);
  color: var(--color-text-default);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-base);
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--color-text-default);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  overflow-wrap: anywhere;
}

h1 {
  font-size: var(--font-size-h1);
}

/* Akzent-Hervorhebung in Hauptüberschriften. Bewusst auf h1 begrenzt:
   Der helle Akzentton erreicht auf den hellen Flächen 3:1 und ist damit
   nur für große Schrift (ab 24px) barrierefrei. Kleinere Texte bleiben
   auf --color-brand-primary. */
h1 em {
  color: var(--color-brand-accent);
  font-style: normal;
}

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

h3 {
  font-size: var(--font-size-h3);
}

p {
  margin-top: 0;
}

address {
  font-style: normal;
}

.container {
  /* Gutter berücksichtigt die Safe-Area (Notch) im Querformat, damit
     Inhalte auf modernen Handys nie unter der Kamera-Aussparung landen. */
  width: min(
    var(--container-width),
    calc(100% - (2 * max(
      var(--container-padding),
      env(safe-area-inset-left, 0px),
      env(safe-area-inset-right, 0px)
    )))
  );
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: var(--space-sm);
  left: var(--space-sm);
  transform: translateY(-180%);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-small);
  background: var(--color-text-default);
  color: var(--color-on-dark);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Nur für Screenreader: visuell entfernt, aber vorlesbar. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin: 0 0 var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.5;
}

.breadcrumb a {
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition:
    color var(--transition),
    text-decoration-color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-brand-primary-hover);
  text-decoration-color: currentColor;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
  color: var(--color-brand-primary);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1px;
  background: var(--color-brand-accent);
  content: "";
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  /* Zusätzlicher heller Trennring, damit der Fokus auch auf farbigen
     Flächen (z. B. Buttons) und auf dem dunklen Footer klar sichtbar ist. */
  box-shadow: 0 0 0 2px var(--color-bg-base);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button--primary {
  background: var(--color-brand-primary);
  color: var(--color-on-dark);
}

.button--primary:hover {
  background: var(--color-brand-primary-hover);
}

.button--outline {
  border-color: var(--color-brand-accent);
  background: transparent;
  color: var(--color-brand-primary);
}

.button--outline:hover {
  background: rgba(232, 106, 42, 0.1);
}

.button--light {
  background: var(--color-on-dark);
  color: var(--color-text-default);
}

.card {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-card);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-card);
}


.page-hero {
  padding: var(--section-space) 0;
  background: var(--color-bg-soft);
}

.page-hero__inner {
  max-width: 53.75rem;
}

.page-hero h1 {
  margin-bottom: var(--space-lg);
}

.page-hero__text {
  max-width: 42.5rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-lead);
}

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

/* ==========================================================================
   Zentrierter Abschnittskopf mit Herz-Ornament
   Mobile-first Leitmuster: Titel mittig, darunter ein feiner Trenner mit
   Herz, optional ein kurzer Untertitel.
   ========================================================================== */

.sec-head {
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.sec-head > :first-child {
  margin-top: 0;
}

.sec-head h1,
.sec-head h2 {
  margin: 0;
  color: var(--color-brand-primary);
  line-height: 1.12;
}

.sec-head__sub {
  max-width: 34rem;
  margin: var(--space-sm) auto 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-lead);
  line-height: 1.6;
}

.sec-head__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  color: var(--color-brand-accent);
}

.sec-head__mark::before,
.sec-head__mark::after {
  width: clamp(1.75rem, 12vw, 3.5rem);
  height: 1px;
  background: var(--color-brand-line);
  content: "";
}

.sec-head__mark svg {
  flex: 0 0 auto;
}

/* Zentrierte Variante der Kicker-Zeile: ohne den seitlichen Strich, damit
   die Zeile optisch mittig sitzt. */
.eyebrow--centered {
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.eyebrow--centered::before {
  display: none;
}

.tmpl-hero__inner--centered .breadcrumb {
  justify-content: center;
}

/* ==========================================================================
   Häkchenliste für Schwerpunkte
   Bewusst nicht `.check-list`: dieser Name ist in service-page.css bereits
   mit absolut positioniertem Marker belegt.
   ========================================================================== */

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

.focus-list li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  line-height: 1.55;
}

.focus-list li + li {
  margin-top: var(--space-sm);
}

/* Aufzählung, die zu einem Punkt gehört (z. B. die Themen rund ums Baby).
   `grid-column: 2` ist zwingend: sonst platziert die Auto-Platzierung den
   Zusatz in der 1,25rem schmalen Markerspalte. */
.focus-list__note {
  display: block;
  grid-column: 2;
  margin-top: var(--space-2xs);
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.5;
}

.focus-list li::before {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: var(--radius-circle);
  background: var(--color-success-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c6a39' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E")
    center / 0.75rem no-repeat;
  content: "";
}

/* ==========================================================================
   Icon-Kacheln (Themenübersicht)
   ========================================================================== */

.icon-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-tile {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xs);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-medium);
  background: var(--color-bg-surface);
  color: var(--color-text-default);
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  text-align: center;
}

.icon-tile__icon {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  background: var(--color-brand-wash);
  color: var(--color-brand-primary);
}

/* ==========================================================================
   Angebotszeilen: Icon · Titel/Text · Kennzeichnung · Chevron
   ========================================================================== */

.offer-rows {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-medium);
  background: var(--color-bg-surface);
  transition:
    border-color var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.offer-row:hover {
  border-color: var(--color-brand-accent);
  background: var(--color-surface-strong);
  transform: translateY(-1px);
}

.offer-row__icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  background: var(--color-brand-wash);
  color: var(--color-brand-primary);
}

.offer-row__body {
  min-width: 0;
}

.offer-row__title {
  display: block;
  color: var(--color-text-default);
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
}

.offer-row__text {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.45;
}

.offer-row__aside {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-brand-primary);
}

.offer-row__chevron {
  flex: 0 0 auto;
}

@media (min-width: 36rem) {
  .icon-tiles {
    gap: var(--space-md);
  }

  .icon-tile {
    padding: var(--space-lg) var(--space-sm);
    font-size: 0.875rem;
  }

}

@media (min-width: 48rem) {
  .sec-head {
    margin-bottom: var(--space-2xl);
  }

  .offer-rows {
    gap: var(--space-sm);
  }

  .offer-row {
    padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-md);
  }
}

[data-scroll-section] {
  scroll-margin-top: 8.75rem;
}

.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}


.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Sequenzielle Einblendung des Seitenkopfs beim Laden
   Läuft rein über CSS (Keyframe statt IntersectionObserver), weil der Kopf
   oberhalb des Falzes liegt: Die Elemente starten unter der `.js`-Klasse
   (im <head> vor dem ersten Rendern gesetzt) unsichtbar und werden beim
   Rendern nacheinander eingeblendet – so entsteht kein Aufblitzen.

   Die Verzögerung wird nach Rolle vergeben, damit die Reihenfolge
   Breadcrumb → Eyebrow → H1 → Untertitel unabhängig davon stimmt, ob die
   Elemente flach (Leistungsseiten) oder in `.sec-head` verschachtelt
   (zentrierte Köpfe) liegen.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-head > :not(.sec-head),
  .js .reveal-head > .sec-head > * {
    opacity: 0;
    animation: reveal-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
  }

  .js .reveal-head .breadcrumb {
    --reveal-delay: 40ms;
  }

  .js .reveal-head .eyebrow,
  .js .reveal-head .home-compact__eyebrow {
    --reveal-delay: 130ms;
  }

  .js .reveal-head h1 {
    --reveal-delay: 220ms;
  }

  .js .reveal-head .service-hero__subtitle,
  .js .reveal-head .sec-head__sub,
  .js .reveal-head .home-compact__lead {
    --reveal-delay: 310ms;
  }

  .js .reveal-head .service-hero__actions,
  .js .reveal-head .sec-head__mark,
  .js .reveal-head .home-compact__actions {
    --reveal-delay: 400ms;
  }
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 48rem) {
  :root {
    --container-padding: 1.5rem;
    --section-space: var(--space-3xl);
  }
}

@media (min-width: 64rem) {
  :root {
    --font-size-h1: clamp(3.25rem, 6vw, 5.5rem);
    --font-size-h2: clamp(2.25rem, 4vw, 3.3rem);
  }
}

@media (min-width: 74rem) {
  :root {
    --container-padding: 2rem;
    --section-space: var(--space-4xl);
  }
}

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

  .reveal-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Bildschutz / Medien-Interaktion
   ============================================================
   Verhindert im normalen Browser-UI die bildspezifischen Kontextmenü-
   Einträge (z. B. „Bild speichern unter“ / „Bild in neuem Tab öffnen“),
   Drag & Drop und den iOS-Touch-Callout. Die Bilddateien bleiben für die
   Darstellung, Suchmaschinen und Social-Media-Previews technisch abrufbar.
   ============================================================ */
picture,
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  pointer-events: none;
  -webkit-user-drag: none;
}
