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

@font-face {
  font-family: 'Suisse Intl';
  src: url('fonts/suisse-intl-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg-1: #eef5fd;
  --bg-2: #d8e9fa;
  --ink: #16305e;
  --ink-dim: #5b7db1;
  --blue: #3b82f6;
  --blue-deep: #1d4ed8;
  --blue-soft: #93c5fd;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 8px 32px rgba(59, 130, 246, 0.16);
  --card-w: min(72vw, 280px);
  --card-h: calc(var(--card-w) * 1.55);

  /* Einheitliche Orb-Farbpalette (Serafin-Chat: Pills, Empfehlungs-Karten,
     Eingabeleiste) – ausschließlich diese Sky-/Cyan-Töne statt der bisherigen
     Mischung aus Dunkelblau/Königsblau/Babyblau. */
  --orb-base: #38bdf8;
  --orb-text-accent: #0369a1;
  --orb-tint: rgba(56, 189, 248, 0.1);
  --orb-tint-hover: rgba(56, 189, 248, 0.2);
  --orb-border: rgba(56, 189, 248, 0.35);
  --orb-border-hover: rgba(56, 189, 248, 0.8);
  --orb-glow: rgba(56, 189, 248, 0.25);
}

html { height: 100%; }

body {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Weiche, verschwommene Farb-Orbs im Hintergrund */
.stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle 260px at 15% 12%, rgba(147, 197, 253, 0.55), transparent 70%),
    radial-gradient(circle 300px at 88% 28%, rgba(196, 181, 253, 0.4), transparent 70%),
    radial-gradient(circle 340px at 50% 85%, rgba(96, 165, 250, 0.35), transparent 70%),
    radial-gradient(circle 180px at 78% 72%, rgba(255, 255, 255, 0.8), transparent 70%);
  filter: blur(10px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-18px); } }

.app-header {
  position: relative; z-index: 1;
  text-align: center;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) 20px 6px;
}
.app-header h1 {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: .04em;
  background: linear-gradient(90deg, var(--ink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-sub { color: var(--ink-dim); font-size: .85rem; min-height: 1.1em; }

main {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 20px calc(env(safe-area-inset-bottom, 0px) + 130px);
}

.view { display: none; animation: fadein .4s ease; }
.view.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.intro-text {
  text-align: center;
  color: var(--ink-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin: 14px 0 22px;
}

/* ===== Karte ===== */
.card-scene {
  perspective: 1200px;
  width: var(--card-w); height: var(--card-h);
  margin: 0 auto;
}
.card-scene.small {
  --card-w: min(52vw, 200px);
  --card-h: calc(var(--card-w) * 1.55);
  margin-top: 6px;
}

.mak-card, .tab-bar {
  user-select: none;
  -webkit-user-select: none;
}

.mak-card {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.4, .1, .2, 1);
  cursor: pointer;
}
.mak-card.revealed { transform: rotateY(180deg); }
.mak-card:not(.revealed):hover { transform: translateY(-4px) rotate(-1deg); }

.card-face {
  position: absolute; inset: 0;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(29, 78, 216, 0.22);
}
/* Kartenrückseite: tiefblaue Aura, die nach außen hell ausläuft ("breathe") */
.card-back {
  background:
    radial-gradient(circle at 50% 45%, #0a1b52 0%, #1d4ed8 34%, #7ab4f5 66%, #e4effc 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; justify-content: center;
}
.card-back-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  justify-content: center;
  width: 84%; height: 88%;
}
.card-back-symbol { font-size: 3.4rem; color: #fff; text-shadow: 0 0 30px rgba(255, 255, 255, 0.8); }
.card-back-stars { color: rgba(255, 255, 255, 0.9); letter-spacing: .5em; font-size: .9rem; }

.card-front {
  transform: rotateY(180deg);
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 18px;
  gap: 12px;
}
.card-front .cf-symbol { font-size: 3.6rem; filter: drop-shadow(0 6px 14px rgba(59, 130, 246, 0.35)); }
.card-front .cf-title {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--ink);
}
.card-front .cf-line { width: 40px; height: 1.5px; background: rgba(22, 48, 94, 0.35); }
.card-front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.card-message { margin-top: 26px; text-align: center; }
.card-message h2 {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-size: 1.6rem; font-weight: 600; margin-bottom: 10px;
  color: var(--ink);
}
.card-message p { color: var(--ink-dim); line-height: 1.7; font-size: .98rem; }

.impuls-box {
  margin: 20px auto 0;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--glass-shadow);
}
.impuls-label {
  display: block;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 6px; font-weight: 700;
}
.impuls-box p { font-style: italic; color: var(--ink); }

.daily-note { margin-top: 18px; font-size: .82rem; opacity: .7; }

.hidden { display: none !important; }

/* ===== Frage ===== */
#frage-input {
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--ink);
  font-family: inherit; font-size: 1rem;
  padding: 14px 16px;
  resize: none;
  outline: none;
  box-shadow: var(--glass-shadow);
}
#frage-input:focus { border-color: var(--blue-soft); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
#frage-input::placeholder { color: #8babd6; }

.btn-primary, .btn-secondary {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 15px;
  border: none;
  border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn-primary {
  background: linear-gradient(90deg, #a5c9f7, #b9aaf0);
  color: #2f3a63;
  box-shadow: 0 10px 26px rgba(147, 172, 236, 0.38);
}
.btn-secondary {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.btn-primary:active, .btn-secondary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .5; cursor: wait; }

.frage-echo {
  text-align: center; font-style: italic; color: var(--ink-dim);
  margin: 8px 0 16px; font-size: .95rem;
}
.deutung { text-align: left; white-space: pre-wrap; color: var(--ink-dim); line-height: 1.75; font-size: .98rem; }
.deutung.loading { text-align: center; font-style: italic; }

/* ===== Meditationen: kompakte Liste ===== */
.med-list-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.med-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  transition: background .15s ease;
}
.med-row:last-child { border-bottom: none; }
.med-row:active { background: rgba(59, 130, 246, 0.08); }

/* Kleine Kugel mit Play-Symbol als Tap-Ziel – zeigt überall dasselbe
   Impuls-Ringe-Cover, die individuelle Meditationsfarbe kommt erst
   im Vollbild-Player */
.med-row-orb {
  position: relative;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background-image: url('icons/meditation-cover.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 5px 16px rgba(59, 130, 246, 0.35);
  display: flex; align-items: center; justify-content: center;
}
/* Play-Symbol als eigenes kleines Abzeichen, damit die Ringe im
   Cover kräftig und ungetrübt sichtbar bleiben */
.med-row-orb .row-play {
  position: relative;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: rgba(22, 48, 94, 0.62);
  color: #fff;
  font-size: .66rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(22, 48, 94, 0.35);
}
.med-row.gesperrt .med-row-orb { filter: saturate(.85) brightness(.98); }
.med-row-lock {
  position: absolute; bottom: -4px; right: -4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-deep);
  border: 2px solid #fff;
  color: #fff;
  font-size: .66rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(29, 78, 216, 0.55);
}

.med-row-text { flex: 1; min-width: 0; }
.med-row-title {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 700; font-size: 1.04rem;
  display: block;
  line-height: 1.3;
}
.med-row-meta { color: var(--ink-dim); font-size: .82rem; display: block; }
.med-row-kurz {
  color: var(--ink-dim);
  font-size: .84rem;
  display: block;
  margin-top: 2px;
  line-height: 1.35;
  white-space: normal;
}

.med-row-fav {
  flex-shrink: 0;
  border: none; background: none;
  padding: 6px;
  cursor: pointer;
  line-height: 0;
}
.med-row-fav svg { width: 22px; height: 22px; display: block; }
.med-row-fav .herz-fill { fill: var(--blue); stroke: none; }
.med-row-fav .herz-outline { fill: none; stroke: rgba(59, 130, 246, 0.4); stroke-width: 1.8; }

/* ===== Meditations-Player ===== */
.player {
  position: fixed; inset: 0; z-index: 30;
  background:
    radial-gradient(circle at 50% 30%, var(--orb-schein) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  animation: fadein .35s ease;
}
/* Scrollbarer Innenbereich – vom Abo-Sheet getrennt, damit dieses
   beim Scrollen der Beschreibung nicht mit hochrutscht */
.player-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  gap: 14px;
  padding: 30px 26px calc(env(safe-area-inset-bottom, 0px) + 30px);
  padding-top: calc(env(safe-area-inset-top, 0px) + 54px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.player-close {
  position: absolute;
  z-index: 5;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  right: 20px;
  width: 42px; height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.18);
}
/* Kugel-Szene: das Pulsieren mit der Musik sitzt auf der Szene,
   die Wasser-Bewegung auf den Schichten der Kugel */
.player-orb-scene {
  width: min(74vw, 300px); height: min(74vw, 300px);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
  transform: scale(calc(0.92 + var(--pulse, 0) * 0.16));
  transition: transform .09s linear;
}
/* Weiche Aura-Kugel wie im Vorbild: Kern hell, Rand verläuft weich ins Nichts */
.player-orb {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, var(--orb-hell) 0%, var(--orb-mittel) 42%, var(--orb-dunkel) 68%, transparent 96%);
  filter: blur(5px);
  animation:
    orb-wasser 9s ease-in-out infinite,
    orb-breathe 6s ease-in-out infinite alternate;
}
/* Fließende innere Schicht – bewegt sich wie Wasser */
.player-orb::before {
  content: '';
  position: absolute; inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 68%, var(--orb-hell) 0%, transparent 58%),
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 48%);
  filter: blur(18px);
  animation: orb-fliessen 8s ease-in-out infinite alternate;
}
@keyframes orb-wasser {
  0%, 100% { border-radius: 55% 45% 52% 48% / 48% 54% 46% 52%; }
  33%      { border-radius: 47% 53% 45% 55% / 54% 46% 54% 46%; }
  66%      { border-radius: 53% 47% 55% 45% / 45% 52% 48% 55%; }
}
@keyframes orb-fliessen {
  from { transform: translate(-4%, 3%) rotate(0deg) scale(1); }
  to   { transform: translate(5%, -4%) rotate(28deg) scale(1.06); }
}
@keyframes orb-breathe { from { translate: 0 6px; } to { translate: 0 -8px; } }

.player-info { text-align: center; }
.player-meta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-dim);
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
}
.meta-sep { width: 1px; height: 14px; background: var(--ink-dim); opacity: .5; }
.player h2 {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 700; font-size: 1.9rem;
  color: var(--ink);
  text-align: center;
  margin-top: 8px;
  line-height: 1.22;
  letter-spacing: -.01em;
}
.player-elapsed {
  color: var(--ink-dim);
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 300;
  font-size: .95rem;
  margin-top: 10px;
  letter-spacing: .12em;
}

#player-seek {
  width: min(70vw, 300px);
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.28);
  outline: none;
  cursor: pointer;
}
#player-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}

/* Untere Reihe wie im Vorbild: drei schwebende Glas-Knöpfe */
.player-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  width: min(78vw, 320px);
  flex-shrink: 0;
  margin-top: 6px;
}
#player-next, #player-fav {
  width: 52px; height: 52px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform .15s ease;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
}
#player-next:active, #player-fav:active { transform: scale(.92); }
#player-fav svg { width: 24px; height: 24px; }
/* Herz in Blau, passend zur App */
#player-fav .herz-fill { fill: var(--blue); stroke: none; }
#player-fav .herz-outline { fill: none; stroke: rgba(59, 130, 246, 0.55); stroke-width: 1.8; }

/* Play-Button: Glas-Ring mit Fortschritt in der Meditationsfarbe,
   innen ein farbiges Quadrat mit runden Ecken (wie Bild 1) */
.player-play {
  position: relative;
  width: 72px; height: 72px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform .15s ease;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.player-play::before {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  background: conic-gradient(var(--orb-dunkel) calc(var(--progress, 0) * 1%), rgba(59, 130, 246, 0.18) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
}
.play-core {
  width: 36px; height: 36px;
  border-radius: 13px;
  background: var(--orb-hell);
  color: rgba(19, 16, 51, 0.8);
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.player-play:active { transform: scale(.94); }

.player-beschreibung {
  margin-top: 8px;
  width: min(84vw, 340px);
  margin-top: 2px;
  padding-bottom: 12px;
}
.player-beschreibung-label {
  display: block;
  text-align: center;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.player-beschreibung-text {
  white-space: pre-wrap;
  color: var(--ink-dim);
  line-height: 1.7;
  font-size: .92rem;
  text-align: left;
}

.empty-state { text-align: center; padding: 60px 10px; }
.empty-state .empty-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.empty-state h2 { font-family: 'Suisse Intl', -apple-system, sans-serif; font-weight: 600; margin-bottom: 10px; }
.empty-state p { color: var(--ink-dim); line-height: 1.6; font-size: .95rem; }

/* ===== Abo-Sheet (schiebt sich im Player von unten hoch) ===== */
.sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(22, 48, 94, 0.28);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 31;
}
.sheet-scrim.offen { opacity: 1; pointer-events: auto; }

.paywall-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 32;
  display: flex; justify-content: center;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.32, .72, 0, 1);
  pointer-events: none;
}
.paywall-sheet.offen { transform: translateY(0); pointer-events: auto; }

/* Helles Baby-Blue statt dunkel – passend zum luftigen Rest der App */
.sheet-panel {
  --s-ink: var(--ink);
  --s-ink-dim: var(--ink-dim);
  --s-card-bg: rgba(255, 255, 255, 0.55);
  --s-card-border: rgba(59, 130, 246, 0.22);
  --s-featured: var(--blue);
  position: relative;
  width: 100%;
  max-width: 480px;
  background:
    radial-gradient(circle 220px at 15% 0%, rgba(147, 197, 253, 0.5), transparent 70%),
    radial-gradient(circle 260px at 90% 10%, rgba(196, 181, 253, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 0 22px calc(env(safe-area-inset-bottom, 0px) + 26px);
  box-shadow: 0 -14px 50px rgba(59, 130, 246, 0.18);
  max-height: 88vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Ohne Hero-Bild (Retention-Angebot) braucht die Überschrift oben mehr Luft,
   sonst sitzt sie zu nah am Rand der Kapsel. */
#sheet-retention {
  padding-top: 30px;
}
.sheet-hero {
  margin: 0 -22px 14px;
  height: 118px;
  background-image: url('icons/sheet-hero-orb.jpg');
  background-size: cover;
  background-position: center 35%;
  position: relative;
}
.sheet-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(238, 245, 253, 0) 0%, var(--bg-1) 92%);
}
.sheet-handle {
  display: block;
  width: 40px; height: 4px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.3);
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.sheet-panel h3 {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 700; font-size: 1.5rem;
  text-align: center;
  color: var(--s-ink);
  margin-bottom: 8px;
}
.sheet-sub {
  text-align: center;
  color: var(--s-ink-dim);
  line-height: 1.55;
  font-size: .92rem;
  margin-bottom: 12px;
}

/* Kleine Themen-Tags – macht sofort klar, wofür die Meditationen konkret da sind */
.sheet-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
  margin-bottom: 16px;
}
.sheet-tag {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--s-ink);
  font-size: .72rem; font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Was der Kunde bekommt – Checkliste über den Preisplänen */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 9px;
  color: var(--s-ink);
  font-size: .88rem;
  line-height: 1.4;
  text-align: left;
}
.feature-check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s-featured), #5865e0);
  color: #fff;
  font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* Social Proof direkt über dem Preis – macht das Ergebnis greifbar */
.sheet-testimonial {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.sheet-testimonial-photo {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-soft), var(--s-featured));
  background-size: cover;
  background-position: center;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.sheet-testimonial-quote {
  font-size: .82rem; font-style: italic; line-height: 1.4;
  color: var(--s-ink);
  text-align: left;
}

/* Preiskarten nebeneinander, wie bei Perplexity: links Monatlich, rechts Jährlich hervorgehoben.
   Beide Karten haben immer einen sichtbaren Rahmen. */
.plan-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.plan-option {
  position: relative;
  text-align: center;
  padding: 18px 10px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--s-card-border);
  background: var(--s-card-bg);
  cursor: pointer;
  font-family: inherit;
  display: flex; flex-direction: column; align-items: center;
}
.plan-option.selected { border-color: var(--s-featured); box-shadow: 0 0 0 3px rgba(142, 168, 255, 0.22); }
.plan-name {
  font-size: .78rem; font-weight: 700;
  color: var(--s-ink-dim);
  text-transform: uppercase; letter-spacing: .05em;
}
.plan-price {
  font-size: 1.5rem; font-weight: 700;
  color: var(--s-ink);
  margin-top: 5px;
}
.plan-hint { display: block; margin-top: 5px; color: var(--s-ink-dim); font-size: .74rem; }
.plan-hint-trial { color: var(--s-featured); font-weight: 700; }

/* Sitzt auf dem oberen Kartenrand, nicht im Karteninhalt */
.plan-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #34d399, #10b981);
  color: #fff;
  font-size: .6rem; font-weight: 700;
  letter-spacing: .03em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
/* Häkchen oben rechts auf der hervorgehobenen (Jahres-)Karte */
.plan-check {
  position: absolute; top: 10px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--s-featured);
  color: #171338;
  font-size: .66rem;
  display: flex; align-items: center; justify-content: center;
}
.plan-option-featured { border-width: 2px; padding-top: 22px; }

.sheet-cta { max-width: none; }
.sheet-later {
  display: block;
  width: 100%;
  background: none; border: none;
  color: var(--s-ink-dim);
  font-family: inherit; font-size: .9rem; font-weight: 600;
  text-align: center;
  padding: 14px 0 4px;
  cursor: pointer;
}
.sheet-legal {
  text-align: center;
  color: var(--s-ink-dim);
  font-size: .74rem;
  margin-top: 8px;
  line-height: 1.5;
}

/* Countdown unter dem 29€-Rabattangebot – Angebot läuft nach 8 Minuten ab */
.retention-timer {
  text-align: center;
  color: var(--s-featured, var(--blue-deep));
  font-size: .82rem;
  font-weight: 700;
  margin-top: 12px;
}
.retention-timer.ablaufend { color: #dc2626; }
#retention-timer-wert { font-variant-numeric: tabular-nums; }

/* Vorschau-Hinweis im Player */
.preview-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue-deep);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ===== Chat ===== */
#view-chat { display: none; }
/* Eigener, fest begrenzter Bereich statt Seiten-Scroll – nur #chat-messages
   scrollt intern. Das vermeidet das iOS-Safari-Problem, bei dem
   position:fixed-Elemente während des Scroll-Schwungs sichtbar mitwandern. */
#view-chat.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Einwilligungs-Bildschirm vor der ersten Serafin-Sitzung */
/* Vollbild-Popup nach dem Serafin-Intro – helles Baby-Blue statt dunkel, passend zum Rest der App */
.consent-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 26px calc(env(safe-area-inset-bottom, 0px) + 32px);
  text-align: center;
  background:
    radial-gradient(circle 260px at 18% 10%, rgba(147, 197, 253, 0.55), transparent 70%),
    radial-gradient(circle 300px at 85% 22%, rgba(196, 181, 253, 0.35), transparent 70%),
    radial-gradient(circle 320px at 50% 90%, rgba(96, 165, 250, 0.3), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}
.consent-box { width: 100%; max-width: 420px; }
.consent-eyebrow {
  color: var(--blue-deep); font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  margin-bottom: 4px;
}
.consent-box h2 {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 700; font-size: 1.8rem; letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 16px;
}
.consent-rule { height: 1px; width: 60px; margin: 0 auto 22px; background: var(--blue-soft); }
.consent-feature-list { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 14px; margin-bottom: 4px; }
.consent-feature-list li { display: flex; align-items: flex-start; gap: 12px; }
.consent-feature-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.consent-feature-list li span:last-child { color: var(--ink); font-size: .92rem; line-height: 1.5; padding-top: 6px; }
.consent-terms-line {
  color: var(--ink-dim); font-size: .84rem; line-height: 1.5;
  margin: 22px 0 16px;
}
.consent-terms-line a { color: var(--blue-deep); }
.consent-checkbox {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  color: var(--ink);
  font-size: .88rem; line-height: 1.4;
  margin-bottom: 20px;
  cursor: pointer;
}
.consent-checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--blue); }
.consent-cta { width: 100%; }
#consent-accept:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Serafin-Intro: Orb direkt im Chat, spricht die erste Nachricht ---------- */
.serafin-intro {
  align-self: center;
  text-align: center;
  padding: 18px 10px 8px;
}
.intro-orb-btn { border: none; background: none; cursor: pointer; padding: 0; }
.intro-orb-scene {
  position: relative;
  width: min(38vw, 140px); height: min(38vw, 140px);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  transform: scale(calc(1 + var(--intro-pulse, 0) * 0.16));
  transition: transform .09s linear;
}
.intro-orb-mic {
  position: absolute; top: 50%; left: 50%;
  width: 18%; height: 18%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 8px rgba(29, 78, 216, 0.35));
}
.intro-orb {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, #eaf5ff 0%, #7dc4fb 45%, #3b82f6 80%, transparent 98%);
  filter: blur(1.5px);
  box-shadow: 0 0 40px 8px rgba(59, 130, 246, 0.35);
  animation:
    orb-wasser 9s ease-in-out infinite,
    chat-orb-breathe 4.5s ease-in-out infinite alternate;
}
/* Innere Schicht, die wie bei einer Seifenblase langsam in sich verschwimmt */
.intro-orb::before {
  content: '';
  position: absolute; inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 70%, #eaf5ff 0%, transparent 58%),
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.65) 0%, transparent 48%);
  filter: blur(12px);
  animation: orb-fliessen 8s ease-in-out infinite alternate;
}
/* Dünner heller Rand wie die Lichtkante einer Seifenblase */
.intro-orb::after {
  content: '';
  position: absolute; inset: -3%;
  border-radius: 50%;
  border: 1.5px solid rgba(219, 234, 254, 0.8);
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.55);
}

.intro-greeting {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 600; font-size: 1.125rem; color: #0f172a;
  margin-top: 12px;
}

/* Schnellstart-Themen-Pills unter der Begrüßung */
.intro-topics {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px;
  max-width: 420px; margin: 18px auto 0; padding: 0 6px;
}
.intro-topic-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--orb-tint);
  color: #1e293b;
  border: 1px solid var(--orb-border);
  border-radius: 999px;
  padding: 7px 11px;
  font-family: inherit; font-size: 0.68rem; font-weight: 500;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.intro-topic-pill:hover {
  background: var(--orb-tint-hover); color: #0c4a6e; border-color: var(--orb-border-hover);
  box-shadow: 0 0 12px var(--orb-glow);
}
.intro-topic-pill svg { width: 13px; height: 13px; color: var(--orb-base); flex-shrink: 0; }

/* Zeigt deutlich, dass gerade Ton läuft – wichtig falls das Handy lautlos gestellt ist */
.intro-speaking {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--blue-deep);
  font-size: .88rem; font-weight: 600;
  margin-top: 4px;
}
.intro-wave { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.intro-wave span {
  width: 3px;
  background: var(--blue-deep);
  border-radius: 2px;
  animation: intro-wave-bounce .9s ease-in-out infinite;
}
.intro-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.intro-wave span:nth-child(2) { height: 100%; animation-delay: .15s; }
.intro-wave span:nth-child(3) { height: 65%; animation-delay: .3s; }
.intro-wave span:nth-child(4) { height: 85%; animation-delay: .45s; }
@keyframes intro-wave-bounce {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}

.chat-messages {
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 20px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.chat-bubble {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.55;
  font-size: .96rem;
  white-space: pre-wrap;
}
.chat-bubble.bot {
  align-self: flex-start;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 6px;
  box-shadow: var(--glass-shadow);
  color: var(--ink);
}
.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #60a5fa, var(--blue-deep));
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}
.chat-bubble.typing { color: var(--ink-dim); font-style: italic; }
.chat-empfehlung-card {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin-top: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--orb-border);
  border-radius: 16px;
  padding: 10px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-empfehlung-card:hover {
  background: #fff; border-color: var(--orb-border-hover);
  box-shadow: 0 0 15px var(--orb-glow);
}
.chat-empfehlung-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 165, 233, 0.15);
  color: var(--orb-base);
  border-radius: 50%;
}
.chat-empfehlung-icon svg { width: 17px; height: 17px; }
.chat-empfehlung-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.chat-empfehlung-title { font-weight: 700; font-size: 0.82rem; color: #0f172a; }
.chat-empfehlung-sub { font-size: 0.68rem; color: #64748b; }
.chat-empfehlung-play {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #0ea5e9; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; cursor: pointer;
  transition: background 0.2s ease;
}
.chat-empfehlung-card:hover .chat-empfehlung-play { background: var(--orb-base); }

@keyframes chat-orb-breathe { from { translate: 0 2px; } to { translate: 0 -3px; } }

/* Normales, nicht scrollendes Element am Ende der Spalte – bleibt dadurch
   wirklich immer unten, ganz ohne den iOS-Safari-Wackler von position:fixed
   bei aktivem Seiten-Scroll (siehe #view-chat.active oben). */
.chat-input-area {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 22px 20px calc(env(safe-area-inset-bottom, 0px) + 130px);
  margin-top: -22px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(238, 245, 253, 0) 0%, rgba(238, 245, 253, 0.85) 45%, var(--bg-2) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
}
.chat-form { display: flex; }
.chat-disclaimer {
  text-align: center;
  font-size: .72rem;
  color: var(--ink-dim);
  opacity: .8;
  padding: 0 12px;
  margin-bottom: 14px;
}
/* Eine Karte: Textzeile oben, darunter eine Options-Zeile (Mikro, Verlauf löschen, künftig mehr) + Senden-Button */
.chat-input-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--orb-border);
  border-radius: 24px;
  padding: 4px 8px 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.chat-input-card input {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit; font-size: 1rem;
  padding: 12px 10px 8px;
  outline: none;
}
.chat-input-card input::placeholder { color: #8babd6; }
.chat-input-divider { height: 1px; background: var(--glass-border); margin: 0 4px; }
.chat-input-actions {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 2px 2px;
}
.chat-action-icon {
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: rgba(59, 130, 246, 0.09);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-action-icon svg { width: 18px; height: 18px; }
.chat-action-icon:active { background: rgba(59, 130, 246, 0.2); }
.chat-action-icon.aufnahme {
  background: linear-gradient(135deg, #fca5a5, #ef4444) !important;
  color: #fff;
  animation: mic-pulse 1.1s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}
.chat-action-icon.nicht-verfuegbar { display: none; }
.chat-actions-spacer { flex: 1; }
.chat-send {
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  color: #fff; font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25);
  transition: box-shadow 0.25s ease;
}
.chat-send:hover { box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4); }
#chat-mic {
  background: var(--orb-tint);
  color: var(--orb-base);
  transition: background 0.2s ease, color 0.2s ease;
}
#chat-mic:hover { background: var(--orb-tint-hover); color: #0284c7; }

/* Vorlese-Button auf Serafins Textnachrichten */
.chat-bubble-lesen {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  margin-left: 8px;
  border: none; border-radius: 50%;
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue-deep);
  font-size: .82rem;
  cursor: pointer;
  vertical-align: middle;
}
.chat-bubble-lesen.spricht { background: rgba(59, 130, 246, 0.32); }
.chat-bubble-lesen.laedt { opacity: .55; animation: lesen-laedt-puls 1s ease-in-out infinite; }
@keyframes lesen-laedt-puls { 0%, 100% { opacity: .35; } 50% { opacity: .75; } }

/* ===== Friends: reine Vorschau ===== */
.friends-soon-badge {
  display: block;
  text-align: center;
  margin: 4px auto 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-deep);
  font-size: .78rem; font-weight: 700;
}
.friends-header-card {
  background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 55%, #e0f2fe 100%);
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(139, 92, 246, 0.22);
  padding: 3px;
  margin-bottom: 18px;
}
.friends-header-inner {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 26px;
  padding: 16px 18px 18px;
}
.friends-search {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 11px 16px;
  margin-bottom: 18px;
  color: #64748b;
}
.friends-search input {
  border: none; background: none; outline: none;
  font-family: inherit; font-size: .9rem; color: var(--ink);
  width: 100%;
}
.friends-search input::placeholder { color: var(--ink-dim); }
.friends-heading {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 700; font-size: 1.7rem; line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
}
.friends-avatars {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 2px;
}
.friends-avatar-wrap {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.friends-avatar {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: block;
  background-size: cover; background-position: center;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.18);
  border: 2.5px solid rgba(224, 242, 254, 0.95);
}
.friends-avatar-label {
  font-size: .68rem; font-weight: 600; color: #64748b;
  white-space: nowrap;
}
.friends-dot {
  position: absolute; right: 1px; bottom: 1px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
}
.friends-dot-online { background: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25); }
.friends-avatar-add {
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px dashed var(--blue-soft);
  color: var(--blue-deep);
  font-size: 1.3rem;
  cursor: default;
  box-shadow: none;
}
.friends-list {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.12);
  overflow: hidden;
}
.friends-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.friends-row:last-child { border-bottom: none; }
.friends-row-avatar {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  border: 2px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.14);
}
.friends-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.friends-row-name { font-weight: 700; font-size: .92rem; color: #0f172a; }
.friends-row-msg {
  font-size: .82rem; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.friends-row-unread .friends-row-msg { color: #0f172a; font-weight: 600; }
.friends-row-meta {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
}
.friends-row-time { font-size: .74rem; color: #64748b; }
.friends-row-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--orb-base);
  color: #fff; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Tab-Bar ===== */
.tab-bar {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  z-index: 10;
  width: min(92vw, 360px);
}
.tab-bar-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 14px 38px rgba(29, 78, 216, 0.16);
  /* Halbkreis-Aussparung oben mittig, in die der Home-Button eingesetzt wirkt */
  -webkit-mask-image: radial-gradient(circle 35px at 50% 0%, transparent 96%, black 100%);
  mask-image: radial-gradient(circle 35px at 50% 0%, transparent 96%, black 100%);
}
.tab-bar-left { display: flex; align-items: center; gap: 2px; }
.tab-bar-right { display: flex; align-items: center; gap: 2px; }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none;
  color: #94a3b8;
  font-family: inherit; font-size: .64rem; font-weight: 700;
  padding: 6px 8px;
  border-radius: 17px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tab-icon { display: flex; }
.tab-icon svg { width: 22px; height: 22px; }
.tab-label { white-space: nowrap; }
.tab.active {
  color: var(--orb-text-accent);
  background: var(--orb-tint);
}

/* Erhöhter, kreisrunder Home-Button, sitzt in der Aussparung der Bar und schwebt nach oben ab */
.tab-home {
  position: absolute;
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none;
  box-shadow: none;
  color: #fff;
}
/* Der eigentliche "Bubble-Körper" – gleicher Blauton & gleiche schwebende Animation wie
   Serafins Chat-Orb (.intro-orb), nur auf Button-Größe herunterskaliert. Liegt als eigene
   Ebene HINTER dem Haus-Icon, damit der Blur nur die Bubble trifft und das Icon scharf bleibt. */
.tab-home::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 70%, rgba(234, 245, 255, 0.6) 0%, transparent 55%),
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 50% 55%, #eaf5ff 0%, #7dc4fb 45%, #3b82f6 85%);
  filter: blur(0.6px);
  box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.4), 0 10px 20px -6px rgba(29, 78, 216, 0.4);
  animation: orb-wasser 9s ease-in-out infinite, chat-orb-breathe 4.5s ease-in-out infinite alternate;
}
/* Dünne, helle Lichtkante wie bei einer Seifenblase – wie .intro-orb::after */
.tab-home::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(219, 234, 254, 0.75);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.tab-home .tab-icon {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.tab-home .tab-icon svg {
  width: 26px; height: 26px;
  filter: drop-shadow(0 1px 3px rgba(29, 78, 216, 0.4));
}

@media (min-width: 480px) {
  .tab:not(.tab-home) { padding: 6px 12px; }
}

.profil-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; }
.profil-placeholder-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 3px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.18);
}
.profil-placeholder-text { color: #64748b; text-align: center; max-width: 280px; font-size: .88rem; line-height: 1.5; }

/* ===== Affiliate & Rewards (Profil-Vorschau) ===== */
.affiliate-hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  /* Frosted-Glass-Füllung + fein beleuchteter Rand (weiß-transparent -> zartes Himmelblau) in einem Rutsch */
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(150deg, rgba(255, 255, 255, 0.95) 0%, rgba(56, 189, 248, 0.55) 55%, rgba(196, 181, 253, 0.45) 100%) border-box;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid transparent;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  padding: 26px 20px 24px;
  margin-top: 4px;
}
/* Weicher, diffuser Lichtschein hinter der Karte – atmet sanft wie eine Energiequelle */
.affiliate-hero::before {
  content: '';
  position: absolute;
  inset: -28px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 15%, rgba(56, 189, 248, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 82% 25%, rgba(37, 99, 235, 0.5) 0%, transparent 58%),
    radial-gradient(circle at 50% 95%, rgba(196, 181, 253, 0.45) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.6;
  animation: affiliate-hero-glow-atmen 5s ease-in-out infinite;
  pointer-events: none;
  transition: opacity .4s ease;
}
.affiliate-hero:hover::before { opacity: 0.8; }
@keyframes affiliate-hero-glow-atmen {
  0%, 100% { opacity: 0.48; transform: scale(0.97); }
  50% { opacity: 0.68; transform: scale(1.02); }
}
.affiliate-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
}
.affiliate-hero-left { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.affiliate-hero-right { display: flex; align-items: center; justify-content: center; min-width: 0; }
.affiliate-balance-label {
  display: block; font-size: .74rem; color: #64748b; font-weight: 600;
  margin-bottom: 4px;
}
.affiliate-balance-value {
  display: block; font-weight: 800; font-size: clamp(1.3rem, 6.8vw, 1.65rem);
  color: #0f172a; line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: 10px;
}
.affiliate-points-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; color: #6d28d9;
  background: rgba(139, 92, 246, 0.12);
  padding: 5px 11px; border-radius: 999px;
  margin-bottom: 12px;
  white-space: nowrap;
}
.affiliate-points-dot { width: 7px; height: 7px; border-radius: 50%; background: #8B5CF6; flex-shrink: 0; }
.affiliate-status { font-size: .68rem; color: #94a3b8; margin-bottom: 12px; line-height: 1.4; }
.affiliate-payout-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--orb-base), #3b82f6);
  color: #fff; font-family: inherit; font-weight: 700; font-size: .8rem;
  padding: 11px 6px; border-radius: 999px;
  box-shadow: 0 10px 25px -5px var(--orb-glow);
  margin-bottom: 8px;
  white-space: nowrap;
}
.affiliate-payout-btn:active { transform: scale(0.98); }

.affiliate-hero .chakra-pills {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.affiliate-heading { font-weight: 700; font-size: 1.05rem; color: #0f172a; margin-bottom: 8px; }

/* ===== Chakra-Income: Produkt-Pillen unten in der Hero-Karte ===== */
.chakra-donut-wrap {
  position: relative;
  width: 100%;
  max-width: 168px;
  margin: 0 auto;
}
.chakra-donut { width: 100%; height: auto; display: block; }
.chakra-donut-seg {
  transition: stroke-width .25s ease, filter .25s ease, opacity .25s ease;
  cursor: pointer;
}
.chakra-donut-seg.gedimmt { opacity: .35; }
.chakra-donut-seg.aktiv { stroke-width: 23; }
.chakra-donut-center {
  position: absolute; inset: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.chakra-donut-value {
  font-weight: 800; font-size: 1.28rem; color: #0f172a; line-height: 1.1;
  transition: color .3s ease;
}
.chakra-donut-value.gestiegen { animation: affiliate-payout-puls 1.1s ease; }
@keyframes affiliate-payout-puls {
  0% { color: #0f172a; }
  30% { color: var(--orb-text-accent); transform: scale(1.06); }
  100% { color: #0f172a; }
}
.chakra-donut-label { font-size: .62rem; color: #64748b; font-weight: 600; margin-top: 4px; line-height: 1.35; }

.chakra-pills {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  -webkit-overflow-scrolling: touch;
}
.chakra-pill {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  min-width: 190px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  padding: 8px 16px 8px 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.chakra-pill.aktiv { border-color: var(--orb-border-hover); box-shadow: 0 8px 22px var(--orb-glow); }
.chakra-pill-ring {
  position: relative;
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.chakra-pill-ring svg {
  width: 100%; height: 100%;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 2px 6px var(--ring-glow, var(--orb-glow)));
}
.chakra-pill.aktiv .chakra-pill-ring { transform: scale(1.06); }
.chakra-pill-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chakra-pill-title { font-weight: 700; font-size: .82rem; color: #0f172a; white-space: nowrap; }
.chakra-pill-sub { font-size: .76rem; color: #64748b; font-weight: 600; white-space: nowrap; }

.affiliate-referral {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.12);
  padding: 18px 18px 16px;
  margin-top: 16px;
}
.affiliate-sub { font-size: .84rem; color: #64748b; line-height: 1.5; margin-bottom: 14px; }
.affiliate-link-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 11px 14px;
  margin-bottom: 10px;
}
.affiliate-link-text { font-size: .86rem; font-weight: 600; color: var(--orb-text-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.affiliate-link-copy {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: #fff; color: var(--orb-text-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px var(--orb-glow);
}
.affiliate-link-copy.kopiert { background: var(--orb-base); color: #fff; }
.affiliate-share-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--orb-border);
  background: none; cursor: pointer;
  color: var(--orb-text-accent); font-family: inherit; font-weight: 700; font-size: .86rem;
  padding: 11px; border-radius: 999px;
}

.affiliate-angebote { margin-top: 22px; }
.affiliate-product-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.1);
  padding: 12px;
  margin-bottom: 12px;
}
.affiliate-product-img {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 14px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.affiliate-product-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.affiliate-product-title { font-weight: 700; font-size: .88rem; color: #0f172a; }
.affiliate-product-sub { font-size: .74rem; color: #64748b; }
.affiliate-product-badge {
  align-self: flex-start;
  margin-top: 2px;
  font-size: .68rem; font-weight: 700; color: var(--orb-text-accent);
  background: var(--orb-tint);
  padding: 3px 9px; border-radius: 999px;
}
.affiliate-product-btn {
  flex-shrink: 0;
  max-width: 88px;
  border: none; cursor: pointer;
  background: var(--orb-base); color: #fff;
  font-family: inherit; font-weight: 700; font-size: .68rem;
  line-height: 1.25;
  padding: 9px 10px; border-radius: 12px;
  white-space: normal;
}
.affiliate-product-btn.kopiert { background: #16a34a; }

/* ===== Home-Screen: Hero-Header, Trend-Karussell, Favoriten, Akademie ===== */
.home-hero {
  position: relative;
  overflow: hidden;
  margin: -10px -20px 26px;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px 34px;
  border-radius: 0 0 36px 36px;
  background: url('icons/home-hero-bubbles.jpg') center / cover no-repeat, #38BDF8;
  box-shadow: 0 16px 40px rgba(30, 58, 138, 0.22);
}
/* Dezentes Abdunkeln oben (Lesbarkeit der weißen Icons/Schrift) + weicher
   Übergang unten ins Cremeweiß der Seite, damit das Foto nahtlos ausläuft. */
.home-hero-bubbles {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.05) 38%, rgba(251, 251, 249, 0) 65%, #FBFBF9 100%);
  pointer-events: none;
}
.home-hero > *:not(.home-hero-bubbles) { position: relative; z-index: 1; }

.home-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.home-topbar-profile { display: flex; align-items: center; gap: 10px; }
.home-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background-size: cover; background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.2);
}
.home-profile-text { display: flex; align-items: center; gap: 7px; }
.home-profile-name { font-weight: 700; font-size: .94rem; color: #fff; text-shadow: 0 1px 6px rgba(15,23,42,0.25); }
.home-info-badge {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; font-style: italic; color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.home-topbar-actions { display: flex; gap: 8px; }
.home-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.home-eyebrow {
  font-size: .7rem; font-weight: 700; color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 10px;
}
.home-greeting {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 700; font-size: 1.55rem; line-height: 1.3;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
}

.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.home-section-title {
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 700; font-size: 1.15rem; color: #0F172A;
  display: flex; align-items: center; gap: 7px;
}
.home-section-title--icon svg { flex-shrink: 0; }
.home-section-sub { font-size: .78rem; color: #64748B; margin-top: 3px; }
.home-section-link { border: none; background: none; color: #2563EB; font-family: inherit; font-weight: 700; font-size: .78rem; cursor: pointer; white-space: nowrap; }

/* Block 2: Trend-Karussell */
.home-trend-scroll {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.home-trend-card {
  flex: 0 0 auto;
  width: 78%; max-width: 270px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 14px 14px 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}
.home-trend-cover {
  position: relative;
  display: block;
  width: 100%; aspect-ratio: 16 / 11;
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.home-trend-cover--video { background: #1e293b; }
.home-trend-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-trend-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .66rem; font-weight: 700; color: #0F172A;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px;
}
.home-trend-title { font-weight: 700; font-size: .92rem; color: #0F172A; line-height: 1.3; margin-bottom: 4px; }
.home-trend-sub { font-size: .76rem; color: #64748B; line-height: 1.4; margin-bottom: 12px; }
.home-trend-cta {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: #2563EB; color: #fff;
  font-family: inherit; font-weight: 700; font-size: .78rem;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
  text-decoration: none;
}

/* Audio-Kapsel: bildgewaltiger Slider (Front) + dunkles Detail-Glas (Back) */
.home-flip-card {
  width: min(84vw, 320px);
  max-width: min(84vw, 320px);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  perspective: 1600px;
  -webkit-perspective: 1600px;
}
.home-flip-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.15, 0.2, 1);
  will-change: transform;
}
.home-flip-card.ist-geflippt .home-flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}
.home-flip-face {
  position: absolute; inset: 0;
  border-radius: 24px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}
/* Die abgewandte Seite darf keine Klicks abfangen (sonst blockiert die
   unsichtbare Vorderseite Buttons auf der Rückseite, z. B. "Zurück"). */
.home-flip-back { pointer-events: none; }
.home-flip-card.ist-geflippt .home-flip-front { pointer-events: none; }
.home-flip-card.ist-geflippt .home-flip-back { pointer-events: auto; }

/* Vorderseite: Bild füllt die ganze Karte, dezenter Verlauf unten */
.home-flip-front { background: #0f172a; }
.home-flip-slider {
  position: absolute; inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.home-flip-track {
  display: flex;
  width: 100%; height: 100%;
  will-change: transform;
}
.home-flip-slide-img {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.home-flip-slide-wrap {
  position: relative;
  flex: 0 0 100%;
  width: 100%; height: 100%;
}
.home-flip-slide-wrap .home-flip-slide-img { flex: none; }
.home-flip-sound-btn {
  position: absolute; top: 54px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}
.home-flip-sound-btn.aktiv { background: rgba(14, 165, 233, 0.7); border-color: rgba(255, 255, 255, 0.5); }
.home-flip-sound-btn svg { width: 16px; height: 16px; }
.home-flip-badge,
.home-flip-hint {
  position: absolute; top: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.home-flip-badge {
  left: 14px;
  max-width: calc(100% - 130px);
  overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; font-weight: 700;
}
.home-flip-badge--sky {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
}
.home-flip-hint {
  right: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}
.home-flip-hint:hover { background: #1e293b; }
.home-flip-hint svg { width: 13px; height: 13px; flex-shrink: 0; }
.home-flip-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 32px 20px 20px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.5) 55%, rgba(2, 6, 23, 0.9) 100%);
}
/* Kompakte Variante (LOMO-Kurs): knapper gehalten, damit der CTA-Button
   nicht zu viel Bildfläche einnimmt und immer voll sichtbar bleibt. */
.home-flip-bottom--kompakt {
  padding: 24px 16px 16px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.7) 60%, rgba(2, 6, 23, 0.95) 100%);
}
.home-flip-title--kompakt { font-size: 1.05rem; }
.home-flip-sub--kompakt { line-height: 1.25; }
.home-flip-cta--kompakt { padding: 10px 14px; margin-top: 10px; }
.home-flip-back-title--kompakt { font-size: 0.95rem; }
.home-flip-dots {
  position: absolute; top: -24px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 10px;
}
.home-flip-dot {
  width: 20px; height: 20px; padding: 0;
  border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.home-flip-dot::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}
.home-flip-dot.ist-aktiv::before {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: scale(1.2);
}
.home-flip-arrow {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.home-flip-arrow:hover { background: rgba(15, 23, 42, 0.65); }
.home-flip-arrow--prev { left: 10px; }
.home-flip-arrow--next { right: 10px; }
.home-gallery-title-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.home-flip-title {
  font-family: 'Suisse Intl', sans-serif;
  font-weight: 700; font-size: 1.25rem; color: #fff;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}
.home-flip-price-pill {
  flex-shrink: 0;
  font-size: 0.72rem; font-weight: 700; color: #020617;
  background: #fff;
  padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.home-flip-price-old {
  font-weight: 500; opacity: 0.55; margin-left: 3px;
  text-decoration: line-through;
}
.home-flip-extra-line {
  font-size: 0.6875rem; font-weight: 500; color: #7dd3fc;
  margin-top: 4px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.home-flip-sub {
  font-size: 0.75rem; font-weight: 500; color: #e0f2fe;
  line-height: 1.35; margin-top: 4px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.home-flip-benefit-line {
  font-size: 0.625rem; font-weight: 600; color: #6ee7b7;
  margin-top: 6px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.home-flip-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 12px;
  border: none; background: #7dc4fb; color: #fff;
  font-family: inherit; font-weight: 600; font-size: 0.88rem;
  padding: 12px 14px; border-radius: 16px; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(125, 196, 251, 0.4);
}
.home-flip-cta:hover { box-shadow: 0 10px 24px rgba(125, 196, 251, 0.55); }

/* Rückseite: alle Details auf dunklem Obsidian-Glas */
.home-flip-back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 20px;
  color: #fff;
}
.home-flip-back-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.home-flip-back-title {
  font-family: 'Suisse Intl', sans-serif;
  font-weight: 700; font-size: 1.05rem; color: #fff;
  line-height: 1.3;
}
.home-flip-close {
  flex-shrink: 0;
  font-family: inherit; font-size: 0.68rem; font-weight: 500;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 11px; border-radius: 999px;
  cursor: pointer;
}
.home-flip-back-details {
  display: flex; flex-direction: column; gap: 10px;
}
.home-flip-detail-label {
  display: block;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 2px;
}
.home-flip-detail p {
  font-size: 0.72rem; color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.home-flip-countdown {
  display: inline-block;
  font-size: 0.66rem; font-weight: 700; color: #fde68a;
  background: rgba(180, 83, 9, 0.3);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 3px 9px; border-radius: 999px;
  margin-top: 6px;
}
.home-flip-back-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  border: none; background: #7dc4fb; color: #fff;
  font-family: inherit; font-weight: 600; font-size: 0.85rem;
  padding: 12px 14px; border-radius: 16px; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(125, 196, 251, 0.35);
}
.home-flip-back-cta:hover { box-shadow: 0 8px 20px rgba(125, 196, 251, 0.5); }

/* Block 3: Beliebte Themen – Prompt-Starter, öffnen Serafin direkt mit Frage */
.home-topics-link {
  border: none; background: none; color: #0ea5e9;
  font-family: inherit; font-weight: 600; font-size: 0.78rem;
  cursor: pointer; white-space: nowrap;
}
.home-topics-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.home-topic-card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.home-topic-card:hover, .home-topic-card:active {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.home-topic-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: #f0f9ff;
  border-radius: 12px;
  color: #3b82f6;
}
.home-topic-icon svg { width: 19px; height: 19px; }
.home-topic-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-topic-title { font-weight: 700; font-size: 0.82rem; color: #0f172a; }
.home-topic-sub { font-size: 0.7rem; color: #64748b; line-height: 1.3; }

/* Block 4: Akademie – cineastisches Netflix-artiges Karussell */
.home-academy-scroll {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.home-academy-card {
  position: relative;
  flex: 0 0 auto;
  width: 68%; max-width: 250px;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  border-radius: 26px;
  overflow: hidden;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  display: flex; flex-direction: column;
  padding: 16px 16px 20px;
}
.home-academy-card--plain { background-image: linear-gradient(150deg, #1E293B 0%, #1E3A8A 55%, #2563EB 100%); }
.home-academy-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Dunkler Verlauf von unten nach oben, wie ein Filmplakat – liegt über Video/Foto, unter dem Text */
.home-academy-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.05) 75%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.home-academy-card > * { position: relative; z-index: 1; }
.home-academy-card > .home-academy-video,
.home-academy-card > .home-academy-overlay { position: absolute; z-index: 0; }

.home-academy-badge {
  align-self: flex-start;
  font-size: .64rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .05em;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 11px; border-radius: 999px;
}

.home-academy-brand {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 0 6px;
}
.home-academy-brand-name {
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.4);
  font-family: 'Suisse Intl', -apple-system, sans-serif;
  font-weight: 800; font-size: 1.5rem; letter-spacing: .04em;
}
.home-academy-brand-sub { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,0.88); line-height: 1.4; }

.home-academy-cta {
  align-self: center;
  display: flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff; font-family: inherit; font-weight: 700; font-size: .78rem;
  padding: 9px 16px; border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.home-academy-cta:disabled {
  opacity: .55;
  cursor: default;
}

/* Safari: Video läuft stumm als Vorschau, per Klick auf den Ton-Button wird es
   entriegelt und läuft mit Ton weiter (statt eines neuen Autoplay-Starts). */
.home-academy-sound-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.home-academy-sound-btn.aktiv { background: rgba(56, 189, 248, 0.55); border-color: rgba(255,255,255,0.7); }
