@import url("/fonts.css");
:root {
  /* Warme, ruhige Farben (Entwurf 16.10.2026, wird an Doms Homepage und Bücher angepasst) */
  --bg: #fbf5ec; --card: #ffffff; --text: #2b2420; --muted: #6b5f57;
  --accent: #e0602a; --accent-text: #ffffff; --line: #ece0d6; --me: #fde6d6;
  --soft: #fdeee4; --calm: #3a2d8c; --calm-soft: #eeebf8; --violet: #7a2a76; --danger: #a8321f; --danger-bg: #fbeeea;
  --sky: linear-gradient(135deg, #fcd2b4 0%, #f7c1c4 35%, #dcc6e6 70%, #c9caf0 100%);
  --shadow: 0 6px 22px rgba(120, 70, 30, .10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1916; --card: #27211d; --text: #f1e9e1; --muted: #bfb1a6;
    --accent: #f08a55; --accent-text: #22140c; --line: #3a312a; --me: #3a2a20;
    --soft: #33261e; --calm: #b3a8f0; --calm-soft: #26223a; --violet: #e0a0dc; --danger: #ff9b85; --danger-bg: #2e1c18;
    --sky: linear-gradient(135deg, #5a3426 0%, #552c45 40%, #3f2c5c 75%, #22285a 100%);
    --shadow: 0 6px 22px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #1d1916; --card: #27211d; --text: #f1e9e1; --muted: #bfb1a6;
  --accent: #f08a55; --accent-text: #22140c; --line: #3a312a; --me: #3a2a20;
  --soft: #33261e; --calm: #b3a8f0; --calm-soft: #26223a; --violet: #e0a0dc; --danger: #ff9b85; --danger-bg: #2e1c18;
  --sky: linear-gradient(135deg, #5a3426 0%, #552c45 40%, #3f2c5c 75%, #22285a 100%);
  --shadow: 0 6px 22px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 "Urbanist", "Century Gothic", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
body { font-weight: 480; }
/* Sanfter Farbverlauf oben, wie ein Sonnenaufgang */
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 260px; background: var(--sky); opacity: .55; z-index: -1;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
h1, h2, .q h2 { color: var(--text); }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; min-height: 100dvh; display: flex; flex-direction: column; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0 16px; flex-wrap: wrap; }
header.top nav { display: flex; gap: 8px; flex-wrap: wrap; }
header.top nav button, header.top nav a.btn { font-size: 14px; padding: 6px 10px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: .2px; color: var(--text); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { flex: none; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #f58a4a 0%, #e8564a 30%, #8a2f86 68%, #2c2394 100%);
  color: #fff; font-weight: 700; font-size: 22px; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(160, 80, 40, .25); text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.kiline { margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--calm-soft); color: var(--calm); font-size: 15px; font-weight: 500; }
.brand small { display: block; font-weight: 500; font-size: 13px; color: var(--calm); letter-spacing: .3px; }
button, a.btn { font: inherit; cursor: pointer; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 10px 16px; text-decoration: none; display: inline-block; text-align: center; }
button.primary, a.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
button:disabled { opacity: .45; cursor: default; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.muted, .explain { color: var(--muted); font-size: 14px; }
.explain { margin: 6px 0 14px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 4px; }
input[type=email], input[type=text], textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin-top: 8px; }
.hidden { display: none !important; }

/* Hilfe-Zeile, immer sichtbar */
.helpline { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); padding: 8px 0; text-align: center; }
.helpline a { font-weight: 600; text-decoration: none; }

/* Fragebogen */
.progress { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.q h2 { margin: 0 0 4px; font-size: 21px; line-height: 1.3; }
.opts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.opts.grid { flex-direction: row; flex-wrap: wrap; }
.opts button { text-align: left; padding: 12px 14px; border-radius: 12px; position: relative; }
.opts.grid button { min-width: 56px; text-align: center; }
.opts button[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opts button .nr { display: inline-block; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; background: var(--accent); color: var(--accent-text); font-size: 12px; text-align: center; margin-right: 8px; }
.qnav { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; }

/* Chat */
#log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 8px 0 16px; }
.msg { padding: 12px 16px; border-radius: 14px; max-width: 92%; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--me); }
.msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.msg p { margin: 0 0 .6em; } .msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: .2em 0 .6em; padding-left: 1.3em; }
.msg h3, .msg h4 { margin: .6em 0 .3em; font-size: 1em; }
.msg blockquote { margin: .4em 0; padding-left: .8em; border-left: 3px solid var(--line); }
form.compose { display: flex; gap: 8px; position: sticky; bottom: 34px; background: var(--bg); padding: 8px 0 4px; }
form.compose textarea { resize: none; height: 52px; }
footer.foot { font-size: 12px; color: var(--muted); text-align: center; padding: 10px 0; }

/* Hinweis unter jeder Übung */
.read h2 { color: var(--violet); }
.ex-note { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; line-height: 1.45; color: var(--muted); }

/* Lese-Seiten */
.read { max-width: 640px; margin: 0 auto; }
.read h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 6px; }
.read .lead { color: var(--muted); margin: 0 0 24px; }
.flow p { font-size: 20px; line-height: 1.7; margin: 0 0 22px; }
.flow p.pause { margin-top: 36px; }
.steps { padding-left: 1.4em; }
.steps li { margin: 0 0 12px; font-size: 18px; line-height: 1.6; }
section.block { margin: 28px 0; }
section.block h2 { font-size: 22px; margin: 0 0 6px; }
.tags { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.callgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 6px; }
a.call { display: block; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; }
a.call strong { display: block; font-size: 22px; color: var(--accent); }
a.call span { font-size: 13px; color: var(--muted); }
a.call.urgent strong { color: var(--danger); }
a.call span.icon { display: block; font-size: 24px; line-height: 1; margin-bottom: 4px; }
.alert { background: var(--danger-bg); border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-weight: 600; }
.country { font-size: 14px; color: var(--muted); margin: 16px 0 0; font-weight: 600; }
.tiers { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 14px 0; }
.tier { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.tier h3 { margin: 0; font-size: 18px; }
.tier .price { font-weight: 600; }
.tier .price:empty { display: none; }
.tier p { margin: 0; font-size: 14px; color: var(--muted); }
.tier a.btn { margin-top: auto; }
.cta { text-align: center; margin: 28px 0; }
.cta a.btn.primary { font-size: 18px; padding: 14px 22px; }
.small { font-size: 14px; }

/* Jetzt üben, Erinnerung, Rückmeldung */
.practice { position: relative; margin: 4px 0 12px; }
.practice h3 { margin: 0 0 4px; font-size: 19px; color: var(--violet); }
.practice h4 { margin: 14px 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.pchips button { padding: 8px 12px; border-radius: 999px; font-size: 15px; line-height: 1.25; }
.pchips button small { display: block; font-size: 11px; color: var(--muted); }
.pchips button[aria-pressed="true"] { background: var(--soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pgo { margin-top: 16px; width: 100%; font-size: 17px; }
.pclose { position: absolute; top: 12px; right: 12px; padding: 2px 10px; border-radius: 999px; }
.remind { margin-top: 14px; font-size: 15px; }
.remind summary { cursor: pointer; color: var(--calm); font-weight: 600; }
.rrow { display: flex; gap: 8px; align-items: center; }
.rrow input[type=time] { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.fb { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.fbq { color: var(--muted); }
.fb textarea { margin-top: 8px; height: 64px; resize: vertical; }
.fb .consent { margin: 10px 0; }
.fbthanks { color: var(--calm); font-weight: 600; }
.rueck:empty { display: none; }
.rueck { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; margin: 4px 0 12px; box-shadow: var(--shadow); font-size: 14px; }
.rtop { display: flex; justify-content: space-between; align-items: baseline; color: var(--violet); }
.rtop span { color: var(--accent); font-weight: 700; }
.rnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; text-align: center; color: var(--muted); }
.rnums b { display: block; font-size: 22px; color: var(--text); }
.rweg { color: var(--calm); font-weight: 600; }
.rbar { height: 8px; border-radius: 99px; background: var(--calm-soft); margin: 6px 0 4px; overflow: hidden; }
.rbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f58a4a, #8a2f86); }
button.linkish { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; font-size: 14px; font-weight: 500; }
.rwhy p { margin: 8px 0; color: var(--text); font-weight: 450; }
.rstat { margin: 10px 0 0; font-size: 12px; }
