:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --line: #2a2a2e;
  --text: #f3f1ec;
  --muted: #9a978f;
  --gold: #d4af61;
  --gold-soft: rgba(212, 175, 97, 0.12);
  --gold-line: rgba(212, 175, 97, 0.35);
  --green: #6fbf8b;
  --orange: #e0a050;
  --red: #e07070;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
button, input, textarea { font: inherit; color: inherit; }

.loading { padding: 48px 16px; text-align: center; color: var(--muted); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px 64px; }

/* Kopfzeile */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: var(--gold); font-family: "Playfair Display", serif; font-size: 15px;
}
.brand small { color: var(--gold); font-weight: 500; margin-left: 2px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right a:has(.avatar) { text-decoration: none; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--surface-2); display: grid; place-items: center; font-weight: 600; color: var(--gold); font-size: 13px;
}
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; font-size: 14px; text-decoration: none; }
.link-btn:hover { color: var(--text); }

/* Allgemein */
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-family: "Playfair Display", serif; font-size: 30px; font-weight: 600; }
h2 { font-size: 19px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); font-weight: 600; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.stack > * + * { margin-top: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: #17130a; border: 0; border-radius: 10px;
  padding: 11px 18px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.55; cursor: default; filter: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-discord { background: #5865f2; color: #fff; }

textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; resize: vertical; min-height: 44px;
}
textarea { min-height: 110px; }
textarea:focus, input:focus { outline: none; border-color: var(--gold-line); }
label.field { display: block; }
label.field > span { display: block; font-weight: 500; margin-bottom: 8px; }

.error { color: var(--red); font-size: 14px; }

/* Login */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; text-align: center;
  background: radial-gradient(ellipse at top, rgba(212, 175, 97, 0.10), transparent 60%);
}
.login-box { max-width: 420px; }
.login-box h1 { font-size: 36px; margin: 18px 0 12px; }
.login-box p { color: var(--muted); margin: 0 0 28px; }
.login .brand-mark { width: 52px; height: 52px; font-size: 24px; margin: 0 auto; border-radius: 14px; }
.dev-logins { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.login-tabs button { background: none; border: 0; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 500; }
.login-tabs button.on { background: var(--gold-soft); color: var(--gold); }
.hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; text-align: left; }
.code-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px; background: var(--surface-2); border-radius: 12px; }
.code-form { display: flex; gap: 8px; width: 100%; flex-wrap: wrap; }
.code-form input { flex: 1; min-width: 200px; text-transform: uppercase; }
.code-form .error { width: 100%; }
.code-row code { display: block; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; color: var(--text); margin: 2px 0; }

/* Rechtliches */
.legal-links { text-align: center; font-size: 13px; color: var(--muted); margin: 28px 0 0; }
.legal-links a { color: var(--muted); }
.consent { font-size: 13px; color: var(--muted); text-align: left; line-height: 1.5; }
.consent a { color: var(--gold); }
.legal { max-width: 760px; padding-top: 24px; }
.legal h1 { margin: 16px 0 6px; }
.legal h2 { margin: 28px 0 8px; font-size: 17px; }
.legal p, .legal li { color: #d8d5ce; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }

/* Auswahl-Knöpfe */
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; text-align: left;
}
.choice input { accent-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }

/* Kunden: Kopfbereich mit Score */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 28px 0 8px; }
.hero p { margin: 8px 0 0; color: var(--muted); max-width: 46ch; }
.score { position: relative; width: 116px; height: 116px; }
.score svg { transform: rotate(-90deg); }
.score-value { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score-value strong { display: block; font-size: 28px; font-weight: 700; line-height: 1; }
.score-value span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 28px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat strong { display: block; font-size: 22px; }
.stat span { font-size: 13px; color: var(--muted); }

/* Wochen-Leiste */
.journey { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
.journey::-webkit-scrollbar { display: none; }
.step {
  flex: 0 0 auto; min-width: 104px; padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
}
.step small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.step b { display: block; font-size: 13px; font-weight: 600; margin-top: 2px; white-space: nowrap; }
.step.active { border-color: var(--gold); background: var(--gold-soft); }
.step.done small { color: var(--green); }
.step.locked { opacity: 0.5; }

/* Aufgaben */
.task { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; padding-top: 4px; }
.task-check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line);
  background: transparent; cursor: pointer; display: grid; place-items: center; color: transparent; margin-top: 1px;
}
.task-check.on { background: var(--gold); border-color: var(--gold); color: #17130a; }
.task-check:disabled { cursor: default; }
.task-body { flex: 1; min-width: 0; }
.task-body p { margin: 4px 0 0; color: var(--muted); }
.points { font-size: 12px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.task-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.task-form { margin-top: 12px; }
.task-form .row { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

.answer { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); white-space: pre-wrap; }
.coach {
  margin-top: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--gold-line); background: var(--gold-soft);
}
.coach-label { font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.coach p { margin: 0 0 8px; }
.coach p:last-child { margin-bottom: 0; }

/* Check-in */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mood {
  padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; font-size: 13px; text-align: center;
}
.mood b { display: block; font-size: 18px; }
.mood.on { border-color: var(--gold); background: var(--gold-soft); }
.toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.toggle input { accent-color: var(--gold); margin-top: 4px; }

.locked-card { text-align: center; padding: 36px 20px; }

/* Team */
.team-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px;
}
.chip.on { border-color: var(--gold); color: var(--gold); }
.customer {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; text-decoration: none; color: inherit;
}
.customer + .customer { margin-top: 8px; }
.customer:hover { border-color: var(--gold-line); }
.customer .reasons { font-size: 13px; color: var(--muted); margin-top: 2px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 8px; max-width: 260px; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill.feedback { background: rgba(224, 112, 112, 0.14); color: var(--red); }
.pill.behind { background: rgba(224, 160, 80, 0.14); color: var(--orange); }
.pill.ok { background: rgba(111, 191, 139, 0.14); color: var(--green); }
.badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-grid div span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.reply { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--surface-2); border-radius: 0 10px 10px 0; }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }


/* Ziel, nächster Schritt, Livestream, Gruppenziel, Meilensteine */
.goal-pin {
  margin-top: 16px; padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--surface);
  border-radius: 0 10px 10px 0; max-width: 52ch;
}
.goal-pin span { display: block; font-size: 11px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.next-step { border-color: var(--gold-line); background: linear-gradient(135deg, rgba(212, 175, 97, 0.10), var(--surface) 60%); margin-top: 20px; }
.next-step h2 { font-size: 21px; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.question { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.question.done { opacity: 0.55; }
label.question { align-items: flex-start; }
.goal-bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); }
.goal-bar > i { display: block; height: 100%; border-radius: 99px; background: var(--gold); }
.goal-bar > b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: 0.6; }
.milestones { display: flex; flex-wrap: wrap; gap: 8px; }
.milestone { padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.milestone.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); font-weight: 600; }

/* Aufgaben: Zusatzinfos, Arbeitsblatt */
.section-label {
  margin: 22px 0 2px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em;
}
.section-label:first-of-type { margin-top: 4px; padding-top: 0; border-top: 0; }
.section-label + .task { border-top: 0; padding-top: 8px; }
.meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.meta a { text-decoration: none; }
.file-pick {
  display: block; padding: 16px; border: 1.5px dashed var(--line); border-radius: 10px; text-align: center;
  cursor: pointer; color: var(--muted); margin-top: 12px;
}
.file-pick:hover { border-color: var(--gold-line); }
.file-pick input { display: block; margin: 0 auto 6px; max-width: 100%; color: var(--text); }
.file-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; white-space: normal; }
.file-row a { text-decoration: none; word-break: break-all; }
.score-chip { font-weight: 700; color: #17130a; background: var(--gold); padding: 3px 10px; border-radius: 99px; font-size: 13px; white-space: nowrap; }
.learned { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); }
.learned ul { margin: 4px 0 0; padding-left: 18px; }
.learned li + li { margin-top: 4px; }
.task.highlight { animation: flash 1.6s ease-out; border-radius: 10px; }
@keyframes flash { 0% { background: var(--gold-soft); } 100% { background: transparent; } }

/* Kundenansicht: Layout, Level, laufender Rahmen, Spruch des Tages */
.wrap.customer-view { max-width: 1100px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.level { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.level-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, #f0d48a, #b8923f); color: #17130a; font-weight: 800; font-size: 20px;
}
.level-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.step-bar { display: block; height: 3px; margin-top: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.step-bar i { display: block; height: 100%; background: var(--gold); }
.countdown { font-size: 12px; font-weight: 700; color: #17130a; background: var(--gold); padding: 3px 9px; border-radius: 99px; }

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.focus-ring { position: relative; }
.focus-ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 55%, rgba(212, 175, 97, 0.4) 70%, var(--gold) 85%, #fff1c2 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 3.2s linear infinite;
}
@keyframes spin-border { to { --angle: 360deg; } }
.task.focus { padding: 16px 14px; margin: 6px -14px; border-radius: 12px; background: rgba(212, 175, 97, 0.06); border-top: 0; }
.task.focus + .task { border-top: 0; }

.quote {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: min(300px, calc(100vw - 32px));
  padding: 14px 36px 14px 16px; border-radius: 14px; background: rgba(28, 28, 31, 0.94); backdrop-filter: blur(8px);
  border: 1px solid var(--gold-line); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.quote.enter { animation: toast-in 0.6s 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.quote p { margin: 4px 0 0; font-family: "Playfair Display", serif; font-size: 16px; line-height: 1.4; }
.quote-close { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .quote { position: static; width: auto; margin-top: 12px; backdrop-filter: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .focus-ring::before { animation: none; background: var(--gold); }
  .quote.enter { animation: none; }
}

/* Asset-Trader-Club-Karte in „Ankommen“ */
.club { display: flex; gap: 24px; align-items: center; overflow: hidden; position: relative;
  background: radial-gradient(circle at 15% 50%, rgba(212, 175, 97, 0.14), transparent 55%), var(--surface); border-color: var(--gold-line); }
.club-emblem { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.club-emblem svg { width: 100%; height: 100%; }
.club-track { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.club-progress { fill: none; stroke: url(#club-gold); stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 70px 70px; }
.club-a { fill: none; stroke: url(#club-gold); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw-a 1.6s 0.2s ease-out forwards; }
@keyframes draw-a { to { stroke-dashoffset: 0; } }
.club-orbit { transform-origin: 70px 70px; animation: orbit 6s linear infinite; }
.club-orbit circle { fill: #fff1c2; filter: drop-shadow(0 0 4px #d4af61); }
@keyframes orbit { to { transform: rotate(360deg); } }
.club-lock { position: absolute; right: 4px; bottom: 4px; font-size: 22px; background: var(--surface-2); border: 1px solid var(--gold-line);
  border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; }
.club.complete .club-emblem { animation: glow 2.4s ease-in-out infinite; border-radius: 50%; }
.club.complete .club-lock { animation: pop 0.6s ease-out; }
@keyframes glow { 50% { filter: drop-shadow(0 0 18px rgba(212, 175, 97, 0.55)); } }
.club-text h2 { margin: 4px 0 6px; font-size: 21px; }
.club-text p { margin: 0; }
.club-points { margin-top: 12px; font-size: 14px; color: var(--muted); }
.club-points strong { font-size: 26px; color: var(--gold); margin-right: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .club { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .club-a { animation: none; stroke-dashoffset: 0; }
  .club-orbit, .club.complete .club-emblem { animation: none; }
}

/* Pop-ups unten links */
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  background: var(--surface-2); border: 1px solid var(--gold-line); border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); animation: toast-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.toast b { display: block; font-size: 15px; }
.toast span { display: block; font-size: 13px; color: var(--gold); margin-top: 2px; font-weight: 600; }
.toast.big { background: linear-gradient(135deg, #3a2f17, var(--surface-2)); border-color: var(--gold); padding: 16px 18px; }
.toast.big b { font-size: 17px; }
.toast.out { animation: toast-out 0.5s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(-24px); } }

/* Konfetti bei Meilensteinen */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: 0.9; } }

/* Score-Ring füllt sich sichtbar */
.ring { transition: stroke-dashoffset 1.1s cubic-bezier(0.3, 0.9, 0.3, 1); }
.task-check.just { animation: pop 0.35s ease-out; }
@keyframes pop { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .toast, .toast.out, .task-check.just { animation: none; }
  .ring { transition: none; }
}

/* Team-Navigation */
.team-nav { display: flex; gap: 4px; margin: -8px 0 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.team-nav a { padding: 12px 14px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.team-nav a:hover { color: var(--text); }
.team-nav a.on { color: var(--gold); border-bottom-color: var(--gold); }

/* Betreuung */
.care-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.care-row:first-of-type { border-top: 0; }
.care-name { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; min-width: 0; flex: 1; }
.care-name span, .care-row > span { display: flex; flex-direction: column; min-width: 0; }
.care-name small, .care-row small { color: var(--muted); font-size: 13px; }
.care-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.care-actions .btn { padding: 8px 12px; font-size: 13px; }
.count-chip { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.overdue { color: var(--red); }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; animation: toast-in 0.3s ease-out; }
.walk-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.walk-btn { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.walk-btn:hover, .walk-btn.on { border-color: var(--gold); background: var(--gold-soft); }
.walk-btn small { color: var(--muted); font-size: 12px; }
kbd { font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.template { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.template p { margin: 4px 0 8px; font-size: 14px; }
@media (max-width: 640px) { .walk-buttons { grid-template-columns: 1fr; } }

.pipeline { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.lane-head { display: flex; justify-content: space-between; align-items: center; }
.lane-card { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.lane-card a { color: inherit; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lane-card em { font-size: 11px; font-style: normal; }
.lane-card .icon-btn { width: 26px; height: 26px; flex-shrink: 0; }

/* Analyse */
.section-title { margin: 28px 0 0; }
.stat.kpi strong small { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat.kpi .bar { max-width: none; }
.stat.kpi em { display: block; font-size: 12px; margin-top: 6px; font-style: normal; }
.hbar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { position: relative; height: 10px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hbar-track > i { position: absolute; inset: 0 auto 0 0; background: var(--gold); border-radius: 0 4px 4px 0; }
.hbar-track > i.soft { background: rgba(212, 175, 97, 0.32); }
.hbar:hover .hbar-track > i:not(.soft) { filter: brightness(1.15); }
.hbar-value { min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.solid { background: var(--gold); }
.sw.soft { background: rgba(212, 175, 97, 0.32); }

/* Coach-Wissen */
textarea.knowledge { min-height: 60vh; font-size: 14px; line-height: 1.6; }

/* Programm-Planer */
.wrap.wide { max-width: 1240px; }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 24px; }
.week-card { text-decoration: none; color: inherit; display: block; }
.week-card:hover { border-color: var(--gold-line); }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; margin-top: 16px; align-items: start; }
.preview-col { position: sticky; top: 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
.preview { pointer-events: none; }
.task-editor { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1.4fr; }
select, input[type="date"] {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); color-scheme: dark;
}
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn.danger:hover, .danger-text { color: var(--red); }
.save-bar {
  position: sticky; bottom: 12px; margin-top: 24px; display: flex; justify-content: flex-end; align-items: center; gap: 14px;
  padding: 12px 16px; background: rgba(20, 20, 22, 0.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px;
}

@media (max-width: 960px) {
  .editor-layout { grid-template-columns: 1fr; }
  .preview-col { position: static; max-height: none; }
}

@media (max-width: 640px) {
  .hbar { grid-template-columns: 1fr auto; }
  .hbar-track { grid-column: 1 / -1; grid-row: 2; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .brand { gap: 8px; }
  .topbar-right { gap: 4px; }
  .topbar .link-btn { font-size: 13px; padding: 6px 4px; }
  h1 { font-size: 25px; }
  .hero { grid-template-columns: 1fr; }
  .score { margin: 0 auto; }
  .team-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .customer { grid-template-columns: auto 1fr; }
  .customer .pill { grid-column: 2; justify-self: start; }
  .mood span { display: none; }
  .stat strong { font-size: 19px; }
}

.login-form { text-align: left; }
.login-form .btn { width: 100%; }

.customer .reasons.gold { color: var(--gold); }
