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

:root {
  --blue-dark:  #1e3a5f;
  --blue-mid:   #2b5797;
  --blue-light: #e8f0fb;
  --teal:       #0d9488;
  --orange:     #e85d04;
  --warn:       #fef3c7;
  --caution:    #fee2e2;
  --text:       #1a1a1a;
  --muted:      #4a5568;
  --border:     #e2e8f0;
  --bg:         #f8fafc;
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header { background: var(--blue-dark); color: #fff; padding: 14px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.logo-name  { font-weight: 700; font-size: 1rem; }
.logo-title { display: block; font-size: .72rem; color: rgba(255,255,255,.55); }
.product-badge { background: var(--teal); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: .78rem; font-weight: 600; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); color: #fff; padding: 56px 0 44px; }
.hero-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--teal); margin-bottom: 10px; font-weight: 700; }
.hero h1    { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; max-width: 680px; margin-bottom: 14px; }
.hero-sub   { font-size: .85rem; color: rgba(255,255,255,.65); }

/* DISCLAIMER */
.disclaimer { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 10px 16px; margin: 20px auto; border-radius: 0 6px 6px 0; font-size: .82rem; color: #78350f; }

/* SECTIONS */
.section      { padding: 56px 0; }
.section--alt { background: var(--bg); }
.section-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--teal); margin-bottom: 6px; }
.section h2    { font-size: clamp(1.3rem, 2.5vw, 1.9rem); color: var(--blue-dark); margin-bottom: 10px; }
.section-sub   { color: var(--muted); max-width: 640px; margin-bottom: 32px; }

/* ANATOMIE-VIEWER */
.anatomy-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 680px) { .anatomy-wrap { grid-template-columns: 1fr; } }

.anatomy-image-container { position: relative; }
.anatomy-image-container img { width: 100%; border-radius: 8px; display: block; }
#anatomy-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.azone { fill: var(--orange); fill-opacity: .22; stroke: var(--orange); stroke-width: 1.5; cursor: pointer; transition: fill-opacity .2s; }
.azone:hover           { fill-opacity: .45; }
.azone:focus           { outline: 3px solid var(--orange); outline-offset: 2px; fill-opacity: .45; }
.azone.active          { fill-opacity: .65; }
.azone.region-highlight  { fill: var(--teal); stroke: var(--teal); fill-opacity: .28; }
.azone.exercise-highlight { fill: var(--orange); stroke: var(--orange); fill-opacity: .65;
  animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { fill-opacity: .65; } 50% { fill-opacity: .92; } }

.anatomy-info { min-height: 180px; }
.anatomy-placeholder { color: var(--muted); font-style: italic; }
.muscle-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.muscle-card h3 { color: var(--blue-dark); font-size: .95rem; margin-bottom: 10px; }
.muscle-detail { display: flex; gap: 10px; font-size: .82rem; margin-bottom: 5px; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.detail-label  { font-weight: 600; color: var(--blue-mid); min-width: 76px; }
.muscle-relevanz { background: var(--blue-light); border-radius: 6px; padding: 10px; font-size: .82rem; margin-top: 10px; margin-bottom: 12px; }
.btn-to-exercise { display: inline-block; background: var(--teal); color: #fff; padding: 7px 14px; border-radius: 6px; text-decoration: none; font-size: .82rem; font-weight: 600; }

.region-tabs { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.region-tab  { padding: 7px 15px; border: 2px solid var(--border); border-radius: 20px; cursor: pointer; background: #fff; font-size: .82rem; transition: all .2s; }
.region-tab.active, .region-tab:hover { border-color: var(--blue-mid); background: var(--blue-light); color: var(--blue-dark); }
.region-tab:focus { outline: 2px solid var(--blue-mid); outline-offset: 2px; }
.region-card { background: var(--blue-light); border-radius: 8px; padding: 14px; font-size: .88rem; margin-top: 10px; }
.region-card h4 { color: var(--blue-dark); margin-bottom: 5px; }
.relevanz-text  { color: var(--teal); font-size: .82rem; margin-top: 5px; }

/* UBUNGEN */
#exercise-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.ex-tab        { padding: 7px 13px; border: 2px solid var(--border); border-radius: 6px; cursor: pointer; background: #fff; font-size: .8rem; transition: all .2s; }
.ex-tab.active { border-color: var(--blue-dark); background: var(--blue-dark); color: #fff; }
.ex-tab:focus  { outline: 2px solid var(--blue-mid); outline-offset: 2px; }

.ex-card         { display: none; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ex-card.visible { display: block; }

.ex-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); gap: 10px; flex-wrap: wrap; }
.ex-header h3   { color: var(--blue-dark); font-size: 1.05rem; }
.ex-subtitle    { color: var(--muted); font-size: .82rem; }

.audio-btn { display: flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; border: none; padding: 9px 16px; border-radius: 20px; cursor: pointer; font-size: .82rem; font-weight: 600; white-space: nowrap; transition: background .2s; }
.audio-btn:hover { background: #0f766e; }
.audio-btn:focus { outline: 2px solid var(--teal); outline-offset: 3px; }

.ex-body    { display: grid; grid-template-columns: 1fr 280px; }
@media (max-width: 780px) { .ex-body { grid-template-columns: 1fr; } }

.ex-main    { padding: 22px; }
.ex-sidebar { padding: 22px; background: var(--bg); border-left: 1px solid var(--border); }

.info-block    { margin-bottom: 14px; }
.info-block h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-mid); margin-bottom: 5px; }
.info-block p  { font-size: .88rem; }
.info-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-block.warn    { background: var(--warn);    border-radius: 8px; padding: 11px; }
.info-block.caution { background: var(--caution); border-radius: 8px; padding: 11px; }

.muscle-badge     { background: var(--blue-light); border-radius: 8px; padding: 13px; margin-bottom: 14px; }
.badge-label      { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-mid); margin-bottom: 3px; }
.badge-name       { display: block; font-weight: 700; color: var(--blue-dark); font-size: .88rem; margin-bottom: 5px; }
.badge-detail     { display: block; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 3px; margin-top: 3px; }
.video-placeholder { border: 2px dashed var(--border); border-radius: 8px; padding: 18px; text-align: center; }
.video-label       { font-weight: 600; color: var(--muted); margin-bottom: 5px; font-size: .85rem; }
.video-hint        { font-size: .78rem; color: var(--muted); }

/* FORTSCHRITT */
.check-item       { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 11px 15px; cursor: pointer; font-size: .88rem; margin-bottom: 8px; transition: background .15s; }
.check-item:hover { background: var(--blue-light); }
.check-item input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--teal); flex-shrink: 0; }

.progress-bar  { background: var(--border); border-radius: 8px; height: 10px; overflow: hidden; margin-bottom: 7px; margin-top: 18px; }
.progress-fill { background: linear-gradient(90deg, var(--teal), var(--blue-mid)); height: 100%; border-radius: 8px; transition: width .4s ease; }
.progress-msg  { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }

.upsell-box { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); color: #fff; border-radius: 12px; padding: 32px; margin: 32px 0; }
.upsell-box h3 { font-size: 1.2rem; margin-bottom: 8px; }
.upsell-box p  { opacity: .82; font-size: .88rem; margin-bottom: 18px; }
.upsell-options { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.upsell-or   { color: rgba(255,255,255,.45); font-size: .82rem; }
.btn-primary { background: var(--teal); color: #fff; padding: 10px 22px; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: .88rem; }
.btn-secondary { background: rgba(255,255,255,.14); color: #fff; padding: 10px 22px; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: .88rem; border: 1px solid rgba(255,255,255,.28); }
.btn-primary:focus, .btn-secondary:focus { outline: 2px solid #fff; outline-offset: 3px; }
.upsell-note { opacity: .55; font-size: .76rem; }

.sources    { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 10px; }
.sources h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.sources li { font-size: .78rem; color: var(--muted); list-style: none; padding: 2px 0; }
.sources li::before { content: "· "; }

/* FOOTER */
.site-footer  { background: var(--blue-dark); color: rgba(255,255,255,.55); padding: 22px 0; text-align: center; font-size: .78rem; }
.footer-version { margin-top: 3px; opacity: .45; }

/* ── ARZT-INTERFACE ─────────────────────────────────────── */
.arzt-main  { padding: 40px 0; max-width: 720px; }
.arzt-card  { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; margin-bottom: 24px; }
.arzt-title { font-size: 1.4rem; color: var(--blue-dark); margin-bottom: 8px; }
.arzt-sub   { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--blue-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 7px;
  font-size: .88rem; font-family: inherit; color: var(--text); outline: none; transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue-mid); }
.char-count { font-size: .72rem; color: var(--muted); align-self: flex-end; }

.radio-group { display: flex; gap: 16px; padding: 6px 0; }
.radio-item  { display: flex; align-items: center; gap: 6px; font-size: .88rem; cursor: pointer; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 500px) { .checkbox-grid { grid-template-columns: 1fr; } }
.check-option { display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 7px; cursor: pointer; transition: background .15s; }
.check-option:hover { background: var(--blue-light); }
.check-option input { accent-color: var(--teal); width: 16px; height: 16px; }

.form-error   { background: var(--caution); color: #991b1b; border-radius: 7px; padding: 10px 14px; font-size: .85rem; margin-bottom: 14px; }
.btn-generate { width: 100%; padding: 13px; background: var(--blue-dark); color: #fff; border: none; border-radius: 8px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-generate:hover    { background: var(--blue-mid); }
.btn-generate:disabled { opacity: .6; cursor: not-allowed; }

.result-card    { text-align: center; }
.result-success { margin-bottom: 20px; }
.result-icon    { font-size: 2.5rem; color: var(--teal); margin-bottom: 8px; }
.result-success h2 { color: var(--blue-dark); margin-bottom: 5px; }
.result-sub     { color: var(--muted); font-size: .88rem; }
.result-link-box { display: flex; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; text-align: left; }
.result-url     { flex: 1; font-size: .82rem; word-break: break-all; color: var(--blue-mid); }
.btn-copy       { padding: 7px 14px; background: var(--teal); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.qr-container   { display: flex; justify-content: center; margin-bottom: 20px; }
.btn-new        { width: 100%; padding: 11px; background: transparent; border: 2px solid var(--border); border-radius: 8px; font-size: .88rem; cursor: pointer; color: var(--muted); transition: all .2s; }
.btn-new:hover  { border-color: var(--blue-mid); color: var(--blue-dark); }

/* ── PATIENTEN-GUIDE ────────────────────────────────────── */
.state-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; gap: 14px; text-align: center; padding: 40px 24px; }
.state-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-icon         { font-size: 2.5rem; }
.state-icon--error  { color: #dc2626; }
.state-icon--warn   { color: #f59e0b; }

.patient-greeting { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); color: #fff; padding: 44px 0 32px; }
.patient-greeting .hero-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--teal); margin-bottom: 8px; font-weight: 700; }
.patient-greeting h1 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 12px; }
.arzt-quote { border-left: 3px solid var(--teal); padding: 10px 16px; margin-top: 14px; font-style: italic; color: rgba(255,255,255,.8); font-size: .9rem; background: rgba(255,255,255,.07); border-radius: 0 6px 6px 0; }

.befund-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: start; margin-top: 20px; }
@media (max-width: 820px) { .befund-wrap { grid-template-columns: 1fr; } }

.spine-container    { border-radius: 10px; overflow: hidden; background: #000810; }
.befund-text        { font-size: .95rem; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.diagnose-badge     { background: var(--blue-light); border-radius: 8px; padding: 14px; }
.badge-row          { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.badge-row:last-child { border-bottom: none; }
.badge-label-small  { color: var(--muted); font-weight: 600; }
.badge-value        { color: var(--blue-dark); font-weight: 700; }

.personal-block { background: linear-gradient(135deg, #e8f0fb, #f0fdf9); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; padding: 12px 14px; margin-bottom: 14px; }
.personal-block h4 { color: var(--teal); }

.upsell-small   { margin-top: 10px; }
.upsell-small a { color: var(--teal); text-decoration: underline; }

/* --- Video-Übungen (ersetzt Audio-Button) --- */
.ex-training {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0d9488;
  white-space: nowrap;
}
.video-wrap { display: flex; justify-content: center; }
.ex-video {
  /* passt sich dem nativen Videoformat an: quer (Sora-Interim) wie hochkant (echte 9:16-Videos) */
  width: 100%;
  height: auto;
  max-height: 65vh;
  border-radius: 12px;
  background: #000;
  display: block;
  margin: 0 auto;
}
/* Platzhalter bis Videos gedreht sind (CONFIG.videosReady === false) */
.video-placeholder {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 12px;
  border: 2px dashed #94a3b8;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 12px;
}
.video-placeholder .video-icon { font-size: 2rem; line-height: 1; }
.video-placeholder .video-label { font-weight: 700; color: #334155; }
.video-placeholder .video-hint { font-size: 0.8rem; color: #64748b; margin: 0; }

/* --- v2: Anamnese / Phasen / Pain-Log --- */
.anamnese-q { margin: 1.2rem 0; }
.anamnese-q > p { font-weight: 600; margin-bottom: 0.5rem; }
.anamnese-opt { display: block; padding: 0.4rem 0; cursor: pointer; }
.anamnese-opt input { margin-right: 0.5rem; }
.btn-ghost { background: none; border: 1px solid #cbd5e1; color: #475569;
  padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; margin-top: 1.5rem; }
.stop-box { border: 2px solid #dc2626; background: #fef2f2; border-radius: 12px;
  padding: 1.5rem; }
.stop-box h2 { color: #b91c1c; margin-top: 0; }

/* Diagnose-Gate: sachlicher Hinweis, kein Alarm — deshalb blau statt rot. */
.stop-box-soft { border-color: #2563eb; background: #eff6ff; }
.stop-box-soft h2 { color: #1d4ed8; }
.gate-fragen { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.gate-fragen li { font-size: 17px; line-height: 1.5; margin-bottom: 0.6rem; }
.v3-ziel-note { font-size: 16px; font-weight: 600; color: #1d4ed8; margin: -8px 0 16px; }

/* Wochenübersicht bei mehreren Programmen — reine Terminverteilung. */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 12px; }
.week-day { border: 1px solid var(--border); border-radius: 10px; padding: 7px 3px;
  text-align: center; min-height: 72px; }
.week-day-off { background: #f8fafc; border-style: dashed; }
.week-day-name { font-size: 13px; font-weight: 800; color: var(--blue-dark); margin-bottom: 5px; }
.week-day-prog { font-size: 10.5px; font-weight: 700; line-height: 1.25; color: #fff;
  background: var(--teal); border-radius: 6px; padding: 3px 2px; margin-bottom: 3px;
  overflow-wrap: anywhere; }
.week-day-rest { font-size: 11px; color: var(--muted); }

.phase { border: 1px solid #e2e8f0; border-radius: 12px; margin: 1rem 0; overflow: hidden; }
.phase-head { padding: 1rem 1.25rem; background: #f8fafc; }
.phase-head h3 { margin: 0; }
.phase-meta { font-size: 0.85rem; color: #64748b; }
.phase-locked { opacity: 0.6; }
.phase-lock-note { font-size: 0.85rem; color: #b45309; font-weight: 600; }
.phase-body { padding: 1rem 1.25rem; }
.phase-progress-bar { height: 8px; background: #e2e8f0; border-radius: 4px; margin: 0.5rem 0; }
.phase-progress-fill { height: 100%; background: #0d9488; border-radius: 4px; }
.ziel-item { display: block; padding: 0.35rem 0; }
.ex-level { font-size: 0.85rem; font-weight: 600; color: #0d9488; }
.ex-level-hint { font-size: 0.85rem; color: #64748b; }

.painlog-form { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; }
.painlog-form label { display: flex; flex-direction: column; font-size: 0.85rem; }
.pain-chart { display: flex; gap: 4px; align-items: flex-end; height: 80px; margin-top: 1rem; }
.pain-bar { width: 18px; background: #0d9488; border-radius: 3px 3px 0 0; }
.pain-bar-label { font-size: 0.7rem; text-align: center; color: #64748b; }

/* ================= v3: mobile-first Patienten-App ================= */
body.v3app { background: #fff; font-size: 18px; }
.v3-main { max-width: 480px; margin: 0 auto; padding: 20px 18px 96px; }
.v3-header { max-width: 480px; margin: 0 auto; padding: 12px 18px; display: flex;
  justify-content: space-between; align-items: center; gap: 8px; }
.v3-brand { font-size: 14px; color: var(--muted); }
.v3-kicker { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--teal); margin-bottom: 6px; }
.v3-h1 { font-size: 26px; color: var(--blue-dark); line-height: 1.25; margin-bottom: 10px; }
.v3-sub, .v3-body { font-size: 18px; color: var(--text); line-height: 1.55; margin-bottom: 12px; }
.v3-bold { font-weight: 700; }
.v3-disclaimer { background: #fffbeb; border-left: 4px solid #f59e0b; padding: 10px 14px;
  font-size: 15px; color: #78350f; margin: 14px 0; }
.v3-progress-label { font-size: 15px; color: var(--muted); margin: 14px 0 8px; }
.v3-card { border: 1px solid var(--border); border-radius: 16px; padding: 18px 16px; margin: 14px 0; }
.v3-card-accent { background: var(--blue-light); border-color: transparent; }
.v3-card-title { font-size: 19px; font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.v3-card-sub { font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.v3-adapt-note { font-size: 16px; font-weight: 600; color: #b45309; margin: 0 0 12px; }
.v3-btn { display: block; width: 100%; min-height: 52px; border-radius: 14px; font-size: 19px;
  font-weight: 700; cursor: pointer; margin: 10px 0; padding: 12px; border: none; }
.v3-btn-primary { background: var(--teal); color: #fff; }
.v3-btn-success { background: #15803d; color: #fff; }
.v3-btn-danger  { background: #b91c1c; color: #fff; }
.v3-btn-outline { background: #fff; color: var(--blue-dark); border: 2px solid var(--border); }
.v3-btn-outline.active { border-color: var(--teal); background: var(--blue-light); }
.v3-btn-ghost { background: none; color: var(--muted); border: 1px solid var(--border);
  font-weight: 600; font-size: 17px; }
.v3-option { display: block; width: 100%; min-height: 52px; text-align: left; font-size: 18px;
  padding: 14px 16px; margin: 8px 0; border: 2px solid var(--border); border-radius: 14px;
  background: #fff; cursor: pointer; }
.v3-option.selected { border-color: var(--teal); background: var(--blue-light); }
.v3-ex-name { font-size: 24px; color: var(--blue-dark); margin: 10px 0 2px; }
.v3-ex-level { font-size: 19px; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.v3-ex-hint { font-size: 16px; color: var(--muted); margin-bottom: 10px; }
.v3-details { border-top: 1px solid var(--border); padding: 10px 0; }
.v3-details summary { font-size: 17px; color: var(--blue-mid); cursor: pointer; font-weight: 600;
  min-height: 44px; display: flex; align-items: center; }
.v3-details p { font-size: 16px; margin: 8px 0; }
.v3-pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.v3-pain-grid button { min-height: 52px; font-size: 20px; font-weight: 700; border-radius: 12px;
  border: 2px solid var(--border); background: #fff; cursor: pointer; }
.v3-toggle { display: flex; gap: 10px; }
.v3-toggle .v3-btn { margin: 0; }
.v3-ziel { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; margin: 8px 0; cursor: pointer; }
.v3-ziel input { width: 22px; height: 22px; accent-color: var(--teal); flex-shrink: 0; margin-top: 2px; }
#tab-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff;
  border-top: 1px solid var(--border); max-width: 480px; margin: 0 auto; }
#tab-bar[hidden] { display: none; }
.demo-loop { position: relative; width: 100%; aspect-ratio: 2 / 1;
  margin: 0 auto; border-radius: 12px; overflow: hidden; background: #0d1b2e; }
.demo-loop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  will-change: opacity, transform; backface-visibility: hidden; }
/* Rhythmus wie eine Wiederholung: Position halten → zügig bewegen → halten → zurück.
   Leichte Skalierung während des Übergangs erzeugt Bewegung statt bloßem Blinken. */
.demo-phase-1 { animation: demo-a 3.6s cubic-bezier(.45,.05,.3,1) infinite; }
.demo-phase-2 { animation: demo-b 3.6s cubic-bezier(.45,.05,.3,1) infinite; }
@keyframes demo-a {
  0%, 34%   { opacity: 1; transform: scale(1); }
  46%, 84%  { opacity: 0; transform: scale(1.022); }
  96%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes demo-b {
  0%, 34%   { opacity: 0; transform: scale(.978); }
  46%, 84%  { opacity: 1; transform: scale(1); }
  96%, 100% { opacity: 0; transform: scale(.978); }
}
/* Tempo-Punkt: zeigt den Rhythmus mit, hilft beim Mitmachen */
.demo-loop::after {
  content: ''; position: absolute; top: 10px; right: 12px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal, #0e8b81);
  animation: demo-beat 3.6s cubic-bezier(.45,.05,.3,1) infinite;
}
@keyframes demo-beat {
  0%, 34%   { transform: scale(1);   opacity: .95; }
  46%, 84%  { transform: scale(1.7); opacity: .45; }
  96%, 100% { transform: scale(1);   opacity: .95; }
}
/* Bewegungsempfindliche Nutzer: kein Wechsel, nur die Startposition */
@media (prefers-reduced-motion: reduce) {
  .demo-phase-1, .demo-phase-2, .demo-loop::after { animation: none; }
  .demo-phase-1 { opacity: 1; }
  .demo-phase-2 { opacity: 0; }
}
.demo-loop-badge { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(30, 58, 95, .85); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 10px; white-space: nowrap; }
.v3-tab { flex: 1; min-height: 60px; font-size: 17px; font-weight: 700; border: none;
  background: none; color: var(--muted); cursor: pointer; }
.v3-tab.active { color: var(--teal); border-top: 3px solid var(--teal); }
.v3-lock { color: #b45309; font-size: 15px; font-weight: 600; }

.upsell-cred { font-size: 11px; color: var(--text2); margin-top: 8px; }

/* ── Zugangs-Screen ── */
.access-catalog { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.access-cond { background: var(--surface, #141414); border: 1px solid var(--border, #262626); border-radius: 12px; padding: 14px 16px; }
.access-cond-name { font-weight: 800; font-size: 15px; }
.access-cond-teaser { font-size: 12.5px; color: var(--text2, #888); margin-top: 3px; }
.access-form { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 18px; }
.access-input { width: 100%; padding: 14px 16px; font-size: 16px; letter-spacing: 2px; text-transform: uppercase;
  background: var(--surface2, #171717); border: 1px solid var(--border, #262626); border-radius: 12px; color: var(--text, #f5f5f5); box-sizing: border-box; }
.access-input:focus { outline: 2px solid var(--accent, #e63c00); outline-offset: 1px; }
.access-error { font-size: 13px; color: #e74c3c; min-height: 18px; margin: 2px 0 0; }
.access-upsell { margin-top: 8px; }

/* ── Wochenziel / Adhärenz ── */
.v3-week { margin-top: 12px; }
.week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.week-count { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--teal, #0e8b81); }
.week-dots { display: flex; gap: 9px; margin: 12px 0 10px; }
.week-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border, #d9e2e5); background: transparent; }
.week-dot.on { background: var(--teal, #0e8b81); border-color: var(--teal, #0e8b81); }

/* Persönlicher Start: Hinweise aus der Einstufung und Material-Ankündigung */
.v3-hinweise { margin: 8px 0 0; padding-left: 22px; font-size: 18px; line-height: 1.5; color: var(--text, #1f2937); }
.v3-hinweise li { margin: 0 0 10px; }
.v3-hinweise:empty { display: none; }
.v3-material-note { font-size: 16px; font-weight: 600; color: #1d4ed8; margin: 0 0 12px; }

/* Begleitung: Testzugang (Kennzeichnung, Rückmeldung) und Vorführmodus (Leiste, Stationen) */
.test-badge { background: #b45309; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600; margin-left: 8px; white-space: nowrap; }
.vorfuehr-leiste { position: fixed; top: 0; left: 0; right: 0; z-index: 300; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #1e3a5f; color: #fff; padding: 6px 14px; font-size: 15px; font-weight: 600; }
.vorfuehr-knopf { background: #fff; color: #1e3a5f; border: 0; border-radius: 8px; padding: 8px 16px; font-size: 15px; font-weight: 700; min-height: 40px; cursor: pointer; }
body.hat-vorfuehr-leiste { padding-top: 54px; }
.begleit-overlay { position: fixed; inset: 0; z-index: 400; background: #fff; overflow-y: auto; }
.begleit-inhalt { max-width: 640px; margin: 0 auto; padding: 24px 20px 40px; }
.vorfuehr-station { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; min-height: 56px; cursor: pointer; font-family: inherit; }
.vorfuehr-station.aktiv { border-color: var(--teal); background: var(--blue-light); }
.vorfuehr-station-titel { display: block; font-size: 19px; font-weight: 700; color: var(--blue-dark); }
.vorfuehr-station-notiz { display: block; font-size: 16px; color: #475569; margin-top: 2px; }
.feedback-fragen { font-size: 19px; line-height: 1.5; padding-left: 26px; margin: 0 0 18px; }
.feedback-fragen li { margin: 0 0 12px; }
.feedback-text { width: 100%; font: inherit; font-size: 18px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin: 6px 0 8px; }
.feedback-status { font-size: 16px; font-weight: 600; color: #1d4ed8; min-height: 1.4em; margin: 0 0 8px; }
.consent-zeile { align-items: flex-start; margin: 16px 0; }

/* Das hidden-Attribut muss immer gewinnen. Eine eigene display-Regel (.v3-btn,
   #tab-bar, Leisten) überschreibt sonst die Vorgabe des Browsers — das Element
   bliebe trotz hidden sichtbar und bedienbar. */
[hidden] { display: none !important; }
