:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d8dde6;
  --surface: #f7f8fb;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warn: #a16207;
  --danger: #b91c1c;
  --good: #166534;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
  --bottom-nav-height: 0px;
}

body.dark {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #aeb8c7;
  --line: #334155;
  --surface: #0b1120;
  --panel: #111827;
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --warn: #f59e0b;
  --danger: #f87171;
  --good: #4ade80;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  background: #111827;
  color: #f9fafb;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.brand span {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.35;
  display: block;
}

.brand-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: #d1d5db;
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  background: #1f2937;
  color: #ffffff;
  border-color: #374151;
}

/* Nav icon/label visibility — desktop: full text only */
.nav-icon {
  display: none;
}

.nav-label-short {
  display: none;
}

.privacy-note {
  margin-top: auto;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  /* ist jetzt ein <button> (öffnet Datenschutz-Overlay) */
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 6px;
  transition: background 0.15s;
}

.privacy-note:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  margin-top: 5px;
  flex: 0 0 auto;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 112px;
  padding: 26px 36px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

body.dark .topbar {
  background: rgba(15, 23, 42, 0.88);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  margin-bottom: 0;
  line-height: 1.1;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.2;
}

h3 {
  font-size: 1rem;
}

.content {
  width: min(1120px, 100%);
  padding: 32px 36px 56px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.3rem;
  cursor: pointer;
}

body.dark .icon-button,
body.dark select,
body.dark textarea,
body.dark input[type="text"],
body.dark .chip-grid label,
body.dark .segmented label,
body.dark .secondary-action,
body.dark .mic-button,
body.dark .icon-nav-button {
  background: #0f172a;
  color: var(--ink);
  border-color: var(--line);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.intro-panel,
.setup-panel,
.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-panel,
.setup-panel,
.panel {
  padding: 24px;
}

.intro-mark {
  width: min(240px, 100%);
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.intro-panel p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.disclaimer {
  margin-top: 24px;
  border-left: 4px solid var(--warn);
  padding: 12px 14px;
  background: #fffbeb;
  color: #713f12;
  border-radius: 6px;
  line-height: 1.45;
}

body.dark .disclaimer {
  background: #2b2109;
  color: #fde68a;
}

.field,
.field-group {
  display: grid;
  gap: 9px;
  margin: 0 0 20px;
  border: 0;
  padding: 0;
}

.field span,
legend {
  font-weight: 700;
}

select,
textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  min-height: 152px;
  resize: vertical;
  line-height: 1.5;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chip-grid label,
.segmented label {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
}

.chip-grid label:has(input:checked),
.segmented label:has(input:checked) {
  border-color: var(--accent);
  background: #ecfdf5;
}

body.dark .chip-grid label:has(input:checked),
body.dark .segmented label:has(input:checked) {
  background: #052e2b;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segmented.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-shell {
  display: grid;
  gap: 8px;
}

.mic-row {
  display: flex;
  justify-content: flex-end;
}

.mic-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.mic-button.listening {
  border-color: var(--danger);
  background: #fef2f2;
  color: var(--danger);
}

.mic-button svg {
  width: 18px;
  height: 18px;
}

.secondary-action:disabled,
.icon-nav-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.icon-nav-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
}

.microcopy {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.developer-share {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  display: grid;
  gap: 10px;
}

.developer-share textarea {
  min-height: 82px;
}

.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.primary-action,
.secondary-action,
.danger-action {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 750;
  cursor: pointer;
}

.primary-action {
  background: var(--accent);
  color: #fff;
}

.primary-action:hover {
  background: var(--accent-strong);
}

.primary-action.is-saved,
.primary-action.is-saved:hover {
  background: #16a34a;
  cursor: default;
}

.secondary-action {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.danger-action {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Free Chat ─────────────────────────────────────────── */
.chat-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 140px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px;
}

.chat-empty {
  align-self: center;
  margin-top: 48px;
}

.chat-empty-hint {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 48px 24px 16px;
  line-height: 1.5;
}

.chat-help-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
}

.chat-help-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 24px;
}

.chat-help-chip {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.chat-help-chip:hover {
  background: var(--accent);
  color: #fff;
}

.chat-bubble {
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
  background: var(--surface);
  color: var(--ink);
  align-self: flex-start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chat-bubble.thinking {
  padding: 14px 18px;
}

.dot-pulse {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.dot-pulse span {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input-row textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 120px;
}

.chat-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── Onboarding: Sidebar ausblenden ───────────────────── */
body.onboarding-mode .sidebar {
  display: none;
}

body.onboarding-mode .app-shell {
  grid-template-columns: 1fr;
}

/* ── Onboarding ────────────────────────────────────────── */
.onboarding-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 40px;
}

.onboarding-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
  width: min(520px, 100%);
}

.onboarding-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 20px;
}

.onboarding-checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.onboarding-headline {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.onboarding-sub {
  text-align: center;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.onboarding-props {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.onboarding-prop {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prop-icon {
  font-size: 1.4rem;
  flex: 0 0 auto;
  margin-top: 2px;
}

.onboarding-prop strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.onboarding-prop span {
  font-size: 0.85rem;
  color: var(--muted);
}

.onboarding-disclaimer {
  font-size: 0.84rem;
  color: var(--muted);
  border-left: 3px solid var(--warn);
  padding: 10px 12px;
  background: #fffbeb;
  border-radius: 0 6px 6px 0;
  line-height: 1.45;
  margin-bottom: 18px;
}

body.dark .onboarding-disclaimer {
  background: #2b2109;
  color: #fde68a;
}

.onboarding-accept {
  margin-bottom: 12px;
}

.onboarding-consent-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.consent-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 6px 0 0 26px;
}

.onboarding-cta {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
}

.onboarding-step-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 14px;
  margin-bottom: 0;
}

.onboarding-question-label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.tone-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 14px 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tone-card:hover {
  border-color: var(--accent);
}

.tone-card.selected {
  border-color: var(--accent);
  background: #ecfdf5;
}

body.dark .tone-card.selected {
  background: #052e2b;
}

.tone-icon {
  font-size: 1.5rem;
}

.tone-card strong {
  font-size: 0.9rem;
}

.tone-card span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 500px) {
  .onboarding-card {
    padding: 24px 18px;
  }
  .tone-cards {
    grid-template-columns: 1fr;
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.panel-stack {
  display: grid;
  gap: 16px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

body.dark .metric,
body.dark .empty-state,
body.dark .developer-share {
  background: #0f172a;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 1.35rem;
}

.progress {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

body.dark .progress {
  background: #1e293b;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.briefing {
  display: grid;
  gap: 14px;
}

.briefing-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.briefing-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.priority-list {
  padding-left: 20px;
  line-height: 1.55;
}

.empty-state {
  padding: 36px;
  border: 1px dashed #b8c1cf;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.feedback-grid {
  display: grid;
  gap: 10px;
}

.feedback-grid textarea {
  min-height: 92px;
}

/* ── Privacy Badge (Check-in) ───────────────────────────── */
.privacy-badge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  margin: 12px 0 0;
  line-height: 1.4;
}
.privacy-badge span { flex: 1; }
.privacy-badge-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.privacy-badge-close:hover { opacity: 1; }

/* ── Share Card ─────────────────────────────────────────── */
.share-card {
  display: grid;
  gap: 14px;
}

.share-card-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.share-icon {
  font-size: 1.8rem;
  flex: 0 0 auto;
  margin-top: 2px;
}

.share-btn {
  width: 100%;
}

/* ── Chat-Vollbild (Onboarding + Check-in) ──────────────── */
body.onboarding-mode .topbar,
body.checkin-mode .topbar {
  display: none;
}

body.onboarding-mode .main,
body.checkin-mode .main {
  height: 100vh;
  overflow: hidden;
}

body.onboarding-mode .content,
body.checkin-mode .content {
  height: 100%;
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* ── Check-in Fortschrittsbalken ────────────────────────── */
.checkin-progress-bar {
  height: 6px;
  background: var(--line);
  flex: 0 0 auto;
}

.checkin-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

/* ── Chat-Onboarding ────────────────────────────────────── */

.ob-chat-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.ob-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  flex: 0 0 auto;
}

.ob-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
}

.ob-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ob-header-info strong {
  font-size: 0.95rem;
}

.ob-header-info span {
  font-size: 0.78rem;
  color: var(--muted);
}

.ob-skip-all {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.ob-skip-all:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.ob-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* Spacer schiebt Nachrichten ans untere Ende — wie echte Chat-Apps.
   Wenn Nachrichten überlaufen, schrumpft der Spacer auf 0 und
   normales Scrollen greift. */
.ob-messages::before {
  content: '';
  flex: 1 1 auto;
  min-height: 0;
}

.ob-bubble {
  display: flex;
  gap: 10px;
  max-width: 85%;
}

/* Neue Minerva-Frage: sanft einblenden */
.ob-bubble-new {
  animation: bubbleIn 0.22s ease;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ob-minerva {
  align-self: flex-start;
}

.ob-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ob-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  margin-top: 4px;
  background: var(--accent);
}

.ob-text {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 15px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

.ob-user .ob-user-inner {
  background: var(--accent);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 11px 14px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ob-edit-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.55;
  padding: 0;
  line-height: 1;
  flex: 0 0 auto;
  margin-left: 6px;
}

.ob-edit-btn:hover {
  opacity: 1;
}

/* Überspringen — dezenter Ghost-Link im Check-in */
#skipAnswer {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 4px;
  cursor: pointer;
  opacity: 0.7;
}

#skipAnswer:hover {
  opacity: 1;
  color: var(--ink);
  background: transparent;
}

/* Welcome bubble — etwas breiter */
.ob-welcome {
  max-width: 95%;
}

.ob-welcome .ob-text {
  width: 100%;
}

.ob-greeting {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.ob-greeting-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0 14px;
}

.ob-props {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.ob-prop {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.4;
}

.ob-prop span:first-child {
  flex: 0 0 auto;
  font-size: 1rem;
}

.ob-usp-line {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--accent, #6366f1);
}

/* ── USP-Säulen (Datenschutz) — Optionen-Panel + Sidebar-Overlay ─ */
.security-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.security-pillars li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.security-pillars .sp-icon {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1.3;
}

.security-pillars li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.security-pillars li strong {
  font-size: 0.9rem;
}

.security-pillars li span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.security-panel {
  border-left: 3px solid var(--accent, #6366f1);
}

/* ── Allgemeines Feedback-Fenster (Optionen) ─────────────────── */
.feedback-window textarea,
.feedback-window select {
  width: 100%;
  box-sizing: border-box;
}

.feedback-window textarea {
  resize: vertical;
  min-height: 84px;
}

.feedback-thanks {
  padding: 4px 2px;
}

/* Check-in: Frame-Hinweis (Fragen an Minerva → Freies Gespräch) */
.checkin-frame-hint {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.07);
}

/* ── Intelligente Erinnerungen (Feature 12) ──────────────────── */
.reminder-card {
  border-left: 3px solid var(--accent, #6366f1);
}

.reminder-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.reminder-card-icon {
  font-size: 1.3rem;
  line-height: 1.2;
  flex: 0 0 auto;
}

.reminder-card-head p {
  margin: 2px 0 0;
}

.reminder-source {
  font-size: 0.86rem;
  font-style: italic;
  margin: 6px 0;
}

.reminder-checklist {
  margin: 8px 0;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.reminder-disclaimer {
  font-size: 0.78rem;
  border-left: 3px solid var(--warn);
  padding-left: 10px;
  margin: 8px 0 12px;
}

.reminder-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Bestätigungs-Chip im Chat */
.reminder-offer {
  align-self: center;
  max-width: 92%;
  margin: 8px auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, rgba(99, 102, 241, 0.06));
  font-size: 0.88rem;
  line-height: 1.45;
}

.reminder-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Verwaltungsliste in den Optionen */
.reminder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.reminder-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reminder-list-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reminder-list-actions {
  display: flex;
  gap: 6px;
}

.reminder-mini {
  font-size: 0.78rem;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.reminder-mini.danger {
  color: #dc2626;
  border-color: #dc2626;
}

/* ── Persistenter USP-Streifen (Verschlüsselung + Made in Germany) ── */
.usp-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.07);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
}

.usp-strip:hover {
  border-color: var(--accent, #6366f1);
}

.usp-strip-sep {
  opacity: 0.45;
}

/* ── "Was ist neu" — Version + Verlauf ───────────────────────── */
.whats-new-ver {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent, #6366f1);
  margin-left: 4px;
}

.whats-new-history {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.whats-new-history-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.whats-new-version {
  margin-top: 8px;
}

.whats-new-version-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.whats-new-list-old li {
  color: var(--muted);
  font-size: 0.82rem;
}

.ob-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  border-left: 3px solid var(--warn);
  padding: 7px 10px;
  background: #fffbeb;
  border-radius: 0 5px 5px 0;
  line-height: 1.4;
  margin-top: 2px;
}

body.dark .ob-disclaimer {
  background: #2b2109;
  color: #fde68a;
}

/* Input-Bereich (sticky unten) */
.ob-input-area {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 18px;
  flex: 0 0 auto;
}

/* Analytics-Karte */
.ob-analytics-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

body.dark .ob-analytics-card {
  background: linear-gradient(135deg, #052e2b 0%, #064e3b 100%);
  border-color: var(--accent);
}

.ob-analytics-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ob-analytics-icon {
  font-size: 1.6rem;
  flex: 0 0 auto;
  margin-top: 2px;
}

.ob-analytics-header strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ob-analytics-header p {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.ob-analytics-btns {
  display: flex;
  gap: 10px;
}

.ob-choice-btn {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.ob-choice-btn.chosen,
.ob-choice-btn:focus {
  border-color: var(--accent);
  background: #ecfdf5;
  outline: none;
}

body.dark .ob-choice-btn.chosen,
body.dark .ob-choice-btn:focus {
  background: #052e2b;
}

.ob-accept-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 14px;
  cursor: pointer;
}

.ob-cta {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
}

.ob-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Texteingabe (Onboarding + Check-in) */
.ob-text-input textarea,
.ob-input-area textarea#answerInput {
  width: 100%;
  min-height: 82px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  margin-bottom: 0;
}

.ob-send-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Chat-Eingabe: Pill + Feder-Button (WhatsApp-Style) ──────── */
.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-compose-input {
  flex: 1;
  min-height: 46px;
  max-height: 140px;
  resize: none;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 12px 16px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.chat-compose-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-send-btn {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.chat-send-btn:hover { background: var(--accent-strong); }
.chat-send-btn:active { transform: scale(0.92); }
.chat-send-btn:disabled { opacity: 0.5; cursor: default; }
.chat-send-btn svg { width: 21px; height: 21px; }

/* Karten-Auswahl */
.ob-cards-input {
  padding: 0;
}

.ob-option-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ob-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 8px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ob-option-card:hover {
  border-color: var(--accent);
}

.ob-option-card.selected {
  border-color: var(--accent);
  background: #ecfdf5;
}

body.dark .ob-option-card.selected {
  background: #052e2b;
}

.ob-option-card span:first-child {
  font-size: 1.4rem;
}

.ob-option-card strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.ob-option-card small {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Onboarding: Auswahl-Blasen ────────────────────────────── */
.ob-bubbles-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 8px;
}

.ob-choice-bubble {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  width: 100%;
}

.ob-choice-bubble:hover {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.ob-choice-bubble:active {
  transform: scale(0.97);
}

body.dark .ob-choice-bubble {
  background: #1f2937;
  border-color: #374151;
}

body.dark .ob-choice-bubble:hover {
  border-color: var(--accent);
  background: #374151;
}

/* Bereits explorierte Blase — bleibt sichtbar, wirkt "abgehakt" */
.ob-choice-bubble.ob-choice-seen {
  opacity: 0.55;
  border-style: dashed;
  border-color: var(--accent);
}

.ob-choice-bubble.ob-choice-seen .ob-bubble-emoji {
  color: var(--accent);
  font-size: 0.85rem;
}

.ob-choice-bubble.ob-choice-seen:hover {
  opacity: 0.85;
}

/* "Direkt loslegen" Ghost-Link unter den Blasen */
.ob-skip-bubbles {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 4px 4px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  display: block;
}

.ob-skip-bubbles:hover {
  color: var(--ink);
}

.ob-bubble-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Streak-Badge ───────────────────────────────────────────── */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ── Re-Engagement-Banner ───────────────────────────────────── */
.re-engage-banner {
  border-left: 3px solid var(--accent);
  background: var(--panel);
}

.re-engage-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.re-engage-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.re-engage-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Profil-Hinweis (nach erstem Check-in) ──────────────────── */
.profile-hint {
  border-left: 3px solid var(--accent);
}

.profile-hint-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-hint-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.profile-hint-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── "Was ist neu?" Banner ─────────────────────────────────────── */
.whats-new-banner {
  border-left: 3px solid #7c3aed;
  background: var(--panel);
}

.whats-new-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.whats-new-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.whats-new-list {
  margin: 6px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.whats-new-list li {
  margin-bottom: 2px;
}

/* ── "Hat Minerva geholfen?" Feedback-Karte ────────────────────── */
.feedback-card {
  border-left: 3px solid var(--accent);
  background: var(--panel);
}

.feedback-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.feedback-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

.feedback-textarea:focus {
  border-color: var(--accent);
}

.feedback-submit-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.feedback-privacy-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 8px 0 0;
}

/* ── Retention Anchor — "Morgen früh Frage" ──────────────────── */
.retention-anchor {
  border-left: 3px solid #f59e0b;
  background: var(--panel);
}

.retention-anchor-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.retention-anchor-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.retention-anchor-header strong {
  display: block;
  margin-bottom: 2px;
}

.retention-anchor blockquote {
  margin: 0;
  padding: 12px 16px;
  border-left: 2px solid #f59e0b;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  background: rgba(245, 158, 11, 0.06);
  border-radius: 0 6px 6px 0;
}

/* ── Feierabend-Screen — "Geschafft für heute" ───────────────── */
.feierabend {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px 32px;
  max-width: 440px;
  margin: 0 auto;
}

.feo {
  width: 200px;
  height: 160px;
}

.feo-owl { animation: feoBob 3.4s ease-in-out infinite; transform-origin: center; }
.feo-eye { animation: feoBlink 4.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.feo-pen { animation: feoPen 1.5s ease-in-out infinite; transform-origin: bottom right; transform-box: fill-box; }
.feo-l1 { animation: feoLine 2.4s ease-in-out infinite; transform-origin: left; transform-box: fill-box; }
.feo-l2 { animation: feoLine 2.4s ease-in-out .5s infinite; transform-origin: left; transform-box: fill-box; }
.feo-l3 { animation: feoLine 2.4s ease-in-out 1s infinite; transform-origin: left; transform-box: fill-box; }

@keyframes feoBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes feoBlink { 0%,92%,100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes feoPen { 0%,100% { transform: translate(0,0) rotate(-8deg); } 50% { transform: translate(6px,1px) rotate(-8deg); } }
@keyframes feoLine { 0%,15% { transform: scaleX(0); } 40%,100% { transform: scaleX(1); } }

.feierabend-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0F6E56;
}

.feierabend-dots { display: inline-flex; gap: 4px; }
.feierabend-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: #1D9E75;
  animation: feoDots 1.4s ease-in-out infinite;
}
.feierabend-dots span:nth-child(2) { animation-delay: .2s; }
.feierabend-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes feoDots { 0%,20% { opacity: .25; } 50% { opacity: 1; } 80%,100% { opacity: .25; } }

.feierabend h2 {
  font-size: 1.4rem;
  margin: 10px 0 12px;
}

.feierabend-lead {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 340px;
}

.feierabend-learn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  max-width: 360px;
}
.feierabend-learn .feierabend-learn-icon { font-size: 1.1rem; flex-shrink: 0; }
.feierabend-learn p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--muted); }

.feierabend-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}
.feierabend-actions .primary-action,
.feierabend-actions .secondary-action {
  width: 100%;
  justify-content: center;
}

/* ── Reife-Fortschritt (Kennenlern-Screen) ───────────────────── */
.readiness-progress {
  width: 100%;
  max-width: 340px;
  margin: 4px 0 18px;
}

.readiness-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.readiness-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.6s ease;
}

.readiness-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 0;
  text-align: center;
}

/* ── Konversations-Onboarding: Quick-Reply Chips ──────────────── */
.ob-conv-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ob-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}

.ob-quick-chip {
  background: var(--panel);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 9px 16px;
  border-radius: 22px;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  line-height: 1.2;
}

.ob-quick-chip:hover,
.ob-quick-chip.selected {
  background: var(--accent);
  color: #fff;
  transform: scale(1.03);
}

body.dark .ob-quick-chip {
  background: #1f2937;
  border-color: var(--accent);
  color: var(--accent);
}

body.dark .ob-quick-chip:hover,
body.dark .ob-quick-chip.selected {
  background: var(--accent);
  color: #fff;
}

/* Textarea im Conv-Step: kompakter als Journal */
textarea#obConvInput {
  min-height: 54px;
}

/* ── Tagebuch: Antwort-Chips (ersetzen <select>) ──────────────── */
.ob-answer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}

.ob-answer-chip {
  background: var(--panel);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  text-align: left;
  line-height: 1.3;
}

.ob-answer-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ob-answer-chip.selected,
.ob-answer-chip:active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(0.98);
}

body.dark .ob-answer-chip {
  background: #1f2937;
  border-color: #374151;
  color: var(--ink);
}

body.dark .ob-answer-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Start-Button */
.ob-start-row {
  padding: 4px 0;
}

.ob-start-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

@media (max-width: 500px) {
  .ob-option-cards {
    grid-template-columns: 1fr;
  }
  .ob-welcome {
    max-width: 100%;
  }
  .ob-bubble {
    max-width: 92%;
  }
}

@media (max-width: 860px) {
  :root {
    --bottom-nav-height: 60px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  /* Sidebar → fixed bottom nav bar */
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    z-index: 1000;
    flex-direction: row;
    padding: 0;
    gap: 0;
    border-top: 1px solid #374151;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.3);
  }

  /* Hide brand + privacy note in bottom nav */
  .brand,
  .privacy-note {
    display: none;
  }

  /* Nav fills full width */
  .nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0;
    overflow: visible;
    padding: 0;
  }

  /* Each nav item: column layout with icon + short label */
  .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    border-radius: 0;
    border: none;
    font-size: 0.68rem;
    white-space: normal;
    text-align: center;
  }

  .nav-icon {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: block;
    line-height: 1.1;
  }

  /* Reserve space for fixed bottom nav */
  .main {
    padding-bottom: var(--bottom-nav-height);
  }

  /* Bottom nav visible during onboarding on mobile */
  body.onboarding-mode .sidebar {
    display: flex;
  }

  /* Checkin / Onboarding fullscreen: subtract nav height */
  body.onboarding-mode .main,
  body.checkin-mode .main {
    height: calc(100vh - var(--bottom-nav-height));
  }

  .topbar {
    padding: 22px 18px 16px;
  }

  .content {
    padding: 20px 18px 24px;
  }

  .split-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .chip-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Variante 1: Pulsing Owl Loader (täglich) ───────────────── */
.owl-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 56px 24px 48px;
  text-align: center;
}

.owl-loader-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  animation: owlPulse 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.25);
}

@keyframes owlPulse {
  0%,  100% { transform: scale(1.00); box-shadow: 0 0 0  0px rgba(15,118,110,0.20); }
  50%        { transform: scale(1.07); box-shadow: 0 0 0 14px rgba(15,118,110,0.00); }
}

.owl-loader-status {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  min-height: 1.5em;
  transition: opacity 0.2s ease;
}

/* ── Variante 2: Phasen + Fortschritt (Wochencoaching) ──────── */
.phase-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 44px 28px 40px;
  max-width: 480px;
  margin: 0 auto;
}

.phase-loader-owl {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0.85;
  animation: owlPulse 2.2s ease-in-out infinite;
}

.phase-loader-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.phase-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.phase-step.active {
  opacity: 1;
  border-color: var(--accent);
  background: #ecfdf5;
}

body.dark .phase-step.active {
  background: #052e2b;
  border-color: var(--accent);
}

.phase-step.done {
  opacity: 0.55;
}

.phase-icon {
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.phase-label {
  font-size: 0.9rem;
  color: var(--ink);
  flex: 1;
}

.phase-check {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  min-width: 14px;
  text-align: right;
}

.phase-bar-wrap {
  width: 100%;
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.phase-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 3px;
  width: 0%;
  transition: width 2.5s ease;
}

.phase-note {
  font-size: 0.78rem;
  margin: 0;
  opacity: 0.7;
}

/* ── Lösch-Bestätigungs-Modal ───────────────────────────────── */
.delete-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  animation: fadeInOverlay 0.15s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.delete-modal {
  background: var(--panel);
  border-radius: 18px;
  padding: 30px 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: slideUpModal 0.2s ease;
}

@keyframes slideUpModal {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.delete-modal-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  line-height: 1;
}

.delete-modal h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
  color: var(--danger);
}

.delete-modal p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.delete-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

/* ── Persistente KI-Hinweis-Note im Chat ───────────────────── */
.ai-disclaimer-note {
  position: relative;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin: 0 0 10px;
  padding: 0 22px;
  line-height: 1.4;
  opacity: 0.8;
}

.ai-disclaimer-note strong {
  font-weight: 600;
}

.ai-disclaimer-dismiss {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 2px 6px;
  opacity: 0.7;
}

.ai-disclaimer-dismiss:hover { opacity: 1; }

/* ── KI-Disclaimer im Profil ────────────────────────────────── */
.ki-disclaimer-panel {
  border-left: 3px solid var(--warn);
}

.disclaimer-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.65;
}

.disclaimer-list li {
  margin-bottom: 4px;
}

body.dark .ki-disclaimer-panel {
  border-left-color: var(--warn);
}

/* ── Streaming-Briefing: Karte füllt sich live, während Minerva schreibt ── */
.briefing-stream-wrap { width: 100%; }
.briefing-streaming-card { animation: briefingFadeIn .3s ease; }
.briefing-streaming-card .briefing-section { animation: briefingFadeIn .35s ease; }
.briefing-streaming-card .stream-pending { opacity: .45; }
@keyframes briefingFadeIn { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
