/* ============================================================
   KK SCHLAFSYSTEME – style.css
   ============================================================ */

/* ===========================
   1. CSS VARIABLEN  ← NEU: fehlten komplett!
   =========================== */

:root {
  --primary:    #0d3b66;
  --accent:     #d4af37;
  --dark:       #0b1120;
  --text:       #4b5563;
  --light:      #f8fafc;
  --radius:     24px;
  --shadow:     0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
}

/* ===========================
   2. RESET & BASIS  ← NEU: box-sizing, body, a, ul, img
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none; /* ← FIX: Nav-Bullets entfernt */
}

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

/* Sichtbarer Fokus-Ring für Tastatur-Navigation */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===========================
   3. CONTAINER  ← NEU: fehlte komplett!
   =========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================
   4. TYPO & SEKTIONEN
   =========================== */

section {
  padding: 120px 0;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark);
  line-height: 1.2;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ===========================
   5. SCROLL PROGRESS BAR
   =========================== */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--accent);
  z-index: 999999;
  transition: width 0.1s linear;
}

/* ===========================
   6. LOADER
   =========================== */

#loader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  /* FIX: war nur "transition: 1s" – jetzt gezielt */
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
}

/* ===========================
   7. NAVIGATION
   =========================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
  z-index: 9999;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 16px 8%;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  transition: color 0.4s ease;
}

.navbar.scrolled .logo {
  color: var(--dark);
}

.navbar ul {
  display: flex;
  gap: 40px;
}

.navbar a {
  font-weight: 600;
  color: white;
  transition: opacity 0.3s ease;
}

.navbar a:hover {
  opacity: 0.7;
}

.navbar.scrolled ul a {
  color: var(--dark);
}

.nav-cta {
  background: var(--accent);
  padding: 13px 26px;
  border-radius: 50px;
  color: #000 !important;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
  opacity: 1;
}

/* Hamburger-Button  ← FIX: war display:none + separatem .mobile-toggle */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1;
  transition: color 0.4s ease, background 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .hamburger {
  color: var(--dark);
}

.navbar.scrolled .hamburger:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ===========================
   8. HERO
   =========================== */

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #071f38, #0d3b66, #1f5d8a);
}

.hero::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
  top: -400px;
  right: -200px;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 0 20px;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 25px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-trust div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.88;
}

/* ===========================
   9. BUTTONS
   =========================== */

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 18px 36px;
  font-weight: 800;
  border-radius: 16px;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.45);
  color: #000;
}

.btn-secondary {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: white;
  padding: 18px 36px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: white;
  color: var(--dark);
  transform: translateY(-3px);
}

/* ===========================
   10. FLOATING CTA
   ← FIX: war .floating-booking a – jetzt direkt .floating-booking
   =========================== */

.floating-booking {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 18px 28px;
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
  animation: pulse 2s infinite;
}

.floating-booking:hover {
  transform: translateY(-5px);
  color: #000;
  animation-play-state: paused;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0    rgba(212, 175, 55, 0.6); }
  70%  { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);   }
  100% { box-shadow: 0 0 0 0    rgba(212, 175, 55, 0);   }
}

/* ===========================
   11. SCHMERZ-CHECK
   =========================== */

.pain-check {
  background: var(--light);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.pain-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition),
              background var(--transition),
              color var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
}

.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pain-card.selected {
  background: var(--primary);
  color: white;
  border-color: var(--accent);
  transform: scale(1.04);
}

.pain-result {
  margin-top: 50px;
  text-align: center;
}

.pain-result p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 24px;
}

/* ===========================
   12. VORTEILE
   =========================== */

.benefits {
  background: #fff;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.benefit-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid #eef2f7;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.11);
}

.icon {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1;
}

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.benefit-card p {
  line-height: 1.6;
}

/* ===========================
   13. ÜBER UNS
   =========================== */

.about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  width: 100%;       /* ← FIX: fehlte – Bild war nicht responsiv */
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.about-text > span {
  display: block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-text h2 {
  text-align: left;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ===========================
   14. ABLAUF
   =========================== */

.process {
  background: #f1f5f9;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.process-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 18px;
  line-height: 1;
}

.process-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.process-card p {
  line-height: 1.6;
}

/* ===========================
   15. TESTIMONIALS
   =========================== */

.testimonials {
  background: linear-gradient(180deg, white, var(--light));
}

.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.testimonial {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/*
 * FIX: .testimonial::before entfernt.
 * Original hatte ::before { content:"★★★★★" } als Pseudo-Element,
 * aber Stars stehen bereits als .stars im HTML → doppelte Sterne.
 */

.stars {
  color: #f59e0b;
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.testimonial blockquote p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

/* FIX: war .testimonial strong → .testimonial cite (HTML aktualisiert) */
.testimonial cite {
  display: block;
  margin-top: 18px;
  font-weight: 700;
  font-style: normal;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ===========================
   16. BUCHUNG / CALENDLY
   =========================== */

.booking {
  background: linear-gradient(135deg, #071f38, #0d3b66, #1f5d8a);
  color: white;
  position: relative;
  overflow: hidden;
}

.booking::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent);
  top: -250px;
  right: -150px;
  pointer-events: none;
}

.booking h2 {
  color: white;
}

.booking .container > p {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.9;
  margin-top: 8px;
}

.booking-wrapper {
  margin-top: 50px;
  background: white;
  padding: 25px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* ===========================
   17. KARTE / MAP
   ← FIX: war .map-section iframe direkt, jetzt über .map-wrapper
   =========================== */

.map-section {
  background: var(--light);
}

.map-wrapper {
  margin-top: 40px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
}

/* ===========================
   18. FAQ
   =========================== */

.faq {
  background: white;
}

.faq-item {
  background: var(--light);
  border-radius: 18px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

/* Aktives Item hervorheben */
.faq-item:has(button[aria-expanded="true"]) {
  border-color: var(--primary);
}

.faq-item button {
  width: 100%;
  border: none;
  background: none;
  padding: 24px 28px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 16px;
  transition: background 0.2s ease;
}

.faq-item button:hover {
  background: rgba(13, 59, 102, 0.04);
}

/* CSS-Chevron – kein hartcodiertes Zeichen nötig */
.faq-item button::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.35s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item button[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

/* Max-height Trick für flüssige Animation */
/* FIX: hidden-Attribut im HTML entfernt – CSS übernimmt das Verstecken */
.answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 28px;
  line-height: 1.7;
  transition: max-height 0.45s ease, padding 0.3s ease;
}

.answer.active {
  max-height: 300px;
  padding: 0 28px 24px;
}

/* ===========================
   19. LIVE BESUCHER
   =========================== */

.live-visitors {
  background: white;
  padding: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  border-top: 1px solid #f0f4f8;
  border-bottom: 1px solid #f0f4f8;
}

/* ===========================
   20. FOOTER
   =========================== */

footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

footer h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

footer h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
}

footer address {
  font-style: normal;
  opacity: 0.7;
  line-height: 1.8;
  font-size: 0.95rem;
}

footer p {
  opacity: 0.7;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

footer a {
  display: block;
  color: white;
  opacity: 0.7;
  margin-bottom: 10px;
  transition: opacity var(--transition), padding-left var(--transition);
  font-size: 0.95rem;
}

footer a:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer-copy {
  text-align: center;
  opacity: 0.35;
  font-size: 0.82rem;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0 !important;
}


/* ===========================
   21. COOKIE CONSENT BANNER
   DSGVO/TTDSG-konform – mit Kategorien + Toggle
   =========================== */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  max-width: 560px;
  width: calc(100% - 32px);
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  border: 1px solid #e5e7eb;
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cookie-inner {
  padding: 24px 26px 20px;
}

.cookie-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cookie-head h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.cookie-x {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.2s ease;
  font-family: inherit;
}

.cookie-x:hover { color: var(--dark); }

.cookie-desc {
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cookie-desc a {
  color: var(--primary);
  text-decoration: underline;
}

/* Kategorien */
.cookie-cats {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.cookie-cat {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-cat:last-child { border-bottom: none; }

.cookie-cat p {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 6px;
}

.cookie-cat p strong { color: var(--dark); }
.cookie-cat p small  { font-size: 0.72rem; }

.cookie-cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cookie-cat-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  margin-right: 8px;
}

.cookie-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  letter-spacing: 0.3px;
}

.cookie-badge--on {
  background: #d1fae5;
  color: #065f46;
}

.cookie-fixed-check {
  width: 36px;
  height: 20px;
  background: var(--primary);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-switch-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.3s ease;
}

.cookie-switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-switch input:checked + .cookie-switch-slider {
  background: var(--primary);
}

.cookie-switch input:checked + .cookie-switch-slider::before {
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch-slider {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Buttons – WICHTIG: alle gleich prominent (BGH-Anforderung) */
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.cookie-act {
  padding: 10px 8px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, transform 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.cookie-act:hover { opacity: 0.85; transform: translateY(-1px); }

.cookie-act--reject {
  background: #f3f4f6;
  color: var(--dark);
  border-color: #e5e7eb;
}

.cookie-act--save {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}

.cookie-act--accept {
  background: var(--primary);
  color: white;
}

/* Footer Cookie-Einstellungen Link */
.cookie-settings-link {
  display: block;
  background: none;
  border: none;
  color: white;
  opacity: 0.7;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
  text-align: left;
  transition: opacity 0.3s ease, padding-left 0.3s ease;
}

.cookie-settings-link:hover {
  opacity: 1;
  padding-left: 5px;
}

/* Mobile */
@media (max-width: 480px) {
  .cookie-actions {
    grid-template-columns: 1fr;
  }
  .cookie-act--accept { order: -1; }
}



/* ===========================
   22. POPUPS (Offer + Exit)
   ← FIX: Overlay auf Container selbst, nicht als Kind-Element
   =========================== */

#offer-popup,
.exit-popup {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.75);
}

#offer-popup.show,
.exit-popup.active {
  display: flex;
}

.offer-box,
.popup-box {
  position: relative;
  background: white;
  padding: 50px;
  max-width: 580px;
  width: 90%;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.offer-box h2,
.popup-box h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--dark);
  line-height: 1.2;
}

.offer-box p,
.popup-box p {
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Schließen-Button */
.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: var(--dark);
}

/* ===========================
   23. SCROLL REVEAL
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   24. GLASSMORPHISM UTILITY
   =========================== */

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

/* ===========================
   25. RESPONSIVE
   ← FIX: doppeltes @media(992px) zusammengeführt
   =========================== */

@media (max-width: 992px) {
  section {
    padding: 90px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text h2,
  .about-text > span {
    text-align: center;
  }

  .nav-cta   { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }

  .navbar ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 10px 0 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar ul li a {
    color: var(--dark) !important;
    padding: 14px 40px;
    display: block;
    border-bottom: 1px solid #f0f4f8;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-trust {
    gap: 20px;
    margin-top: 36px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .floating-booking {
    left: 15px;
    right: 15px;
    bottom: 15px;
    width: calc(100% - 30px);
    border-radius: 16px;
    justify-content: center;
  }

  .booking-wrapper {
    padding: 10px;
  }

  .about-image img {
    max-height: 380px;
    object-fit: cover;
  }

  .offer-box,
  .popup-box {
    padding: 36px 22px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    max-width: 100%;
    bottom: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .faq-item button {
    font-size: 0.95rem;
    padding: 18px 20px;
  }

  .answer,
  .answer.active {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ===========================
   26. REDUCED MOTION  ← NEU
   =========================== */

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

/* ===========================
   27. TESTIMONIAL MOBILE CAROUSEL
   Auf kleinen Screens: horizontaler Scroll statt Grid
   =========================== */

@media (max-width: 768px) {
  .testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    gap: 16px;
  }

  .testimonial-slider::-webkit-scrollbar {
    display: none;
  }

  .testimonial {
    min-width: calc(100vw - 60px);
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

/* ===========================
   28. BACK-TO-TOP BUTTON
   =========================== */

#back-to-top {
  position: fixed;
  left: 25px;
  bottom: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition),
              visibility var(--transition),
              transform var(--transition),
              background var(--transition);
  z-index: 998;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--accent);
  color: #000;
}

/* ===========================
   29. PAIN-CHECK CTA PULS
   Wenn >= 2 Karten ausgewählt
   =========================== */

.pain-result.cta-pulse .btn-primary {
  animation: ctaPulse 0.9s ease 2;
}

@keyframes ctaPulse {
  0%, 100% { transform: translateY(0);    box-shadow: none; }
  50%       { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(212, 175, 55, 0.5); }
}

/* ===========================
   30. REVEAL MIT STAGGER
   Transition-Delay wird per JS inline gesetzt
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NEUE SEKTIONEN – Funnel-Redesign
   ============================================================ */

/* ===========================
   31. SECTION BADGE (Label über h2)
   =========================== */

.section-badge {
  display: block;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-badge--light {
  color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   32. TRUST TICKER (scrollendes Band)
   =========================== */

.trust-ticker {
  background: var(--primary);
  color: white;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.trust-ticker-track {
  display: inline-block;
  animation: ticker 35s linear infinite;
  padding-left: 100%;
}

.trust-ticker:hover .trust-ticker-track {
  animation-play-state: paused;
}

.trust-ticker-track span {
  margin-right: 70px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.92;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   33. DAS SCHLAFSYSTEM (Produkt-Sektion)
   =========================== */

.product-section {
  background: var(--light);
}

.product-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-top: 60px;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.product-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.product-feature p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Materialien */
.materials {
  margin-top: 70px;
  text-align: center;
}

.materials h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.materials-intro {
  margin-bottom: 28px;
  color: var(--text);
}

.materials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.material-badge {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: border-color var(--transition), background var(--transition);
}

.material-badge:hover {
  border-color: var(--accent);
  background: #fffbee;
}

/* ===========================
   34. WIE ES WIRKT (dunkle Sektion)
   =========================== */

.mechanism-section {
  background: var(--dark);
  color: white;
}

.mechanism-section h2 {
  color: white;
}

.mechanism-intro {
  color: rgba(255, 255, 255, 0.72);
}

.mechanism-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.mechanism-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 36px;
  transition: background var(--transition), border-color var(--transition);
}

.mechanism-step:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(212, 175, 55, 0.4);
}

.mechanism-step .step-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}

.mechanism-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.mechanism-step p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===========================
   35. STATISTIKEN BALKEN
   =========================== */

.stats-bar {
  background: var(--primary);
  padding: 60px 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  opacity: 0.75;
  font-weight: 500;
  line-height: 1.4;
}

/* ===========================
   36. ABLAUF: Prozess CTA
   =========================== */

.process-cta {
  text-align: center;
  margin-top: 50px;
}

.btn-process {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 18px 40px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-process:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ===========================
   37. BOOKING TRUST ICONS
   =========================== */

.booking-trust {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 10px;
}

.booking-trust span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-trust i {
  color: var(--accent);
}

/* ===========================
   38. RESPONSIVE – neue Sektionen
   =========================== */

@media (max-width: 992px) {
  .product-highlight {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stat-item::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .mechanism-steps {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .booking-trust {
    gap: 16px;
  }

  .trust-ticker-track span {
    margin-right: 40px;
  }

  .materials-grid {
    gap: 8px;
  }

  .material-badge {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .product-feature {
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================================================
   NEUE ELEMENTE – Änderungsrunde 2
   ============================================================ */

/* ===========================
   LOADER ENTFERNT
   =========================== */
#loader { display: none !important; }

/* ===========================
   SVG LOGO
   =========================== */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  transition: color 0.4s ease;
  flex-shrink: 0;
}

.navbar.scrolled .logo {
  color: var(--dark);
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.08);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-kk {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ===========================
   HERO: Layout-Fix + Proportionale Verkleinerung
   – height: auto + min-height damit Flex-Zentrierung korrekt arbeitet
   – padding direkt auf .hero statt auf .hero-content
   =========================== */

.hero {
  height: auto;
  min-height: 100svh;
  /* Oben: Navbar (~75px) + Luft. Unten: weniger = optisch leicht über Mitte */
  padding: 110px 40px 70px;
}

/* Content breiter, kein eigenes top-padding mehr */
.hero-content {
  max-width: 1100px;
  padding: 0 20px;
}

/* Badge – etwas kleiner, weniger Abstand nach unten */
.hero-badge {
  font-size: 0.72rem;
  padding: 7px 17px;
  margin-bottom: 20px;
  letter-spacing: 2.5px;
  opacity: 0.82;
}

/* H1 – groß und dramatisch, Layout hält durch height: auto */
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

/* Subtext kürzer */
.hero p {
  font-size: 0.95rem;
  max-width: 600px;
  line-height: 1.65;
}

/* Buttons im Hero – etwas kompakter */
.hero .btn-primary,
.hero .btn-secondary {
  padding: 13px 24px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.hero-buttons {
  gap: 12px;
  margin-top: 24px;
}

/* Trust-Zeile enger */
.hero-trust {
  margin-top: 28px;
  gap: 20px;
}

.hero-trust div {
  font-size: 0.83rem;
  gap: 8px;
}

/* Mobile: angepasstes Padding */
@media (max-width: 768px) {
  .hero {
    padding: 96px 20px 60px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 88px 16px 56px;
  }
  .hero h1 {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }
}

/* ===========================
   BUTTONS: Shimmer-Animation (modern)
   =========================== */

.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Shimmer-Licht fährt über den Button */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  z-index: 1;
  pointer-events: none;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

/* Kein störendes translateY mehr – nur sanftes Scale */
.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.45);
}

/* Sekundär-Button: Fill-von-links */
.btn-secondary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.btn-secondary:hover::before { transform: scaleX(1); }
.btn-secondary:hover { color: var(--dark); transform: none; }

/* Prozess-Button Hover ebenfalls ohne translateY */
.btn-process:hover {
  transform: scale(1.03);
}

/* ===========================
   PAIN CHECK: Auswerten Button & Bild
   =========================== */

.pain-section-image {
  margin: 40px auto 0;
  max-width: 700px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Fallback wenn Bild noch nicht vorhanden */
.section-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  border-radius: var(--radius);
  background: #dde3ec;
  display: block;
  /* Zeigt grau wenn src fehlt */
  min-height: 120px;
}

.btn-auswerten {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.btn-auswerten::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-auswerten:hover:not(:disabled)::before { transform: translateX(100%); }
.btn-auswerten:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 15px 35px rgba(13, 59, 102, 0.35);
}

.btn-auswerten:disabled,
.btn-auswerten[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-auswerten.ready {
  background: var(--accent);
  color: #000;
  opacity: 1;
}

/* ===========================
   PAIN RESULT POPUP
   =========================== */

.pain-popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
}

.pain-popup-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pain-popup-box {
  position: relative;
  background: white;
  padding: 50px 44px;
  max-width: 520px;
  width: 100%;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.pain-popup-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  line-height: 1;
}

.pain-popup-box h3 {
  font-size: 1.65rem;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.pain-popup-box p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
  font-size: 1rem;
}

.pain-popup-later {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.pain-popup-later:hover { color: var(--text); }

/* Farbcodierung je Dringlichkeit */
.pain-popup-box.level-low   .pain-popup-icon { filter: hue-rotate(0deg); }
.pain-popup-box.level-mid   { border-top: 4px solid var(--accent); }
.pain-popup-box.level-high  { border-top: 4px solid #e11d48; }

/* ===========================
   MATERIAL INFO POPUP (Bottom Sheet)
   =========================== */

.material-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: white;
  border-radius: 20px;
  padding: 22px 26px;
  max-width: 460px;
  width: calc(100% - 40px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  border-left: 4px solid var(--accent);
}

.material-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.material-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.material-popup-close:hover { color: var(--dark); }

.material-popup-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-right: 24px;
}

.material-popup-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.material-popup h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.material-popup p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

/* Material Badge: aktiver Zustand – WICHTIG: nicht .active (Konflikt mit reveal-Animation!) */
.material-badge.highlighted {
  border-color: var(--accent);
  background: #fffbee;
  transform: scale(1.06);
}

.materials-hint {
  text-align: center;
  color: #9ca3af;
  font-size: 0.82rem;
  margin-top: 16px;
}

/* ===========================
   TESTIMONIAL AVATARE
   =========================== */

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.testimonial-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--light);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 1.3rem;
}

/* Bild vorhanden → Fallback verstecken */
.testimonial-avatar:has(img[src]:not([src=""])) .avatar-fallback {
  opacity: 0;
}

.testimonial-header cite {
  display: block;
  font-weight: 700;
  font-style: normal;
  color: var(--dark);
  font-size: 0.95rem;
  margin: 0;
}

.testimonial-location {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}

.testimonial .stars {
  margin-bottom: 12px;
}

/* cite unten entfernen (jetzt oben) */
.testimonial > cite { display: none; }

/* ===========================
   RESPONSIVE: NEUE ELEMENTE
   =========================== */

@media (max-width: 768px) {
  .pain-section-image {
    margin-top: 28px;
  }

  .pain-popup-box {
    padding: 36px 24px;
  }

  .pain-popup-box h3 {
    font-size: 1.4rem;
  }

  .material-popup {
    bottom: 16px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .logo-sub { display: none; } /* Nur "KK" auf sehr kleinen Screens */

  .btn-auswerten {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   CONTENT PLACEHOLDERS
   (Google Maps + Calendly ohne Einwilligung)
   =========================== */

.content-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #f1f5f9;
  border-radius: var(--radius);
  border: 2px dashed #d1d5db;
  padding: 40px 24px;
  text-align: center;
}

/* Dunkle Variante (im Booking-Section-Hintergrund) */
.content-placeholder--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  min-height: 340px;
}

.content-placeholder--dark h4 { color: white; }
.content-placeholder--dark p  { color: rgba(255,255,255,0.7); }
.content-placeholder--dark small { color: rgba(255,255,255,0.5); }

.content-placeholder-inner {
  max-width: 380px;
}

.placeholder-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.content-placeholder h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.content-placeholder p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.content-placeholder small {
  font-size: 0.78rem;
  color: #9ca3af;
}

.btn-placeholder {
  display: inline-block;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 16px;
}

.btn-placeholder:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(212,175,55,0.4);
}

.placeholder-alt {
  font-size: 0.82rem !important;
  color: #9ca3af;
  margin-bottom: 0 !important;
}

.content-placeholder--dark .placeholder-alt {
  color: rgba(255,255,255,0.45) !important;
}

.placeholder-alt a {
  color: var(--accent);
  font-weight: 600;
}


/* ===========================
   PASTEUR ZITAT SEKTION
   =========================== */
 
.quote-section {
  background: var(--dark);
  padding: 110px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
 
/* Goldener Glow-Hintergrund */
.quote-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
 
.quote-wrapper {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
 
.quote-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0.8;
}
 
.quote-block {
  position: relative;
  margin: 0;
}
 
/* Dekoratives Anführungszeichen */
.quote-mark {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.65;
  color: var(--accent);
  opacity: 0.55;
  user-select: none;
}
 
.quote-mark--close {
  line-height: 0;
  margin-top: 8px;
}
 
.quote-block p {
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  color: white;
  line-height: 1.65;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.2px;
  margin: 0;
  padding: 0 20px;
}
 
/* Trennlinie + Autor */
.quote-footer {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
 
.quote-divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
  margin-bottom: 4px;
}
 
.quote-author {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
 
.quote-year {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  letter-spacing: 1px;
}
 
@media (max-width: 768px) {
  .quote-section {
    padding: 80px 24px;
  }
  .quote-block p {
    padding: 0;
  }
}
 