/* ──────────────────────────────────────────────────────────────
   52 Wochen Challenge — Design
   Mobile-First → Tablet (≥600px) → Desktop (≥1024px)
   Touch-Targets ≥48px, Safe-Areas für Notch, kein horizontal scroll.
   ────────────────────────────────────────────────────────────── */

/* Self-hosted Fonts (DSGVO-konform, kein Google-CDN-Aufruf) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/static/fonts/source-serif-4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/static/fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:           #f6f1e7;
  --bg-soft:      #fbf7ef;
  --paper:        #ffffff;
  --ink:          #1c1f1a;
  --ink-soft:     #4a4f44;
  --accent:       #5e7a5a;
  --accent-deep:  #3f5b3c;
  --accent-soft:  #dfe7d8;
  --muted:        #aaa79c;
  --line:         #e6dfd0;
  --warn:         #b75d2a;
  --good:         #4e7a4a;
  --shadow:       0 4px 24px rgba(28, 31, 26, 0.06);
  --radius:       14px;
  --radius-lg:    22px;

  /* Container-Breiten */
  --maxw:         720px;
  --maxw-wide:    1100px;

  /* Innenränder */
  --pad-x:        1.1rem;
  --pad-x-lg:     1.6rem;

  /* Touch-Targets */
  --touch:        48px;

  --font-serif:   "Source Serif Pro", "Source Serif 4", Georgia, "Iowan Old Style", serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Safe-Area-Insets (iOS Notch / Home-Indicator) */
  --safe-top:     env(safe-area-inset-top,    0px);
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --safe-left:    env(safe-area-inset-left,   0px);
  --safe-right:   env(safe-area-inset-right,  0px);
}

@media (min-width: 600px) {
  :root { --pad-x: 1.4rem; }
}

/* ─── Bug-Net gegen Horizontal-Scroll ─── */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }                         /* flex-children dürfen schrumpfen */

html, body {
  margin: 0; padding: 0;
  overflow-x: clip;                          /* hart abschneiden — kein scroll */
  max-width: 100%;
}

img, video, iframe, svg, canvas { max-width: 100%; height: auto; }
pre, code, kbd, samp {
  max-width: 100%;
  overflow-wrap: anywhere;
}
pre { overflow-x: auto; }                    /* lange Codezeilen scrollen IM pre, nicht im body */
table { max-width: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 5.4vw, 2.6rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); margin: 2rem 0 .8rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; }

/* ─── Container ─── */
.wrap, .wrap-wide {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left:  max(var(--pad-x), var(--safe-left));
  padding-right: max(var(--pad-x), var(--safe-right));
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}
.wrap      { max-width: var(--maxw); }
.wrap-wide { max-width: var(--maxw-wide); }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 241, 231, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: .6rem max(var(--pad-x), var(--safe-right)) .6rem max(var(--pad-x), var(--safe-left));
  gap: .6rem;
  min-height: var(--touch);
}
.brand {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand b { color: var(--accent-deep); }
.nav { display: flex; gap: .9rem; font-size: .92rem; align-items: center; }
.nav a { color: var(--ink-soft); padding: .4rem .1rem; }
.nav a:hover { color: var(--accent-deep); text-decoration: none; }

@media (min-width: 600px) {
  .site-header .row { padding-top: .9rem; padding-bottom: .9rem; }
  .brand { font-size: 1.15rem; }
  .nav   { gap: 1.4rem; font-size: .95rem; }
}
@media (max-width: 480px) {
  .nav .hide-sm { display: none; }
  .nav { gap: .8rem; }
}

/* ─── Hero ─── */
.hero {
  width: 100%;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 2.4rem max(var(--pad-x), var(--safe-right)) 1.8rem max(var(--pad-x), var(--safe-left));
}
@media (min-width: 600px) { .hero { padding-top: 3.4rem; padding-bottom: 2.4rem; } }

.hero .eyebrow {
  display: inline-block; padding: .25rem .7rem; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 99px; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.12; max-width: 760px; }
.hero .lead {
  margin: 1rem 0 1.6rem; max-width: 620px;
  font-size: 1.05rem; color: var(--ink-soft);
}
@media (min-width: 600px) { .hero .lead { font-size: 1.1rem; } }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch);
  padding: .8rem 1.4rem; border-radius: 99px;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-soft { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn-block { width: 100%; }
.btn-lg    { min-height: 56px; font-size: 1.05rem; padding: 1rem 1.6rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ─── Cards ─── */
.card {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
@media (min-width: 600px) { .card { padding: 1.8rem; } }

/* ─── Pillars ─── */
.pillars {
  display: grid; gap: .8rem; margin: 2rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar {
  background: var(--bg-soft); padding: 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.pillar h4 {
  margin: 0 0 .3rem; font-family: var(--font-sans); font-size: .78rem;
  color: var(--accent-deep); letter-spacing: .06em; text-transform: uppercase;
}
.pillar p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ─── Chapter Liste ─── */
.chapter-grid {
  display: grid; gap: .65rem; margin: 1.2rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .chapter-grid { grid-template-columns: 1fr 1fr; } }

.chapter-card {
  display: flex; gap: .8rem; align-items: center;
  background: var(--paper); padding: .9rem 1rem;
  border-radius: var(--radius); border: 1px solid var(--line);
  transition: border-color .15s ease, transform .08s ease;
  min-height: var(--touch);
  text-decoration: none;
}
.chapter-card:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.chapter-card .num {
  flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 600; color: var(--ink-soft);
  font-size: .92rem;
}
.chapter-card .meta { flex: 1; min-width: 0; }
.chapter-card .title {
  font-family: var(--font-serif); font-weight: 600; color: var(--ink);
  font-size: 1rem; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.chapter-card .sub {
  color: var(--ink-soft); font-size: .82rem; margin-top: .1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chapter-card.locked { opacity: .55; }
.chapter-card .badge {
  flex: 0 0 auto;
  font-size: .65rem; padding: .15rem .55rem; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.chapter-card .badge-locked { background: var(--line); color: var(--ink-soft); }
.chapter-card .badge-done   { background: var(--good); color: #fff; }

/* ─── Reader ─── */
.reader {
  max-width: 680px; margin: 0 auto;
  padding:
    1.4rem
    max(var(--pad-x), var(--safe-right))
    /* Bottom-Padding berücksichtigt fixed Bottom-Bar + Safe-Area */
    calc(6rem + var(--safe-bottom))
    max(var(--pad-x), var(--safe-left));
}
.reader .crumb {
  font-size: .85rem; color: var(--ink-soft); margin-bottom: .8rem;
}
.reader .crumb a { color: var(--ink-soft); }
.reader h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.reader .week {
  font-family: var(--font-sans); color: var(--accent-deep);
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; margin-bottom: .3rem;
}
.prose {
  font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.75;
  color: var(--ink);
}
@media (min-width: 600px) { .prose { font-size: 1.22rem; } }
.prose p { margin: 1.1rem 0; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: .4rem 0; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: .4rem 0 .4rem 1.2rem;
  margin: 1.6rem 0; color: var(--ink-soft); font-style: italic;
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ─── Bottom-Nav (Reader) ─── */
.reader-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding:
    .55rem
    max(.7rem, var(--safe-right))
    calc(.55rem + var(--safe-bottom))
    max(.7rem, var(--safe-left));
  display: flex; gap: .55rem; align-items: stretch; justify-content: space-between;
}
.reader-bottom-nav .btn {
  flex: 1; min-height: var(--touch); padding: .6rem .8rem;
  font-size: .92rem;
}
.reader-bottom-nav .btn-center {
  flex: 1.4;
  background: var(--accent-deep); color: #fff; border-color: var(--accent-deep);
}
.reader-bottom-nav .btn:disabled,
.reader-bottom-nav .btn-disabled {
  opacity: .35; pointer-events: none;
}

/* ─── Paywall ─── */
.paywall {
  text-align: center; padding: 2.4rem 1.2rem; background: var(--bg-soft);
  border-radius: var(--radius-lg); margin: 2rem 0; border: 1px dashed var(--line);
}
.paywall h2 { margin-top: 0; }
.paywall .lock-icon { font-size: 2.4rem; margin-bottom: .5rem; }

/* ─── Challenge-Box (Mini-Challenge im Reader) ─── */
.challenge-box {
  margin: 2.4rem 0; padding: 1.3rem; border-radius: var(--radius-lg);
  background: var(--accent-soft); border: 1px solid var(--accent);
}
@media (min-width: 600px) { .challenge-box { padding: 1.6rem; } }
.challenge-box h3 {
  margin: 0 0 .6rem; font-family: var(--font-sans); font-size: .82rem;
  color: var(--accent-deep); letter-spacing: .1em; text-transform: uppercase;
}

/* Rating: 5 Buttons pro Reihe auf Mobile (= 2 Reihen), 10 auf Tablet+ */
.rating {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .45rem;
  margin: .7rem 0;
}
@media (min-width: 600px) {
  .rating { grid-template-columns: repeat(10, 1fr); gap: .35rem; }
}
.rating button {
  min-height: var(--touch);
  border-radius: var(--radius);
  border: 1.5px solid var(--accent);
  background: transparent; color: var(--accent-deep); font-weight: 700;
  font-family: var(--font-sans); font-size: 1.05rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background .1s ease, color .1s ease, transform .08s ease;
}
@media (min-width: 600px) { .rating button { border-radius: 50%; font-size: 1rem; min-height: 44px; } }
.rating button:active { transform: scale(.94); }
.rating button:hover, .rating button.on {
  background: var(--accent-deep); color: #fff; border-color: var(--accent-deep);
}

.challenge-box textarea {
  width: 100%; min-height: 110px; padding: .8rem 1rem; margin-top: .6rem;
  border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--bg-soft); font-family: var(--font-sans); font-size: 1rem;
  resize: vertical;
}
.challenge-box .save-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .8rem; gap: .7rem; flex-wrap: wrap;
}
.challenge-box .saved-hint { font-size: .85rem; color: var(--accent-deep); min-height: 1rem; }

/* ─── Pricing ─── */
.price-grid {
  display: grid; gap: 1rem; margin: 2rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .price-grid { grid-template-columns: 1fr 1fr; } }

.price-card {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 1.6rem; border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
@media (min-width: 600px) { .price-card { padding: 2rem; } }
.price-card.featured {
  border-color: var(--accent-deep);
  box-shadow: 0 6px 30px rgba(95,122,90,.18);
  order: -1;                                 /* Mobile: Featured zuerst */
}
@media (min-width: 768px) { .price-card.featured { order: 0; } }

.price-card .tag {
  display: inline-block; background: var(--accent-deep); color: #fff;
  padding: .25rem .8rem; border-radius: 99px; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem;
  align-self: flex-start;
}
.price-card h3 { font-size: 1.5rem; margin: 0 0 .4rem; }
.price-card .price {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600;
  color: var(--accent-deep); margin: .3rem 0;
}
.price-card .price .unit { font-size: 1rem; color: var(--ink-soft); }
.price-card ul {
  list-style: none; padding: 0; margin: .8rem 0 1.4rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.price-card li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent-deep); font-weight: 700;
}
.price-card .btn { margin-top: auto; }
.price-card .consent {
  display: flex; gap: .5rem; align-items: flex-start;
  margin: .9rem 0; font-size: .85rem; color: var(--ink-soft);
  cursor: pointer;
}
.price-card .consent input { margin-top: .25rem; width: 18px; height: 18px; flex: 0 0 auto; }

/* ─── Login / Auth ─── */
.auth-box {
  max-width: 420px; margin: 2rem auto;
  padding: 1.8rem max(var(--pad-x), var(--safe-right)) 2rem max(var(--pad-x), var(--safe-left));
  background: var(--paper); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 600px) { .auth-box { margin: 4rem auto; padding: 2.4rem 1.8rem; } }
.auth-box h1 { font-size: 1.6rem; }
.auth-box .hint { color: var(--ink-soft); margin-bottom: 1.4rem; }

.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: .35rem;
}
.form-row input[type="email"],
.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="password"] {
  width: 100%;
  min-height: var(--touch);
  padding: .9rem 1rem; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--bg-soft);
  font-size: 16px;                            /* ≥16px: kein iOS-Auto-Zoom */
  font-family: var(--font-sans);
}
.form-row input:focus { border-color: var(--accent-deep); outline: none; background: #fff; }

.form-error {
  background: #fbe5d5; color: var(--warn); padding: .7rem 1rem;
  border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem;
}

/* ─── Footer ─── */
.site-footer {
  margin-top: 4rem;
  padding:
    2rem
    max(var(--pad-x), var(--safe-right))
    calc(2rem + var(--safe-bottom))
    max(var(--pad-x), var(--safe-left));
  background: var(--bg-soft); border-top: 1px solid var(--line);
}
.site-footer .row {
  max-width: var(--maxw-wide); margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem;
  font-size: .9rem; color: var(--ink-soft);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
.site-footer a { color: var(--ink-soft); }
@media (min-width: 600px) {
  .site-footer .row { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ─── Utility ─── */
.center { text-align: center; }
.muted  { color: var(--ink-soft); }
.small  { font-size: .85rem; }
.lead   { font-size: 1.05rem; color: var(--ink-soft); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* ─── Account-Liste ─── */
.kv-list {
  list-style: none; padding: 0; margin: 1rem 0;
  display: flex; flex-direction: column; gap: 0;
}
.kv-list li {
  display: flex; justify-content: space-between; gap: .6rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
  align-items: center;
}

/* ──────────────────────────────────────────────────────────────
   Chapter Tools
   ────────────────────────────────────────────────────────────── */
.tool-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  margin: 2rem 0;
}
.tool-header { margin-bottom: 1.2rem; }
.tool-header h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.tool-header p { margin: 0; }
.tool-stat { font-size: .85rem; color: var(--muted); }

/* — Box Breathing — */
.breath-stage {
  display: flex; justify-content: center; align-items: center;
  padding: 1.6rem 0;
}
.breath-ring {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 150px; height: 150px;
}
.breath-circle {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  transform: scale(1);
  transition: transform .5s ease;
}
.breath-label {
  position: relative; z-index: 1;
  font-size: 1rem; font-weight: 600; color: var(--accent-deep);
  text-align: center;
}
.breath-countdown {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 1; font-size: .85rem; color: var(--ink-soft);
}
.breath-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}

/* — Zinseszins — */
.zins-inputs { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.2rem; }
.zins-row label { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-soft); margin-bottom: .3rem; }
.zins-slider-wrap { display: flex; align-items: center; gap: .7rem; }
.zins-slider-wrap input[type=range] { flex: 1; accent-color: var(--accent); height: 4px; }
.zins-slider-wrap output { min-width: 68px; text-align: right; font-size: .9rem; font-weight: 600; }
.zins-result { background: var(--bg-soft); border-radius: 10px; padding: 1rem; margin-bottom: .8rem; }
.zins-big { text-align: center; margin-bottom: .8rem; }
.zins-big span { display: block; font-size: 2rem; font-weight: 700; color: var(--accent-deep); }
.zins-big small { color: var(--muted); font-size: .78rem; }
.zins-bar {
  height: 12px; border-radius: 6px; display: flex; overflow: hidden;
  background: var(--line); margin-bottom: .45rem;
}
.zins-bar-invested { background: var(--muted); transition: width .3s; }
.zins-bar-gains    { background: var(--accent); transition: width .3s; }
.zins-bar-labels { display: flex; justify-content: space-between; font-size: .78rem; }
.invested-label { color: var(--muted); }
.gains-label    { color: var(--accent-deep); }
.gains-col      { color: var(--accent-deep); font-weight: 500; }
.zins-table-wrap { margin-top: .6rem; }
.zins-table-wrap summary { cursor: pointer; padding: .4rem 0; user-select: none; }
.zins-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: .5rem; }
.zins-table th { text-align: right; padding: .3rem .4rem; color: var(--muted); font-weight: 500; font-size: .76rem; }
.zins-table th:first-child { text-align: left; }
.zins-table td { text-align: right; padding: .4rem .4rem; border-top: 1px solid var(--line); }
.zins-table td:first-child { text-align: left; color: var(--ink-soft); }

/* — Budget / Haushalt — */
.budget-login-hint { text-align: center; padding: 1rem 0; }
.budget-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 1.2rem;
}
.budget-month { font-weight: 600; min-width: 130px; text-align: center; }
.budget-nav button {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .3rem .7rem; cursor: pointer; color: var(--ink); font-size: 1rem;
  touch-action: manipulation;
}
.budget-nav button:hover { border-color: var(--accent); }
.budget-section { margin-bottom: 1rem; }
.budget-section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .4rem 0; border-bottom: 2px solid var(--line); margin-bottom: .4rem;
}
.budget-section-head h4 { margin: 0; font-size: .9rem; }
.income-color  { color: var(--good); }
.expense-color { color: var(--warn); }
.budget-entry {
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .86rem;
}
.cat-badge {
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 5px; padding: .12rem .42rem; font-size: .7rem;
  white-space: nowrap; flex-shrink: 0; max-width: 90px;
  overflow: hidden; text-overflow: ellipsis;
}
.entry-desc {
  flex: 1; color: var(--ink-soft); font-size: .82rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entry-amt  { font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.entry-del  {
  background: none; border: none; color: var(--muted);
  cursor: pointer; padding: .1rem .3rem; font-size: 1.1rem; flex-shrink: 0;
  line-height: 1; touch-action: manipulation;
}
.entry-del:hover { color: var(--warn); }
.budget-add-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; background: none; border: 1px dashed var(--line);
  border-radius: 8px; padding: .45rem; color: var(--muted);
  cursor: pointer; font-size: .82rem; margin-top: .4rem;
  touch-action: manipulation;
}
.budget-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.budget-add-form {
  background: var(--bg-soft); border-radius: 10px;
  padding: .8rem; margin-top: .5rem; display: none;
}
.budget-add-form.open { display: block; }
.budget-add-form .form-row {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem;
}
.budget-add-form select,
.budget-add-form input {
  border: 1px solid var(--line); border-radius: 7px;
  padding: .45rem .6rem; font-size: .85rem;
  background: var(--paper); color: var(--ink); font-family: inherit;
}
.budget-add-form select        { flex: 1; min-width: 140px; }
.budget-add-form input[type=text]   { flex: 2; min-width: 100px; }
.budget-add-form input[type=number] { width: 90px; flex-shrink: 0; }
.budget-add-actions { display: flex; gap: .5rem; justify-content: flex-end; }
.budget-summary {
  background: var(--bg-soft); border-radius: 10px;
  padding: .8rem 1rem; display: flex;
  align-items: center; justify-content: space-around;
  gap: .5rem; flex-wrap: wrap; margin-top: .5rem;
}
.budget-summary-item { text-align: center; }
.budget-summary-item label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: .15rem; }
.budget-summary-item span  { font-size: 1.05rem; font-weight: 700; }
.budget-summary-item.positive span { color: var(--good); }
.budget-summary-item.negative span { color: var(--warn); }
.budget-summary-sep { color: var(--muted); font-size: 1.1rem; }

/* — Wasser-Tracker — */
.water-date-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 1rem;
}
.water-date-label { font-weight: 600; min-width: 120px; text-align: center; }
.water-date-nav button {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .3rem .7rem; cursor: pointer; color: var(--ink); font-size: 1rem;
  touch-action: manipulation;
}
.water-date-nav button:hover:not(:disabled) { border-color: var(--accent); }
.water-date-nav button:disabled { opacity: .35; cursor: default; }
.water-glasses {
  display: flex; gap: .5rem; justify-content: center;
  flex-wrap: wrap; margin: .8rem 0;
}
.water-glass {
  background: none; border: none; cursor: pointer;
  padding: 0; width: 42px; height: 50px;
  color: var(--line); touch-action: manipulation;
  transition: transform .15s, color .15s;
}
.water-glass:hover  { transform: scale(1.12); color: var(--accent-soft); }
.water-glass.filled { color: var(--accent); }
.water-glass svg    { width: 100%; height: 100%; display: block; }
.water-status {
  text-align: center; font-size: .9rem; color: var(--ink-soft);
  margin-bottom: .9rem; display: flex; align-items: center;
  justify-content: center; gap: .6rem; flex-wrap: wrap;
}
.water-badge { color: var(--accent-deep); font-weight: 600; }
.water-week {
  display: flex; gap: .35rem; align-items: flex-end;
  justify-content: center; margin-top: .5rem;
}
.water-week-day {
  display: flex; flex-direction: column; align-items: center;
  gap: .2rem; cursor: pointer; flex: 1; max-width: 40px;
}
.water-week-day.active .water-week-bar-wrap { border-color: var(--accent); }
.water-week-bar-wrap {
  width: 100%; height: 52px;
  border: 1.5px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; align-items: flex-end;
  background: var(--bg-soft);
}
.water-week-bar {
  width: 100%; background: var(--accent);
  border-radius: 4px 4px 0 0; min-height: 0;
  transition: height .3s;
}
.water-week-label { font-size: .68rem; color: var(--muted); }
.water-week-count { font-size: .72rem; font-weight: 600; color: var(--accent-deep); }

/* — 4-7-8 Atemtimer — */
.atem-stage {
  display: flex; justify-content: center; align-items: center;
  padding: 1.4rem 0;
}
.atem-ring {
  position: relative; width: 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
}
.atem-circle {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent-soft); border: 2.5px solid var(--accent);
  transform: scale(1); transition: transform .5s ease, border-color .5s;
}
.atem-text {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.atem-phase { font-size: .95rem; font-weight: 600; color: var(--accent-deep); }
.atem-sec   { font-size: 1.6rem; font-weight: 700; color: var(--ink); min-height: 1.8rem; }
.atem-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .9rem;
}
.atem-guide { display: flex; flex-direction: column; gap: .45rem; margin-top: .5rem; }
.atem-guide-step {
  display: flex; align-items: center; gap: .55rem;
  font-size: .85rem; color: var(--ink-soft); opacity: .55;
  transition: opacity .3s;
}
.atem-guide-step.active { opacity: 1; color: var(--ink); }
.atem-guide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); flex-shrink: 0; transition: background .3s;
}
.atem-guide-step.active .atem-guide-dot { background: var(--accent); }

/* — Schulte-Tafel — */
.schulte-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap;
}
.schulte-timer { font-size: 1.5rem; font-weight: 700; color: var(--accent-deep); min-width: 70px; }
.schulte-next  { font-size: .9rem; color: var(--ink-soft); }
.schulte-next b { color: var(--ink); font-size: 1.1rem; }
.schulte-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px; margin-bottom: 1rem;
}
.schulte-cell {
  aspect-ratio: 1; border-radius: 8px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: background .15s, border-color .15s;
  touch-action: manipulation;
}
.schulte-cell:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.schulte-cell.found { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); opacity: .5; }
.schulte-cell.schulte-wrong { background: #fee; border-color: var(--warn); animation: schulte-shake .35s; }
@keyframes schulte-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.schulte-result {
  background: var(--accent-soft); border-radius: 10px;
  padding: .8rem 1rem; text-align: center; margin-bottom: .8rem;
}
.schulte-result-time { font-size: 2rem; font-weight: 700; color: var(--accent-deep); }
.schulte-result-label { font-size: .82rem; color: var(--ink-soft); }
.schulte-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.schulte-best { font-size: .82rem; color: var(--muted); }

/* — Pomodoro — */
.pomo-stage {
  display: flex; justify-content: center; align-items: center;
  padding: 1rem 0; position: relative;
}
.pomo-ring-svg { width: 160px; height: 160px; transform: rotate(-90deg); }
.pomo-ring-bg   { fill: none; stroke: var(--line); stroke-width: 8; }
.pomo-ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset .9s linear, stroke .3s;
}
.pomo-center {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
}
.pomo-time  { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.pomo-label { font-size: .78rem; color: var(--muted); }
.pomo-rounds {
  display: flex; justify-content: center; gap: .6rem; margin-bottom: .9rem;
}
.pomo-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--line); transition: background .3s;
}
.pomo-dot.done   { background: var(--accent); }
.pomo-dot.active { background: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
.pomo-footer {
  display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap;
}

/* — Schlaf-Tracker — */
.schlaf-input-row {
  display: flex; gap: .6rem; align-items: flex-end;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.schlaf-input-group { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 100px; }
.schlaf-input-group label { font-size: .78rem; }
.schlaf-input-group input[type=time] {
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: .5rem .7rem; font-size: .95rem;
  background: var(--paper); color: var(--ink); font-family: inherit;
}
.schlaf-duration {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-soft); border-radius: 10px;
  padding: .7rem 1rem; margin-bottom: .9rem; text-align: center;
}
.schlaf-duration #schlafDurVal { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.schlaf-duration #schlafDurLabel { font-size: .78rem; color: var(--muted); }
.schlaf-duration.ok     { background: #e8f5e9; }
.schlaf-duration.ok #schlafDurLabel { color: var(--good); }
.schlaf-duration.short  { background: var(--bg-soft); }
.schlaf-chart-wrap { overflow-x: auto; }
.schlaf-chart {
  display: flex; gap: .5rem; align-items: flex-end;
  min-height: 100px; padding: .5rem 0;
}
.schlaf-col {
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem; flex: 1; min-width: 32px; cursor: default;
}
.schlaf-col.today .schlaf-bar-wrap { border-color: var(--accent); }
.schlaf-bar-wrap {
  width: 100%; height: 80px;
  border: 1.5px solid var(--line); border-radius: 6px;
  overflow: hidden; display: flex; align-items: flex-end;
  background: var(--bg-soft);
}
.schlaf-bar {
  width: 100%; background: var(--accent-soft);
  transition: height .4s;
}
.schlaf-bar.schlaf-bar-ok { background: var(--accent); }
.schlaf-day-label { font-size: .68rem; color: var(--muted); }
.schlaf-dur-label { font-size: .68rem; color: var(--ink-soft); }
.kv-list li:last-child { border-bottom: none; }

/* — Gewohnheits-Tracker — */
.habit-setup-form {
  display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem;
}
.habit-setup-form input {
  flex: 1; min-width: 160px; border: 1.5px solid var(--line);
  border-radius: 8px; padding: .5rem .75rem;
  font-size: .9rem; background: var(--paper); color: var(--ink); font-family: inherit;
}
.habit-header-row {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem;
}
.habit-name-display {
  flex: 1; font-size: 1rem; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.habit-change-btn {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: .8rem; text-decoration: underline; white-space: nowrap;
  touch-action: manipulation;
}
.habit-streak-row {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.habit-streak-box {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-soft); border-radius: 10px; padding: .5rem .8rem;
}
.habit-streak-box small { font-size: .7rem; color: var(--muted); }
.habit-streak-num { font-size: 1.6rem; font-weight: 700; color: var(--accent-deep); }
.habit-check-btn.done { background: var(--good); border-color: var(--good); }
.habit-grid { margin-top: .3rem; }
.habit-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 3px; margin-bottom: 3px;
}
.habit-weekdays span { font-size: .65rem; color: var(--muted); text-align: center; }
.habit-cells {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}
.habit-cell {
  aspect-ratio: 1; border-radius: 4px; background: var(--line);
}
.habit-cell.done   { background: var(--accent); }
.habit-cell.today  { outline: 2px solid var(--accent-deep); outline-offset: 1px; }
.habit-cell.empty  { background: transparent; }

/* — Dehn-Timer — */
.deh-progress-bar {
  height: 4px; background: var(--line); border-radius: 2px; margin-bottom: .7rem;
}
.deh-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s; }
.deh-step-num { font-size: .75rem; color: var(--muted); text-align: center; margin-bottom: .2rem; }
.deh-name { font-size: 1.1rem; font-weight: 700; text-align: center; margin-bottom: .4rem; }
.deh-desc { font-size: .85rem; color: var(--ink-soft); text-align: center; line-height: 1.5; min-height: 3em; margin-bottom: .8rem; }
.deh-timer-wrap {
  position: relative; width: 90px; height: 90px;
  margin: 0 auto .8rem;
  display: flex; align-items: center; justify-content: center;
}
.deh-ring-svg { width: 90px; height: 90px; transform: rotate(-90deg); position: absolute; inset: 0; }
.deh-ring-bg   { fill: none; stroke: var(--line); stroke-width: 6; }
.deh-ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 214; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear;
}
.deh-secs { font-size: 1.4rem; font-weight: 700; color: var(--ink); position: relative; z-index: 1; }
.deh-done {
  text-align: center; padding: 1.5rem 1rem;
}
.deh-done-icon { font-size: 2.5rem; color: var(--good); }
.deh-done-text { font-size: 1rem; color: var(--ink); margin-top: .4rem; font-weight: 500; }
.deh-footer {
  display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: .5rem;
}

/* — Pro-Contra — */
.pc-question-row { margin-bottom: .9rem; }
.pc-question-row input {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: .55rem .75rem; font-size: .95rem;
  background: var(--paper); color: var(--ink); font-family: inherit;
}
.pc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .8rem; }
@media (max-width: 480px) { .pc-columns { grid-template-columns: 1fr; } }
.pc-col { display: flex; flex-direction: column; gap: .4rem; }
.pc-col-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid; padding-bottom: .3rem; margin-bottom: .2rem;
}
.pc-pro   .pc-col-head { border-color: var(--good); }
.pc-contra .pc-col-head { border-color: var(--warn); }
.pc-col-title { font-weight: 700; font-size: .9rem; }
.pc-pro   .pc-col-title { color: var(--good); }
.pc-contra .pc-col-title { color: var(--warn); }
.pc-col-score { font-size: .8rem; font-weight: 600; color: var(--muted); }
.pc-list { min-height: 40px; }
.pc-item {
  display: flex; align-items: center; gap: .4rem;
  padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .82rem;
}
.pc-item-weight { color: var(--accent); font-size: .7rem; flex-shrink: 0; white-space: nowrap; }
.pc-item-text   { flex: 1; min-width: 0; word-break: break-word; }
.pc-item-del    { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0 .2rem; font-size: 1rem; line-height: 1; touch-action: manipulation; }
.pc-item-del:hover { color: var(--warn); }
.pc-add-row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.pc-item-input {
  flex: 1; min-width: 80px; border: 1px solid var(--line); border-radius: 7px;
  padding: .38rem .5rem; font-size: .82rem;
  background: var(--paper); color: var(--ink); font-family: inherit;
}
.pc-weight-btns { display: flex; gap: .25rem; }
.pc-w {
  background: none; border: 1px solid var(--line); border-radius: 5px;
  padding: .22rem .45rem; font-size: .75rem; cursor: pointer; color: var(--muted);
  touch-action: manipulation;
}
.pc-w.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.pc-add-btn { padding: .3rem .65rem; }
.pc-verdict {
  background: var(--bg-soft); border-radius: 8px;
  padding: .65rem .9rem; font-size: .88rem; margin-bottom: .5rem; text-align: center;
}
.pc-actions { text-align: right; }

/* — Lernkarten — */
.lk-deck-area { margin-bottom: .8rem; }
.lk-counter { font-size: .75rem; color: var(--muted); text-align: center; margin-bottom: .5rem; }
.lk-card-wrap {
  perspective: 900px; cursor: pointer;
  margin: 0 auto; max-width: 400px; height: 160px;
}
.lk-card { width: 100%; height: 100%; position: relative; }
.lk-card-inner {
  width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .45s ease;
  position: relative;
}
.lk-card-inner.flipped { transform: rotateY(180deg); }
.lk-face {
  position: absolute; inset: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-align: center; backface-visibility: hidden;
  font-size: .9rem; line-height: 1.5; box-sizing: border-box;
}
.lk-front {
  background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 600; border: 1.5px solid var(--accent);
}
.lk-back {
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line); transform: rotateY(180deg);
}
.lk-hint { text-align: center; margin-top: .4rem; }
.lk-nav { display: flex; justify-content: center; gap: .7rem; margin-bottom: .7rem; }
.lk-add-wrap { margin-top: .5rem; }
.lk-add-wrap summary { cursor: pointer; padding: .4rem 0; user-select: none; }
.lk-add-form { display: flex; flex-direction: column; gap: .5rem; padding: .6rem 0; }
.lk-add-form textarea {
  border: 1px solid var(--line); border-radius: 8px;
  padding: .45rem .65rem; font-size: .85rem; resize: vertical;
  background: var(--paper); color: var(--ink); font-family: inherit;
}
.lk-add-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Versteckte Titel für gesperrte Kapitel */
.chapter-card.locked .locked-title { color: var(--muted); font-style: italic; }

/* ── Kapitel-Auswahl (Abo-Choice) ── */
.choice-banner {
  background: var(--paper);
  border: 1.5px solid var(--accent);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  margin-bottom: 1.6rem;
}
.choice-round-header { margin-bottom: 1rem; }
.choice-week-badge {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  border-radius: 20px; padding: .18rem .65rem;
  margin-bottom: .5rem;
}
.choice-headline {
  margin: 0 0 .25rem; font-size: 1.15rem;
}
.choice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
@media (max-width: 560px) {
  .choice-cards { grid-template-columns: 1fr; }
}
.choice-card {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--bg-soft); border-radius: 10px;
  border: 1.5px solid var(--line);
  padding: .85rem .8rem;
  transition: border-color .15s, box-shadow .15s;
}
.choice-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.choice-card-num {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  letter-spacing: .05em;
}
.choice-card-title {
  font-size: .95rem; font-weight: 700; color: var(--ink);
  line-height: 1.3; flex: 1;
}
.choice-card-sub {
  font-size: .78rem; color: var(--ink-soft); line-height: 1.4;
}
.choice-pick-btn { margin-top: .4rem; }
.choice-sep { border: none; border-top: 1px solid var(--line); margin: 1.2rem 0; }

/* ── Dashboard / Mein Fortschritt ── */
.dash-wrap { padding-bottom: 3rem; }
.dash-wrap h1 { margin-bottom: 1.2rem; }

/* Hero */
.dash-hero {
  display: flex; gap: 1.4rem; align-items: center;
  background: var(--paper); border-radius: 14px;
  padding: 1.2rem 1.2rem; margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.dash-ring-wrap {
  position: relative; width: 90px; height: 90px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.dash-ring-svg {
  position: absolute; inset: 0; width: 90px; height: 90px;
  transform: rotate(-90deg);
}
.dash-ring-bg   { fill: none; stroke: var(--line); stroke-width: 7; }
.dash-ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}
.dash-ring-center {
  position: relative; z-index: 1; text-align: center; line-height: 1.1;
}
.dash-ring-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.dash-ring-center small { font-size: .65rem; color: var(--muted); }

.dash-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; flex: 1;
}
@media (min-width: 480px) {
  .dash-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.dash-stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg-soft); border-radius: 10px; padding: .6rem .4rem;
}
.dash-stat-val {
  font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1.1;
}
.dash-stat-val.dash-val-good { color: var(--good); }
.dash-stat-val.dash-val-warn { color: var(--warn); }
.dash-stat-lbl { font-size: .68rem; color: var(--muted); margin-top: .15rem; }

/* Leerzustand */
.dash-empty { text-align: center; padding: 2rem 1rem; }

/* Cards */
.dash-card {
  background: var(--paper); border-radius: 14px;
  padding: 1rem 1.1rem; margin-bottom: 1.1rem;
}
.dash-card-title { margin: 0 0 .9rem; font-size: 1rem; }

/* Bewertungsverteilung */
.dash-rating-chart { display: flex; flex-direction: column; gap: .3rem; }
.dash-rating-row   { display: flex; align-items: center; gap: .5rem; }
.dash-rating-lbl   { font-size: .78rem; color: var(--muted); width: 14px; text-align: right; flex-shrink: 0; }
.dash-rating-track {
  flex: 1; height: 14px; background: var(--bg-soft);
  border-radius: 7px; overflow: hidden;
}
.dash-rating-bar {
  height: 100%; background: var(--accent); border-radius: 7px;
  min-width: 4px; transition: width .5s ease;
}
.dash-rating-bar.bar-high { background: var(--good); }
.dash-rating-bar.bar-low  { background: var(--warn); }
.dash-rating-count { font-size: .72rem; color: var(--muted); width: 16px; flex-shrink: 0; }

/* Top-Kapitel */
.dash-top-list { display: flex; flex-direction: column; gap: 0; }
.dash-top-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: background .12s;
}
.dash-top-item:last-child { border-bottom: none; }
.dash-top-item:hover { background: var(--bg-soft); margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; border-radius: 6px; }
.dash-top-num {
  font-size: .7rem; font-weight: 700; color: var(--muted);
  letter-spacing: .05em; flex-shrink: 0; width: 24px;
}
.dash-top-title {
  flex: 1; font-size: .88rem; font-weight: 500; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-top-rating {
  display: flex; align-items: center; gap: .35rem; flex-shrink: 0;
}
.dash-dot-row { display: flex; gap: 2px; }
.dash-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); flex-shrink: 0;
}
.dash-dot.filled { background: var(--accent); }
.dash-top-rating b { font-size: .78rem; color: var(--accent-deep); min-width: 24px; text-align: right; }

/* Tool-Kacheln */
.dash-tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .7rem;
}
.dash-tool-tile {
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--bg-soft); border-radius: 10px; padding: .75rem .8rem;
}
.dash-tool-icon { font-size: 1.4rem; }
.dash-tool-val  { font-size: .88rem; font-weight: 700; color: var(--ink); }
.dash-tool-sub  { font-size: .72rem; color: var(--muted); line-height: 1.4; }

/* Alle Einträge */
.dash-entries { display: flex; flex-direction: column; gap: 0; }
.dash-entry {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
  transition: background .12s;
}
.dash-entry:last-child { border-bottom: none; }
.dash-entry:hover { background: var(--bg-soft); margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; border-radius: 6px; }
.dash-entry-head {
  display: flex; align-items: center; gap: .5rem;
}
.dash-entry-num {
  font-size: .68rem; font-weight: 700; color: var(--muted);
  letter-spacing: .05em; flex-shrink: 0; width: 24px;
}
.dash-entry-title {
  flex: 1; font-size: .88rem; font-weight: 500;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-entry-meta { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.dash-badge-done { color: var(--good); font-size: .8rem; font-weight: 700; }
.dash-entry-rating { font-size: .72rem; color: var(--accent-deep); font-weight: 600; }
.dash-entry-note {
  font-size: .78rem; color: var(--ink-soft); line-height: 1.4;
  padding-left: 28px;
}
.dash-entry-date {
  font-size: .68rem; color: var(--muted); padding-left: 28px;
}

/* ── Kündigung ── */
.cancel-reasons { display: flex; flex-direction: column; gap: .55rem; margin: .8rem 0 0; }
.cancel-reason-label {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 9px;
  cursor: pointer; transition: border-color .15s, background .15s;
  font-size: .9rem;
}
.cancel-reason-label:hover { border-color: var(--accent); background: var(--accent-soft); }
.cancel-reason-label input[type=radio] { accent-color: var(--accent); flex-shrink: 0; }
.cancel-reason-label:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
}
.cancel-comment-wrap textarea {
  width: 100%; box-sizing: border-box; margin-top: .35rem;
  border: 1px solid var(--line); border-radius: 8px;
  padding: .55rem .7rem; font-size: .88rem; resize: vertical;
  background: var(--paper); color: var(--ink); font-family: inherit;
}
.cancel-retention {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: .9rem 1rem;
  margin-bottom: 1rem;
}
.cancel-ret-title { display: block; font-size: .9rem; margin-bottom: .35rem; }
.cancel-ret-body  { font-size: .84rem; color: var(--ink-soft); margin: 0 0 .6rem; }
.cancel-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.btn-danger {
  background: var(--warn); color: #fff; border-color: var(--warn);
}
.btn-danger:hover:not(:disabled) { opacity: .88; }
.btn-danger:disabled { opacity: .4; cursor: default; }

/* ── Referral ── */
.ref-link-wrap {
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
}
.ref-link-input {
  flex: 1 1 200px; min-width: 0;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r); padding: .45rem .6rem;
  font-size: .8rem; color: var(--ink-soft);
  cursor: text; word-break: break-all;
}
.ref-copy-btn { flex-shrink: 0; }
