/* mema-care — Design-System „Verbundenheit" (Warm Immersive 3D)
   Nur von index.html + Legal-Seiten genutzt. start.html/check.html
   hängen weiterhin an styles.css — diese Datei nicht dort einbinden. */

/* Metrik-kompatible Fallbacks: verhindern Layout-Shift beim Font-Swap */
@font-face {
  font-family: 'DM Serif Display Fallback';
  src: local('Georgia');
  size-adjust: 105.5%; ascent-override: 94%; descent-override: 26%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Source Sans 3 Fallback';
  src: local('Arial');
  size-adjust: 94.3%; ascent-override: 104%; descent-override: 29%; line-gap-override: 0%;
}

:root {
  --bg: #FAF8F5;
  --bg-warm: #F3ECE4;
  --bg-sage: #EFF3F1;
  --accent: #5A9A8A;
  --accent-deep: #3F7A6C;
  --amber: #E8A87C;
  --amber-soft: #F2C9A8;
  --dark: #16302B;
  --text: #2C3440;
  --text-soft: #697584;
  --heading: #1C2733;
  --font-head: 'DM Serif Display', 'DM Serif Display Fallback', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans 3 Fallback', system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --mw: 1140px;
  --shadow-soft: 0 18px 50px -18px rgba(28, 39, 51, .18);
}

* { box-sizing: border-box; }
/* Bewusst KEIN scroll-behavior:smooth und keinerlei Scroll-Manipulation —
   die Seite darf der Scroll-Steuerung des Nutzers nie in den Weg kommen. */
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-deep); }

.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.wrap.narrow { max-width: 800px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.12;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.3rem, 5.8vw, 5.5rem); letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--accent-deep); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { margin: 0 0 1.1em; }

/* ── 3D-Szene ── */
/* Z-Schichten: Sektions-Hintergründe (statisch) < Szene (2) < Inhalt (.wrap, 3) < Nav (50) */
#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .9s ease;
}
#scene.ready { opacity: 1; }
#scene-fallback {
  position: fixed; right: 4vw; top: 14vh;
  width: min(42vw, 540px); z-index: 2;
  pointer-events: none; opacity: .85;
}
#scene-fallback[hidden] { display: none; }
main .wrap, footer .wrap { position: relative; z-index: 3; }

/* ── Navigation ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(250, 248, 245, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.site-nav.scrolled { box-shadow: 0 6px 24px -12px rgba(28, 39, 51, .22); }
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-head); font-size: 1.35rem;
  color: var(--heading); text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: .9rem; }
.status-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .95rem; border: 1.5px solid var(--accent);
  border-radius: 999px; color: var(--accent-deep);
  font-size: .86rem; font-weight: 600; text-decoration: none;
  background: rgba(90, 154, 138, .07);
  transition: background .25s ease, transform .25s ease;
}
.status-pill:hover { background: rgba(90, 154, 138, .16); transform: translateY(-1px); }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.lang-toggle {
  display: flex; gap: 2px; background: rgba(28, 39, 51, .06);
  border-radius: 999px; padding: 3px;
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  color: var(--text-soft); padding: .3rem .6rem; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.lang-btn.active { background: #fff; color: var(--heading); box-shadow: 0 2px 8px -2px rgba(28, 39, 51, .25); }

/* ── Hero ── */
.hero {
  min-height: 94vh; display: flex; align-items: center;
  padding: 7rem 0 4rem;
}
.hero .wrap { width: 100%; position: relative; }
.hero-content { max-width: 720px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 2rem; }
.hero-trust span {
  position: relative; padding-left: 1.45rem;
  font-size: .9rem; font-weight: 600; color: var(--text-soft);
}
.hero-trust span::before {
  content: '✓'; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; border-radius: 50%; font-size: .62rem; font-weight: 700;
  background: rgba(90, 154, 138, .16); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
}

/* Schwebende Produkt-Karten an den Szenen-Kernen */
.hero-cards { position: absolute; inset: 0; pointer-events: none; display: none; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(28, 39, 51, .06);
  border-radius: 16px; padding: .85rem 1.15rem;
  box-shadow: 0 22px 55px -22px rgba(28, 39, 51, .35);
  max-width: 300px;
}
.card-1 { right: 9%; top: -2%; animation: floaty 6.4s ease-in-out infinite; }
.card-2 { right: -1%; top: 68%; animation: floaty 7.6s ease-in-out 1.2s infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.fc-text { display: flex; flex-direction: column; gap: .1rem; }
.fc-text strong { font-size: .88rem; color: var(--heading); }
.fc-text span { font-size: .82rem; color: var(--text-soft); line-height: 1.4; }
.fc-dot {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(90, 154, 138, .16); color: var(--accent-deep);
  font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.fc-app {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px;
  background: radial-gradient(circle at 30% 30%, var(--amber-soft), var(--amber));
}

/* Scroll-Cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: -8vh; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(28, 39, 51, .25);
  border-radius: 999px; display: block;
}
.scroll-cue-dot {
  position: absolute; left: 50%; top: 8px; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--accent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(16px); opacity: .25; } 70% { opacity: 0; } }

@media (min-width: 1100px) {
  .hero-cards { display: block; }
}
@media (min-width: 1500px) {
  :root { --mw: 1280px; }
  body { font-size: 1.1875rem; }
  .hero-content { max-width: 820px; }
}
.eyebrow {
  display: inline-block; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; font-weight: 700;
  color: var(--accent-deep); margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--amber-soft); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.5rem); color: var(--text-soft); max-width: 32em; }
.hint { display: block; margin-top: .9rem; color: var(--text-soft); font-size: .88rem; }

/* ── Store-Badges ── */
.store-badges { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.store-badges--center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--heading); color: #fff; text-decoration: none;
  padding: .78rem 1.35rem; border-radius: 14px;
  font-weight: 600; font-size: .98rem;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px -18px rgba(28, 39, 51, .32);
  background: #2a3a48;
}
.store-badge--large { padding: .95rem 1.7rem; font-size: 1.08rem; border-radius: 16px; }
.cta-band .store-badge { background: var(--bg); color: var(--heading); }
.cta-band .store-badge:hover { background: #fff; }

/* ── Sektionen ── */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--warm { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 18%, var(--bg-warm) 82%, var(--bg) 100%); }
.section--sage { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-sage) 18%, var(--bg-sage) 82%, var(--bg) 100%); }

.big-quote {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.3;
  color: var(--heading); margin: 2.2rem 0;
  padding-left: 1.4rem; border-left: 4px solid var(--amber);
}

/* ── Checkliste ── */
.checklist {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2.4rem;
}
.check-item {
  background: #fff; border-radius: var(--radius);
  padding: 1.7rem 1.8rem 1.5rem; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(28, 39, 51, .05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.check-item:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -20px rgba(28, 39, 51, .26); }
.check-item p { margin: 0 0 1rem; font-weight: 500; color: var(--heading); }
.check-labels { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.check-before { color: var(--text-soft); font-size: .9rem; text-decoration: line-through; text-decoration-color: rgba(105, 117, 132, .55); }
.check-arrow { color: var(--amber); font-weight: 700; }
.check-after {
  background: rgba(90, 154, 138, .14); color: var(--accent-deep);
  font-size: .9rem; font-weight: 700;
  padding: .22rem .8rem; border-radius: 999px;
}

/* ── Schritte ── */
.steps { position: relative; margin-top: 2.6rem; padding-left: .4rem; }
.steps-line {
  position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2.5px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--accent) 100%);
  border-radius: 2px; transform-origin: top;
}
.step { display: flex; gap: 1.3rem; padding: 1.1rem 0; position: relative; }
.step-num {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--amber);
  color: var(--heading); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -10px rgba(232, 168, 124, .7);
}
.step:nth-child(odd) .step-num { border-color: var(--accent); box-shadow: 0 8px 22px -10px rgba(90, 154, 138, .7); }
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; color: var(--text-soft); }

/* ── App-Showcase ── */
.app-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.app-points { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.app-points li {
  position: relative; padding: .45rem 0 .45rem 2rem; font-weight: 500;
}
.app-points li::before {
  content: ''; position: absolute; left: 0; top: .78rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--amber-soft), var(--amber));
}
.app-points li:nth-child(2n)::before { background: radial-gradient(circle at 35% 35%, #BFE3D9, var(--accent)); }
.app-visual {
  position: relative; display: flex; justify-content: center;
  perspective: 1000px; min-height: 420px; align-items: center;
}
.phone {
  width: min(46%, 240px); border-radius: 28px;
  box-shadow: 0 30px 70px -25px rgba(28, 39, 51, .45);
  background: #fff;
}
.phone--back { transform: translateX(-12%) rotate(-5deg); }
.phone--front { transform: translateX(12%) translateY(7%) rotate(4deg); margin-left: -18%; }

/* ── Werte ── */
.trust-list { list-style: none; padding: 0; margin: 2rem 0; }
.trust-list li { position: relative; padding: .55rem 0 .55rem 2.2rem; font-weight: 500; }
.trust-list li::before {
  content: '✓'; position: absolute; left: 0; top: .5rem;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(90, 154, 138, .15); color: var(--accent-deep);
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.callout {
  background: var(--bg-sage); border-radius: var(--radius);
  border: 1px solid rgba(90, 154, 138, .25);
  padding: 1.6rem 1.9rem; margin-top: 2rem;
}
.callout p { margin: 0; font-weight: 500; color: var(--heading); }

/* ── CTA-Band ── */
.cta-band {
  background:
    radial-gradient(1100px 500px at 70% 0%, rgba(90, 154, 138, .25), transparent 65%),
    radial-gradient(900px 480px at 20% 100%, rgba(232, 168, 124, .14), transparent 60%),
    var(--dark);
  color: #E8EFEA;
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(232, 239, 234, .8); max-width: 36em; margin-left: auto; margin-right: auto; }
.trust-bar {
  margin-top: 2.4rem; display: flex; justify-content: center; flex-wrap: wrap;
  gap: .9rem; color: rgba(232, 239, 234, .65); font-size: .9rem; font-weight: 600;
}
.trust-sep { opacity: .5; }

/* ── Footer ── */
.closing { background: var(--dark); color: rgba(232, 239, 234, .75); padding: 2.2rem 0 2.6rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.closing a { color: rgba(232, 239, 234, .9); }
.closing .legal { margin: 0 0 .5rem; font-size: .92rem; }
.closing .disclaimer { margin: 0; font-size: .8rem; color: rgba(232, 239, 234, .72); max-width: 56em; }

/* ── Legal-Seiten ── */
.legal-page { padding: 8rem 0 5rem; }
.legal-page .wrap { max-width: 780px; }
.legal-page h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-page h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: 2em; }
.legal-page .notice-banner {
  background: var(--bg-warm); border: 1px solid rgba(232, 168, 124, .5);
  border-radius: 14px; padding: .9rem 1.2rem; font-size: .92rem; margin: 1.5rem 0;
}
.legal-page table { border-collapse: collapse; width: 100%; }
.back-link { display: inline-block; margin-bottom: 1.6rem; font-size: .9rem; font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.legal-page td, .legal-page th { padding: .5rem .7rem; border: 1px solid rgba(28, 39, 51, .12); text-align: left; }

/* ── Dezente Fade-ins: .pre wird nur per JS gesetzt (no-JS = sichtbar) ── */
.pre { opacity: 0; transform: translateY(22px); }
.pre.visible {
  opacity: 1; transform: none;
  transition: opacity .65s ease, transform .65s ease;
}

/* ── Responsive ── */
@media (min-width: 700px) {
  .checklist { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .app-layout { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}
@media (max-width: 640px) {
  .site-nav .wrap { height: 60px; }
  .brand { white-space: nowrap; }
  /* Pill würde die schmale Nav sprengen — der Download-CTA steht im Hero */
  .status-pill { display: none; }
  .hero { min-height: 86vh; padding-top: 6.5rem; }
  .hero-content { max-width: 100%; }
  .app-visual { min-height: 340px; }
  .phone { width: min(44%, 190px); }
  html { scroll-padding-top: 70px; }
}
@media (max-width: 420px) {
  .status-pill { padding: .36rem .7rem; }
  .nav-right { gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  #scene { transition: none; }
  .scroll-cue-dot { animation: none; }
  .float-card { animation: none; }
  .pre { opacity: 1; transform: none; transition: none; }
}

@media print {
  #scene, #scene-fallback, .site-nav .nav-right { display: none; }
}
