/* ============================================================
   DanceIQ – Basis-Stylesheet v2.0
   Ersetzt: danceiq.css + app.css + alle sprint-*.css
   Gilt für: alle Seiten (landing, app, auth)
   Fonts: Outfit + Plus Jakarta Sans (Bunny.net, DSGVO-konform)

   Aufbau:
     1.  Design Tokens
     2.  Reset & Base
     3.  Typografie
     4.  Layout
     5.  Komponenten (alphabetisch)
     6.  Auth-Seiten
     7.  Utilities
     8.  Animationen
   ============================================================ */


/* ──────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ────────────────────────────────────────────────────────── */
:root {
  /* Primär (Orange-Rot, aus danceiq.css) */
  --sun:        #e8590c;
  --sun-lt:     #fce8de;
  --sun-mid:    #f4825a;
  --sun-dk:     #d44f08;

  /* Neutral */
  --ink:        #18140f;
  --ink-soft:   #332e27;
  --muted:      #7a7269;
  --dim:        #a39b90;
  --white:      #ffffff;
  --off:        #f5f2ee;
  --off-mid:    #ede9e3;
  --off-deep:   #e2ddd6;

  /* Borders */
  --border:     rgba(24, 20, 15, .09);
  --border-md:  rgba(24, 20, 15, .15);

  /* Semantisch */
  --sage:       #3d7a62;
  --sage-lt:    #d5ece4;
  --danger:     #c0392b;
  --danger-lt:  #fce8e8;

  /* Schatten */
  --sh-sm: 0 1px 4px rgba(24,20,15,.06), 0 4px 12px rgba(24,20,15,.06);
  --sh-md: 0 4px 16px rgba(24,20,15,.08), 0 12px 40px rgba(24,20,15,.08);
  --sh-lg: 0 8px 24px rgba(24,20,15,.08), 0 32px 80px rgba(24,20,15,.10);

  /* Radius */
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* App-Layout */
  --nav-h:        64px;
  --bottom-nav-h: 68px;
}


/* ──────────────────────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* App-Seiten */
body.app-body {
  background: var(--off);
  min-height: 100vh;
  padding-bottom: var(--bottom-nav-h);
  overflow-x: hidden;
}

/* Auth-Seiten */
body.auth-body {
  background: var(--off);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px 64px;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 2.5px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  border-radius: var(--r);
  background: var(--sun);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }


/* ──────────────────────────────────────────────────────────
   3. TYPOGRAFIE
   ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1rem; letter-spacing: -.02em; line-height: 1.3; }
h4 { font-size: .9rem; }

em { font-style: normal; color: var(--sun); }

p { font-size: .9rem; line-height: 1.65; color: var(--muted); }

.sun    { color: var(--sun); }
.sage   { color: var(--sage); }
.danger { color: var(--danger); }
.muted  { color: var(--muted); }
.hidden { display: none; }


/* ──────────────────────────────────────────────────────────
   4. LAYOUT
   ────────────────────────────────────────────────────────── */

/* Container Landing */
.pg, .pg-wide {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1100px);
  margin: 0 auto;
}
.pg-narrow { max-width: 720px; }

/* Tab-Panels App */
.tab-panel { display: none; padding: 12px; max-width: 680px; margin: 0 auto; width: 100%; box-sizing: border-box; overflow-x: hidden; }
.tab-panel.active { display: block; }

/* Sections */
.sec        { padding: 72px 0; }
.sec-light  { background: var(--off); }
.sec-warm   { background: var(--off-mid); }
.sec-dark   { background: var(--ink); color: var(--white); }
.sec-dark p { color: rgba(255,255,255,.6); }

.sec-eye {
  font-family: 'Outfit', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 14px;
  display: block;
}
.sec-dark .sec-eye { color: rgba(232,89,12,.85); }

.sec-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}
.sec-h2 em { font-style: normal; color: var(--sun); }

.sec-body { color: var(--muted); font-size: .97rem; max-width: 580px; line-height: 1.75; margin-bottom: 40px; }


/* ──────────────────────────────────────────────────────────
   5. KOMPONENTEN
   ────────────────────────────────────────────────────────── */

/* ── Brand & Avatar ─────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.04em;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--sun);
  display: grid;
  place-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.04em;
  color: var(--ink);
  text-decoration: none;
}

.dash-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  flex-shrink: 0;
  border: none;
}


/* ── Chip / Badge / Tag ─────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chip-pilot   { background: var(--sun); color: var(--white); }
.chip-neutral { background: var(--off); color: var(--muted); border: 1px solid var(--border); }
.chip-sage    { background: var(--sage-lt); color: var(--sage); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: diq-blink 2.2s ease-in-out infinite; }

/* Meta-Chips */
.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--off);
  border: 1.5px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-chip.sun    { background: var(--sun-lt); border-color: transparent; color: var(--sun); }
.meta-chip.sage   { background: var(--sage-lt); border-color: transparent; color: var(--sage); }
.meta-chip.danger { background: var(--danger-lt); border-color: transparent; color: var(--danger); }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* Multi-Select Chips */
.ms-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--off);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  color: var(--muted);
  user-select: none;
  transition: all .15s;
}
.ms-chip:hover    { border-color: var(--sun); color: var(--sun); }
.ms-chip.selected { background: var(--sun); border-color: var(--sun); color: var(--white); }

/* Status-Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 11px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .72rem;
  white-space: nowrap;
}
.status-pill.sage   { background: var(--sage-lt); color: var(--sage); }
.status-pill.sun    { background: var(--sun-lt); color: var(--sun); animation: diq-blink 2.2s ease-in-out infinite; }
.status-pill-dot    { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Task Badges */
.task-card-status,
.task-card-priority {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.task-card-status.sun,
.task-card-priority.sun    { background: var(--sun-lt); color: var(--sun); }
.task-card-status.sage,
.task-card-priority.sage   { background: var(--sage-lt); color: var(--sage); }
.task-card-status.danger,
.task-card-priority.danger { background: var(--danger-lt); color: var(--danger); }

/* Status-Indikator (Analyse-Fortschritt) */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--off);
  border: 1.5px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.status-indicator-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-indicator-dot.analysiert     { background: var(--sun); }
.status-indicator-dot.trainer-prueft { background: var(--sun); animation: diq-pulse 1.5s ease-in-out infinite; }
.status-indicator-dot.bereit         { background: var(--sage); }


/* ── Bottom-Nav ─────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: var(--white);
  border-top: 2px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--muted);
  transition: color .15s;
  border: none;
  background: none;
  padding: 8px 4px;
  font-family: 'Outfit', sans-serif;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--sun);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-item.active::before         { transform: scaleX(1); }
.nav-item.active                 { color: var(--sun); }
.nav-item.active .nav-icon-wrap  { background: var(--sun-lt); }
.nav-item:hover                  { color: var(--ink-soft); }

.nav-icon-wrap { width: 36px; height: 28px; border-radius: 8px; display: grid; place-items: center; transition: background .15s; }
.nav-item svg  { width: 20px; height: 20px; flex-shrink: 0; }
.nav-label     { font-size: .67rem; font-weight: 800; letter-spacing: .01em; }


/* ── Button ─────────────────────────────────────────────── */
/* Groß (Landing) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  font-family: 'Outfit', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  line-height: 1;
}
.btn:hover   { transform: translateY(-2px); }
.btn:active  { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-sun {
  background: var(--sun);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232,89,12,.26);
}
.btn-sun:hover { background: var(--sun-dk); box-shadow: 0 10px 28px rgba(232,89,12,.38); }

.btn-outline { border-color: var(--border-md); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--off); }

.btn-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Klein (App) */
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn-sm.sun { background: var(--sun); color: var(--white); box-shadow: 0 3px 10px rgba(232,89,12,.25); }
.btn-sm.sun:hover    { background: var(--sun-dk); }
.btn-sm.sun:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm.outline { background: transparent; border: 1.5px solid var(--border-md); color: var(--ink); }
.btn-sm.outline:hover { background: var(--off); }
.btn-sm.sage   { background: var(--sage); color: var(--white); }
.btn-sm.danger { background: transparent; border: 1.5px solid rgba(192,57,43,.3); color: var(--danger); }
.btn-sm.danger:hover { background: var(--danger-lt); }

.btn-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; align-items: center; }

/* FAB */
.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px);
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--white);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232,89,12,.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  z-index: 90;
}
.fab.visible { display: flex; }
.fab:hover   { transform: scale(1.08); }

.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: diq-spin .7s linear infinite; }

.back-btn { display: inline-flex; align-items: center; gap: 6px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; margin-bottom: 14px; background: none; border: none; padding: 0; }
.back-btn:hover { color: var(--ink); }


/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-sm);
  margin-bottom: 12px;
}
.card-title { font-family: 'Outfit', sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }

.info-box { background: var(--off); border: 1.5px solid var(--border); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.info-box strong { color: var(--ink); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--sh-sm); }
.stat-label { font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; line-height: 1.3; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.stat-value.sun    { color: var(--sun); }
.stat-value.sage   { color: var(--sage); }
.stat-value.danger { color: var(--danger); }
.stat-sub { font-size: .72rem; color: var(--dim); margin-top: 3px; line-height: 1.35; }

/* Coach-Hero (Trainer Cockpit) */
.coach-hero-action {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(22px, 5vw, 34px);
  box-shadow: var(--sh-md);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.coach-hero-action::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--sun); }
.coach-hero-action.stable::before { background: var(--sage); }
.coach-hero-topline { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.coach-alert-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--sun-lt); color: var(--sun); font-family: 'Outfit', sans-serif; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.coach-hero-action.stable .coach-alert-pill { background: var(--sage-lt); color: var(--sage); }
.coach-pair-context { color: var(--muted); font-size: .8rem; line-height: 1.4; text-align: right; max-width: 360px; }
.coach-focus-title { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 7vw, 3.15rem); font-weight: 900; line-height: .96; letter-spacing: -.065em; margin: 0 0 10px; color: var(--ink); }
.coach-focus-sub   { color: var(--muted); font-size: .96rem; line-height: 1.55; max-width: 620px; margin: 0 0 22px; }
.coach-primary-action { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.coach-primary-btn    { padding: 14px 22px; font-size: .95rem; box-shadow: 0 5px 18px rgba(232,89,12,.28); }

/* Task-Decision */
.task-decision-list { display: grid; gap: 12px; min-width: 0; overflow: hidden; }
.task-decision-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--sun);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.task-decision-card:hover   { border-color: rgba(232,89,12,.26); box-shadow: var(--sh-md); }
.task-decision-card.is-closed { opacity: .78; }
.task-card-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.task-card-main  { flex: 1; min-width: 0; }
.task-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ── Feedback ───────────────────────────────────────────── */
.feedback { padding: 10px 14px; border-radius: var(--r); font-size: .84rem; font-weight: 600; line-height: 1.45; display: none; }
.feedback.error, .feedback.err { display: block; background: var(--danger-lt); color: var(--danger); }
.feedback.success, .feedback.ok { display: block; background: var(--sage-lt); color: var(--sage); }
.feedback.visible { display: block; }
.action-meta { font-size: .78rem; color: var(--muted); margin-top: 4px; min-height: 1.2em; }


/* ── Field & Form ───────────────────────────────────────── */
.form-grid   { display: grid; gap: 12px; }
.form-cols-2 { grid-template-columns: 1fr 1fr; }
.field-wrap  { display: grid; gap: 4px; }
.field-label { font-weight: 600; font-size: .8rem; color: var(--ink-soft); }
.field-label.req::after { content: ' *'; color: var(--sun); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  background: var(--off);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--sun); background: var(--white); }
textarea { resize: vertical; min-height: 80px; }
input:invalid:not(:placeholder-shown) { border-color: var(--danger); }
.field-error { font-size: .8rem; color: var(--danger); margin-top: 4px; display: none; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1.5px solid var(--border);
  background: var(--off);
  transition: border-color .15s;
}
.consent-row:hover { border-color: var(--sun); }
.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--sun);
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: checkbox;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.consent-row a { color: var(--sun); text-decoration: underline; text-underline-offset: 2px; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; display: flex; align-items: center; }
.pw-toggle:hover { color: var(--ink); }
.pw-strength { display: flex; gap: 4px; margin-top: 6px; }
.pw-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--border); transition: background .2s; }
.pw-bar.weak   { background: var(--danger); }
.pw-bar.medium { background: #f0a500; }
.pw-bar.strong { background: var(--sage); }
.pw-hint { font-size: .75rem; color: var(--dim); margin-top: 4px; }

label .lbl { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.lbl-req::after { content: ' *'; color: var(--sun); font-weight: 700; }

.form-shell { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: clamp(24px, 5vw, 40px); box-shadow: var(--sh-md); max-width: 720px; }
.form-inner { display: grid; gap: 16px; }
.form-cols  { display: grid; gap: 16px; }
@media (min-width: 560px) { .form-cols { grid-template-columns: 1fr 1fr; } }
.form-urgency { font-size: .8rem; color: var(--dim); margin-top: 12px; }


/* ── Header (App) ───────────────────────────────────────── */
.dash-header {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.dash-user { display: flex; align-items: center; gap: 8px; }
.dash-name { font-size: .82rem; font-weight: 600; color: var(--ink-soft); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-menu { position: absolute; top: 100%; right: 16px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-md); z-index: 150; min-width: 180px; display: none; overflow: hidden; }
.user-menu.open { display: block; }
.user-menu-item { padding: 12px 16px; font-size: .88rem; font-weight: 600; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; }
.user-menu-item:last-child { border-bottom: none; }
.user-menu-item:hover  { background: var(--off); }
.user-menu-item.danger { color: var(--danger); }


/* ── Kicker / Hero-Tag ──────────────────────────────────── */
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-family: 'Outfit', sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); margin-bottom: 20px; }
.hero-tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); animation: diq-blink 2s ease-in-out infinite; }


/* ── Loading & Empty ────────────────────────────────────── */
.loading { text-align: center; padding: 48px 20px; color: var(--muted); font-size: .88rem; }
.empty   { text-align: center; padding: 40px 20px; color: var(--muted); font-size: .88rem; }
.empty-icon { font-size: 2rem; margin-bottom: 10px; opacity: .5; }


/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(24,20,15,.5); z-index: 200; display: none; align-items: flex-end; padding: 0; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 24px 20px 40px; width: 100%; max-height: 92vh; overflow-y: auto; animation: diq-slide-up .25s ease; }
.modal-handle { width: 40px; height: 4px; background: var(--border-md); border-radius: 2px; margin: 0 auto 20px; }
.modal-title { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 900; letter-spacing: -.04em; margin-bottom: 20px; }


/* ── Nav Landing ────────────────────────────────────────── */
.v4-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.v4-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; width: min(calc(100% - 32px), 1100px); margin: 0 auto; }
.v4-nav-links { display: none; gap: 20px; align-items: center; font-size: .86rem; font-weight: 500; color: var(--muted); }
.v4-nav-links a:hover { color: var(--ink); }
.v4-nav-links .btn { padding: 9px 18px; font-size: .88rem; }
.nav-toggle { background: none; border: 1.5px solid var(--border-md); border-radius: 9px; padding: 7px 11px; font-size: 1.1rem; cursor: pointer; color: var(--ink); line-height: 1; }

@media (max-width: 799px) {
  .v4-nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 20px 24px 24px; gap: 16px; align-items: flex-start; box-shadow: var(--sh-md); }
  .v4-nav-links.open .btn { width: 100%; }
}
@media (min-width: 800px) { .v4-nav-links { display: flex; } .nav-toggle { display: none; } }

/* Pilot-Banner */
.banner { background: var(--ink); padding: 10px 0; text-align: center; font-family: 'Outfit', sans-serif; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.banner-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px; width: min(calc(100% - 32px), 1100px); margin: 0 auto; }
.banner-link { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }


/* ── Progress / Tanz-Bar ────────────────────────────────── */
.tanz-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.tanz-row:last-child { border-bottom: none; }
.tanz-rank { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .8rem; color: var(--muted); width: 22px; flex-shrink: 0; }
.tanz-name { flex: 1; font-size: .88rem; font-weight: 600; min-width: 0; }
.tanz-bar-wrap { width: 80px; height: 6px; background: var(--off-deep); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.tanz-bar { height: 100%; border-radius: 3px; background: var(--sun); transition: width .4s ease; }
.tanz-score { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .8rem; color: var(--ink-soft); width: 36px; text-align: right; flex-shrink: 0; }
.chart-wrap { position: relative; height: 180px; }


/* ── Sections Landing ───────────────────────────────────── */
.feat-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.feat-card-highlight { background: var(--ink); border-color: var(--ink); color: var(--white); }
.feat-card-highlight p { color: rgba(255,255,255,.65); }
.feat-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--off); display: grid; place-items: center; margin-bottom: 14px; color: var(--sun); }
.feat-icon-dark { background: rgba(255,255,255,.12); color: var(--white); }
.feat-card h3 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .97rem; margin-bottom: 8px; line-height: 1.3; }
.feat-card p  { font-size: .87rem; color: var(--muted); line-height: 1.65; }

/* FAQ */
.faq-list { max-width: 720px; display: grid; gap: 8px; margin-top: 24px; }
.faq-item { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .94rem; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ch { width: 24px; height: 24px; border-radius: 6px; background: var(--off); display: grid; place-items: center; font-size: 1rem; font-weight: 300; flex-shrink: 0; color: var(--muted); transition: background .2s, color .2s; }
.faq-item[open] .faq-ch { background: var(--sun); color: var(--white); }
.faq-item[open] summary  { color: var(--sun); }
.faq-body { padding: 0 20px 18px; font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* Footer */
.v4-footer { background: var(--ink); padding: 32px 0; border-top: 1px solid rgba(255,255,255,.07); }
.v4-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: min(calc(100% - 32px), 1100px); margin: 0 auto; }
.v4-footer-brand { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: -.04em; color: var(--white); margin-bottom: 4px; }
.v4-footer-copy  { font-size: .78rem; color: rgba(255,255,255,.35); }
.v4-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .82rem; color: rgba(255,255,255,.4); }
.v4-footer-links a:hover { color: rgba(255,255,255,.8); }


/* ── Tab-Bar ────────────────────────────────────────────── */
.tab-bar { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); background: var(--white); }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn { flex: 1; padding: 11px 10px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .75rem; letter-spacing: .04em; color: var(--muted); background: none; border: none; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; transition: color .15s, border-color .15s; }
.tab-btn:hover  { color: var(--ink); }
.tab-btn.active { color: var(--sun); border-bottom-color: var(--sun); }


/* ── Video ──────────────────────────────────────────────── */
.video-box { width: 100%; border-radius: var(--r-lg); background: #000; max-height: 50vh; display: block; }
.voice-btn { cursor: pointer; user-select: none; }
.voice-btn.recording { background: var(--danger-lt); border-color: var(--danger); color: var(--danger); animation: diq-pulse 1s ease-in-out infinite; }
.voice-status { font-size: .78rem; color: var(--muted); margin-top: 4px; min-height: 1.2em; }


/* ──────────────────────────────────────────────────────────
   6. AUTH-SEITEN
   ────────────────────────────────────────────────────────── */
.login-card, .auth-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(32px, 6vw, 52px);
  width: 100%;
  box-shadow: var(--sh-md);
}
.login-card { max-width: 440px; }
.auth-card  { max-width: 480px; text-align: center; }

.login-brand, .card-brand { display: flex; align-items: center; gap: 9px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -.04em; margin-bottom: 32px; color: var(--ink); text-decoration: none; }
.login-title { font-family: 'Outfit', sans-serif; font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.05; margin-bottom: 6px; }
.login-sub, .card-sub { color: var(--muted); font-size: .88rem; margin-bottom: 28px; line-height: 1.6; }
.login-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; font-size: .82rem; color: var(--muted); }
.login-footer a { color: var(--sun); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.card-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--sun-lt); display: grid; place-items: center; margin: 0 auto 20px; font-size: 1.5rem; color: var(--sun); }

.danke-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: clamp(32px, 6vw, 52px); max-width: 520px; width: 100%; box-shadow: var(--sh-md); text-align: center; margin: 0 auto; }
.danke-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-lt); display: grid; place-items: center; margin: 0 auto 24px; font-size: 1.6rem; color: var(--sage); }
.danke-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.danke-steps { text-align: left; display: grid; gap: 12px; margin-bottom: 8px; }
.danke-step-row { display: flex; gap: 14px; align-items: flex-start; }
.danke-step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: var(--white); display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-size: .8rem; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.danke-step-text strong { display: block; font-family: 'Outfit', sans-serif; font-size: .92rem; font-weight: 800; margin-bottom: 2px; }
.danke-step-text span { font-size: .83rem; color: var(--muted); line-height: 1.55; }

.form-view { display: block; }
.form-view.hidden { display: none; }


/* ──────────────────────────────────────────────────────────
   7. UTILITIES
   ────────────────────────────────────────────────────────── */
.rule   { border: none; border-top: 1px solid var(--border); }
.hidden { display: none !important; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* ──────────────────────────────────────────────────────────
   8. ANIMATIONEN
   ────────────────────────────────────────────────────────── */
@keyframes diq-spin     { to { transform: rotate(360deg); } }
@keyframes diq-blink    { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes diq-pulse    { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes diq-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }


/* ── Toast-Notifications ────────────────────────────────────── */
.diq-toast-root {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

.diq-toast {
  background: var(--ink);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(24,20,15,.18);
  animation: diq-toast-in .25s ease;
  pointer-events: auto;
  text-align: center;
  line-height: 1.4;
}

.diq-toast--error   { background: var(--danger); }
.diq-toast--ok      { background: var(--sage); }
.diq-toast--warning { background: var(--sun); }

.diq-toast.leaving {
  animation: diq-toast-out .3s ease forwards;
}

@keyframes diq-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes diq-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
