/* dr. Nurul – mobile first. Farben und Abstände als Tokens. */

/* Inter (OFL) selbst gehostet als Rückfall für Geräte ohne SF Pro; Pfad relativ zur CSS-Datei. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1c2321;
  --ink-soft: #4a5552;
  --teal: #1f4e46;
  --teal-deep: #163a34;
  --teal-tint: #e6efec;
  --sand: #f6f1ea;
  --sand-line: #e4dace;
  --gold: #80602f; /* vorher #a07a45: Kontrast 3,5 statt 4,5 auf Sand */
  --white: #ffffff;
  --wa: #157347;
  --wa-hover: #10603b;
  --todo-bg: #fff3b0;
  --todo-ink: #6b5200;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Robins Vorgabe für Kundenseiten: Apple-Moderne statt Serifen (Name bleibt, damit alle Regeln greifen). */
  --font-serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: 16px;
  --radius: 14px;
  --radius-small: 10px;
  --max: 1160px;
  --narrow: 760px;
  --header-h: 64px;
  --section-y: clamp(48px, 9vw, 96px);
  --shadow: 0 1px 2px rgb(28 35 33 / 6%), 0 8px 24px rgb(28 35 33 / 8%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  /* Platz für den schwebenden WhatsApp-Button */
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}
.wrap-narrow { max-width: var(--narrow); }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); padding: 10px 14px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75em;
}
.lead { font-size: clamp(1.125rem, 3.6vw, 1.3rem); color: var(--ink-soft); max-width: 38em; }
.fineprint { font-size: 0.875rem; color: var(--ink-soft); }

/* Platzhalter für noch fehlende Angaben – vor dem Livegang ersetzen */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  font-family: var(--font-sans);
  font-size: 0.85em;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn .icon { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); color: var(--white); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); color: var(--white); }
.btn-ghost { border-color: var(--sand-line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }

/* Auf Handys füllen die Haupt-Buttons die Breite */
@media (max-width: 599px) {
  .actions .btn { width: 100%; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Kein backdrop-filter: der würde das fixierte Mobilmenü auf Header-Höhe einsperren */
  background: var(--white);
  border-bottom: 1px solid var(--sand-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; justify-content: center; min-height: 44px; text-decoration: none; color: var(--ink); line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; color: var(--teal); margin: 0; }
.brand-tag { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--sand-line); border-radius: 999px;
  background: var(--white); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.9375rem;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobiles Menü: Vollfläche unter dem Header */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--white);
  overflow-y: auto;
}
.site-nav.is-open { display: flex; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--sand-line);
  font-family: var(--font-serif); font-size: 1.375rem; color: var(--ink); text-decoration: none;
}
.nav-list a[aria-current="page"] { color: var(--teal); }

/* Untermenü „Treatments“: mobil als Akkordeon, Desktop als Dropdown */
.sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--sand-line); background: none;
  font-family: var(--font-serif); font-size: 1.375rem; color: var(--ink); text-align: left; cursor: pointer;
}
.has-sub.is-active > .sub-toggle { color: var(--teal); }
.sub-caret {
  width: 10px; height: 10px; margin: 0 6px 4px 12px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.sub-toggle[aria-expanded="true"] .sub-caret { transform: rotate(-135deg); margin-bottom: -4px; }
.sub { display: none; list-style: none; margin: 0; padding: 0 0 0 16px; }
.has-sub.is-open > .sub { display: block; }
.sub a { font-size: 1.1875rem; }
.nav-extra { display: flex; flex-direction: column; gap: 16px; }
.l-short { display: none; }
.nav-extra .btn { width: 100%; min-height: 52px; font-size: 1rem; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch > * {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--ink-soft);
}
.lang-switch [aria-current] { background: var(--teal-tint); color: var(--teal); }
.lang-switch a:hover { color: var(--teal); }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 20px;
    padding: 0; background: none; overflow: visible;
  }
  .nav-list { display: flex; gap: 4px; }
  .nav-list a {
    padding: 8px 10px; border: 0; border-radius: 8px;
    font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500;
  }
  .nav-list a:hover { background: var(--sand); }
  .l-full { display: none; }
  .l-short { display: inline; }
  .nav-list a, .sub-toggle, .nav-extra .btn, .brand-tag { white-space: nowrap; }
  .sub .l-full { display: inline; }
  .has-sub { position: relative; }
  .sub-toggle {
    width: auto; padding: 8px 10px; border: 0; border-radius: 8px;
    font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500;
  }
  .sub-toggle:hover { background: var(--sand); }
  .sub-caret { width: 7px; height: 7px; margin: 0 0 3px 8px; }
  .sub {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 260px;
    padding: 8px; background: var(--white); border: 1px solid var(--sand-line); border-radius: var(--radius-small);
    box-shadow: var(--shadow);
  }
  .sub a { display: block; padding: 10px 12px; }
  .nav-extra { flex-direction: row; align-items: center; gap: 12px; }
  .nav-extra .btn { width: auto; min-height: 44px; font-size: 0.9375rem; }
}

/* Hinweis auf Seiten mit noch zu prüfenden medizinischen Texten */
.review-flag { background: var(--todo-bg); padding-block: 8px; font-size: 0.875rem; }
.review-flag mark.todo { background: none; padding: 0; }

/* Hero */
.hero { background: var(--sand); padding-block: 20px var(--section-y); }
.hero-grid { display: grid; gap: 20px; }
.hero-media { order: -1; }
/* Auf dem Handy flach halten, damit Headline und Button ohne Scrollen sichtbar sind */
.photo-portrait { aspect-ratio: 4 / 5; max-height: 32vh; min-height: 200px; width: 100%; object-fit: cover; object-position: 50% 20%; }
@media (min-width: 860px) {
  .hero { padding-top: var(--section-y); }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
  .hero-media { order: 0; }
  .photo-portrait { max-height: none; }
}

/* Unterseiten-Kopf */
.page-head { background: var(--sand); padding-block: 40px var(--section-y); }
.page-head-grid { display: grid; gap: 28px; }
/* Grid-Spalten dürfen schmaler werden als ihr längstes Wort (lange deutsche Komposita) */
.hero-grid > *, .page-head-grid > * { min-width: 0; }
@media (min-width: 860px) {
  .page-head { padding-top: var(--section-y); }
  .page-head.has-photo .page-head-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
}

/* Fotos und Foto-Platzhalter */
.photo { border-radius: var(--radius); background: var(--teal-tint); object-fit: cover; width: 100%; }
.photo-landscape { aspect-ratio: 4 / 3; }
.photo-tile { aspect-ratio: 16 / 10; border-radius: 0; }
.photo-todo {
  display: flex; align-items: center; justify-content: center; padding: 16px;
  min-height: 120px;
  background:
    repeating-linear-gradient(135deg, rgb(31 78 70 / 6%) 0 12px, transparent 12px 24px),
    var(--teal-tint);
  color: var(--teal);
  font-size: 0.875rem; font-weight: 500; text-align: center;
  border: 1px dashed rgb(31 78 70 / 30%);
}
.photo-todo span { max-width: 22ch; }

/* Vertrauensleiste */
.trust { border-block: 1px solid var(--sand-line); background: var(--white); }
.trust-list {
  list-style: none; margin-block: 0; padding-block: 20px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px;
}
.trust-list li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trust-list strong { font-family: var(--font-serif); font-size: 1.5rem; color: var(--teal); line-height: 1.2; }
.trust-list span { font-size: 0.875rem; color: var(--ink-soft); }
@media (min-width: 760px) { .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Live-Fassung: fehlende Bewertungen fallen weg; zwei Werte nicht über vier Spalten verteilen */
@media (min-width: 760px) { .trust-list:not(:has(> li:nth-child(3))) { grid-template-columns: repeat(2, max-content); column-gap: 96px; } }

/* Abschnitte */
.section { padding-block: var(--section-y); }
.section-tight { padding-block: 0 var(--section-y); }
.section-alt { background: var(--sand); }
.section-head { margin-bottom: 28px; max-width: 40em; }
.section-head p { color: var(--ink-soft); }

.cards { display: grid; gap: 16px; }
.card { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--ink-soft); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.tiles { display: grid; gap: 16px; }
.tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform 0.15s ease;
}
.tile:hover { color: var(--ink); transform: translateY(-2px); }
.tile-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tile-body p { color: var(--ink-soft); }
.tile-link { margin-top: auto; font-weight: 600; color: var(--teal); }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 20px 20px 20px 72px; background: var(--sand); border-radius: var(--radius); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-weight: 700;
}
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .steps li { padding: 72px 20px 24px; }
}

.cases { display: grid; gap: 20px; margin-bottom: 16px; }
.case { margin: 0; background: var(--white); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case-pair > * { aspect-ratio: 1; border-radius: var(--radius-small); object-fit: cover; width: 100%; min-height: 0; }
.case figcaption { padding: 12px 4px 4px; font-size: 0.9375rem; color: var(--ink-soft); }
@media (min-width: 700px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.review-slot { border: 1px dashed var(--sand-line); border-radius: var(--radius); padding: 24px; background: var(--sand); }
.review-slot p:last-child { margin: 0; }

.press-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--font-serif); font-size: 1.25rem; }

.text-link { font-weight: 600; }

/* Bewertungsplattformen und Kontakt */
.platforms, .contact-grid { display: grid; gap: 16px; }
.platform, .contact-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; overflow-wrap: anywhere; }
.section:not(.section-alt) .contact-card { background: var(--sand); box-shadow: none; }
.platform p, .contact-card p { color: var(--ink-soft); }
.platform p:last-child, .contact-card p:last-child { margin-bottom: 0; }
.contact-form-link { margin-top: 24px; }
@media (min-width: 700px) { .platforms, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

/* FAQ */
.faq-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.faq-index a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--sand-line); border-radius: 999px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--ink);
}
.faq-index a:hover { border-color: var(--teal); color: var(--teal); }
.faq-group + .faq-group { margin-top: 48px; }
.faq { border-top: 1px solid var(--sand-line); }
.faq details { border-bottom: 1px solid var(--sand-line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 44px 18px 0; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal); font-size: 1.25rem; font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq-answer { color: var(--ink-soft); }
.faq-answer > p { padding-bottom: 18px; } /* Abstand innen: animierte Höhe 0 heißt wirklich 0 */
.faq-answer p { margin: 0; }

/* Fließtext */
.prose p, .prose li { color: var(--ink-soft); }
.checklist, .numbered { padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-tint) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%231f4e46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.numbered { padding-left: 1.4em; }
.numbered strong { color: var(--ink); }

.timeline { list-style: none; margin: 0 0 16px; padding: 0; border-left: 2px solid var(--sand-line); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal);
}
.timeline-label { display: block; font-weight: 700; color: var(--teal); font-size: 0.9375rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

.price-box { background: var(--white); border-radius: var(--radius); padding: clamp(20px, 5vw, 36px); box-shadow: var(--shadow); }
.price-range { font-family: var(--font-serif); font-size: 1.375rem; color: var(--teal); }

.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--sand-line); }
.facts dt { font-weight: 700; color: var(--teal); font-size: 0.9375rem; }
.facts dd { margin: 0; color: var(--ink-soft); }
@media (min-width: 700px) { .facts > div { grid-template-columns: 180px 1fr; gap: 24px; } }

.gallery { display: grid; gap: 16px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

.photo-guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-guide li {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: var(--white); border-radius: var(--radius); font-weight: 500; min-width: 0;
}
.photo-guide-num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-weight: 700;
}
@media (min-width: 900px) { .photo-guide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Formular */
.enquiry { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #c9bfb2; border-radius: var(--radius-small); background: var(--white);
  /* 16px verhindert das automatische Zoomen auf iOS */
  font: inherit; font-size: 16px; color: var(--ink);
}
/* Safari ignoriert Höhe/Schrift bei nativen Auswahlfeldern → eigene Optik mit Pfeil */
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; line-height: 1.4;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231f4e46' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field input[type="file"] { padding: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--teal-tint); border-color: var(--teal); }
.field-check { grid-template-columns: 24px 1fr; align-items: start; gap: 12px; }
.field-check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; accent-color: var(--teal); }
.field-check label { font-weight: 400; color: var(--ink-soft); }
.enquiry .btn { width: 100%; }
@media (min-width: 600px) { .enquiry .btn { width: auto; justify-self: start; } }
.form-status:empty { display: none; }
.form-status { margin: 0; padding: 12px 14px; border-radius: var(--radius-small); background: var(--todo-bg); color: var(--todo-ink); }

/* Abschluss-CTA */
.cta-band { background: var(--teal); color: var(--white); padding-block: var(--section-y); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgb(255 255 255 / 85%); }
.cta-band .actions { justify-content: center; }
.cta-band .btn-wa { background: var(--white); color: var(--wa); }
.cta-band .btn-wa:hover { background: var(--sand); color: var(--wa-hover); }
.cta-note { margin-top: 20px; font-size: 0.9375rem; }

/* Footer */
.site-footer { background: var(--teal-deep); color: rgb(255 255 255 / 80%); padding-block: 48px 24px; font-size: 0.9375rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand-name { color: var(--white); margin-bottom: 4px; }
.footer-grid { display: grid; gap: 28px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; }
.footer-links a { display: inline-block; padding: 8px 0; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 15%); font-size: 0.8125rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Schwebender WhatsApp-Button */
.wa-float-wrap {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: flex; justify-content: flex-end; pointer-events: none;
}
.wa-float {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; max-width: 100%; padding: 12px 20px 12px 16px;
  border-radius: 999px; background: var(--wa); color: var(--white);
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-decoration: none;
  box-shadow: 0 6px 20px rgb(21 115 71 / 35%);
}
.wa-float:hover { background: var(--wa-hover); color: var(--white); }
.wa-float .icon { width: 26px; height: 26px; flex: none; }
.wa-float-wrap mark.todo { display: none; }
.wa-float-wrap { gap: 10px; align-items: flex-end; }
.wa-float-wrap.is-hidden .wa-float { opacity: 0; visibility: hidden; transform: translateY(12px); }
.wa-float { transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
body.nav-open .wa-float-wrap { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Kennzeichnung für KI-Stimmungsbilder */
.photo-wrap { position: relative; display: block; }
.photo-badge {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(22, 58, 52, .82); color: #fff; font-size: 12px; letter-spacing: .02em;
}

/* ───────── Lichtring · Hausstil-CTA (rotierender Lichtbogen im Rahmen + Glanz) ─────────
   Die Füllung steht in --face; Hover ändert nur --face, sonst überschreibt ein
   background-Hover den Rahmen. Ring dreht nur im Sichtfeld (.ring-live per JS). */
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --gao { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --gp { syntax: "<percentage>"; inherits: false; initial-value: 13%; }

.btn-primary, .btn-wa, .btn-ghost, .wa-float {
  /* Grundwerte auch ohne @property (Safari < 16.4, Firefox < 128): Ring steht dann still, Fläche bleibt */
  --ga: 0deg; --gao: 0deg; --gp: 13%;
  --face: var(--teal);
  --face-hover: var(--teal-deep);
  --arc: #ffffff;
  --rim: rgb(255 255 255 / 22%);
  --glow: rgb(31 78 70 / 45%);
  --lr: linear-gradient(var(--face), var(--face)) padding-box,
        conic-gradient(from calc(var(--ga) - var(--gao)), transparent 0%, var(--arc) var(--gp),
          var(--arc) calc(var(--gp) * 2), transparent calc(var(--gp) * 3)) border-box,
        linear-gradient(var(--rim), var(--rim)) border-box;
  position: relative;
  isolation: isolate;
  border: 2px solid transparent;
  background: var(--lr);
  box-shadow: 0 10px 28px -14px var(--glow);
  transition: --gp 0.5s var(--ease-out), --gao 0.5s var(--ease-out), box-shadow 0.3s var(--ease-out),
    color 0.2s ease, scale 0.16s var(--ease-out);
  animation: lichtring 4.5s linear infinite paused, glanz 5.5s var(--ease-out) infinite paused;
  -webkit-tap-highlight-color: transparent;
}
.btn-wa, .wa-float { --face: var(--wa); --face-hover: var(--wa-hover); --glow: rgb(21 115 71 / 55%); }
.btn-ghost {
  --face: var(--white); --face-hover: var(--white); --arc: var(--teal);
  --rim: var(--sand-line); --glow: rgb(31 78 70 / 18%);
}
.cta-band .btn-wa { --face: var(--white); --face-hover: var(--sand); --arc: var(--wa); --rim: rgb(21 115 71 / 25%); --glow: rgb(0 0 0 / 30%); }

/* gleiche Spezifität wie die alten Hover-Regeln, steht später → gewinnt */
.btn-primary, .btn-primary:hover, .btn-wa, .btn-wa:hover, .btn-ghost, .btn-ghost:hover,
.wa-float, .wa-float:hover, .cta-band .btn-wa, .cta-band .btn-wa:hover { background: var(--lr); }
.btn-ghost:hover { border-color: transparent; }

.ring-live { animation-play-state: running, running; }

/* Lichtschein: weicher, mitlaufender Bogen außen um den Knopf (nur der Rand, nicht die Fläche) */
.btn-primary::before, .btn-wa::before, .btn-ghost::before, .wa-float::before {
  content: ""; position: absolute; inset: -7px; padding: 7px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--ga), transparent 0%, var(--halo, var(--arc)) 13%, var(--halo, var(--arc)) 26%, transparent 39%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: blur(5px); opacity: 0.75;
  animation: lichtring 4.5s linear infinite paused;
}
.ring-live::before { animation-play-state: running; }
/* Ohne Masken-Ausschnitt würde der Schein die Fläche füllen → dann weglassen */
@supports not ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .btn-primary::before, .btn-wa::before, .btn-ghost::before, .wa-float::before { content: none; }
}
.btn-primary, .btn-wa, .wa-float { --halo: #9fe3c9; }
.cta-band .btn-wa { --halo: #ffffff; }
@keyframes lichtring { to { --ga: 360deg; } }

/* Glanz: ein heller Streifen wischt in Abständen über die Fläche */
.btn-primary::after, .btn-wa::after, .btn-ghost::after, .wa-float::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 22%) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0;
  animation: inherit; animation-name: glanz; animation-duration: 5.5s;
}
.btn-ghost::after { background-image: linear-gradient(105deg, transparent 38%, rgb(31 78 70 / 10%) 50%, transparent 62%); }
@keyframes glanz { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-wa:hover, .btn-ghost:hover, .wa-float:hover {
    --face: var(--face-hover); --gp: 24%; --gao: 95deg;
    box-shadow: 0 14px 34px -12px var(--glow);
  }
}
.btn:active, .wa-float:active { scale: 0.97; }
.btn, .wa-float { touch-action: manipulation; }

/* ───────── Bewegung (motion.dev, Vanilla-Fassung von Framer Motion) ─────────
   Versteckt wird nur mit html.js; fällt das Skript aus, zeigt .motion-aus nach 4 s alles. */
html.js:not(.motion-aus) :is(.hero-text > *, .page-head-grid > div:first-child > *, .page-head .wrap > :is(p, h1),
  .section-head, .cards > *, .tiles > *, .steps > *, .timeline > *, .numbered > *, .facts > *, .checklist > *,
  .gallery > *, .cases > *, .platforms > *, .contact-grid > *, .trust-list > *, .price-box, .faq-group,
  .prose > *, .cta-band .wrap > *, .enquiry, .review-slot) {
  opacity: 0;
}
html.js:not(.motion-aus) :is(.hero-media, .page-head-media) .photo { clip-path: inset(6% 6% 6% 6% round var(--radius)); }

.hero-media, .page-head-media { overflow: hidden; border-radius: var(--radius); }
.hero-media .photo, .page-head-media .photo { will-change: transform; transform-origin: 50% 40%; }

.tile { transition: box-shadow 0.35s var(--ease-out); }
.tile .photo { transition: scale 0.7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: none; box-shadow: 0 22px 44px -22px rgb(28 35 33 / 35%); }
  .tile:hover .photo { scale: 1.045; }
}

.site-header { transition: box-shadow 0.3s var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgb(28 35 33 / 35%); }

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--teal), #3f8f80);
  transform-origin: 0 50%; transform: scaleX(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js :is(.hero-text > *, .page-head-grid > div:first-child > *, .page-head .wrap > :is(p, h1), .section-head,
    .cards > *, .tiles > *, .steps > *, .timeline > *, .numbered > *, .facts > *, .checklist > *, .gallery > *,
    .cases > *, .platforms > *, .contact-grid > *, .trust-list > *, .price-box, .faq-group, .prose > *,
    .cta-band .wrap > *, .enquiry, .review-slot) { opacity: 1 !important; }
  html.js :is(.hero-media, .page-head-media) .photo { clip-path: none !important; }
  .btn-primary, .btn-wa, .btn-ghost, .wa-float, .btn-primary::after, .btn-wa::after, .btn-ghost::after, .wa-float::after,
  .btn-primary::before, .btn-wa::before, .btn-ghost::before, .wa-float::before {
    animation: none !important;
  }
  .scroll-progress { display: none; }
}

/* Tablet quer (Desktop-Navigation mit Finger): Tippziele mindestens 44 px hoch */
@media (min-width: 1100px) and (pointer: coarse) {
  .nav-list a, .sub-toggle { min-height: 44px; display: flex; align-items: center; }
}

/* ───────── Feinschliff 06.11. ───────── */
/* Zwei weiße Sektionen hintereinander: Abstand nicht verdoppeln */
.section:not(.section-alt) + .section:not(.section-alt) { padding-top: 0; }

/* Hero: beide Knöpfe in einer Reihe, sobald Platz ist */
@media (min-width: 1100px) { .hero .actions { flex-wrap: nowrap; } .hero .actions .btn { white-space: nowrap; } }

/* „Mehr erfahren →“: Pfeil gleitet beim Überfahren der Kachel */
.tile-link > span { display: inline-block; transition: translate 0.35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-link > span { translate: 5px 0; } }

/* Desktop-Navigation: feine Unterstreichung wächst aus der Mitte */
@media (min-width: 1100px) and (hover: hover) {
  .nav-list > li > a { position: relative; }
  .nav-list > li > a:hover { background: none; }
  .nav-list > li > a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--teal); scale: 0 1; transition: scale 0.3s var(--ease-out);
  }
  .nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after { scale: 1 1; }
}

/* Überschriften Wort für Wort (Spans setzt motion.js; ohne Skript bleibt die Überschrift unverändert) */
.wort { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wort > span { display: inline-block; }

/* Schritte: Nummer springt nach der Karte federnd ein */
.steps li::before { transition: scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; transition-delay: var(--d, 0s); }
html.js:not(.motion-aus) .steps li:not(.is-in)::before { scale: 0.3; opacity: 0; }

/* Zeitleiste: Linie zeichnet sich beim Lesen, Punkte füllen sich */
.timeline { position: relative; }
.timeline-fill {
  position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--teal);
  transform-origin: 50% 0; transform: scaleY(0); pointer-events: none;
  opacity: 1 !important; /* fällt sonst unter die Einblend-Regel für .timeline > * */
}
.timeline li::before { transition: background-color 0.4s ease, box-shadow 0.5s var(--ease-out); }
.timeline li.is-passed::before { background: var(--teal); box-shadow: 0 0 0 5px var(--teal-tint); }

/* FAQ: Plus dreht sich zum Kreuz, Antwort gleitet auf (Höhe per motion.js) */
.faq summary::after { content: "+" !important; transition: rotate 0.35s var(--ease-out), background-color 0.2s ease, color 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; background: var(--teal); color: var(--white); }
.faq summary:hover::after { background: var(--teal); color: var(--white); }
.faq-answer { overflow: hidden; }

/* CTA-Band: ruhiges Licht wandert durch die Fläche (nur im Sichtfeld) */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(120 210 180 / 22%), transparent 70%);
  animation: licht-wandern 16s ease-in-out infinite alternate paused;
}
.cta-band::before { left: -25vmax; top: -40vmax; }
.cta-band::after { right: -30vmax; bottom: -45vmax; animation-duration: 21s; animation-direction: alternate-reverse;
  background: radial-gradient(closest-side, rgb(255 255 255 / 12%), transparent 70%); }
.cta-band.licht-an::before, .cta-band.licht-an::after { animation-play-state: running; }
@keyframes licht-wandern { from { transform: translate(0, 0) scale(1); } to { transform: translate(18vmax, 10vmax) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .cta-band::before, .cta-band::after { animation: none !important; }
  .steps li::before { scale: 1 !important; opacity: 1 !important; }
  .timeline-fill { display: none; }
}

/* ───────── KI-Assistent: Knopf (Fenster-CSS lädt erst beim Klick) ───────── */
.chat-launcher {
  pointer-events: auto; position: relative; flex: none;
  width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #2f6d62, var(--teal) 55%, var(--teal-deep));
  box-shadow: 0 10px 28px -10px rgb(22 58 52 / 60%), inset 0 0 0 1px rgb(255 255 255 / 12%);
  transition: scale 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher:hover { box-shadow: 0 14px 34px -10px rgb(22 58 52 / 70%), inset 0 0 0 1px rgb(255 255 255 / 18%); }
.chat-launcher:active { scale: 0.94; }
.chat-launcher:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.chat-launcher-ki {
  position: absolute; top: -4px; right: -4px; padding: 2px 6px; border-radius: 999px;
  background: #fff; color: var(--teal); font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.35;
  box-shadow: 0 2px 6px rgb(0 0 0 / 18%);
}
.chat-launcher::after { /* einmaliger, sanfter Hinweisring */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 rgb(31 78 70 / 45%); animation: chat-ring 2.4s var(--ease-out) 2s 2;
}
@keyframes chat-ring { 0% { box-shadow: 0 0 0 0 rgb(31 78 70 / 45%); } 100% { box-shadow: 0 0 0 16px rgb(31 78 70 / 0%); } }
html.chat-offen .chat-launcher { scale: 0.9; opacity: 0; pointer-events: none; }
.chat-launcher { transition: scale 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.2s ease; }
@media (max-width: 380px) { .wa-float { padding-right: 16px; font-size: 0.875rem; } }
@media (prefers-reduced-motion: reduce) { .chat-launcher::after { animation: none; } }
