/* =========================================================
   Carolina Coffler – Trainerin & Beraterin
   Stylesheet (Light / Dark / Hoher Kontrast)
   ========================================================= */

/* ---------- Design tokens: LIGHT (Standard) ---------- */
:root {
  --color-primary: #3B2F8C;
  --color-primary-hover: #2C2268;
  --color-primary-text: #FFFFFF;
  --color-accent: #6A3FE0;
  --color-accent-hover: #58329C;
  --color-accent-soft: #EDE7FB;
  --color-secondary-blue: #2451C4;

  --color-bg: #FAF9FF;
  --color-bg-alt: #F1EDFB;
  --color-surface: #FFFFFF;
  --color-border: #E3DEF7;

  --color-ink: #211B45;
  --color-ink-muted: #4F4A78;
  --color-ink-inverse: #FFFFFF;

  --color-success-bg: #E7F6EC;
  --color-success-text: #1E6B3C;
  --color-error-bg: #FCEAEA;
  --color-error-text: #A3241E;

  --footer-bg: #3B2F8C;
  --footer-text: rgba(255,255,255,0.85);
  --footer-text-dim: rgba(255,255,255,0.6);

  --hero-glow-1: rgba(106, 63, 224, 0.16);
  --hero-glow-2: rgba(36, 81, 196, 0.14);
  --header-bg: rgba(250, 249, 255, 0.88);
  --ripple-color: 106, 63, 224;
  --ripple-color-accent: 36, 81, 196;
  --section-veil: rgba(250, 249, 255, 0.9);
  --section-veil-alt: rgba(241, 237, 251, 0.9);
  --cursor-dot: #6A3FE0;
  --cursor-ring: #3B2F8C;

  /* Systemschriften: schnell & DSGVO-freundlich (kein Google-Fonts-Abruf) */
  --font-display: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(33, 27, 69, 0.08), 0 1px 2px rgba(33, 27, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(33, 27, 69, 0.10);
  --shadow-lg: 0 20px 48px rgba(33, 27, 69, 0.16);

  --container-width: 1120px;
}

/* ---------- Design tokens: DARK ---------- */
:root[data-theme="dark"] {
  --color-primary: #A79BFF;
  --color-primary-hover: #C0B7FF;
  --color-primary-text: #16132A;
  --color-accent: #B9ADFF;
  --color-accent-hover: #D0C8FF;
  --color-accent-soft: #2C2752;
  --color-secondary-blue: #8FA8F5;

  --color-bg: #16132A;
  --color-bg-alt: #1C1838;
  --color-surface: #221E42;
  --color-border: #3A3566;

  --color-ink: #EFECFC;
  --color-ink-muted: #B7B1DC;
  --color-ink-inverse: #16132A;

  --color-success-bg: #16321F;
  --color-success-text: #8FE0AC;
  --color-error-bg: #3A1917;
  --color-error-text: #F5A9A3;

  --footer-bg: #100E20;
  --footer-text: rgba(239,236,252,0.85);
  --footer-text-dim: rgba(239,236,252,0.55);

  --hero-glow-1: rgba(167, 155, 255, 0.10);
  --hero-glow-2: rgba(143, 168, 245, 0.08);
  --header-bg: rgba(22, 19, 42, 0.88);
  --ripple-color: 185, 173, 255;
  --ripple-color-accent: 143, 168, 245;
  --section-veil: rgba(22, 19, 42, 0.88);
  --section-veil-alt: rgba(28, 24, 56, 0.88);
  --cursor-dot: #B9ADFF;
  --cursor-ring: #A79BFF;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.55);
}

/* ---------- Design tokens: HOHER KONTRAST ----------
   Erzwingt maximale Lesbarkeit: Schwarz auf Weiß, keine Verläufe,
   keine Hintergrund-Grafiken, keine Schatten. */
:root[data-contrast="high"] {
  --color-primary: #000000;
  --color-primary-hover: #000000;
  --color-primary-text: #FFFFFF;
  --color-accent: #0000C7;
  --color-accent-hover: #0000C7;
  --color-accent-soft: #FFFFFF;
  --color-secondary-blue: #000000;

  --color-bg: #FFFFFF;
  --color-bg-alt: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-border: #000000;

  --color-ink: #000000;
  --color-ink-muted: #000000;
  --color-ink-inverse: #FFFFFF;

  --color-success-bg: #FFFFFF;
  --color-success-text: #000000;
  --color-error-bg: #FFFFFF;
  --color-error-text: #B10000;

  --footer-bg: #000000;
  --footer-text: #FFFFFF;
  --footer-text-dim: #FFFFFF;

  --hero-glow-1: transparent;
  --hero-glow-2: transparent;
  --header-bg: #FFFFFF;
  --section-veil: #FFFFFF;
  --section-veil-alt: #FFFFFF;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
}
:root[data-contrast="high"] a { text-decoration: underline; }
:root[data-contrast="high"] .ripple-canvas { display: none !important; }
:root[data-contrast="high"] .hero-photo-ring { display: none; }
:root[data-contrast="high"] .card--highlight { background: #FFFFFF; }
:root[data-contrast="high"] .tag-chip { border: 2px solid #000; }
:root[data-contrast="high"] .icon-badge,
:root[data-contrast="high"] .card-icon { border: 2px solid #000; background: #fff; }
:root[data-contrast="high"] .icon-badge svg,
:root[data-contrast="high"] .card-icon svg { stroke: #000; }
:root[data-contrast="high"] .section-eyebrow { border: 2px solid #000; color: #000; background: #fff; }
:root[data-contrast="high"] .carousel-dot { background: #767676; }
:root[data-contrast="high"] .carousel-dot.is-active { background: #000; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; position: relative; z-index: 1; background: var(--section-veil); }
.section--alt { background: var(--section-veil-alt); }
.section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
:root[data-theme="dark"] .section-eyebrow { color: var(--color-ink); }
.section-title {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 700;
}
.section-lede {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--color-ink-muted);
}

/* ---------- Individueller Cursor (nur bei Maus + feinem Zeiger) ---------- */
.custom-cursor-dot,
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
}
.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--cursor-dot);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.custom-cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--cursor-ring);
  transition: width 0.18s ease, height 0.18s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.custom-cursor-ring.is-hovering { width: 50px; height: 50px; border-color: var(--cursor-dot); }
body.custom-cursor-active .custom-cursor-dot,
body.custom-cursor-active .custom-cursor-ring { opacity: 0.85; }
body.custom-cursor-active .custom-cursor-ring { opacity: 0.5; }
body.custom-cursor-active .custom-cursor-ring.is-hovering { opacity: 0.8; }
/* Über Formularfeldern: eigener Cursor ausblenden, native Textmarke behalten */
body.custom-cursor-active.cursor-over-field .custom-cursor-dot,
body.custom-cursor-active.cursor-over-field .custom-cursor-ring { opacity: 0; }

/* Bei geöffnetem Dialog (Impressum/Datenschutz/AGB/Formular-Feedback): normaler
   Mauszeiger, individueller Cursor pausiert – sonst wäre er hinter dem Dialog
   "unsichtbar", weil native <dialog>-Elemente immer oberhalb liegen. */
body.modal-open,
body.modal-open * { cursor: auto !important; }
body.modal-open .custom-cursor-dot,
body.modal-open .custom-cursor-ring { opacity: 0 !important; }

/* Nativen Zeiger nur ausblenden, wenn der individuelle Cursor aktiv ist –
   Formularfelder behalten immer den normalen Text-Cursor. */
body.custom-cursor-active,
body.custom-cursor-active * { cursor: none; }
body.custom-cursor-active input,
body.custom-cursor-active textarea,
body.custom-cursor-active select,
body.custom-cursor-active [contenteditable] { cursor: auto !important; }

/* Hoher Kontrast: immer der normale System-Cursor (u. a. weil er sich über die
   Betriebssystem-Einstellungen vergrößern/anpassen lässt – ein individueller
   Cursor kann das nicht). */
:root[data-contrast="high"] body.custom-cursor-active,
:root[data-contrast="high"] body.custom-cursor-active * { cursor: auto !important; }
:root[data-contrast="high"] .custom-cursor-dot,
:root[data-contrast="high"] .custom-cursor-ring { display: none !important; }

/* ---------- Dynamischer Wellen-Hintergrund ---------- */
.ripple-canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* Alle Inhalte über dem Canvas halten */
.site-header, main, .site-footer, dialog, .back-to-top { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-accent-soft); }
:root[data-contrast="high"] .btn-secondary { border-width: 2px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  white-space: nowrap;
}
:root[data-theme="dark"] .brand { color: var(--color-ink); }
.brand:hover { text-decoration: none; }

.header-right { display: flex; align-items: center; gap: 8px; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
  margin-right: 12px;
}
.nav-desktop a {
  color: var(--color-ink-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-desktop a:hover { color: var(--color-primary); text-decoration: none; }
:root[data-theme="dark"] .nav-desktop a:hover { color: var(--color-ink); }

/* Umschalt-Buttons: Dark Mode & Hoher Kontrast */
.mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-ink);
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}
.mode-toggle:hover { background: var(--color-accent-soft); }
.mode-toggle svg { width: 20px; height: 20px; stroke: currentColor; }
.mode-toggle[aria-pressed="true"] {
  background: var(--color-primary);
  color: var(--color-primary-text);
  border-color: var(--color-primary);
}
.mode-toggle .icon-when-on { display: none; }
.mode-toggle[aria-pressed="true"] .icon-when-on { display: block; }
.mode-toggle[aria-pressed="true"] .icon-when-off { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-ink);
  flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: 12px 4px;
  color: var(--color-ink);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile a:hover { color: var(--color-primary); text-decoration: none; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: 84px 96px;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 85% -10%, var(--hero-glow-1), transparent 65%),
    radial-gradient(560px 360px at -10% 110%, var(--hero-glow-2), transparent 65%);
  z-index: 1;
}
.hero-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-photo-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 28px;
}
.hero-photo-ring {
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--color-accent), var(--color-secondary-blue), var(--color-primary), var(--color-accent));
  opacity: 0.55;
}
.hero-photo {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--color-bg);
  box-shadow: var(--shadow-lg);
}
.hero h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem);
  font-weight: 700;
}
.hero-sub {
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--color-accent);
  font-weight: 600;
}
:root[data-theme="dark"] .hero-sub { color: var(--color-accent); }
.hero-desc {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--color-ink-muted);
  max-width: 560px;
  margin-inline: auto;
}
.hero-location {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  letter-spacing: 0.01em;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---------- About ---------- */
.about-copy {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 1.08rem;
  color: var(--color-ink-muted);
}
.trait-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .trait-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .trait-grid { grid-template-columns: repeat(4, 1fr); }
}
.trait-card { text-align: center; padding: 32px 24px; }
.icon-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 28px; height: 28px; stroke: var(--color-primary); }
.trait-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.trait-card p { color: var(--color-ink-muted); font-size: 0.98rem; }

/* ---------- Services ---------- */
.service-group { margin-bottom: 64px; }
.service-group:last-child { margin-bottom: 0; }
.service-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}
.service-group-lede {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--color-ink-muted);
}
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* Karten: bewusst statisch/deckend für gute Lesbarkeit über dem Wellen-Hintergrund */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--color-primary); }
.card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; font-family: var(--font-body); }
.card p { color: var(--color-ink-muted); font-size: 0.95rem; }
.card--highlight {
  background: linear-gradient(160deg, var(--color-accent-soft), var(--color-surface));
  border-color: var(--color-border);
}

.meta-row {
  margin-top: 28px;
  text-align: center;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.tag-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 640px;
  margin-inline: auto;
}
@media (min-width: 640px) { .tag-grid { grid-template-columns: repeat(3, 1fr); } }
.tag-chip {
  background: var(--color-accent-soft);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
:root[data-theme="dark"] .tag-chip { color: var(--color-ink); }
.service-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  font-style: italic;
}

/* ---------- Testimonials / Carousel ---------- */
.carousel { position: relative; max-width: 760px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1); }
.carousel-slide { min-width: 100%; padding: 4px; }
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-quote {
  font-size: 1.08rem;
  color: var(--color-ink);
  font-style: italic;
}
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }
.testimonial-author {
  margin-top: 20px;
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.95rem;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.25rem;
}
.carousel-btn:hover { background: var(--color-accent-soft); }
.carousel-btn--prev { left: -58px; }
.carousel-btn--next { right: -58px; }
@media (min-width: 900px) { .carousel-btn { display: flex; } }

.carousel-dots { margin-top: 24px; display: flex; justify-content: center; gap: 8px; }
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.carousel-dot.is-active { width: 28px; border-radius: 999px; background: var(--color-primary); }

.stats-bar {
  margin-top: 64px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}
@media (min-width: 640px) { .stats-bar { grid-template-columns: repeat(3, 1fr); } }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
}
:root[data-theme="dark"] .stat-number { color: var(--color-accent); }
.stat-label { margin-top: 6px; color: var(--color-ink-muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 24px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; color: var(--color-ink-muted); }

/* ---------- Contact ---------- */
.contact-grid { max-width: 620px; margin: 0 auto; }
.form-row { margin-bottom: 20px; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--color-ink);
}
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
:root[data-contrast="high"] input[type="text"],
:root[data-contrast="high"] input[type="email"],
:root[data-contrast="high"] select,
:root[data-contrast="high"] textarea { border-width: 2px; }
input:focus, select:focus, textarea:focus { border-color: var(--color-accent); }
textarea { resize: vertical; min-height: 120px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--color-primary); flex-shrink: 0; }
.checkbox-row label { font-weight: 400; margin-bottom: 0; font-size: 0.92rem; color: var(--color-ink-muted); }
.checkbox-row label button { font: inherit; }

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
  border: 1px solid transparent;
}
:root[data-contrast="high"] .form-status { border-color: #000; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--color-success-bg); color: var(--color-success-text); }
.form-status.is-error { background: var(--color-error-bg); color: var(--color-error-text); }

.contact-direct { margin-top: 40px; text-align: center; color: var(--color-ink-muted); }
.contact-direct-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}
.contact-direct-links a, .contact-direct-links span { color: var(--color-primary); }
:root[data-theme="dark"] .contact-direct-links a,
:root[data-theme="dark"] .contact-direct-links span { color: var(--color-accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: 64px 32px;
}
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.footer-tagline { margin-top: 10px; color: var(--footer-text-dim); }
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-text-dim);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-links button {
  background: none; border: none; padding: 0; text-align: left; cursor: pointer;
  color: var(--footer-text); font-size: 0.95rem; font-family: inherit;
}
.footer-links a:hover, .footer-links button:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  color: var(--footer-text-dim);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-primary-text);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-hover); }
.back-to-top svg { width: 22px; height: 22px; }
:root[data-contrast="high"] .back-to-top { border: 2px solid #fff; outline: 2px solid #000; }

/* ---------- Modals ---------- */
dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(720px, 92vw);
  max-height: 82vh;
  box-shadow: var(--shadow-lg);
  color: var(--color-ink);
  background: var(--color-surface);
}
:root[data-contrast="high"] dialog { border: 3px solid #000; }
dialog::backdrop {
  background: rgba(15, 12, 32, 0.6);
  backdrop-filter: blur(2px);
}
.modal-inner { padding: 32px 32px 36px; overflow-y: auto; max-height: 82vh; }
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.modal-header h2 { font-size: 1.5rem; }
.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 8px;
  font-family: var(--font-body);
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--color-ink-muted); font-size: 0.95rem; margin-bottom: 10px; }
.legal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.legal-content ol { padding-left: 20px; margin: 0 0 12px; }
.legal-content ol li { color: var(--color-ink-muted); font-size: 0.95rem; margin-bottom: 8px; }
.legal-content hr { border: none; border-top: 1px solid var(--color-border); margin: 24px 0; }
.legal-footnote { font-size: 0.82rem; color: var(--color-ink-muted); opacity: 0.85; }
.legal-hinweis {
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.status-modal p { color: var(--color-ink-muted); margin-bottom: 16px; }
.status-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
:root[data-contrast="high"] .reveal { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.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;
}
