/* =========================================================
   Mein Kissen — Apple-inspirierter, minimalistischer UI-Look
   Mobile-first • responsive • sanfte Animationen
   ---------------------------------------------------------
   Erwartung: result.html nutzt überwiegend semantische Tags
   (header/main/section/h1/h2/p/ul/li/form/button)
   und optional Klassen wie .hero, .container, .cta, .card, etc.
   Dieses CSS stylt BEIDES: generische Elemente + optionale Hooks.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root{
  /* Colors (Apple-like: viel Weiß, feines Grau, tiefe Typo) */
  --bg: #ffffff;
  --bg-elev: #f5f5f7;
  --bg-elev-2: #fbfbfd;
  --text: #1d1d1f;
  --muted: rgba(29,29,31,.72);
  --muted-2: rgba(29,29,31,.56);
  --border: rgba(0,0,0,.12);
  --hairline: rgba(0,0,0,.08);

  --accent: #0071e3;         /* Apple blue */
  --accent-hover: #0077ed;
  --danger: #b00020;
  --success: #147a3d;
  --warn: #b25c00;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 12px 30px rgba(0,0,0,.10);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.16);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 980px;
  --gutter: 18px;

  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base Reset ---------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", sans-serif;
  line-height: 1.35;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video{ max-width: 100%; height: auto; display: block; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

:focus-visible{
  outline: 3px solid rgba(0,113,227,.35);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------- Typography ---------- */
h1, h2, h3{
  margin: 0 0 .5rem 0;
  letter-spacing: -0.02em;
}
h1{
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.06;
  font-weight: 700;
}
h2{
  font-size: clamp(22px, 3.6vw, 32px);
  line-height: 1.12;
  font-weight: 700;
}
h3{
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.15;
  font-weight: 650;
}
p{
  margin: 0 0 1rem 0;
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 17px);
}
small{ color: var(--muted-2); }

/* ---------- Layout Helpers ---------- */
.container{
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section{
  padding: 38px 0;
}
@media (min-width: 768px){
  .section{ padding: 64px 0; }
}

.divider{
  height: 1px;
  background: var(--hairline);
  margin: 22px 0;
}

/* ---------- Top Bar (optional) ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--hairline);
}
.topbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand .badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Buttons ---------- */
button, .btn{
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), opacity .2s var(--ease);
}
.btn-primary{
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ background: var(--accent-hover); }
.btn-primary:active{ transform: translateY(1px); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover{
  background: rgba(0,0,0,.03);
}

.btn-full{ width: 100%; }

.cta-row{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.price{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price .amount{ font-size: 20px; }
.price .meta{ font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Hero (Outcome-first) ---------- */
.hero{
  padding: 34px 0 18px;
  background:
    radial-gradient(1200px 500px at 50% -20%, rgba(0,113,227,.08), transparent 55%),
    linear-gradient(to bottom, var(--bg), var(--bg-elev-2));
}
.hero-grid{
  display: grid;
  gap: 18px;
  align-items: start;
}
@media (min-width: 900px){
  .hero-grid{
    grid-template-columns: 1.15fr .85fr;
    gap: 26px;
    align-items: center;
  }
}
.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.4);
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.subhead{
  margin-top: 10px;
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 48ch;
}

.hero-media{
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-media .mock{
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 280px at 30% 20%, rgba(0,113,227,.10), transparent 60%),
    linear-gradient(145deg, #fff, #f2f2f4);
  border: 1px solid var(--hairline);
  position: relative;
}
.hero-media .mock::after{
  content:"";
  position:absolute;
  inset:-60px -80px auto auto;
  width:220px;
  height:220px;
  border-radius: 999px;
  background: rgba(0,113,227,.12);
  filter: blur(24px);
}

/* ---------- Highlights Navigation (chips) ---------- */
.chips{
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 12px 0 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar{ display:none; }
.chip{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(0,0,0,.03);
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.chip:hover{ background: rgba(0,0,0,.05); transform: translateY(-1px); }

/* ---------- Cards ---------- */
.card{
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-inner{ padding: 18px; }
@media (min-width: 768px){
  .card-inner{ padding: 22px; }
}
.card-title{
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}
.card-meta{
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Grid Sections ---------- */
.grid{
  display: grid;
  gap: 14px;
}
@media (min-width: 768px){
  .grid{ gap: 18px; }
}
.grid-2{
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .grid-2{ grid-template-columns: 1fr 1fr; }
}
.grid-3{
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- “Warum passt das?” — dynamische Begründungen ---------- */
.why-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.why-item{
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: var(--bg-elev-2);
  padding: 14px 14px;
}
.why-item strong{ color: var(--text); }
.why-item p{ margin: 6px 0 0 0; color: var(--muted); }

/* ---------- Proof Layer (Authority/Evidence) ---------- */
.proof{
  display: grid;
  gap: 12px;
}
.proof .stat{
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: #fff;
  padding: 16px 16px;
}
.stat .num{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.stat .lbl{
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
  margin-top: 4px;
}

/* ---------- How it works (Mechanik) ---------- */
.steps{
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.step{
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: #fff;
}
.step::before{
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0,113,227,.10);
  color: var(--accent);
  font-weight: 800;
}
.step h3{ margin: 2px 0 6px 0; }
.step p{ margin: 0; }

/* ---------- Slider (Füllmenge) ---------- */
.range-wrap{
  display: grid;
  gap: 12px;
}
.range-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.range-value{
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.range-sub{
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
}

input[type="range"]{
  width: 100%;
  appearance: none;
  height: 34px;
  background: transparent;
  margin: 6px 0;
}
input[type="range"]::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(0,0,0,.12), rgba(0,0,0,.10));
}
input[type="range"]::-webkit-slider-thumb{
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  transform: translateY(-10px);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
input[type="range"]:active::-webkit-slider-thumb{
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

/* Firefox */
input[type="range"]::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}
input[type="range"]::-moz-range-thumb{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* Range “bands” (optional: wenn Sie Grün/Gelb/Rot als Balken darstellen wollen)
   Nutzen Sie im HTML z.B. <div class="range-band ok"></div> etc. */
.range-bands{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.range-bands .ok{ background: rgba(20,122,61,.22); }
.range-bands .mid{ background: rgba(178,92,0,.20); }
.range-bands .bad{ background: rgba(176,0,32,.18); }

.notice{
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.notice.warn{
  border-color: rgba(178,92,0,.28);
  background: rgba(178,92,0,.08);
  color: rgba(80,48,0,.92);
}
.notice.danger{
  border-color: rgba(176,0,32,.28);
  background: rgba(176,0,32,.08);
  color: rgba(92,0,18,.92);
}

/* ---------- Sticky Checkout CTA (mobile-first) ---------- */
.sticky-cta{
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--hairline);
}
.sticky-cta .container{
  padding: 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.sticky-cta .left{
  display: grid;
  gap: 2px;
}
.sticky-cta .left .line1{
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sticky-cta .left .line2{
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
@media (min-width: 900px){
  .sticky-cta{
    position: static;
    background: transparent;
    backdrop-filter: none;
    border-top: 0;
  }
  .sticky-cta .container{ padding: 0; justify-content: flex-start; }
}

/* ---------- “Apple-like” Section Headings ---------- */
.section-head{
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.section-head p{ max-width: 62ch; }

/* ---------- Footer ---------- */
.footer{
  padding: 40px 0 60px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-elev-2);
}
.footer p{ margin: 0; }

/* ---------- Animation: gently reveal on load ---------- */
@keyframes riseIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}
.reveal{
  animation: riseIn .7s var(--ease-soft) both;
}
.reveal.delay-1{ animation-delay: .06s; }
.reveal.delay-2{ animation-delay: .12s; }
.reveal.delay-3{ animation-delay: .18s; }

/* Optional: hover-lift for cards */
.lift{
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.lift:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,0,0,.14);
}

/* ---------- Forms (generic) ---------- */
label{ display: block; }
input[type="text"], input[type="email"], input[type="tel"], select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus{
  border-color: rgba(0,113,227,.35);
  box-shadow: 0 0 0 4px rgba(0,113,227,.12);
}

/* ---------- Utility ---------- */
.m0{ margin:0 !important; }
.mt8{ margin-top:8px !important; }
.mt12{ margin-top:12px !important; }
.mt16{ margin-top:16px !important; }
.mt22{ margin-top:22px !important; }
.max-60ch{ max-width: 60ch; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal, .lift, button, .btn{ animation: none !important; transition: none !important; }
}

/* ===== Fix 1: Kein horizontaler Overflow im Hero (Mobile/Small Desktop) ===== */
html, body { overflow-x: hidden; } /* verhindert "überbreit" durch einzelne Elemente */
.hero, .hero * { min-width: 0; }   /* wichtig für Grid/Flex in kleinen Viewports */

.hero-media { max-width: 100%; }   /* Media-Card darf niemals breiter werden als Container */
.hero-media .mock { width: 100%; } /* Mock strikt containerbreit */

/* Chips: auf kleinen Geräten und kleinen Desktops wrappen statt scrollen */
.chips{
  flex-wrap: wrap;
  overflow-x: visible;
}

/* Auf sehr kleinen Displays etwas kompakter */
@media (max-width: 420px){
  .chip{
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Auf kleineren Desktops (z.B. 13" / schmale Browser) ebenfalls wrappen */
@media (max-width: 1100px){
  .chips{
    flex-wrap: wrap;
    overflow-x: visible;
  }
}


/* ===== Fix 2: Range bands dynamisch nach Prozenten ===== */
.range-bands{
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #fff;
}
.range-bands > div{
  height: 100%;
}
.range-bands .ok{  background: rgba(20,122,61,.50); }
.range-bands .bad{ background: rgba(176,0,32,.25); }

/* Standard (Mobile & Tablet) */
.kissen-section3 img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Desktop */
@media (min-width: 1024px) {
  .kissen-section3 img {
    max-width: 600px; /* hier Größe anpassen */
  }
}
/* ===== Benefit Carousel (Apple-like horizontal cards) ===== */
.carousel{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar{ display:none; }

@media (min-width: 520px){
  .carousel{ grid-auto-columns: 52%; }
}
@media (min-width: 900px){
  .carousel{ grid-auto-columns: 32%; }
}

.carousel-card{
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.carousel-body{
  padding: 16px 16px 18px;
}

/* 1:1 Media placeholder (später durch Bilder ersetzen) */
.square-media{
  aspect-ratio: 1 / 1;
  width: 100%;
  background:
    radial-gradient(600px 300px at 30% 20%, rgba(0,113,227,.12), transparent 55%),
    linear-gradient(145deg, #ffffff, #f1f1f4);
  border-bottom: 1px solid var(--hairline);
}

/* Optionale Variationen, damit es nicht identisch aussieht */
.square-media.media-1::after,
.square-media.media-2::after,
.square-media.media-3::after,
.square-media.media-4::after{
  content:"";
  display:block;
  width: 100%;
  height: 100%;
  background: radial-gradient(260px 260px at 70% 30%, rgba(0,0,0,.05), transparent 55%);
}
.square-media.media-2{ background:
  radial-gradient(520px 280px at 70% 20%, rgba(20,122,61,.10), transparent 55%),
  linear-gradient(145deg, #ffffff, #f1f1f4);
}
.square-media.media-3{ background:
  radial-gradient(520px 280px at 30% 20%, rgba(178,92,0,.10), transparent 55%),
  linear-gradient(145deg, #ffffff, #f1f1f4);
}
.square-media.media-4{ background:
  radial-gradient(520px 280px at 70% 20%, rgba(176,0,32,.08), transparent 55%),
  linear-gradient(145deg, #ffffff, #f1f1f4);
}
/* ===== Recommendation Section: Background Image Experiment ===== */

.section-bg-recommendation{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.88) 35%,
      rgba(255,255,255,0.88) 65%,
      rgba(255,255,255,0.96) 100%
    ),
    url("/static/img/recommendation-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Etwas mehr vertikaler Raum – wirkt „hero-artiger“ */
.section-bg-recommendation.section{
  padding-top: 56px;
  padding-bottom: 64px;
}

/* Cards bewusst stärker abheben */
.section-bg-recommendation .card{
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.14);
}

/* Headline + Text minimal dunkler für Kontrast */
.section-bg-recommendation .section-head h2{
  color: var(--text);
}
.section-bg-recommendation .section-head p{
  color: rgba(29,29,31,.8);
}

/* Mobile: etwas stärkere Aufhellung für Lesbarkeit */
@media (max-width: 600px){
  .section-bg-recommendation{
    background:
      linear-gradient(
        to bottom,
        rgba(255,255,255,0.98) 0%,
        rgba(255,255,255,0.94) 50%,
        rgba(255,255,255,0.98) 100%
      ),
      url("/static/img/recommendation-bg.webp");
  }
}
/* ===== Firmness Pill ===== */
.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(0,0,0,.04);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  vertical-align: middle;
}

/* dezente, semantische Tönung */
.pill.soft{
  background: rgba(0,113,227,.08);
  border-color: rgba(0,113,227,.18);
  color: rgba(0,70,150,.95);
}
.pill.medium{
  background: rgba(178,92,0,.08);
  border-color: rgba(178,92,0,.18);
  color: rgba(120,60,0,.95);
}
.pill.firm{
  background: rgba(176,0,32,.07);
  border-color: rgba(176,0,32,.16);
  color: rgba(120,0,18,.95);
}

/* auf sehr kleinen Screens nicht zu breit */
@media (max-width: 420px){
  .pill{ padding: 5px 8px; font-size: 11px; }
}
/* ===== News Ticker (Apple-like, minimal) ===== */

.news-ticker{
  position: relative;
  background: #1d1d1f;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.news-track{
  width: 100%;
  overflow: hidden;
}

.news-content{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  white-space: nowrap;
  animation: tickerMove 28s linear infinite;
}

.news-content span{
  font-size: 13px;
  color: rgba(255,255,255);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.news-content .sep{
  margin: 0 8px;
  color: rgba(255,255,255);
}

/* Pause bei Hover (Desktop only) */
@media (hover: hover){
  .news-ticker:hover .news-content{
    animation-play-state: paused;
  }
}

/* Bewegung */
@keyframes tickerMove{
  0%{
    transform: translateX(0);
  }
  100%{
    transform: translateX(-50%);
  }
}

/* Mobile Feinschliff */
@media (max-width: 480px){
  .news-content span{
    font-size: 12px;
  }
  .news-content{
    padding: 8px 0;
    animation-duration: 22s;
  }
}
/* ===== Ruhiger Schlaf – Finale Section ===== */

.section-sleep{
  background:
    radial-gradient(1200px 500px at 50% -20%, rgba(0,0,0,.05), transparent 55%),
    linear-gradient(to bottom, var(--bg-elev-2), #fff);
}

.sleep-grid{
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 900px){
  .sleep-grid{
    grid-template-columns: .95fr 1.05fr;
    gap: 18px;
    align-items: stretch;
  }
}

.sleep-visual{
  overflow: hidden;
}

.sleep-img{
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(to bottom, rgba(255,255,255,.6), rgba(255,255,255,.05)),
    url("/static/img/rem-schlaf.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-sleep .card{
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
}
/* ===== CTA Break Section ===== */

.cta-break{
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.04),
      rgba(0,0,0,.02)
    );
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.cta-break-inner{
  display: grid;
  gap: 16px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

@media (min-width: 900px){
  .cta-break-inner{
    grid-template-columns: 1.2fr .8fr;
  }
}

.cta-text h3{
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cta-text p{
  color: rgba(0,0,0,.78);
  max-width: 520px;
}

.cta-actions{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-cta{
  padding: 14px 22px;
  font-size: 15px;
}

.cta-meta{
  font-size: 13px;
  color: rgba(0,0,0,.6);
}
/* ===== Header CTA ===== */

.topbar-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-cta{
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
}

/* Nur auf Desktop anzeigen */
.desktop-only{
  display: none;
}

@media (min-width: 900px){
  .desktop-only{
    display: inline-flex;
  }
}

/* ===---------------------------------------------------------------------------== HERO Video Background ===== */

.hero.hero-video{
  position: relative;
  overflow: hidden;
  padding: 46px 0 26px;
  background: #fff; /* fallback */
}

@media (min-width: 768px){
  .hero.hero-video{ padding: 72px 0 42px; }
}

.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.02) contrast(1.02);
}

/* Overlay: Apple-like readability layer */
.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 520px at 35% 10%, rgba(255,255,255,.72), rgba(255,255,255,.35) 55%, rgba(255,255,255,.18) 85%),
    linear-gradient(to bottom, rgba(255,255,255,.01), rgba(255,255,255,.01) 35%, rgba(255,255,255,.01));
  pointer-events: none;
}

/* Make sure content sits above video/overlay */
.hero.hero-video .hero-grid,
.hero.hero-video .container{
  position: relative;
  z-index: 2;
}

.hero-copy{ min-width: 0; }

/* Grid */
.hero.hero-video .hero-grid{
  display: grid;
  gap: 18px;
  align-items: start;
}
@media (min-width: 900px){
  .hero.hero-video .hero-grid{
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 26px;
  }
}

/* Rating row */
.rating{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.stars{
  color: #fbbc04;
  letter-spacing: 1px;
  font-size: 14px;
}
.rating-text{
  font-size: 12px;
  color: rgba(0,0,0,.70);
  font-weight: 650;
}

/* Summary card: slightly more opaque for video bg */
.hero-summary .card{
  background: rgba(255,255,255,.40);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid rgba(0,0,0,.10);
}

/* Chips: wrap (no overflow) */
.hero.hero-video .chips{
  flex-wrap: wrap;
  overflow-x: visible;
}
.hero.hero-video .chip{
  background: rgba(255,255,255,.6);
  border-color: rgba(0,0,0,.10);
}

/* Mobile: reduce overlay transparency to keep text crisp */
@media (max-width: 600px){
  .hero-overlay{
    background:
      radial-gradient(900px 420px at 40% 0%, rgba(255,255,255,.86), rgba(255,255,255,.55) 55%, rgba(255,255,255,.32) 85%),

  }
}

/* Reduced motion: disable video */
@media (prefers-reduced-motion: reduce){
  .hero-bg{ display: none; }
  .hero.hero-video{
    background:
      radial-gradient(1200px 520px at 35% 10%, rgba(0,113,227,.10), transparent 55%),
      linear-gradient(to bottom, #fff, var(--bg-elev-2));
  }
}

/* Optional: disable video on very low width devices (extra safe) */
@media (max-width: 360px){
  .hero-bg{ display: none; }
}
.video-blocked .hero-video{
  background:
    radial-gradient(1200px 500px at 50% -20%, rgba(0,113,227,.10), transparent 55%),
    url("/static/img/kissenfinder_hero.webp");
  background-size: cover;
  background-position: center;
}

/* --------------------------------------NEWWW_______________________________________ */

/* ===== Trust Pills ===== */
.trust-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.trust-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
  font-size: 12px;
  color: rgba(0,0,0,.78);
}
.trust-ico{ font-size: 14px; }

/* ===== Hero Testimonials ===== */
.hero-testimonials{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.t-item{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
}
.t-avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.10);
}
.t-quote{
  font-size: 13px;
  color: rgba(0,0,0,.78);
  line-height: 1.35;
}
.t-name{
  font-size: 12px;
  color: rgba(0,0,0,.55);
  margin-top: 2px;
}

/* ===== Compare Section ===== */
.compare-grid{
  display: grid;
  gap: 14px;
}
@media (min-width: 900px){
  .compare-grid{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
  }
}
.compare-card{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.compare-card.highlight{
  border-color: rgba(0,113,227,.30);
  box-shadow: 0 22px 70px rgba(0,0,0,.14);
}
.compare-head{
  margin-bottom: 10px;
}
.compare-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.compare-sub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(0,0,0,.6);
}
.compare-list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(0,0,0,.78);
}
.compare-list li{ margin: 8px 0; }
.compare-cta{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== FAQ Accordion ===== */
.faq{
  max-width: 820px;
}
.faq-item{
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  margin-bottom: 10px;
}
.faq-icon{
  font-size: 18px;
  color: rgba(0,0,0,.55);
  transform: translateY(-1px);
}
.faq-panel{
  padding: 0 14px 14px;
  margin-top: -6px;
  margin-bottom: 12px;
  color: rgba(0,0,0,.78);
}
.faq-panel p{ margin: 10px 0 0; }

/* ===== Desktop sticky CTA bottom-right ===== */
.sticky-cta-desktop{
  display: none;
}

@media (min-width: 900px){
  .sticky-cta-desktop{
    display: block;

    position: fixed;
    right: 18px;
    bottom: 18px;

    z-index: 9999;
    opacity: 1 !important;
    transform: none !important;

    /* optional: verhindert, dass ein unsichtbares Overlay Klicks blockiert */
    pointer-events: auto;
  }
}

/* optional: iOS/macOS safe area */
@supports (padding: max(0px)){
  @media (min-width: 900px){
    .sticky-cta-desktop{
      right: max(18px, env(safe-area-inset-right));
      bottom: max(18px, env(safe-area-inset-bottom));
    }
  }
}

.sticky-box{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 20px 70px rgba(0,0,0,.18);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.sticky-price .line1{
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sticky-price .line2{
  font-size: 12px;
  color: rgba(0,0,0,.6);
  margin-top: 2px;
}


/* ========= Question Flow (Apple-like) ========= */
:root{
  --q-bg: #ffffff;
  --q-elev: #f5f5f7;
  --q-text: #1d1d1f;
  --q-muted: rgba(29,29,31,.72);
  --q-hairline: rgba(0,0,0,.12);
  --q-shadow: 0 18px 60px rgba(0,0,0,.12);
  --q-radius: 18px;
  --q-accent: #0071e3;
}

.q-body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--q-text);
  background: linear-gradient(to bottom, var(--q-bg), var(--q-elev));
}

.q-container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.q-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--q-hairline);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.q-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}

.q-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.q-logo{ font-size: 14px; }
.q-badge{
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--q-hairline);
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  font-weight: 800;
  color: rgba(0,0,0,.74);
}

.q-link{
  font-size: 13px;
  color: rgba(0,0,0,.62);
  text-decoration:none;
}
.q-link:hover{ text-decoration: underline; }

.q-progress{
  padding: 14px 0 8px;
}

.q-progress-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
}

.q-kicker{
  font-size: 12px;
  font-weight: 800;
  color: rgba(0,0,0,.55);
}
.q-progress-text{
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.q-progress-right{
  display:flex;
  align-items:center;
  gap: 6px;
}
.q-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}
.q-dot.is-active{
  background: rgba(0,113,227,.55);
}

.q-bar{
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  overflow:hidden;
}
.q-bar-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(0,113,227,.55);
  transition: width .35s ease;
}

.q-main{
  padding: 10px 0 96px; /* leave room for sticky mobile button */
}

.q-grid{
  display:grid;
  gap: 14px;
}
@media (min-width: 980px){
  .q-grid{
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items:start;
  }
}

.q-card{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--q-hairline);
  border-radius: var(--q-radius);
  box-shadow: var(--q-shadow);
}

.q-lift{
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover:hover){
  .q-lift:hover{
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(0,0,0,.14);
  }
}

.q-card-inner{ padding: 18px; }
@media (min-width: 640px){
  .q-card-inner{ padding: 22px; }
}

.q-title{
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.q-sub{
  margin: 10px 0 0;
  color: var(--q-muted);
  line-height: 1.45;
  max-width: 65ch;
}

.q-form{ margin-top: 16px; }

.q-fieldset{
  border: 0;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 10px;
}

.q-option{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.q-radio{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.q-option-ui{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.22);
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,1);
  flex: 0 0 auto;
}

.q-option-text{
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(0,0,0,.82);
  line-height: 1.25;
}

.q-option:active{ transform: translateY(1px); }

.q-option:has(.q-radio:checked){
  border-color: rgba(0,113,227,.45);
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
}

.q-option:has(.q-radio:checked) .q-option-ui{
  border-color: rgba(0,113,227,.55);
  background: rgba(0,113,227,.10);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,1);
  position: relative;
}
.q-option:has(.q-radio:checked) .q-option-ui::after{
  content:"";
  position:absolute;
  inset: 4px;
  border-radius: 999px;
  background: rgba(0,113,227,.75);
}

.q-actions{
  margin-top: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.q-btn{
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.q-btn:active{ transform: translateY(1px); }

.q-btn-primary{
  background: var(--q-accent);
  color: white;
  box-shadow: 0 10px 28px rgba(0,113,227,.28);
}
.q-btn-primary:hover{ opacity: .96; }

.q-btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.q-hint{
  font-size: 12px;
  color: rgba(0,0,0,.62);
  line-height: 1.35;
}

.q-fineprint{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  gap: 8px;
}

.q-side-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}
.q-side-text{
  margin: 10px 0 0;
  color: var(--q-muted);
  font-size: 14px;
  line-height: 1.45;
}

.q-side-strip{
  margin-top: 14px;
  display:grid;
  gap: 10px;
}
@media (min-width: 640px){
  .q-side-strip{
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 980px){
  .q-side-strip{
    grid-template-columns: 1fr;
  }
}

.q-strip-item{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}
.q-strip-title{
  font-weight: 900;
  letter-spacing: -0.02em;
}
.q-strip-sub{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(0,0,0,.62);
}

.q-divider{
  height: 1px;
  background: var(--q-hairline);
  margin: 16px 0;
}

.q-side-steps{
  display:grid;
  gap: 10px;
}
.q-step{
  display:flex;
  align-items:center;
  gap: 10px;
}
.q-step-n{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0,113,227,.12);
  border: 1px solid rgba(0,113,227,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  font-size: 12px;
  color: rgba(0,70,150,.95);
}
.q-step-t{
  font-size: 13px;
  font-weight: 800;
  color: rgba(0,0,0,.74);
}

/* Sticky next (mobile) */
.q-sticky{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(255,255,255,.88);
  border-top: 1px solid var(--q-hairline);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.q-sticky-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 12px;
}

.q-sticky-top{
  font-size: 12px;
  font-weight: 900;
  color: rgba(0,0,0,.72);
}
.q-sticky-sub{
  font-size: 12px;
  color: rgba(0,0,0,.55);
  margin-top: 2px;
}

.q-btn-compact{
  padding: 10px 14px;
}

@media (min-width: 980px){
  .q-sticky{ display:none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .q-bar-fill{ transition: none; }
  .q-lift{ transition: none; }
  .q-option{ transition: none; }
  .q-btn{ transition: none; }
}
