/* Web-Kasse Demenz Coach. Regeln (Daniel, Nov 2026): warmes Weiß, weiße Karten mit feinem grauem
   Rand, Lila #47408C nur für Tippbares, fast schwarzer Text, nur zwei Schriftgrößen. */
:root {
  /* Dieselben Werte wie einfach.css der Website (Stil der App, Daniel 8. Nov 2026). */
  --paper: #f6f5f2;
  --card: #ffffff;
  --line: #d6d3dc;
  --ink: #1c1b1f;
  --ink-2: #55525e;
  --purple: #47408c;
  --purple-dark: #362f6e;
  --purple-ink: #ffffff;
  --lav: #ece9f7;
  --lav-ink: #2e2870;
  --error: #a3261f;
  --small: .9375rem;
  --big: 1.875rem;
  --body: 1.1875rem;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--body)/1.5 var(--sans); }
a { color: var(--purple); }
.abo-page { max-width: 34rem; margin: 0 auto; padding: 20px 16px 48px; }
.abo-page, .kasse-card { overflow-wrap: anywhere; }
.start-noscroll .abo-page .abo-brand, .start-noscroll .abo-page .abo-brand span { min-width: 0; white-space: normal; }
.abo-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.abo-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.abo-brand img { width: 40px; height: 40px; border-radius: 10px; }
h1 { font-size: var(--big); line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
h2 { font-size: var(--body); line-height: 1.3; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 12px; }
.abo-muted { color: var(--ink-2); }
.abo-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0 0 14px; }
.abo-checks { list-style: none; padding: 0; margin: 0 0 18px; }
.abo-checks li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; }
.abo-checks li::before { content: "✓"; color: var(--purple); font-weight: 700; }
.abo-plan { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 0 0 12px; cursor: pointer; }
.abo-plan[aria-checked="true"] { border: 2px solid var(--purple); padding: 15px; }
.abo-plan .abo-radio { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); }
.abo-plan[aria-checked="true"] .abo-radio { border: 7px solid var(--purple); }
.abo-plan .abo-plan-text { flex: 1; }
.abo-plan strong { display: block; }
.abo-badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--purple); color: var(--purple-ink); font-weight: 700; }
.abo-button { display: block; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--purple); color: var(--purple-ink);
  font: 700 var(--body)/1.2 var(--sans); padding: 16px; cursor: pointer; text-align: center; text-decoration: none; }
.abo-button[disabled] { opacity: .55; cursor: default; }
.abo-button-light { background: var(--card); color: var(--purple); border: 1px solid var(--line); }
.abo-button + .abo-button, .abo-button + p, p + .abo-button { margin-top: 12px; }
.abo-link-button { background: none; border: 0; padding: 8px 0; color: var(--purple); font: inherit; text-decoration: underline; cursor: pointer; }
label { display: block; font-weight: 700; margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--ink); font: 400 var(--body)/1.4 var(--sans); margin: 0 0 14px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(71, 64, 140, .35); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 700; margin: 0 0 8px; padding: 0; }
.abo-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; font-weight: 400; margin: 0; }
.abo-choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--purple); flex: none; }
.abo-error { color: var(--error); font-weight: 700; }
.abo-steps { color: var(--ink-2); margin: 0 0 8px; }
.abo-footer { font-size: var(--small); margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.abo-footer a { color: var(--ink-2); }
.abo-footer .abo-cancel-link { color: var(--purple); font-weight: 700; }
.abo-footer .abo-portal-link { color: var(--purple); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media print { .abo-top, .abo-footer, .abo-noprint { display: none !important; } body { background: #fff; } }

/* Cookie-Hinweis und "Datenschutz-Einstellungen" (lovable-home.js) im Stil der Website (einfach.css), damit sie auf /start/ und /abo/ nicht ungestaltet erscheinen. */
.consent-banner { position: fixed; z-index: 50; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 8px; max-width: 720px; margin: 0 auto; padding: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 32px rgba(28, 27, 31, .16); font-size: .85rem; }
.consent-banner[hidden] { display: none; }
.consent-copy p { margin: 4px 0 0; color: var(--ink-2); }
.consent-copy a { color: var(--purple); font-weight: 600; text-decoration: none; }
.consent-copy a::after { content: " ›"; }
.consent-banner:focus { outline: none; }
.consent-copy strong { display: block; font-size: .95rem; line-height: 1.3; }
.consent-copy .consent-lead { margin-top: 4px; color: var(--ink); font-size: .82rem; line-height: 1.4; }
.consent-copy .consent-fine { margin-top: 5px; color: var(--ink-2); font-size: .72rem; line-height: 1.4; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-button { min-height: 48px; padding: 8px 12px; border-radius: 12px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.consent-decline, .consent-accept, .consent-save { background: var(--purple); color: #fff; border: 0; }
.consent-choices { display: grid; gap: 8px; }
.consent-choices[hidden] { display: none; }
.consent-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.consent-choice input { width: 24px; height: 24px; flex: 0 0 auto; accent-color: var(--purple); }
.consent-choose, .consent-settings { min-height: 44px; padding: 8px 12px; background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .8rem; }
.consent-settings { display: block; margin: 0 auto 24px; }
.consent-banner .consent-choose { min-height: 36px; padding: 4px 8px; }
.consent-settings[hidden] { display: none; }
@media (min-width: 720px) { .consent-banner:not(:has(.consent-choose)) { flex-direction: row; align-items: center; } .consent-actions { flex: 0 0 auto; } }
@media print { .consent-banner, .consent-settings { display: none !important; } }

/* Kasse als Fenster über der Angebotsseite (kasse.js). */
.kasse { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(28, 27, 31, .45); }
.kasse-card { box-sizing: border-box; width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto; background: var(--bg, #f6f5f2);
  border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.kasse-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.kasse-head h2 { margin: 0; }
.kasse-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lav, #ece9f7); color: var(--purple, #47408c); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.kasse-card .abo-button { width: 100%; }
@media (min-width: 640px) { .kasse { align-items: center; } .kasse-card { border-radius: 20px; } }

/* Checkout only: preserve the larger questionnaire type and browser text zoom. */
.kasse-card { font-size: 1rem; line-height: 1.45; }
.kasse-card .abo-button { font-size: 1.0625rem; min-height: 52px; }
.kasse-card .abo-muted { font-size: .875rem; overflow-wrap: anywhere; margin: 12px 0; }
.kasse-card h2 { font-size: 1.125rem; }
.kasse-loading { margin: 0 0 14px; color: var(--ink-2); font-size: 1rem; }

.kasse-card input, .kasse-card select { font-size: 1rem; }


#quick-pay { margin: 0 0 12px; }
#quick-pay #quick-summary { margin: 0 0 10px; font-size: .875rem; line-height: 1.3; color: var(--ink); }
#quick-pay [id^="quick-slot-"] { min-height: 52px; margin: 0 0 12px; }
.kasse-help { display: block; margin-top: 14px; text-align: center; color: var(--ink-2); font-size: .9375rem; }

/* Nach dem Kauf (28. Nov 2026): keine Zwischenseite, nur kurz ein ruhiges Laden bis zur Weiterleitung. */
.abo-quiet-loader { display: none; }
html.abo-quiet .abo-page { display: none; }
html.abo-quiet .abo-quiet-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 70vh; font-size: 19px; color: #5b5668; }
.abo-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #e4e0ef; border-top-color: #47408c; animation: abo-spin 0.9s linear infinite; }
@keyframes abo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .abo-spinner { animation-duration: 2.5s; } }

/* Einwilligung als Fenster in der Mitte (4. Dez 2026): Seite dahinter abgedunkelt, Ja und Nein gleich. */
.consent-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(28, 27, 31, .45); }
.consent-backdrop[hidden] { display: none; }
html.consent-open { overflow: hidden; }
.consent-banner.consent-modal { z-index: 1001; top: 50%; bottom: auto; left: 16px; right: 16px; max-width: 420px; max-height: calc(100dvh - 32px); overflow: auto; transform: translateY(-50%); flex-direction: column !important; align-items: stretch !important; gap: 12px; padding: 20px; border-radius: 18px; padding-bottom: 10px; box-shadow: 0 16px 48px rgba(28, 27, 31, .28); }
.consent-modal .consent-face { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; font-size: .78rem !important; color: inherit; opacity: .8; }
.consent-modal .consent-face span { font-size: .78rem; }
.consent-modal .consent-face img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.consent-modal .consent-actions { position: static; grid-template-columns: 1fr 1fr; min-width: 0 !important; }
.consent-modal .consent-choose { align-self: center; }

/* 4. Dez 2026, Seiten für Angehörige und 60+ (AOK, Alzheimer Forschung, Curendo, Pflegehilfe): Knöpfe untereinander, volle Breite,
   Zustimmen voll gefärbt mit Haken, „Nur Notwendiges“ gleich groß als Rahmen-Knopf, „Einstellungen“ als Link darunter. */
.consent-modal .consent-actions { display: grid; grid-template-columns: 1fr !important; gap: 10px; }
.consent-modal .consent-button { min-height: 52px; font-size: 1rem; font-weight: 700; border-radius: 12px; }
.consent-modal .consent-accept { background: var(--purple); color: #fff; border: 2px solid var(--purple); box-shadow: 0 4px 14px rgba(71, 64, 140, .35); }
.consent-modal .consent-decline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.consent-modal .consent-check { font-weight: 800; margin-right: 4px; }
.consent-modal .consent-face img { width: 40px; height: 40px; border-radius: 10px; }
.consent-modal .consent-face span { font-weight: 700; opacity: 1; }
