/* Klarweg – Designsystem 2026
   Warmes Papier, tiefes Grün, Terrakotta. Ruhig, klar, hochwertig. */

:root {
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --surface: #fffdf8;
  --surface-2: #faf7f0;
  --ink: #17231f;
  --ink-2: #24332d;
  --muted: #66716a;
  --muted-2: #8a938d;
  --line: #e3ddd0;
  --line-strong: #d2cab9;
  --green: #1d4a3c;
  --green-2: #2e6a56;
  --green-3: #4d8a72;
  --green-soft: #e4efe8;
  --coral: #d96b4b;
  --coral-soft: #f7e5dd;
  --sun: #e6b65c;
  --danger: #b44532;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 18px 50px rgba(29, 54, 43, 0.08);
  --shadow-sm: 0 8px 24px rgba(29, 54, 43, 0.07);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
  overscroll-behavior-y: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
img, svg { display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Typografie ---------- */
.serif { font-family: var(--font-serif); font-weight: 560; letter-spacing: -0.035em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--coral); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px; font-weight: 650; letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green); border-color: var(--green); color: #f8f5ed; }
.btn-primary:hover { background: var(--green-2); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: #fff8f4; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); box-shadow: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--green);
  color: #f8f5ed;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.brand-mark svg { width: 20px; height: 20px; stroke-width: 2.1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 18px; letter-spacing: -0.04em; font-weight: 750; }
.brand-text span { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-top: 3px; }

/* ---------- Landing ---------- */
.landing { position: relative; z-index: 1; overflow-x: clip; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }

.hero { padding: 64px 0 88px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: .98;
  letter-spacing: -0.045em;
  font-weight: 560;
  margin: 18px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--coral); position: relative; }
.hero-lead { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 50ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; font-size: 12px; color: var(--muted-2); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 14px; height: 14px; color: var(--green-3); }

.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-visual::before {
  content: "";
  position: absolute; inset: 6% 0 4% 8%;
  border-radius: 46% 54% 48% 52% / 48% 44% 56% 52%;
  background: linear-gradient(145deg, #dfe9df, #f0e4d7 65%, #f6f3ec);
  filter: blur(2px);
}
.hero-visual::after {
  content: ""; position: absolute; width: 68%; height: 68%;
  border: 1px solid rgba(29, 74, 60, .12); border-radius: 50%;
  transform: rotate(-12deg);
}
.phone {
  position: relative; z-index: 2;
  width: 320px; padding: 10px;
  border-radius: 46px;
  background: #18231f;
  box-shadow: 0 40px 80px rgba(23, 35, 31, .28), inset 0 1px 0 rgba(255,255,255,.18);
  transform: rotate(-3deg);
}
.phone-screen {
  border-radius: 38px; overflow: hidden;
  background: var(--paper);
  padding: 16px 14px 14px;
  min-height: 560px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-top { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: var(--muted-2); margin-bottom: 4px; }
.phone-top strong { font-size: 11px; color: var(--ink); }
.phone-progress { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; }
.phone-progress i { display: block; width: 27%; height: 100%; background: var(--coral); border-radius: 99px; }
.phone-msg { padding: 9px 11px; border-radius: 4px 14px 14px 14px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; line-height: 1.45; }
.phone-msg.user { align-self: flex-end; background: var(--green); color: #f8f5ed; border-color: var(--green); border-radius: 14px 4px 14px 14px; max-width: 92%; }
.phone-msg small { display: block; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.phone-score { margin-top: 2px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.phone-score header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.phone-score strong { font-size: 18px; color: var(--green); }
.phone-score span { font-size: 8px; font-weight: 700; color: var(--green-2); background: var(--green-soft); padding: 2px 6px; border-radius: 99px; }
.phone-score p { font-size: 9.5px; color: var(--muted); line-height: 1.45; margin-bottom: 8px; }
.phone-bars { display: grid; gap: 5px; }
.phone-bar { display: grid; grid-template-columns: 62px 1fr; gap: 6px; align-items: center; font-size: 7px; color: var(--muted); }
.phone-bar i { height: 3px; border-radius: 99px; background: var(--green-3); display: block; }
.phone-bar i.coral { background: var(--coral); }
.phone-mic {
  margin-top: auto; align-self: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 9px rgba(29, 74, 60, .08);
}
.phone-mic svg { width: 22px; height: 22px; }
.float-card {
  position: absolute; z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 10px;
  display: flex; align-items: center; gap: 9px;
}
.float-card strong { display: block; font-size: 12px; }
.float-card span { color: var(--muted); }
.float-card svg { width: 17px; height: 17px; color: var(--green-2); }
.float-card.one { top: 34px; left: -10px; transform: rotate(2deg); }
.float-card.two { bottom: 46px; right: -14px; transform: rotate(-2deg); }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,253,248,.45); }
.trust-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; flex-wrap: wrap; }
.trust-inner span { font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.trust-inner svg { width: 16px; height: 16px; color: var(--green-2); }

.section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.06; letter-spacing: -0.04em; font-weight: 560;
  margin-top: 14px;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 60ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.problem-card {
  padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.problem-card h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 12px; }
.problem-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.problem-card .mini { display: grid; gap: 10px; margin-top: 18px; }
.problem-card .mini span { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); }
.problem-card .mini svg { width: 17px; height: 17px; color: var(--coral); flex: 0 0 auto; margin-top: 2px; }
.problem-card.dark { background: var(--green); color: #f4f0e7; border-color: var(--green); }
.problem-card.dark p { color: rgba(244,240,231,.7); }
.problem-card.dark .mini span { color: #f4f0e7; }
.problem-card.dark .mini svg { color: #e8c7a4; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento-card {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-card h3 { font-size: 18px; letter-spacing: -0.02em; margin: 14px 0 7px; }
.bento-card p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.bento-ic {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
}
.bento-ic svg { width: 21px; height: 21px; }
.bento-card.wide { grid-column: span 4; }
.bento-card.third { grid-column: span 2; }
.bento-card.half { grid-column: span 3; }
.bento-card.accent { background: var(--coral-soft); border-color: #efd2c6; }
.bento-card.accent .bento-ic { background: #fff; color: var(--coral); }
.bento-card.green { background: var(--green); color: #f5f1e8; border-color: var(--green); }
.bento-card.green p { color: rgba(245,241,232,.7); }
.bento-card.green .bento-ic { background: rgba(255,255,255,.12); color: #f5f1e8; }
.bento-card .big { font-family: var(--font-serif); font-size: 45px; line-height: 1; letter-spacing: -.05em; margin-top: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-serif); font-size: 42px; line-height: 1;
  color: var(--coral); margin-bottom: 22px;
}
.step h3 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic {
  padding: 22px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.topic svg { width: 26px; height: 26px; color: var(--green-2); }
.topic strong { font-size: 15px; letter-spacing: -.01em; }
.topic span { font-size: 12px; color: var(--muted); line-height: 1.5; }

.pricing { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
.price-card {
  padding: 34px; border-radius: 30px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured { background: var(--green); color: #f6f2e9; border-color: var(--green); }
.price-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--coral); color: #fff; padding: 5px 9px; border-radius: 99px;
}
.price-card h3 { font-size: 15px; font-weight: 650; }
.price { display: flex; align-items: flex-end; gap: 8px; margin: 18px 0 6px; }
.price strong { font-family: var(--font-serif); font-size: 64px; line-height: .9; letter-spacing: -.06em; font-weight: 560; }
.price span { font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.price-card.featured .price span { color: rgba(246,242,233,.7); }
.price-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.price-card.featured p { color: rgba(246,242,233,.72); }
.price-features { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.price-features li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-2); }
.price-card.featured .price-features li { color: #f6f2e9; }
.price-features svg { width: 16px; height: 16px; color: var(--green-3); flex: 0 0 auto; margin-top: 2px; }
.price-card.featured .price-features svg { color: #d9c7a9; }
.price-card .btn { margin-top: auto; }
.price-card.featured .btn-primary { background: #f6f2e9; color: var(--green); border-color: #f6f2e9; }
.price-note { font-size: 11.5px; color: var(--muted-2); margin-top: 14px; line-height: 1.5; }

.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 20px; font-size: 14.5px; font-weight: 600;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted-2); transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 20px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.final-cta {
  padding: 60px 34px; border-radius: 34px;
  background: var(--green); color: #f6f2e9;
  text-align: center; position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; width: 420px; height: 420px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
  top: -230px; right: -90px;
}
.final-cta h2 { font-family: var(--font-serif); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.03; letter-spacing: -.045em; font-weight: 560; }
.final-cta p { color: rgba(246,242,233,.72); max-width: 560px; margin: 14px auto 24px; font-size: 14px; }
.final-cta .btn-primary { background: #f6f2e9; color: var(--green); border-color: #f6f2e9; }

.footer { padding: 56px 0 34px; border-top: 1px solid var(--line); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer p { font-size: 12px; color: var(--muted); line-height: 1.65; max-width: 32ch; margin-top: 12px; }
.footer h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.footer a { display: block; font-size: 12.5px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted-2);
}
.footer-bottom a { display: inline; margin: 0; font-size: 11px; }

/* ---------- App shell ---------- */
.app-body { background: var(--paper); }
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100dvh; position: relative; z-index: 1; }
.sidebar {
  position: sticky; top: 0; height: 100dvh;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255,253,248,.55);
  display: flex; flex-direction: column; gap: 24px;
}
.side-nav { display: grid; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  text-align: left;
}
.side-link svg { width: 18px; height: 18px; }
.side-link:hover { background: var(--surface); color: var(--ink); }
.side-link.active { background: var(--green); color: #f6f2e9; }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.side-plan {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 16px; padding: 14px;
}
.side-plan strong { display: block; font-size: 12px; }
.side-plan span { display: block; font-size: 11px; color: var(--muted); margin: 3px 0 9px; }
.side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; text-align: left; border-radius: 10px;
}
.side-user:hover { background: var(--surface); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--coral-soft); color: var(--coral);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 750; flex: 0 0 auto;
}
.side-user strong { display: block; font-size: 12px; }
.side-user span { display: block; font-size: 10px; color: var(--muted-2); }
.main { min-width: 0; padding: 34px 38px 70px; }
.main-wide { max-width: 1080px; margin: 0 auto; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 8px; }
.mobile-top { display: none; }

.screen { display: none; animation: fadeUp .3s ease both; }
.screen.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: 100dvh; display: grid; grid-template-columns: 1.05fr .95fr;
  position: relative; z-index: 1;
}
.auth-panel {
  padding: 54px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(217,107,75,.10), transparent 55%),
    var(--green);
  color: #f6f2e9;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-panel::after {
  content: ""; position: absolute; width: 480px; height: 480px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
  bottom: -260px; right: -140px;
}
.auth-panel .brand { color: #f6f2e9; }
.auth-panel .brand-mark { background: #f6f2e9; color: var(--green); }
.auth-panel .brand-text span { color: rgba(246,242,233,.55); }
.auth-quote { margin: auto 0; max-width: 430px; }
.auth-quote h2 { font-family: var(--font-serif); font-size: 44px; line-height: 1.05; letter-spacing: -.045em; font-weight: 560; margin-bottom: 18px; }
.auth-quote p { font-size: 14px; line-height: 1.7; color: rgba(246,242,233,.7); }
.auth-points { display: grid; gap: 12px; margin-top: 26px; }
.auth-points span { display: flex; gap: 10px; font-size: 13px; color: rgba(246,242,233,.82); }
.auth-points svg { width: 17px; height: 17px; color: #e8c7a4; flex: 0 0 auto; margin-top: 2px; }
.auth-foot { font-size: 11px; color: rgba(246,242,233,.45); }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-family: var(--font-serif); font-size: 38px; letter-spacing: -.045em; line-height: 1; font-weight: 560; margin: 8px 0 10px; }
.auth-card .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paper-2); border-radius: 14px; padding: 4px; margin-bottom: 22px; }
.auth-tab { padding: 9px; border-radius: 10px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11.5px; font-weight: 650; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(46,106,86,.1);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 4px 0 18px; }
.check input { margin-top: 2px; accent-color: var(--green); }
.check a { color: var(--green); font-weight: 600; text-decoration: none; }
.form-error { display: none; font-size: 12px; color: var(--danger); background: #fbe9e4; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; }
.form-error.show { display: block; }
.auth-legal { font-size: 10.5px; color: var(--muted-2); text-align: center; margin-top: 14px; line-height: 1.5; }
.auth-legal a { color: var(--muted); }

/* ---------- Onboarding ---------- */
.onboarding { min-height: 100dvh; padding: 40px 24px; display: grid; place-items: center; position: relative; z-index: 1; }
.onboard-card { width: min(760px, 100%); }
.onboard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.onboard-steps { display: flex; gap: 8px; }
.onboard-steps i { width: 34px; height: 4px; border-radius: 99px; background: var(--line-strong); }
.onboard-steps i.on { background: var(--coral); }
.onboard-card h1 { font-family: var(--font-serif); font-size: clamp(34px, 5vw, 52px); line-height: 1.02; letter-spacing: -.045em; font-weight: 560; }
.onboard-card .sub { color: var(--muted); font-size: 14px; margin: 12px 0 28px; max-width: 55ch; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice {
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); padding: 18px;
  text-align: left; display: flex; gap: 12px; align-items: flex-start;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.choice:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.choice.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,106,86,.1); }
.choice-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: 0 0 auto; }
.choice-ic svg { width: 20px; height: 20px; }
.choice strong { display: block; font-size: 13.5px; }
.choice span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.onboard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }
.minute-row { display: flex; gap: 8px; flex-wrap: wrap; }
.minute { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.minute.active { background: var(--green); color: #f6f2e9; border-color: var(--green); }
.summary-card { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 22px; display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-row span { color: var(--muted); }
.summary-row strong { text-align: right; }

/* ---------- Dashboard ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.04em; line-height: 1.05; }
.page-head p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.page-head .eyebrow { margin-bottom: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  background: var(--green-soft); color: var(--green);
}
.badge.test { background: var(--coral-soft); color: var(--coral); }
.badge.expired { background: #f5e1db; color: var(--danger); }
.badge.neutral { background: var(--paper-2); color: var(--muted); }

.dash-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 16px; }
.continue {
  border-radius: 28px; padding: 30px;
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(217,107,75,.16), transparent 55%),
    var(--green);
  color: #f6f2e9;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 250px;
}
.continue::after {
  content: ""; position: absolute; width: 260px; height: 260px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 50%;
  right: -100px; bottom: -120px;
}
.continue .eyebrow { color: #e8c7a4; }
.continue .eyebrow::before { background: #e8c7a4; }
.continue h2 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 43px); line-height: 1.02; letter-spacing: -.045em; font-weight: 560; margin: 14px 0 8px; max-width: 16ch; }
.continue p { font-size: 13px; color: rgba(246,242,233,.7); max-width: 46ch; }
.continue-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; position: relative; z-index: 1; }
.continue-foot .btn-primary { background: #f6f2e9; color: var(--green); border-color: #f6f2e9; }
.continue-foot .btn { min-height: 44px; }
.continue-meta { font-size: 11px; color: rgba(246,242,233,.5); margin-left: auto; }

.stats-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 24px; display: flex; flex-direction: column; }
.stats-card h3 { font-size: 13px; font-weight: 650; color: var(--muted); margin-bottom: 16px; }
.stat-big { font-family: var(--font-serif); font-size: 58px; line-height: .9; letter-spacing: -.06em; color: var(--green); }
.stat-label { font-size: 11px; color: var(--muted-2); margin-top: 7px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 20px; }
.stat-mini { border-top: 1px solid var(--line); padding-top: 12px; }
.stat-mini strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.stat-mini span { font-size: 10.5px; color: var(--muted-2); }

.dash-section { margin-top: 30px; }
.dash-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-section-head h2 { font-size: 18px; letter-spacing: -.02em; }
.dash-section-head a, .dash-section-head button { font-size: 11.5px; font-weight: 650; color: var(--green-2); text-decoration: none; }
.topic-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topic-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  padding: 18px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  text-align: left; min-height: 138px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.topic-card .tc-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.topic-card .tc-ic svg { width: 18px; height: 18px; }
.topic-card strong { font-size: 13px; letter-spacing: -.01em; line-height: 1.3; }
.topic-card span { font-size: 10.5px; color: var(--muted-2); margin-top: auto; }

.dash-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.panel h2 { font-size: 16px; letter-spacing: -.02em; margin-bottom: 14px; }
.plan-list { display: grid; gap: 4px; }
.plan-item { display: flex; gap: 12px; padding: 11px 6px; border-radius: 12px; align-items: flex-start; }
.plan-item.current { background: var(--green-soft); }
.plan-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: 0 0 auto; font-size: 10px; color: var(--muted-2); margin-top: 1px; }
.plan-item.current .plan-dot { background: var(--green); border-color: var(--green); color: #fff; }
.plan-item strong { display: block; font-size: 12.5px; }
.plan-item span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.mini-history { display: grid; gap: 8px; }
.mini-hist { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.mini-hist:last-child { border-bottom: 0; }
.mini-score { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 750; flex: 0 0 auto; }
.mini-score.gut { background: var(--green-soft); color: var(--green); }
.mini-score.mittel { background: #f8eed7; color: #9a6c16; }
.mini-score.schwach { background: var(--coral-soft); color: var(--coral); }
.mini-hist strong { display: block; font-size: 12px; }
.mini-hist span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.mini-hist svg { width: 16px; height: 16px; color: var(--muted-2); margin-left: auto; }

/* ---------- Session ---------- */
.session-screen {
  position: fixed; inset: 0; z-index: 80;
  background: var(--paper);
  display: none; flex-direction: column;
}
.session-screen.active { display: flex; }
.session-top {
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-top)) 18px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(246,243,236,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3;
}
.session-mid { flex: 1; min-width: 0; }
.session-title { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; margin-bottom: 6px; }
.session-title strong { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-title span { color: var(--muted-2); flex: 0 0 auto; }
.session-progress { height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; }
.session-progress i { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 99px; transition: width .5s ease; }
.chat {
  flex: 1; overflow-y: auto; padding: 22px 18px 170px;
  width: min(760px, 100%); margin: 0 auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.msg { display: flex; gap: 9px; margin-bottom: 14px; animation: msgIn .3s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg-av { width: 28px; height: 28px; border-radius: 9px; background: var(--green); color: #f6f2e9; display: grid; place-items: center; flex: 0 0 auto; margin-top: 2px; }
.msg-av svg { width: 15px; height: 15px; }
.bubble {
  max-width: 84%; padding: 12px 15px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px;
  font-size: 14px; line-height: 1.55;
  box-shadow: 0 1px 0 rgba(23,35,31,.02);
}
.bubble small { display: block; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px; }
.bubble .reden { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 10.5px; font-weight: 650; color: var(--green-2); cursor: pointer; }
.bubble .reden svg { width: 12px; height: 12px; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--green); color: #f6f2e9; border-color: var(--green); border-radius: 18px 4px 18px 18px; }
.msg.coach .bubble { background: var(--surface); border-color: var(--line); }
.msg.coach .bubble small { color: var(--green-2); }
.score-row { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; flex-wrap: wrap; }
.score-pill { display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 750; background: var(--paper-2); color: var(--muted); }
.score-pill.gut { background: var(--green-soft); color: var(--green); }
.score-pill.mittel { background: #f8eed7; color: #9a6c16; }
.score-pill.schwach { background: var(--coral-soft); color: var(--coral); }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: 9.5px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted-2); }
.tag.stark { color: var(--green-2); border-color: #cfe2d8; background: var(--green-soft); }
.typing { display: inline-flex; gap: 4px; padding: 5px 2px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

.session-dock {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 18px calc(14px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(246,243,236,0), rgba(246,243,236,.94) 30%, var(--paper) 60%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 4;
}
.dock-hint { font-size: 11px; color: var(--muted-2); height: 16px; }
.record-row { display: flex; align-items: center; gap: 22px; }
.record-time { width: 42px; text-align: center; font-size: 11px; color: var(--muted-2); opacity: 0; font-variant-numeric: tabular-nums; }
body.recording .record-time { opacity: 1; color: var(--coral); }
.mic {
  position: relative; width: 74px; height: 74px; border-radius: 50%;
  background: var(--green); color: #f6f2e9;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(29,74,60,.28), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .15s ease, background .2s;
}
.mic:active { transform: scale(.94); }
.mic svg { width: 29px; height: 29px; stroke-width: 2; }
.mic .stop-ic { display: none; }
body.recording .mic { background: var(--coral); }
body.recording .mic .mic-ic { display: none; }
body.recording .mic .stop-ic { display: block; fill: currentColor; stroke: none; width: 25px; height: 25px; }
.mic-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid rgba(217,107,75,.5); opacity: 0; }
body.recording .mic-ring { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.mic:disabled { opacity: .5; }
.text-toggle { font-size: 11px; color: var(--muted-2); text-decoration: underline; text-underline-offset: 3px; }
.text-form { display: flex; gap: 8px; width: min(560px, 100%); }
.text-form input { flex: 1; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--surface); outline: none; font-size: 14px; }
.text-form input:focus { border-color: var(--green-2); }
.send-btn { width: 46px; border-radius: 13px; background: var(--green); color: #f6f2e9; display: grid; place-items: center; }
.send-btn svg { width: 19px; height: 19px; stroke-width: 2.2; }

/* ---------- Report ---------- */
.report-screen { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: none; overflow-y: auto; }
.report-screen.active { display: block; }
.report-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-top)) 18px 12px; background: rgba(246,243,236,.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.report-body { width: min(820px, 100%); margin: 0 auto; padding: 26px 18px calc(50px + var(--safe-bottom)); }
.report-hero { display: flex; align-items: center; gap: 24px; padding: 28px; border-radius: 28px; background: var(--green); color: #f6f2e9; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; flex: 0 0 auto; background: conic-gradient(var(--ring-color, var(--coral)) calc(var(--p) * 1%), rgba(255,255,255,.14) 0); display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--green); }
.ring-in { position: relative; text-align: center; }
.ring-in strong { display: block; font-family: var(--font-serif); font-size: 35px; line-height: 1; letter-spacing: -.04em; }
.ring-in span { font-size: 9px; color: rgba(246,242,233,.55); text-transform: uppercase; letter-spacing: .1em; }
.report-headline { min-width: 0; }
.report-headline .stufe { display: inline-block; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.13); color: #f6f2e9; margin-bottom: 8px; }
.report-headline h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.04; letter-spacing: -.04em; font-weight: 560; }
.report-headline p { font-size: 11.5px; color: rgba(246,242,233,.6); margin-top: 6px; }
.report-section { margin-top: 28px; }
.report-section > h2 { font-size: 16px; letter-spacing: -.02em; margin-bottom: 12px; }
.dims { display: grid; gap: 11px; }
.dim-row { display: grid; grid-template-columns: 105px 1fr 32px; gap: 10px; align-items: center; }
.dim-row span { font-size: 11.5px; color: var(--muted); }
.dim-row b { font-size: 11.5px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.dim-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dim-bar i { display: block; height: 100%; border-radius: 99px; background: var(--coral); }
.dim-bar i.gut { background: var(--green-3); }
.dim-bar i.mittel { background: var(--sun); }
.note-grid { display: grid; gap: 10px; }
.note { padding: 15px 17px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.note strong { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 3px; }
.note.gut { background: var(--green-soft); border-color: #d0e3d9; }
.note.gut strong { color: var(--green); }
.note.warn { background: var(--coral-soft); border-color: #efd2c6; }
.note.warn strong { color: var(--coral); }
.q-list { display: grid; gap: 8px; }
.q-item { border: 1px solid var(--line); background: var(--surface); border-radius: 15px; overflow: hidden; }
.q-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 15px; font-size: 12.5px; }
.q-item summary::-webkit-details-marker { display: none; }
.q-num { width: 26px; height: 26px; border-radius: 8px; background: var(--paper-2); color: var(--muted); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: 0 0 auto; }
.q-item summary span:nth-child(2) { flex: 1; line-height: 1.4; }
.q-score { font-size: 11px; font-weight: 750; color: var(--muted); }
.q-score.gut { color: var(--green); }
.q-score.mittel { color: #9a6c16; }
.q-score.schwach { color: var(--coral); }
.q-arrow { width: 14px; height: 14px; color: var(--muted-2); transition: transform .2s; flex: 0 0 auto; }
.q-item[open] .q-arrow { transform: rotate(180deg); }
.q-inhalt { padding: 0 15px 15px 51px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.q-inhalt .antwort { margin-bottom: 8px; }
.q-inhalt .antwort strong { color: var(--ink); }
.q-inhalt .muster { margin-top: 8px; padding: 10px 12px; background: var(--paper-2); border-radius: 10px; color: var(--ink-2); }
.report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.report-disclaimer { margin-top: 18px; font-size: 10.5px; color: var(--muted-2); text-align: center; line-height: 1.5; }

/* ---------- Karten ---------- */
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 13px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: 11.5px; font-weight: 650; }
.chip.active { background: var(--green); border-color: var(--green); color: #f6f2e9; }
.karten-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.karte { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; overflow: hidden; }
.karte summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 17px; cursor: pointer; }
.karte summary::-webkit-details-marker { display: none; }
.karte-num { width: 34px; height: 34px; border-radius: 11px; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; font-size: 11px; font-weight: 750; flex: 0 0 auto; }
.karte-titel { flex: 1; min-width: 0; }
.karte-titel strong { display: block; font-size: 13.5px; }
.karte-titel span { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.karte summary svg { width: 16px; height: 16px; color: var(--muted-2); transition: transform .2s; flex: 0 0 auto; }
.karte[open] summary svg { transform: rotate(180deg); }
.karte-inhalt { padding: 0 17px 17px 63px; }
.karte-inhalt .label { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.karte-inhalt ul { margin: 0 0 13px; padding-left: 16px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.karte-inhalt li { margin-bottom: 4px; }
.karte-inhalt .beispiel { font-size: 12px; line-height: 1.6; color: var(--ink-2); background: var(--paper-2); border-left: 2px solid var(--coral); border-radius: 0 10px 10px 0; padding: 11px 12px; }
.tipp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tipp { padding: 15px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); }
.tipp strong { display: block; font-size: 12.5px; margin-bottom: 4px; }
.tipp p { font-size: 11.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Verlauf ---------- */
.hist-list { display: grid; gap: 9px; }
.hist-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.hist-row:hover { border-color: var(--line-strong); }
.hist-score { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 750; flex: 0 0 auto; }
.hist-score.gut { background: var(--green-soft); color: var(--green); }
.hist-score.mittel { background: #f8eed7; color: #9a6c16; }
.hist-score.schwach { background: var(--coral-soft); color: var(--coral); }
.hist-text { flex: 1; min-width: 0; }
.hist-text strong { display: block; font-size: 13px; }
.hist-text span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.hist-row > svg { width: 16px; height: 16px; color: var(--muted-2); }
.empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 20px; color: var(--muted-2); font-size: 12.5px; line-height: 1.6; }
.trend { display: flex; align-items: flex-end; gap: 5px; height: 70px; padding: 14px 0; }
.trend i { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: var(--green-soft); position: relative; }
.trend i b { position: absolute; inset: 0; border-radius: inherit; background: var(--green-3); }
.trend-labels { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted-2); }

/* ---------- Profil / Preise ---------- */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.profile-card h2 { font-size: 15px; margin-bottom: 14px; }
.profile-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.profile-row:last-child { border-bottom: 0; }
.profile-row span { color: var(--muted); }
.profile-row strong { text-align: right; }
.danger-link { color: var(--danger); font-size: 12px; font-weight: 650; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row strong { display: block; font-size: 12.5px; }
.settings-row span { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--paper-2); }
.seg button { padding: 6px 9px; border-radius: 8px; font-size: 10.5px; font-weight: 650; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan-card.featured { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,106,86,.08); }
.plan-card .badge { position: absolute; top: 16px; right: 16px; }
.plan-card h2 { font-size: 15px; }
.plan-price { font-family: var(--font-serif); font-size: 52px; line-height: 1; letter-spacing: -.06em; margin: 18px 0 4px; }
.plan-price span { font-family: var(--font-sans); font-size: 12px; color: var(--muted); letter-spacing: 0; }
.plan-card p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.plan-features { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; font-size: 12px; }
.plan-features li { display: flex; gap: 8px; }
.plan-features svg { width: 15px; height: 15px; color: var(--green-3); flex: 0 0 auto; margin-top: 2px; }
.plan-card .btn { margin-top: auto; }
.code-box { margin-top: 16px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.code-box h3 { font-size: 14px; margin-bottom: 4px; }
.code-box p { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.code-form { display: flex; gap: 8px; }
.code-form input { flex: 1; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); font-size: 12.5px; outline: none; text-transform: uppercase; }
.code-form button { min-height: 40px; }
.pay-note { font-size: 10.5px; color: var(--muted-2); line-height: 1.5; margin-top: 14px; }

/* ---------- Modal / Toast ---------- */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(23,35,31,.45); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; padding: 16px calc(16px + var(--safe-bottom)); }
.modal-card { width: min(520px, 100%); max-height: 85dvh; overflow-y: auto; background: var(--surface); border-radius: 24px; padding: 26px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: sheet .25s ease both; }
@keyframes sheet { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-card h2 { font-size: 24px; letter-spacing: -.035em; margin: 0 36px 8px 0; }
.modal-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.modal-card .btn { width: 100%; margin-top: 8px; }
.modal-actions { display: grid; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-bottom)); transform: translate(-50%, 12px); z-index: 200; background: var(--ink); color: #f6f2e9; border-radius: 12px; padding: 10px 15px; font-size: 12px; max-width: calc(100% - 40px); text-align: center; opacity: 0; visibility: hidden; transition: .22s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Mobile nav ---------- */
.mobile-nav { display: none; }
@media (max-width: 720px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: grid; }
  .hero { padding: 36px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-lead { font-size: 15px; }
  .hero-visual { min-height: 480px; }
  .phone { width: 290px; transform: rotate(-2deg) scale(.94); }
  .float-card.one { left: 0; top: 10px; }
  .float-card.two { right: 0; bottom: 30px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; }
  .split, .steps, .pricing, .footer-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.wide, .bento-card.third, .bento-card.half { grid-column: auto; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .price-card { padding: 26px; }
  .footer-grid { gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 10px; }

  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 16px 16px calc(96px + var(--safe-bottom)); }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-top)) 0 12px; }
  .mobile-top .brand-text strong { font-size: 17px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 29px; }
  .dash-grid, .dash-cols { grid-template-columns: 1fr; }
  .topic-cards { grid-template-columns: 1fr 1fr; }
  .topic-card { min-height: 128px; }
  .stats-card { min-height: 0; }
  .continue { min-height: 230px; padding: 24px; }
  .continue h2 { font-size: 32px; }
  .karten-grid, .tipp-grid, .profile-grid, .pricing-grid { grid-template-columns: 1fr; }
  .report-hero { padding: 22px; gap: 16px; }
  .ring { width: 96px; height: 96px; }
  .ring-in strong { font-size: 29px; }
  .report-actions { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-wrap { padding: 34px 20px calc(34px + var(--safe-bottom)); align-items: start; }
  .auth-card { padding-top: 10px; }
  .choice-grid { grid-template-columns: 1fr; }
  .onboarding { padding: 24px 18px calc(24px + var(--safe-bottom)); align-items: start; }
  .onboard-card { padding-top: 10px; }
  .onboard-card h1 { font-size: 38px; }
  .mobile-nav {
    display: flex; position: fixed; left: 50%; bottom: calc(10px + var(--safe-bottom));
    transform: translateX(-50%); width: calc(100% - 24px); max-width: 460px;
    background: rgba(255,253,248,.9); border: 1px solid var(--line);
    border-radius: 20px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow); z-index: 60; padding: 7px;
  }
  .mobile-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; color: var(--muted-2); border-radius: 12px; }
  .mobile-nav button svg { width: 19px; height: 19px; }
  .mobile-nav button span { font-size: 9px; font-weight: 650; }
  .mobile-nav button.active { color: var(--green); background: var(--green-soft); }
  body.hide-nav .mobile-nav { display: none; }
  .toast { bottom: calc(84px + var(--safe-bottom)); }
}
@media (max-width: 390px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-cards { grid-template-columns: 1fr; }
  .auth-card h1 { font-size: 34px; }
}

/* ---------- Admin ---------- */
.admin-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 60px; position: relative; z-index: 1; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.admin-head h1 { font-size: 28px; letter-spacing: -.03em; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.admin-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.admin-stat strong { display: block; font-family: var(--font-serif); font-size: 38px; line-height: 1; letter-spacing: -.05em; color: var(--green); }
.admin-stat span { font-size: 11px; color: var(--muted); }
.admin-section { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 16px; }
.admin-section h2 { font-size: 16px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 9.5px; font-weight: 700; background: var(--paper-2); color: var(--muted); }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.warn { background: var(--coral-soft); color: var(--coral); }
.code-list { display: flex; flex-wrap: wrap; gap: 6px; }
.code { font-family: monospace; font-size: 12px; background: var(--paper-2); padding: 4px 8px; border-radius: 6px; }
.admin-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.admin-form .field { margin: 0; min-width: 110px; }
.admin-form .field label { font-size: 10px; }
.admin-form input, .admin-form select { min-height: 38px; padding: 7px 10px; font-size: 12px; }
@media (max-width: 720px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .admin-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Rechtsseiten ---------- */
.legal-shell { position: relative; z-index: 1; }
.legal-nav { border-bottom: 1px solid var(--line); background: rgba(246,243,236,.8); backdrop-filter: blur(14px); }
.legal-nav .container { height: 70px; display: flex; align-items: center; justify-content: space-between; }
.legal-nav a.back { font-size: 12px; font-weight: 650; color: var(--green-2); text-decoration: none; }
.legal-page { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.legal-page .eyebrow { margin-bottom: 12px; }
.legal-page h1 { font-family: var(--font-serif); font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; font-weight: 560; margin-bottom: 10px; }
.legal-page .updated { font-size: 11px; color: var(--muted-2); margin-bottom: 34px; }
.legal-page h2 { font-size: 17px; letter-spacing: -.02em; margin: 30px 0 10px; }
.legal-page h3 { font-size: 14px; margin: 20px 0 6px; }
.legal-page p, .legal-page li { font-size: 13px; line-height: 1.7; color: var(--muted); }
.legal-page p { margin-bottom: 10px; }
.legal-page ul { padding-left: 20px; margin: 0 0 12px; }
.legal-page li { margin-bottom: 4px; }
.legal-page address { font-style: normal; font-size: 13px; line-height: 1.7; color: var(--ink-2); margin-bottom: 10px; }
.legal-page a { color: var(--green-2); }
.legal-page strong { color: var(--ink); }
.legal-page .box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 14px 0; }
.legal-page .box p:last-child { margin-bottom: 0; }
.legal-note { font-size: 11px; color: var(--muted-2); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; }

body.session-open, body.report-open { overflow: hidden; }
@media (min-width: 1100px) {
  .admin-grid { grid-template-columns: repeat(5, 1fr); }
}
