/* ==========================================================================
   Kompass v2: Dashboard, Spracheingabe, Listen, Hörbuch, Klartext, Mentor
   ========================================================================== */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, video { max-width: 100%; }

/* Dashboard */
.dash-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.kpis { display: flex; gap: 8px; flex-wrap: wrap; }
.kpi-chip { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi-chip svg { width: 18px; height: 18px; color: var(--dawn); }
.kpi-chip.c svg { color: var(--cyan); }
.kpi-chip b { font-size: 18px; letter-spacing: -0.02em; }
.kpi-chip span { font-size: 12px; color: var(--muted); font-weight: 600; }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-hero { min-height: 340px; }
.dash-day { display: flex; align-items: center; gap: 22px; padding: 24px; border-color: var(--line-2);
  background: radial-gradient(500px 200px at 0% 0%, rgba(56, 217, 230, 0.12), transparent 70%), linear-gradient(135deg, rgba(79, 124, 255, 0.14), rgba(165, 92, 255, 0.06)); }
.dash-day .btn { pointer-events: none; }
.dots5 { display: flex; gap: 6px; margin-top: 20px; }
.dots5 i { width: 28px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.18); }
.dots5 i.on { background: linear-gradient(90deg, var(--cyan), var(--primary)); }
.nudge { background: linear-gradient(135deg, rgba(255, 154, 92, 0.12), rgba(255, 154, 92, 0.02)); border-color: rgba(255, 154, 92, 0.28); }
.coach-mini { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-solid); }
.coach-mini:focus-within { border-color: rgba(91, 124, 255, 0.55); box-shadow: 0 0 0 4px rgba(91, 124, 255, 0.12); }
.coach-mini input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; color: var(--text); height: 38px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color 160ms ease; }
.list-row b { display: block; font-size: 14px; }
.list-row .bar { display: block; height: 4px; }
@media (hover: hover) { .list-row:hover { border-color: var(--line-2); } }
.mentor-t { display: flex; gap: 16px; align-items: center; }
.mentor-t img { width: 76px; height: 92px; border-radius: 16px; object-fit: cover; object-position: center 25%; flex: none; border: 1px solid var(--line-2); }

/* Spracheingabe an Feldern */
.voice-wrap { position: relative; display: block; width: 100%; }
.voice-wrap > .input { padding-right: 50px; }
.voice-wrap.ta > .textarea { padding-right: 52px; }
.addrow .voice-wrap { flex: 1; min-width: 0; }
.voice-btn { position: absolute; right: 7px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2); transition: background-color 160ms ease, color 160ms ease, scale 160ms var(--ease-out); }
.voice-wrap.ta > .voice-btn { top: auto; bottom: 8px; translate: none; }
.voice-btn svg { width: 18px; height: 18px; }
.voice-btn:active { scale: 0.92; }
.voice-btn.on, .big-mic.on { background: #ff4d6a; color: #fff; animation: micPulse 1.4s ease-out infinite; }
.voice-btn.static { position: static; translate: none; flex: none; }

/* Listen */
.composer-card { background: linear-gradient(180deg, rgba(91, 124, 255, 0.1), rgba(91, 124, 255, 0.02)); border-color: var(--line-2); }
.big-input { position: relative; display: flex; gap: 12px; align-items: stretch; }
.big-input textarea { flex: 1; min-width: 0; min-height: 110px; resize: vertical; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface-solid); padding: 16px 18px; font-size: 17px; line-height: 1.5; color: var(--text); outline: none; }
.big-input textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 124, 255, 0.16); }
.big-mic { width: 104px; flex: none; border-radius: 18px; border: 0; cursor: pointer; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; box-shadow: var(--glow); transition: transform 160ms var(--ease-out); }
.big-mic svg { width: 30px; height: 30px; }
.big-mic:active { transform: scale(0.96); }
.chip.sm { padding: 6px 12px; font-size: 13px; }
.list-peek { display: flex; flex-direction: column; gap: 4px; }
.list-peek span { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-peek span::before { content: '\2022\00a0'; color: var(--faint); }
.list-peek span.done { text-decoration: line-through; color: var(--faint); }
.list-detail { max-width: 760px; }
.title-input { width: 100%; border: 0; background: none; outline: none; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); padding: 4px 0; border-bottom: 1px dashed transparent; }
.title-input:focus { border-bottom-color: var(--line-2); }
.check.edit { align-items: center; cursor: default; padding: 8px 10px 8px 14px; }
.check.edit .box { cursor: pointer; margin: 0; }
.txt-in { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--text); padding: 6px 4px; border-radius: 8px; }
.txt-in:focus { background: var(--surface-2); }
.check.edit.on .txt-in { color: var(--muted); text-decoration: line-through; }

/* Hörbuch */
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.8); }

/* Klartext & Geschichte */
.hard { margin: 1.6em 0; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 77, 106, 0.14), rgba(255, 77, 106, 0.03)); border: 1px solid rgba(255, 77, 106, 0.35); color: var(--text); font-size: 17px; line-height: 1.6; font-weight: 600; }
.hard b { color: #ff7a8e; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px; margin-right: 6px; }
.story { margin: 1.6em 0; display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); }
.story img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex: none; border: 2px solid rgba(255, 154, 92, 0.5); }
.story figcaption b { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dawn); margin-bottom: 6px; }
.story figcaption span { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--text); }

/* Mentor */
.mentor-hero { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; padding: 26px; border-radius: 26px; border: 1px solid var(--line-2);
  background: radial-gradient(600px 300px at 0% 0%, rgba(255, 154, 92, 0.12), transparent 70%), var(--surface); }
.mh-photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 70px -30px rgba(91, 124, 255, 0.7); }
.mh-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; }
.path::before { content: ''; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: linear-gradient(90deg, var(--faint), var(--primary), var(--dawn)); opacity: 0.6; }
.path-step { position: relative; padding-top: 26px; }
.path-dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); }
.path-step:last-child .path-dot { border-color: var(--dawn); box-shadow: 0 0 16px var(--dawn); }

/* Mobile-Feinschliff */
@media (max-width: 1080px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .path::before { display: none; }
}
@media (max-width: 860px) {
  input, textarea, select { font-size: 16px !important; }
  .dash-head { gap: 12px; margin-bottom: 18px; }
  .kpi-chip { padding: 8px 11px; }
  .dash-hero { min-height: 0; }
  .dash-hero .hero-in { padding: 22px 20px; }
  .dash-day { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .mentor-hero { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .mh-photo { aspect-ratio: 1 / 1; max-width: 260px; }
  .path { grid-template-columns: 1fr 1fr; }
  .big-input { flex-direction: column; }
  .big-mic { width: 100%; height: 52px; flex-direction: row; font-size: 15px; }
  .big-mic svg { width: 22px; height: 22px; }
  .story figcaption span { font-size: 18px; }
  .hard { font-size: 16px; padding: 16px 18px; }
  .full { display: block; min-height: 100dvh; }
  .full-form { padding: 20px 18px 40px; display: block; }
  .full-form > div { margin: 0 auto; }
  .hero-in { max-width: 100%; }
  .h1 { overflow-wrap: break-word; hyphens: auto; }
}
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.seg button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 12.5px; height: 28px; padding: 0 10px; border-radius: 8px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.seg button.on { background: var(--grad); color: #fff; }
@media (max-width: 520px) { .seg button { padding: 0 8px; } }
