
/* Local font embedding: Poppins (self-hosted) */
@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins-Regular.woff2') format('woff2'),
       url('./fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins-Medium.woff2') format('woff2'),
       url('./fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins-SemiBold.woff2') format('woff2'),
       url('./fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('./fonts/Poppins-Bold.woff2') format('woff2'),
       url('./fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Custom styles for Frag nicht dein Kind Website */

/*
  Verwende CSS‑Variablen, um die Primärfarbe der Marke festzulegen. Der Wert
  basiert auf der dominierenden Farbe des Logos (#731EB1). Über die Hover‑Variante
  wird eine leicht aufgehellte Nuance definiert. Solltest du die Markenfarbe
  später ändern müssen, passe die Variablen hier zentral an.
*/
:root {
  --brand-color: #731EB1;
  --brand-color-hover: #8C3CC8;
}

/* Sanftes Scrollen zwischen Ankern aktivieren */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  /*
    Für die Zielgruppe 40+ mit eventuell nachlassender Sehkraft erhöhen wir
    die Grundschriftgröße. Der W3C empfiehlt für Fließtext 18 pt bei normalem
    Gewicht oder 14 pt in Fettschrift【289988525050846†L614-L617】. Wir wählen daher
    18 px als Basiswert und erhöhen den Zeilenabstand, um die Lesbarkeit zu
    verbessern. Die Schriftfamilie bleibt Poppins/Helvetica als klarer Sans‑Serif.
  */
  font-family: 'Poppins', 'Helvetica Neue', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  /* Platz für die fixe Navbar schaffen, damit Inhalte nicht überdeckt werden */
  padding-top: 110px; /* entspricht ~Navbar-Höhe auf Desktop (Logo 95px + Padding) */
}

/* Anker-Offset: sorgt dafür, dass scrolled-to Sektionen nicht unter die Navbar rutschen */
section[id],
header[id] {
  scroll-margin-top: 120px; /* etwas größer als padding-top */
}

.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
  /* Markenfarbe anwenden */
  color: var(--brand-color) !important;
}

.nav-link {
  color: #333;
  font-weight: 500;
  margin-right: 20px;
  /* Größere Schrift und ausreichend Platz für Unterstreichung.
     Eine etwas größere Schrift (1.05rem) erleichtert das Lesen bei reduzierter Sehkraft. */
  font-size: 1.05rem;
  /* Platz für Unterstreichung in Markenfarbe */
  border-bottom: 3px solid transparent;
  padding-bottom: 8px; /* etwas Raum, damit die Linie nicht am Text klebt */
  transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.nav-link:hover {
  color: var(--brand-color);
  border-bottom-color: var(--brand-color);
}

/* Aktive Seite in der Navbar in Markenfarbe unterstreichen */
.navbar .nav-link.active,
.navbar .nav-link.show {
  color: var(--brand-color);
  border-bottom-color: var(--brand-color);
}

.hero {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* nutze die Markenfarbe als Overlay für eine warme Atmosphäre */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.48) 60%,
    rgba(0, 0, 0, 0.58) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Leichte Kontur für bessere Lesbarkeit auf hellem Bildbereich */
.hero h1,
.hero p.lead {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.section-title {
  font-weight: 600;
  margin-bottom: 40px;
}

.feature-icon {
  color: var(--brand-color);
  margin-bottom: 15px;
}

/* Feature cards: bessere Lesbarkeit und Hierarchie */
.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px 15px;
  height: 100%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  min-height: 180px;
}

.feature-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0 5px;
  box-sizing: border-box;
}

.feature-content h5 {
  font-weight: 600;
  margin: 12px 0 10px;
  color: #333;
}

.feature-content p {
  color: #555;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  padding: 0 5px;
  box-sizing: border-box;
  margin-top: auto;
}

/* Icon in runder Fläche */
.feature-card .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: auto;
  border-radius: 50%;
  background: rgba(115, 30, 177, 0.12);
  color: var(--brand-color);
  margin-bottom: 8px;
  flex-shrink: 0;
  font-size: 1.5rem !important;
}

/* sanfte Animation fürs Auf/Zu */
.feature-card .feature-text{
  overflow: visible;
  max-height: 0;
  transition: max-height .25s ease;
}

.feature-card h5 {
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 6px;
}

.feature-card p {
  color: #555;
  margin: 0;
}

.pricing-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 30px;
  /* Grid-Layout: Badge, Titel, Preis, Features (flexibel), CTA, Hinweis */
  display: grid;
  /* Fix first row height (badge row) so cards align even if a badge is missing */
  grid-template-rows: 40px auto auto 1fr auto auto;
}

/* Reserviere etwas Platz für Überschrift und Featureliste, damit die Buttons über alle Karten bündig stehen */
.pricing-card h3 { min-height: 32px; }
.pricing-card .pricing-features { min-height: 110px; }

.pricing-card .price {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-color);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* Pricing enhancements */
.pricing-toggle .btn.active {
  color: #fff;
  background-color: var(--brand-color);
  border-color: var(--brand-color);
}

.pricing-card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.10); }
.pricing-card.is-featured { border-color: rgba(115,30,177,0.35); box-shadow: 0 10px 24px rgba(115,30,177,0.15); }

.price .price-amount { font-size: 2rem; font-weight: 800; color: var(--brand-color); }
.price .price-term { font-size: 1rem; color: #666; margin-left: 6px; }

/* Replace pseudo checkmarks for icon list */
.pricing-card .pricing-features { list-style: none; padding: 0; margin: 0 0 8px; }
.pricing-card .pricing-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.pricing-card .pricing-features li::before { content: none; }
.pricing-card .pricing-features i.fa-check { color: var(--brand-color); background: rgba(115,30,177,0.12); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.pricing-card .pricing-features li.premium-only span { color: #222; font-weight: 400; }
.pricing-card .pricing-features li.common span { color: #444; }

.pricing-note { color: #6c757d; font-size: 0.95rem; }

/* Auffälliges Badge für "Beliebt" */
.badge-popular {
  background: linear-gradient(135deg, var(--brand-color), var(--brand-color-hover));
  color: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 999px; /* Pill-Form */
  padding: 6px 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(115, 30, 177, 0.25);
}

/* Button in Pricing-Karte immer nach unten schieben */
/* CTA steht in Grid-Zeile 5 automatisch unten, kein auto-margin nötig */

/* Platzhalter-Badge, um gleiche Kopf-Höhe zu sichern */
.placeholder-badge {
  visibility: hidden;
}

.about-section {
  background-color: #f8f9fa;
  padding: 60px 0 10px; /* reduzierter Abstand nach unten */
  margin-bottom: -15px; /* zieht den Footer näher heran */
}

/* Über uns Karten */
.about-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 22px 22px 6px;
  display: flex;
  flex-direction: column;
}

.about-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.about-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(115, 30, 177, 0.12);
  color: var(--brand-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.about-card-body p {
  margin-bottom: 14px;
}

.contact-section {
  padding: 60px 0;
}

footer {
  background-color: #f8f9fa;
  padding: 20px 0;
  font-size: 14px;
}

/* Reduziere unteren Abstand der Bildunterschrift im Über-uns-Bereich */
.about-section .text-muted.small {
  margin-bottom: 0.25rem;
}

footer a {
  color: var(--brand-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Full‑bleed Bild mit Overlay‑Caption (Überlingen) */
.fullbleed-figure {
  position: relative;
}
.fullbleed-figure img {
  display: block;
  width: 100%;
  height: auto;
}
/* dunkler Bodenverlauf für bessere Lesbarkeit der Beschriftung */
.fullbleed-figure::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 70%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.fullbleed-caption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: #2b2b2b;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  backdrop-filter: saturate(140%) blur(2px);
}
@media (max-width: 575.98px) {
  .fullbleed-caption { font-size: 0.9rem; padding: 6px 10px; bottom: 10px; }
}

/* Verhindere, dass der bottom Newsletter‑Banner auf Informationsseiten (AGB, Datenschutz, Impressum, FAQ) angezeigt wird. 
   Die Banner wird über JavaScript erzeugt. Wenn der Body die Klasse info-page trägt, blenden wir ihn aus. */
.info-page .subscribe-banner {
  display: none !important;
}

/* Vertrauen & Datenschutz Panel */
.trust-panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
}

.trust-list li i.fa-check {
  color: var(--brand-color);
  background: rgba(115, 30, 177, 0.12);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trust-list li span {
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  /* Kleinere Navbar auf Mobilgeräten => weniger Abstand nötig */
  body {
    padding-top: 72px; /* Logo 56px + etwas Padding */
  }
  .hero {
    padding: 80px 0;
  }
  .pricing-card {
    margin-bottom: 30px;
  }
}

/*
 * Button‑Overrides
 * Bootstrap verwendet für Buttons standardmäßig eine blaue Farbe (#0d6efd).
 * Um die Markenidentität zu wahren, überschreiben wir diese Farben mit der
 * definierten Markenfarbe. Hover‑, Fokus‑ und Aktivzustände werden mit
 * einer leicht aufgehellten Variante versehen.
 */
.btn-primary {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--brand-color-hover);
  border-color: var(--brand-color-hover);
}
.btn-outline-primary {
  color: var(--brand-color);
  border-color: var(--brand-color);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff;
  background-color: var(--brand-color);
  border-color: var(--brand-color);
}
.bg-primary {
  background-color: var(--brand-color) !important;
}
.text-primary {
  color: var(--brand-color) !important;
}

/* Allgemeine Button‑Anpassungen für bessere Lesbarkeit und größere Klickfläche */
.btn {
  font-size: 1rem; /* größere Schrift für leichtere Lesbarkeit */
  padding: 0.75rem 1.5rem; /* Höhe von mindestens 44px gem. WCAG-Empfehlung【289988525050846†L687-L698】 */
  line-height: 1.4;
}

/* Große Buttons (btn-lg) nochmals leicht größer, um sich auf mobilen Geräten angenehm tippen zu lassen */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}
/* Einheitliche Logo-Größe in der Navbar */
.navbar-brand img {
  height: 95px;
  width: auto;
}
@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 56px;
  }
  .navbar-collapse {
    text-align: right;
    padding-right: 0; /* Kein zusätzlicher Innenabstand */
  }
  .navbar-nav {
    margin-left: auto;
    text-align: right;
    width: 100%;
    padding-right: 0.5rem; /* Konsistenter Abstand zum rechten Rand */
  }
  .nav-item {
    text-align: right;
    padding-right: 0; /* Kein zusätzlicher Innenabstand */
  }
  .navbar-toggler {
    margin-right: 0.5rem; /* Konsistenter Abstand zum rechten Rand */
    padding: 0.25rem 0.5rem;
  }
  .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
  }
  /* Sicherstellen, dass die Links nicht zu weit links beginnen */
  .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
}

/* Zusätzlicher Abstand oberhalb der Features-Tagline */
.features-tagline {
  margin-top: 3rem; /* etwas mehr als mt-5 auf kleineren Screens */
  font-size: 1.125rem; /* etwas größer als Fließtext */
  line-height: 1.7;
  max-width: 48rem; /* begrenzte Zeilenbreite für bessere Lesbarkeit */
  margin-left: auto;
  margin-right: auto;
  color: #2b2b2b;
  letter-spacing: 0.2px;
  text-wrap: balance; /* moderne Browser verteilen Umbrüche harmonischer */
}
@media (min-width: 768px) {
  .features-tagline {
    margin-top: 4.5rem; /* mehr Luft auf größeren Screens */
    font-size: 1.25rem; /* auf größeren Screens etwas größer */
  }
}

/* Illustration unter Funktionen */
.feature-illustration {
  max-width: 720px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
@media (max-width: 575.98px) {
  .feature-illustration { border-radius: 10px; }
}

/* Cartoon-Feature-Kachel Feintuning */
.feature-cartoon-card {
  padding: 18px 18px 14px; /* etwas kompakter als Standard-Feature-Card */
}
.feature-cartoon-card .feature-illustration {
  display: block;
  width: 100%;
  height: auto;
}

/* Triptych: 3-Bild-Layout für den Cartoon */
.triptych {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.triptych-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  aspect-ratio: 1 / 1; /* gleichmäßige Quadrate, falls Bilder variieren */
  object-fit: cover;
}
/* Triptychon - Drei Bilder nebeneinander (Desktop) oder untereinander (Mobile) */
.triptych {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

/* Mobile Ansicht: Bilder untereinander */
@media (max-width: 767.98px) {
  .triptych {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .triptych-img {
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
}

/* Desktop Ansicht: Drei Bilder nebeneinander */
@media (min-width: 768px) {
  .triptych {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  
  .triptych-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .triptych-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }
}

/* Desktop-Layout: Kachel-Gruppen links/rechts um ein zentriertes Bild */
@media (min-width: 992px) { /* lg */
  /* Engere Innenabstände in der Zeile, damit das Phone visuell mittiger wirkt */
  .features-frame { --bs-gutter-x: 2rem; }
  .features-stack {
    display: grid;
    gap: 22px; /* etwas mehr Luft zwischen Karten */
  }
  /* Karten im Desktop-Stack gleich breit und zentriert halten */
  .features-stack .feature-card {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Stacks ohne seitlichen Versatz, damit das Smartphone exakt mittig wirkt */
  .features-left { padding-right: 0; }
  .features-right { padding-left: 0; }
  .features-center-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 24px; /* weiter nach unten setzen, damit es stärker eingerahmt wird */
    margin-left: auto;
    margin-right: auto; /* absolut zentrieren im Grid */
  }
  .features-center-logo,
  .features-center-phone {
    width: 100%;
    max-width: 540px; /* mehr Präsenz für das Motiv */
    height: auto;
    border-radius: 0; /* echtes Gerätebild wirkt ohne extra Kachel-Radius besser */
    background: transparent; /* kein weißer Hintergrund hinter PNG */
  }
  /* Leichte vertikale Staffelung für lebendigeres Layout */
  .features-left .feature-card:nth-child(1) { margin-top: 0; }
  .features-left .feature-card:nth-child(2) { margin-top: 14px; }
  .features-left .feature-card:nth-child(3) { margin-top: 28px; }
  .features-right .feature-card:nth-child(1) { margin-top: 28px; }
  .features-right .feature-card:nth-child(2) { margin-top: 14px; }
  .features-right .feature-card:nth-child(3) { margin-top: 0; }
}

/* Holistisches Desktop-Layout unter "Funktionen" */
@media (min-width: 992px) { /* lg */
  .features-holistic { margin-bottom: 0.75rem; }
}

.holistic-illustration {
  max-width: 100%; /* überschreibt die generelle 720px Begrenzung */
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Kompaktere Mini-Kacheln rechts neben der Illustration */
.feature-mini {
  padding: 16px 14px;
}

/* Feature card styles */
.feature-circle-item h5 { margin-bottom: 4px; font-size: 1rem; }
.feature-circle-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
  text-wrap: pretty;
  hyphens: auto;
}

/* Bühne begrenzt den Bereich & ist Container für cqw */
.features-circle-stage{
  margin: 24px auto 0;   /* lassen */
  max-width: 1000px;
  aspect-ratio: 1 / 1;
  position: relative;
  container-type: inline-size;
  container-name: circle;
  margin-inline: auto;   /* <-- ergänzen, garantiert mittig */
}

/* Kreis-Container nutzt die Bühne vollständig */
.features-circle{
  position: absolute;
  inset: 0;

  /* Größen als Variablen */
  --phone-w: clamp(140px, 22cqw, 420px);
  --card-h:  clamp(170px, 22cqw, 260px);
  --ring-gap: clamp(22px, 3.2cqw, 56px);

  /* Mindest-Radius aus den Größen + optionaler Basisradius */
  --circle-radius: max(
    clamp(200px, 34cqw, 520px), /* Basis (dein alter Wert, leicht erhöht) */
    calc( (var(--phone-w) / 2) + (var(--card-h) / 2) + var(--ring-gap) )
  );

  --card-w: clamp(120px, 16cqw, 220px);
  --items-offset-x: 0cqw;
  --items-offset-y: 0cqw;
  --items-radius-adjust: 4cqw;
}

/* Telefon exakt zentriert */
.features-circle-center{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
}
.features-circle .features-center-phone{
  width: clamp(140px, 22cqw, 420px);
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none !important;
}

/* Fallback, falls cqw nicht unterstützt wird */
@supports not (width: 1cqw){
  .features-circle{
    --circle-radius: clamp(200px, 34vw, 420px);
    --card-w:       clamp(120px, 16vw, 220px);
    --items-offset-x: 0vw;
    --items-offset-y: 0vw;
    --items-radius-adjust: 0vw;
  }
  .features-circle .features-center-phone{
    width: clamp(140px, 22vw, 420px);
  }
  .features-circle .feature-card.feature-circle-item{
    height: clamp(150px, 18vw, 220px);
  }
}

/* Karten im Kreis */
.feature-circle-item{
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: center;
  width: var(--card-w);
  z-index: 3;
  --nudge-x: 0px;
  --nudge-y: 0px;
  --radius: calc(var(--circle-radius) + var(--items-radius-adjust, 0px));
  transform:
    translate(-50%, -50%)  
    rotate(var(--angle)) translate(var(--radius))
    rotate(calc(-1 * var(--angle)))
    translate(calc(var(--nudge-x) + var(--items-offset-x)),
              calc(var(--nudge-y) + var(--items-offset-y)));
}

/* optional: Höhe der Kachel (mit Fallback) */
.features-circle .feature-card.feature-circle-item{ height: clamp(170px, 22cqw, 260px); }
@supports not (width: 1cqw){
  .features-circle .feature-card.feature-circle-item{ height: clamp(170px, 22vw, 260px); }
}

/* Winkel (Start oben, Schritt ~51.43°) */
.feature-circle-item.item1{ --angle: -90deg; }
.feature-circle-item.item2{ --angle: -38.571deg; }
.feature-circle-item.item3{ --angle: 12.857deg; }
.feature-circle-item.item4{ --angle: 64.286deg; }
.feature-circle-item.item5{ --angle: 115.714deg; }
.feature-circle-item.item6{ --angle: 167.143deg; }
.feature-circle-item.item7{ --angle: -141.429deg; }

/* Feintuning (optional) */
.features-circle .item1{ --nudge-y: 0px; }
.features-circle .item2{ --nudge-x:  4px; }
.features-circle .item7{ --nudge-x: -4px; }

/* Gemeinsame Variable für Kartenhöhe – für Orbit UND Abstand nach oben */
.features-circle-stage{
  /* Kartenhöhe als Variable, damit wir damit rechnen können */
  --card-h: clamp(170px, 22cqw, 260px);
  /* Abstand unter der H2: halbe Kartenhöhe (Puffer) */
  padding-top: calc(var(--card-h) * 0.9);
}

/* Kritischer Breitenbereich: Orbit leicht nach unten, Ring etwas größer */
@container circle (min-width: 620px) and (max-width: 980px){
  .features-circle{
    --items-offset-y: 3cqw;                 /* Anordnung etwas nach unten */
    --items-radius-adjust: 1.8cqw;          /* Ring größer */
    --ring-gap: clamp(16px, 2.6cqw, 36px);  /* mehr Abstand zum Handy */
  }
  .features-circle-stage{
    padding-top: calc(var(--card-h) * 1.0); /* mehr Puffer unter der H2 */
  }
}

/* sehr kleine Screens */
@media (max-width: 480px){
  .features-section{ padding-bottom: 100px; }
  .features-circle-stage{ aspect-ratio: 1 / 1.2; }
}

/* Hero-CTA: gleiche Breite/Höhe, kein Bootstrap-Spacing */
.hero-cta{
  display: grid;
  gap: 14px;                 /* Abstand zwischen den Buttons (mobil) */
  max-width: 520px;
  margin: 18px auto 0;
}
.hero-cta .btn{
  display: flex;             /* zentrierter Text */
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;          /* gleiche Höhe, gerne anpassen */
  margin: 0 !important;      /* neutralisiert me-2 & .btn + .btn */
}
.hero-cta .btn + .btn{       /* überschreibt Bootstrap .btn + .btn */
  margin-left: 0 !important;
}

@media (min-width: 576px){
  .hero-cta{
    grid-template-columns: 1fr 1fr; /* nebeneinander ab sm */
    gap: 18px;
  }
}

/* ---------------------------------------------------------------------- */
/* === Mobile-Fallback für den Features-Kreis === */
@media (max-width: 576px){
  .features-circle-stage{ aspect-ratio: auto; max-width: 560px; }
  .features-circle{ position: static; inset: auto; display: grid; grid-template-columns: 1fr; gap: 14px; overflow: visible; }

  /* WICHTIG: Phone ausblenden, sonst Überlappung */
  .features-circle-center{ display: none; }

  .feature-circle-item{ position: static; transform: none; width: auto; height: auto; }
  .features-circle .feature-card.feature-circle-item{ height: auto; }
}
/* ---------------------------------------------------------------------- */

/* Mobile styles for feature cards */
@media (max-width: 576px) {
  .feature-card {
    margin-bottom: 15px;
  }
}

.features-circle .item1{ --nudge-y: 0px; } /* keine Extra-Anhebung */

/* Fallback, falls cqw nicht unterstützt wird */
@supports not (width: 1cqw){
  .features-circle-stage{ --card-h: clamp(170px, 22vw, 260px); padding-top: calc(var(--card-h) * 0.55); }
  .features-circle .feature-card.feature-circle-item{ height: var(--card-equal-h, var(--card-h)); }
}

/* Auf sehr kleinen Screens nutzt du ohnehin das Grid – Puffer wieder weg */
@media (max-width: 576px){
  .features-circle-stage{ padding-top: 0; }
}

/* FINAL MOBILE OVERRIDES – keep last in file */
@media (max-width: 576px) {
  /* Übersteuert die spätere allgemeine Höhe */
  .features-circle .feature-card.feature-circle-item { height: auto !important; }

  /* Make sure feature cards are properly sized on mobile */
  .feature-card {
    height: auto !important;
  }
}

/* Mobile styles for feature cards */
@media (max-width: 576px) {
  .feature-card {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .feature-content {
    padding: 15px;
  }
}

  /* optional: leichte Hervorhebung, wenn offen */
  .feature-circle-item.is-open {
    border-color: rgba(115, 30, 177, 0.35);
    box-shadow: 0 8px 18px rgba(115, 30, 177, 0.12);
}

/* === TABLET FIX für den Kreis (einfach ANS ENDE der CSS einfügen) === */
/* Ziel: keine Überlappung mit dem Phone, keine Kollision mit der nächsten Sektion */
@media (min-width:768px) and (max-width:991.98px){
  /* Bühne höher + zusätzlicher Puffer unten */
  .features-circle-stage{
    aspect-ratio: 1 / 1.1;                                   /* etwas mehr Höhe als 1:1 */
    padding-top:    calc(var(--card-h) * 1.05);               /* oben mehr Luft */
    padding-bottom: calc(var(--card-h) * 0.60);               /* unten Puffer gegen Überstand */
  }

  /* Ring entzerren: Phone minimal kleiner, Karten etwas schmaler, Radius/Abstand größer */
  .features-circle{
    --phone-w:            clamp(150px, 20cqw, 340px);         /* Phone etwas kleiner */
    --card-w:             clamp(160px, 18cqw, 240px);         /* Karten schmaler => weniger Hyphen, kein Ragen */
    --ring-gap:           clamp(24px, 3.6cqw, 52px);          /* mehr Abstand zum Phone */
    --items-offset-y:     3.8cqw;                             /* Ring einen Tick nach unten */
    --items-radius-adjust:3.2cqw;                             /* etwas größerer Kreisradius */
  }

  /* Kartenhöhe leicht reduzieren, Text sauber umbrechen */
  .features-circle .feature-card.feature-circle-item{
    min-height: clamp(160px, 20cqw, 220px);                   /* flacher = weniger Kollisionsrisiko */
  }
  .features-circle .feature-card .feature-content p{
    font-size: clamp(0.82rem, 1.6cqw, 0.95rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
    hyphens: auto;
    margin-top: 0;                                            /* kein unnötiger Zusatz-Offset */
  }
}

/* Optional, falls dein Abschnitt in einem Bootstrap-.container steckt (md = 720px).
   Damit gewinnst du seitlich Luft, ohne das restliche Layout anzufassen. */
@media (min-width:768px) and (max-width:991.98px){
  .features-section.container,
  .features-section .container{
    max-width: clamp(860px, 96vw, 1080px);
  }
}
/* Cards-only Ansicht (ohne Phone) für kleine Tablets */
@media (min-width:577px) and (max-width:767.98px){
  .features-circle-stage{
    aspect-ratio: auto;
    max-width: 820px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .features-circle{
    position: static;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr)); /* 2 Spalten */
    gap: 18px 20px;
    overflow: visible;
  }
  .features-circle-center{ display: none; }        /* Phone ausblenden */
  .feature-circle-item{ position: static; transform: none; width: auto; height: auto; }
  .features-circle .feature-card.feature-circle-item{ height: auto; } /* frei wachsen lassen */
}


/* Optional: Notbremse bei sehr langen Texten (max. 3 Zeilen) */
@media (min-width:577px) and (max-width:767.98px){
  .feature-card .feature-content p{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
}

/* Fallback, falls cqw nicht unterstützt wird (selber Bereich) */
@supports not (width: 1cqw){
  @media (min-width:577px) and (max-width:767.98px){
    .features-circle-stage{
      aspect-ratio: 1 / 1.22;
      padding-top:    12vw;
      padding-bottom: 8vw;
    }
    .features-circle{
      --phone-w:            clamp(120px, 20vw, 260px);
      --card-w:             clamp(145px, 18vw, 200px);
      --ring-gap:           clamp(28px, 4vw, 58px);
      --items-offset-y:     5vw;
      --items-radius-adjust:4.6vw;
    }
    .features-circle .feature-card.feature-circle-item{
      min-height: clamp(148px, 19vw, 208px);
    }
  }
}
