/* ── Dashboard shell ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  min-height: 100vh;
  background: #F2F4EE;
  font-family: 'Inter', sans-serif;
  color: var(--ink-900, #0e1e18);
}

/* ── Dashboard header ─────────────────────────────── */
.dash-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 244, 238, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20,59,50,0.1);
}

.dash-header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.dash-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--green-900, #0c3f35);
  text-decoration: none;
  flex-shrink: 0;
}

/* Tab nav */
.dash-tabs {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.dash-tab {
  padding: 0.45rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-700, #415952);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dash-tab:hover { background: rgba(20,59,50,0.07); color: var(--ink-900); }

.dash-tab.active {
  background: var(--green-900, #0c3f35);
  color: #fff;
}

/* User block */
.dash-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.dash-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
}

.dash-logout {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(20,59,50,0.15);
  border-radius: 999px;
  transition: border-color 0.15s, color 0.15s;
}

.dash-logout:hover { border-color: var(--green-700); color: var(--green-700); }

/* ── Alert banner ─────────────────────────────────── */
.dash-alert {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.dash-alert-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dash-alert-text {
  flex: 1;
}

.dash-alert-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 2px;
}

.dash-alert-text p {
  font-size: 0.85rem;
  color: #78350F;
  margin: 0;
}

.dash-alert-cta {
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem;
  min-height: 40px;
  border: none;
  border-radius: 999px;
  background: #D97706;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.dash-alert-cta:hover { background: #B45309; transform: translateY(-1px); }

.dash-alert-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #92400E;
  opacity: 0.6;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Main content ─────────────────────────────────── */
.dash-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* Tab panels */
.dash-panel { display: none; }
.dash-panel.active { display: block; }

/* ── Section titles ───────────────────────────────── */
.dash-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 1.5rem;
}

/* ── Cards ────────────────────────────────────────── */
.dash-card {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(20,59,50,0.09);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 12px rgba(12, 63, 53,0.05);
}

.dash-card + .dash-card { margin-top: 1rem; }

.dash-card-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700, #0c3f35);
  margin: 0 0 1.25rem;
}

/* ── Stats row ────────────────────────────────────── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

/* (stats responsive handled in 768px block below) */

.dash-stat {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(20,59,50,0.09);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

.dash-stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-700);
  margin-bottom: 0.4rem;
}

.dash-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.03em;
}

.dash-stat-sub {
  font-size: 0.76rem;
  color: var(--ink-700);
  margin-top: 2px;
}

.dash-stat-value.positive { color: #059669; }
.dash-stat-value.warn     { color: #D97706; }

/* ── BMI colour states ───────────────────────────── */
.dash-stat--bmi { transition: background 0.3s, border-color 0.3s; }

.dash-stat--bmi.bmi--good {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}
.dash-stat--bmi.bmi--good .dash-stat-value { color: #059669; }

.dash-stat--bmi.bmi--warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}
.dash-stat--bmi.bmi--warn .dash-stat-value { color: #D97706; }

.dash-stat--bmi.bmi--bad {
  background: rgba(239, 68, 68, 0.09);
  border-color: rgba(239, 68, 68, 0.25);
}
.dash-stat--bmi.bmi--bad .dash-stat-value { color: #DC2626; }

/* ── Weight progress ──────────────────────────────── */
.weight-progress-wrap {
  margin-top: 0.5rem;
}

/* Edit button next to current weight */
.wp-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(12, 63, 53,0.08);
  color: var(--green-700, #0c3f35);
  cursor: pointer;
  margin-top: 2px;
  align-self: flex-end;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.wp-edit-btn:hover { background: rgba(12, 63, 53,0.16); }

/* Inline weight editor */
.wp-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  justify-content: flex-end;
}
.wp-editor-input {
  width: 80px;
  height: 34px;
  border: 1.5px solid rgba(12, 63, 53,0.3);
  border-radius: 10px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-900, #0e1e18);
  background: #fff;
  outline: none;
  text-align: center;
  transition: border-color 0.15s;
}
.wp-editor-input:focus { border-color: #0c3f35; }
.wp-editor-save {
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  background: #0c3f35;
  color: #d1f843;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.wp-editor-save:hover { background: #004530; }
.wp-editor-cancel {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: transparent;
  color: var(--ink-700, #5f756d);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.wp-editor-cancel:hover { border-color: rgba(0,0,0,0.2); }

/* ── Weight journey ───────────────────────────────────── */
.wp-journey {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
}
.wp-jpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.wp-jpoint--current { position: relative; }
.wp-jpoint--goal { opacity: 0.55; }
.wp-jpoint-top {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.wp-jpoint-val {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink-900, #0e1e18);
  line-height: 1;
}
.wp-jpoint-unit {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-700, #5f756d);
  margin-left: 1px;
}
.wp-jpoint-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-700, #5f756d);
  margin-top: 3px;
}
.wp-jdelta {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(5,150,105,0.1);
  color: #059669;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
  white-space: nowrap;
}
.wp-jdelta--gain {
  background: rgba(220,38,38,0.1);
  color: #dc2626;
}
.wp-jtrack {
  flex: 1;
  height: 4px;
  background: rgba(20,59,50,0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin: 0 6px;
  margin-bottom: 18px; /* align with val baseline */
}
.wp-jtrack--dashed {
  background: repeating-linear-gradient(
    90deg,
    rgba(20,59,50,0.15) 0px,
    rgba(20,59,50,0.15) 5px,
    transparent 5px,
    transparent 10px
  );
}
.wp-jtrack-fill {
  height: 100%;
  background: linear-gradient(90deg, #0c3f35, #14513f);
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* ── Percentage bar ───────────────────────────────────── */
.wp-pct-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.wp-pct-bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(20,59,50,0.09);
  border-radius: 999px;
  overflow: hidden;
}
.wp-pct-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0c3f35, #14513f);
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.wp-pct-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0c3f35;
  white-space: nowrap;
  min-width: 36px;
  text-align: right;
}

/* ── Program badge ────────────────────────────────── */
.dash-program-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: rgba(12, 63, 53,0.08);
  border: 1px solid rgba(12, 63, 53,0.15);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-700);
  margin-bottom: 1rem;
}

/* ── Akte tab ─────────────────────────────────────── */
.akte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) { .akte-grid { grid-template-columns: 1fr; } }

.akte-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(20,59,50,0.07);
  font-size: 0.9rem;
}

.akte-row:last-child { border-bottom: none; }
.akte-row-label { color: var(--ink-700); }
.akte-row-value { font-weight: 600; color: var(--ink-900); }

/* ── Konto tab forms ──────────────────────────────── */
.form-section { margin-bottom: 2rem; }

.form-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-700);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(20,59,50,0.09);
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 480px) { .name-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
}

.form-group input {
  padding: 0.72rem 1rem;
  border: 1.5px solid rgba(20,59,50,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(12, 63, 53,0.1);
}

.btn-save {
  padding: 0 1.5rem;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-700, #0c3f35), #14513f);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 16px rgba(12, 63, 53,0.22);
}

.btn-save:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(12, 63, 53,0.28); }

/* ── Success toast ────────────────────────────────── */
.dash-toast {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #fff;
  border: 1px solid rgba(20,59,50,0.12);
  border-left: 4px solid #059669;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
  box-shadow: 0 8px 30px rgba(12, 63, 53,0.12);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Skeleton loader ──────────────────────────────── */
.skel {
  display: inline-block;
  background: linear-gradient(90deg, rgba(20,59,50,0.07) 25%, rgba(20,59,50,0.12) 50%, rgba(20,59,50,0.07) 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Video Guide – Behandlungsplan ──────────────── */

.vg-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.vg-header-sub {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--ink-700);
  line-height: 1.5;
}

.vg-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(12, 63, 53, 0.07);
  border: 1px solid rgba(12, 63, 53, 0.13);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-800, #0c3f35);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Layout */
.vg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}

/* ── Player column ── */
.vg-player-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vg-player-wrap {
  position: relative;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #0e1e18;
  aspect-ratio: 16 / 9;
}

.vg-player-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s;
}

/* Overlay */
.vg-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 30, 24, 0.35);
  transition: background 0.2s;
}

.vg-player-overlay:hover {
  background: rgba(14, 30, 24, 0.25);
}

.vg-player-overlay.vg-overlay--watched {
  background: rgba(5, 150, 105, 0.18);
}

.vg-player-overlay.vg-overlay--playing {
  background: rgba(14, 30, 24, 0.6);
}

/* Play button */
.vg-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-900, #0c3f35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, background 0.18s;
}

.vg-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px; /* optical center */
}

.vg-play-btn:hover {
  transform: scale(1.08);
  background: var(--lime-400, #d1f843);
}

/* Step badge */
.vg-player-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(14, 30, 24, 0.7);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.92);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Info bar below player */
.vg-player-info {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(20, 59, 50, 0.09);
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 1.5rem 1.75rem 1.75rem;
}

.vg-player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.vg-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(12, 63, 53, 0.1);
  color: var(--green-700, #0c3f35);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vg-player-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  line-height: 1.25;
}

.vg-player-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.65;
}

.vg-player-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Watched button */
.vg-btn-watched {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  min-height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(20, 59, 50, 0.18);
  background: transparent;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

.vg-btn-watched:hover {
  border-color: #059669;
  color: #059669;
  background: rgba(5, 150, 105, 0.06);
}

.vg-btn-watched.is-watched {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.4);
  color: #059669;
}

/* Next button */
.vg-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  min-height: 42px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--green-700, #0c3f35), #14513f);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(12, 63, 53, 0.25);
  transition: transform 0.18s, box-shadow 0.18s;
  margin-left: auto;
}

.vg-btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(12, 63, 53, 0.3);
}

.vg-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Sidebar ── */
.vg-sidebar {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 59, 50, 0.09);
  border-radius: 18px;
  padding: 1.25rem;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(20,59,50,0.12) transparent;
}

.vg-sidebar::-webkit-scrollbar { width: 4px; }
.vg-sidebar::-webkit-scrollbar-thumb { background: rgba(20,59,50,0.15); border-radius: 4px; }

.vg-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700, #0c3f35);
}

/* Playlist */
.vg-playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vg-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  outline: none;
}

.vg-playlist-item:hover {
  background: rgba(20, 59, 50, 0.05);
}

.vg-playlist-item:focus-visible {
  box-shadow: 0 0 0 2px var(--green-700);
}

.vg-playlist-item.is-active {
  background: rgba(12, 63, 53, 0.1);
  border: 1px solid rgba(12, 63, 53, 0.2);
}

/* Thumbnail in playlist */
.vg-pl-thumb-wrap {
  position: relative;
  width: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ddd;
}

.vg-pl-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vg-pl-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 30, 24, 0.45);
}

.vg-playlist-item.is-watched .vg-pl-thumb-overlay {
  background: rgba(5, 150, 105, 0.55);
  color: #fff;
}

.vg-playlist-item.is-active .vg-pl-thumb-overlay {
  background: rgba(12, 63, 53, 0.55);
  color: #fff;
}

.vg-pl-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}

/* Playlist text */
.vg-pl-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vg-pl-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vg-playlist-item.is-active .vg-pl-title { color: var(--green-700); }
.vg-playlist-item.is-watched .vg-pl-title { opacity: 0.7; }

.vg-pl-dur {
  font-size: 0.72rem;
  color: var(--ink-700);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .vg-layout {
    grid-template-columns: 1fr;
  }

  .vg-sidebar {
    position: static;
    max-height: none;
  }

  .vg-playlist {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .vg-playlist::-webkit-scrollbar { display: none; }

  .vg-playlist-item {
    flex-direction: column;
    align-items: flex-start;
    min-width: 140px;
    gap: 8px;
  }

  .vg-pl-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .vg-pl-title {
    white-space: normal;
  }
}

/* ── Status Stepper ──────────────────────────────── */
.status-tracker-card {
  margin-bottom: 1rem;
}

.status-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0.5rem 0 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-stepper::-webkit-scrollbar { display: none; }

/* Individual step */
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 70px;
  position: relative;
}

/* Bubble */
.status-step-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 59, 50, 0.07);
  border: 2px solid rgba(20, 59, 50, 0.13);
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.status-step-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-700);
  transition: opacity 0.2s;
}

.status-step-check,
.status-step-reject {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}

/* Connector line */
.status-step-line {
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: rgba(20, 59, 50, 0.1);
  transition: background 0.4s;
  z-index: 0;
}
.status-step-line--last {
  right: 0;
}

/* Label */
.status-step-label {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  color: var(--ink-700);
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}

/* ── Step states ── */

/* done */
.status-step.is-done .status-step-bubble {
  background: var(--green-900);
  border-color: var(--green-900);
  box-shadow: 0 4px 14px rgba(12, 63, 53, 0.25);
}
.status-step.is-done .status-step-num { opacity: 0; }
.status-step.is-done .status-step-check { opacity: 1; stroke: var(--lime-400); }
.status-step.is-done .status-step-label { opacity: 1; color: var(--ink-900); }
.status-step.is-done .status-step-line { background: var(--green-700); }

/* active (current step) */
.status-step.is-active .status-step-bubble {
  background: #fff;
  border-color: var(--green-700);
  border-width: 2.5px;
  box-shadow: 0 0 0 5px rgba(12, 63, 53, 0.12), 0 4px 14px rgba(12, 63, 53, 0.15);
  animation: stepPulse 2s ease-in-out infinite;
}
.status-step.is-active .status-step-num { color: var(--green-700); }
.status-step.is-active .status-step-label { opacity: 1; color: var(--green-700); font-weight: 800; }

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(12, 63, 53, 0.12), 0 4px 14px rgba(12, 63, 53, 0.15); }
  50%       { box-shadow: 0 0 0 8px rgba(12, 63, 53, 0.07), 0 4px 14px rgba(12, 63, 53, 0.15); }
}

/* rejected (step 3 only) */
.status-step.is-rejected .status-step-bubble {
  background: #FEF2F2;
  border-color: #EF4444;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.18);
}
.status-step.is-rejected .status-step-check { opacity: 0 !important; }
.status-step.is-rejected .status-step-reject { opacity: 1; stroke: #EF4444; }
.status-step.is-rejected .status-step-label { opacity: 1; color: #EF4444; }

/* ── Treatment Node ── */
.status-treatment-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  opacity: 0.3;
  transition: opacity 0.4s;
}

.status-treatment-node.is-active {
  opacity: 1;
}

/* Naechster Schritt, noch nicht erreicht: der Pen ist versendet, die Therapie
   aber noch nicht gestartet. Sichtbar hervorgehoben, aber ohne Puls - der
   Puls heisst "laeuft", und das stimmt erst nach "Mit der Therapie starten". */
.status-treatment-node.is-next {
  opacity: 0.75;
}

.status-treatment-dot-wrap {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-treatment-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.2);
  animation: treatPulse 2s ease-in-out infinite;
}

.status-treatment-node:not(.is-active) .status-treatment-pulse {
  animation: none;
}

@keyframes treatPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.4); opacity: 0; }
}

.status-treatment-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #059669;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.35), 0 4px 10px rgba(5, 150, 105, 0.3);
  position: relative;
  z-index: 1;
}

.status-treatment-label {
  color: #059669 !important;
  font-weight: 800 !important;
}

.status-treatment-node:not(.is-active) .status-treatment-label {
  color: var(--ink-700) !important;
  font-weight: 700 !important;
}

/* ── Mobile elements (hidden on desktop) ──────────── */
.dash-mobile-title {
  display: none;
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: #143b32;
  letter-spacing: -0.01em;
}

.dash-mobile-logout {
  display: none;
  color: #5f756d;
  flex-shrink: 0;
  line-height: 0;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.12s;
}
.dash-mobile-logout:hover { background: rgba(20,59,50,0.07); }

/* Bottom nav (hidden on desktop) */
.dash-bottom-nav {
  display: none;
}

/* ── Mobile: ≤ 768px ──────────────────────────────── */
@media (max-width: 768px) {

  /* Header */
  .dash-header-inner {
    padding: 0 1rem;
    height: 56px;
    gap: 0;
  }

  .dash-logo {
    font-size: 0.85rem;
    margin-right: 12px;
    flex-shrink: 0;
  }

  /* Hide desktop tabs and user block */
  .dash-tabs { display: none; }
  .dash-user  { display: none; }

  /* Show mobile elements */
  .dash-mobile-title  { display: block; }
  .dash-mobile-logout { display: flex; align-items: center; }

  /* Main content — padding bottom for bottom nav */
  .dash-main {
    padding: 1.25rem 1rem 6rem;
  }

  /* Bottom tab bar */
  .dash-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #0c3f35;
    border-top: none;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    z-index: 100;
    padding: 0 0 env(safe-area-inset-bottom, 0);
  }

  .dash-bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.12s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .dash-bn-item svg {
    transition: transform 0.15s;
  }

  .dash-bn-item.active {
    color: #d1f843;
  }

  .dash-bn-item.active svg {
    transform: translateY(-1px);
  }

  .dash-bn-item.active::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 3px;
    background: #d1f843;
    border-radius: 0 0 3px 3px;
  }

  /* Cards */
  .dash-card {
    padding: 1.1rem;
    border-radius: 14px;
  }

  /* Stats row — stacked 2+1 to avoid overflow */
  .dash-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Pen-Rest card spans full width on its own row */
  .dash-stat:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 12px;
  }

  .dash-stat:last-child .dash-stat-value {
    font-size: 1.5rem;
  }

  .dash-stat:last-child .dash-stat-sub {
    margin-top: 0;
  }

  .dash-stat {
    padding: 0.85rem 1rem;
  }

  .dash-stat-value {
    font-size: 1.25rem;
  }

  .dash-stat-label {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
  }

  /* Akte grid */
  .akte-grid {
    grid-template-columns: 1fr;
  }

  /* Video guide layout */
  .vg-layout {
    flex-direction: column;
  }

  .vg-sidebar {
    max-height: 280px;
    overflow-y: auto;
  }

  /* Alert banner */
  .dash-alert-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .dash-alert-cta {
    width: 100%;
    text-align: center;
  }
}


/* ═══════════════════════════════════════════════════════
   BALANCE APP TAB
   ═══════════════════════════════════════════════════════ */

/* Welcome card */
.bal-app-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(125deg, #0c3f35 0%, #0f5a48 100%);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.bal-app-welcome::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(209, 248, 67, 0.07);
  pointer-events: none;
}

.bal-app-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d1f843;
  margin-bottom: 6px;
}

.bal-app-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 6px;
}

.bal-app-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.bal-app-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(209, 248, 67, 0.12);
  border: 1px solid rgba(209, 248, 67, 0.3);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #d1f843;
  white-space: nowrap;
  flex-shrink: 0;
}

.bal-app-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d1f843;
  flex-shrink: 0;
}

/* Feature Tiles */
.bal-tiles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.bal-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  /* background: #ffffff; */
  border: 1px solid rgba(20, 59, 50, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.bal-tile.rezept {
  background: linear-gradient(135deg, rgba(22,163,74,0.08) 0%, rgba(16,185,129,0.15) 100%);
}

.bal-tile.bewegung {
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(6,182,212,0.15) 100%);
}

.bal-tile.rat {
  background: linear-gradient(135deg, rgba(217,119,6,0.08) 0%, rgba(245,158,11,0.15) 100%);
}

.bal-tile.legt-community {
  background: linear-gradient(135deg, rgba(201,169,110,0.08) 0%, rgba(201,169,110,0.20) 100%);
}

.bal-tile:active {
  transform: scale(0.985);
}

.bal-tile:hover {
  box-shadow: 0 4px 20px rgba(12, 63, 53, 0.1);
}

.bal-tile-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bal-tile-icon--recipes {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.bal-tile-icon--move {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.bal-tile-icon--guide {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.bal-tile.legt-community {
  background: rgba(201,169,110,.1);
}

.bal-tile-icon--community {
  background: rgba(201,169,110,.15);
  color: #c9a96e;
}

.bal-tile-body {
  flex: 1;
  min-width: 0;
}

.bal-tile-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #143b32;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}

.bal-tile-body p {
  font-size: 0.78rem;
  color: #5f756d;
  margin: 0;
}

.bal-tile-arrow {
  color: #5f756d;
  opacity: 0.4;
  flex-shrink: 0;
}

/* Chat Card */
.bal-chat-card {
  background: #ffffff;
  border: 1px solid rgba(20, 59, 50, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.bal-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(20, 59, 50, 0.07);
  background: #f5f1eb;
}

.bal-chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #0c3f35;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bal-chat-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #143b32;
  margin: 0 0 2px;
}

.bal-chat-availability {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #5f756d;
  margin: 0;
}

.bal-online-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

.bal-chat-messages {
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  max-height: 280px;
  overflow-y: auto;
}

.bal-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bal-msg--user {
  align-items: flex-end;
}

.bal-msg--support {
  align-items: flex-start;
}

.bal-msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.bal-msg--support .bal-msg-bubble {
  background: #f5f1eb;
  border: 1px solid rgba(20, 59, 50, 0.08);
  border-bottom-left-radius: 4px;
  color: #143b32;
}

.bal-msg--user .bal-msg-bubble {
  background: #0c3f35;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bal-msg-time {
  font-size: 0.65rem;
  color: #5f756d;
  opacity: 0.6;
  padding: 0 4px;
}

.bal-chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(20, 59, 50, 0.07);
  background: #ffffff;
}

.bal-chat-input {
  flex: 1;
  padding: 10px 14px;
  background: #f5f1eb;
  border: 1.5px solid rgba(20, 59, 50, 0.1);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  color: #143b32;
  outline: none;
  transition: border-color 0.12s;
}

.bal-chat-input:focus {
  border-color: #0c3f35;
}

.bal-chat-input::placeholder {
  color: #5f756d;
  opacity: 0.55;
}

.bal-chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #0c3f35;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: opacity 0.12s;
}

.bal-chat-send:hover { opacity: 0.85; }
.bal-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.bal-msg--resolve .bal-msg-bubble { background: #fff8e1; border: 1.5px solid #f59e0b; color: #0e1e18; }
.bal-resolve-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bal-resolve-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; border: none; transition: opacity 0.15s;
}
.bal-resolve-yes { background: #0c3f35; color: #fff; }
.bal-resolve-no  { background: #f1f5f2; color: #415952; }
.bal-resolve-btn:hover { opacity: 0.85; }

/* Tablet: tiles 2-column */
@media (min-width: 600px) {
  .bal-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .bal-tile {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }

  .bal-tile-arrow {
    display: none;
  }

  .bal-tile-body h3 { font-size: 1rem; }
}

/* ── Address sections (Liefer- & Rechnungsanschrift) ─────── */
.addr-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.addr-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0c3f35;
  background: rgba(12, 63, 53,0.1);
  border-radius: 999px;
  padding: 3px 11px;
  letter-spacing: 0.02em;
}

.addr-card {
  background: rgba(12, 63, 53,0.05);
  border: 1px solid rgba(12, 63, 53,0.18);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.addr-card-edit-btn {
  flex-shrink: 0;
  padding: 5px 16px;
  min-height: 34px;
  border: 1px solid rgba(12, 63, 53,0.35);
  border-radius: 999px;
  background: transparent;
  color: #0c3f35;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.addr-card-edit-btn:hover { background: #0c3f35; color: #fff; }

.addr-cancel-btn {
  padding: 0 1.2rem;
  min-height: 44px;
  border: 1px solid rgba(12, 63, 53,0.3);
  border-radius: 999px;
  background: transparent;
  color: #0c3f35;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.addr-cancel-btn:hover { background: rgba(12, 63, 53,0.08); }

.addr-search-toggle {
  margin-bottom: 14px;
}

.addr-search-toggle a {
  font-size: 0.82rem;
  color: #0c3f35;
  text-decoration: none;
  font-weight: 500;
}

.addr-search-toggle a:hover { text-decoration: underline; }

.addr-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.addr-same-check {
  margin-bottom: 20px;
}

.addr-same-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700, #415952);
  user-select: none;
}

.addr-same-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.addr-same-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(20,59,50,0.25);
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.addr-same-label input:checked + .addr-same-box {
  background: #0c3f35;
  border-color: #0c3f35;
}

.addr-same-label input:checked + .addr-same-box::after {
  content: '';
  display: block;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* Street + number side by side */
.addr-street-row {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 12px;
}

/* PLZ + city side by side */
.addr-city-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.form-group--narrow input {
  text-align: center;
}

.form-optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-700, #415952);
  opacity: 0.7;
}

/* Disabled billing fields when "same as shipping" is checked */
#billingForm input:disabled,
#billingForm select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .addr-street-row,
  .addr-city-row {
    grid-template-columns: 1fr;
  }
  .form-group--narrow input {
    text-align: left;
  }
}

/* ── Fragebogen accordion ─────────────────────────────────────────────── */
.akte-fb-meta {
  font-size: 0.78rem;
  color: var(--ink-700, #415952);
  opacity: 0.7;
  margin: -4px 0 12px;
}

.akte-fb-topic {
  border-top: 1px solid var(--surface-300, #e2ece8);
}
.akte-fb-topic:last-child {
  border-bottom: 1px solid var(--surface-300, #e2ece8);
}

.akte-fb-topic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-900, #0f2219);
  user-select: none;
}
.akte-fb-topic-head::-webkit-details-marker { display: none; }

.akte-fb-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--ink-700, #415952);
}
details[open] .akte-fb-chevron {
  transform: rotate(180deg);
}

.akte-fb-topic-body {
  padding-bottom: 4px;
}
.akte-fb-topic-body .akte-row:last-child {
  border-bottom: none;
}

/* ═══════════════════════════════════════════════════════
   TAB "AKTIV" BADGES
   ═══════════════════════════════════════════════════════ */

/* Desktop tab badge */
.dash-tab-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #059669;
  color: #fff;
  border: none;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.6;
}

.dash-tab.active .dash-tab-badge {
  background: rgba(209, 248, 67, 0.25);
  color: #d1f843;
}

.dash-tab-badge--gold {
  background: #a07535;
  color: #fff;
}

.dash-tab.active .dash-tab-badge--gold {
  background: rgba(201, 169, 110, 0.25);
  color: #e2be88;
}

.dash-tab-badge--inactive {
  background: #dc2626;
  color: #fff;
  opacity: 1;
}

.dash-tab.active .dash-tab-badge--inactive {
  background: rgba(220, 38, 38, 0.75);
  color: #fff;
  opacity: 1;
}

/* Mobile bottom nav badge */
.dash-bn-badge {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  margin-top: -1px;
}

.dash-bn-item.active .dash-bn-badge {
  color: #d1f843;
}

.dash-bn-badge--gold {
  color: rgba(201, 169, 110, 0.7);
}

.dash-bn-item.active .dash-bn-badge--gold {
  color: #c9a96e;
}

.dash-bn-badge--inactive {
  color: rgba(255, 255, 255, 0.3);
}

.dash-bn-item.active .dash-bn-badge--inactive {
  color: rgba(209, 248, 67, 0.35);
}

/* ═══════════════════════════════════════════════════════
   LEGACY TAB — UPGRADE SCREEN
   ═══════════════════════════════════════════════════════ */

.legt-upgrade {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Dark hero header */
.legt-upgrade-hero {
  background: linear-gradient(135deg, #0d1a14 0%, #162a1e 60%, #1f3428 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.legt-upgrade-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.legt-upgrade-hero::after {
  content: '✦';
  position: absolute;
  bottom: 24px; right: 28px;
  font-size: 5rem;
  color: rgba(201, 169, 110, 0.06);
  line-height: 1;
  pointer-events: none;
}

.legt-upgrade-hero-inner {
  position: relative;
  z-index: 1;
}

.legt-upgrade-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 8px;
}

.legt-upgrade-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.15;
}

.legt-upgrade-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin: 0 0 1.25rem;
  max-width: 480px;
  line-height: 1.55;
}

.legt-not-booked-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
}

/* Features list */
.legt-upgrade-features {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(20,59,50,0.09);
  border-radius: 20px;
  padding: 1.75rem 2rem;
}

.legt-upgrade-features-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700, #0c3f35);
  margin: 0 0 1.1rem;
}

.legt-upgrade-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legt-upgrade-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-900, #143b32);
  line-height: 1.45;
}

.legt-check {
  color: #c9a96e;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1.45;
}

/* CTA block */
.legt-upgrade-cta-block {
  background: linear-gradient(135deg, #0d1a14 0%, #162a1e 100%);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legt-upgrade-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.legt-upgrade-price-from {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.legt-upgrade-price {
  font-size: 2rem;
  font-weight: 800;
  color: #c9a96e;
  letter-spacing: -0.04em;
  line-height: 1;
}

.legt-upgrade-price-per {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.legt-upgrade-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legt-upgrade-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0 1.5rem;
  min-height: 46px;
  border-radius: 999px;
  border: none;
  background: #c9a96e;
  color: #0d1a14;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.legt-upgrade-btn-primary:hover {
  background: #dbbf84;
  transform: translateY(-2px);
}

.legt-upgrade-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0 1.25rem;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.legt-upgrade-btn-secondary:hover {
  border-color: rgba(201, 169, 110, 0.5);
  color: #c9a96e;
}

/* ═══════════════════════════════════════════════════════
   LEGACY TAB — FULL CONTENT
   ═══════════════════════════════════════════════════════ */

.legt-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Welcome card */
.legt-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(125deg, #0d1a14 0%, #1a2a1c 60%, #243520 100%);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.legt-welcome::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.legt-welcome-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 6px;
}

.legt-welcome-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 6px;
}

.legt-welcome-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.legt-phase-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.legt-phase-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c9a96e;
  color: #0d1a14;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.legt-phase-label {
  font-size: 13px;
  font-weight: 600;
  color: #f5f0e8;
}
.legt-phase-next {
  font-size: 11px;
  color: rgba(245,240,232,.5);
}

.legt-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c9a96e;
  white-space: nowrap;
  flex-shrink: 0;
}

.legt-active-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #c9a96e;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .legt-upgrade-cta-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .legt-upgrade-btns {
    width: 100%;
  }

  .legt-upgrade-btn-primary,
  .legt-upgrade-btn-secondary {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .legt-upgrade-hero {
    padding: 1.75rem 1.25rem;
  }

  .legt-upgrade-title {
    font-size: 1.35rem;
  }

  .legt-welcome {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Legacy Tages-Status-Karte ───────────────────────────── */
.legt-day-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 20px 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
.legt-day-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.legt-day-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: #0e1e18;
}
.legt-day-date {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}
.legt-day-section {
  padding: 0 0 16px;
}
.legt-day-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #0c3f35;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.legt-day-divider {
  height: 1px;
  background: rgba(0,0,0,.06);
  margin-bottom: 16px;
}

/* Kalorienbalken */
.legt-kcal-nums {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
}
.legt-kcal-consumed {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  margin-right: 2px;
}
.legt-kcal-sep {
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
}
.legt-kcal-remain {
  font-size: 12px;
  color: #b0bec5;
  margin-left: 4px;
}
.legt-kcal-burn {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  margin-left: 4px;
}
.legt-kcal-bar-wrap {
  height: 7px;
  background: #f0f2ee;
  border-radius: 99px;
  overflow: hidden;
}
.legt-kcal-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: #059669;
  transition: width .4s ease;
  min-width: 3px;
}

/* Mahlzeiten-Checkboxen */
.legt-meal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: opacity .15s;
  user-select: none;
}
.legt-meal-row:last-child { border-bottom: none; }
.legt-meal-row.is-checked { opacity: .4; }
.legt-meal-check { position: relative; flex-shrink: 0; }
.legt-meal-cb,
.legt-custom-cb {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.legt-meal-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  transition: background .13s, border-color .13s;
}
.legt-meal-cb:checked ~ .legt-meal-checkmark,
.legt-custom-cb:checked ~ .legt-meal-checkmark {
  background: #0c3f35;
  border-color: #0c3f35;
}
.legt-meal-cb:checked ~ .legt-meal-checkmark::after,
.legt-custom-cb:checked ~ .legt-meal-checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  display: block;
  margin-top: -2px;
}
.legt-meal-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.legt-meal-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #b0bec5;
}
.legt-meal-title {
  font-size: 13px;
  font-weight: 600;
  color: #0e1e18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legt-meal-kcal {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Hinweise & CTA-Buttons */
.legt-day-hint {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 10px;
}
.legt-day-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0c3f35;
  text-decoration: none;
  padding: 8px 14px;
  border: 1.5px solid rgba(12, 63, 53,.2);
  border-radius: 10px;
  background: rgba(12, 63, 53,.05);
  transition: background .13s, border-color .13s;
}
.legt-day-cta:hover {
  background: rgba(12, 63, 53,.1);
  border-color: rgba(12, 63, 53,.35);
}

/* Manuelles Kalorien-Input */
.legt-meals-divider {
  height: 1px;
  background: rgba(0,0,0,.06);
  margin: 4px 0;
}
.legt-custom-del-btn {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: none; border: none;
  color: #c0c9c4; font-size: .75rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.legt-custom-del-btn:hover { background: rgba(220,38,38,.1); color: #dc2626; }
.legt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}
.legt-add-meal-wrap { margin-top: 8px; }
.legt-add-meal-btn {
  font-family: inherit; font-size: .75rem; font-weight: 700;
  color: #0c3f35; background: none; border: none;
  padding: 4px 0; cursor: pointer; opacity: .7;
  transition: opacity .12s;
}
.legt-add-meal-btn:hover { opacity: 1; }
.legt-add-meal-form {
  display: none;
  align-items: center; gap: 6px;
  margin-top: 6px;
}
.legt-add-meal-cancel {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.06); border: none; font-size: .7rem;
  color: #9ca3af; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.legt-add-meal-cancel:hover { background: rgba(220,38,38,.1); color: #dc2626; }
.legt-manual-kcal { margin-top: 14px; }
.legt-manual-label {
  font-size: 12px;
  color: #b0bec5;
  margin-bottom: 8px;
}
.legt-manual-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.legt-manual-input {
  width: 110px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0e1e18;
  outline: none;
  transition: border-color .13s;
  font-family: inherit;
}
.legt-manual-input:focus { border-color: #0c3f35; }
.legt-manual-unit {
  font-size: 13px;
  color: #9ca3af;
}
.legt-manual-save {
  padding: 8px 16px;
  border-radius: 10px;
  background: #0c3f35;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .13s;
}
.legt-manual-save:hover { opacity: .85; }

/* Workout-Karte */
.legt-workout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f7f9f7;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
}
.legt-workout-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.legt-workout-name {
  font-size: 14px;
  font-weight: 600;
  color: #0e1e18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.legt-workout-meta {
  font-size: 12px;
  color: #9ca3af;
}
.legt-day-cta-sm {
  font-size: 12px;
  font-weight: 600;
  color: #0c3f35;
  text-decoration: none;
  flex-shrink: 0;
}
.legt-workout-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.legt-done-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(12, 63, 53,.2);
  background: rgba(12, 63, 53,.05);
  color: #5f756d;
  cursor: pointer;
  transition: background .13s, border-color .13s, color .13s;
  white-space: nowrap;
}
.legt-done-btn:hover {
  background: rgba(12, 63, 53,.1);
  border-color: rgba(12, 63, 53,.35);
  color: #0c3f35;
}
.legt-done-btn.done {
  background: rgba(12, 63, 53,.12);
  border-color: #0c3f35;
  color: #0c3f35;
}

/* Workout-Card: Expand-Toggle */
.legt-workout-card {
  flex-direction: column;
  align-items: stretch;
  cursor: default;
}
.legt-workout-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.legt-workout-toggle {
  width: 100%; background: none; border: none; border-top: 1px solid rgba(12, 63, 53,.08);
  margin-top: 10px; padding: 8px 0 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: inherit; font-size: 11px; font-weight: 700; color: #0c3f35;
  cursor: pointer; transition: color .13s;
}
.legt-workout-toggle svg { transition: transform .2s; flex-shrink: 0; }
.legt-workout-toggle.open svg { transform: rotate(180deg); }
.legt-workout-exercises { display: none; padding-top: 10px; }
.legt-workout-exercises.open { display: block; }
.legt-workout-ex-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,.04);
  font-size: 12px;
}
.legt-workout-ex-row:last-child { border-bottom: none; }
.legt-workout-ex-num {
  width: 18px; height: 18px; border-radius: 5px;
  background: #0c3f35; color: #d1f843;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900; flex-shrink: 0;
}
.legt-workout-ex-name { flex: 1; font-weight: 600; color: #0e1e18; }
.legt-workout-ex-sets {
  font-size: 11px; font-weight: 700; color: #0c3f35;
  background: rgba(12, 63, 53,.09); padding: 2px 7px; border-radius: 5px; white-space: nowrap;
}
.legt-workout-group-title {
  font-size: 10px; font-weight: 900; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .05em; margin: 8px 0 4px;
}
.legt-workout-group-title:first-child { margin-top: 0; }

.bal-workout-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.bal-workout-label {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

/* ── Kalorien-Tracker Widget (konto.html) ─────────────────── */
.tr-widget {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 16px; margin: 1rem 0 16px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  text-decoration: none; color: #0e1e18;
  transition: box-shadow .15s, transform .15s;
}
.tr-widget:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-1px); }
.tr-widget-left { display: flex; align-items: center; gap: 12px; }
.tr-widget-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: #0c3f35; color: #d1f843;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tr-widget-title { font-size: .82rem; font-weight: 700; color: #0e1e18; }
.tr-widget-sub { font-size: .68rem; color: #8aab9e; font-weight: 500; margin-top: 2px; }
.tr-widget-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.tr-widget-bar-wrap { width: 80px; height: 6px; background: rgba(20,59,50,.1); border-radius: 999px; overflow: hidden; }
.tr-widget-bar { height: 100%; background: #0c3f35; border-radius: 999px; width: 0%; transition: width .4s; }
.tr-widget-kcal { font-size: .75rem; font-weight: 800; color: #0c3f35; }

/* ── Address Autocomplete ──────────────────────────────────────────────── */
.addr-autocomplete-wrap { position: relative; }
.addr-search-input {
  width: 100%; padding: .62rem .9rem;
  border: 1.5px solid #e0e8e4; border-radius: 10px;
  font-size: .92rem; color: #0e1e18; background: #f2f4f0;
  outline: none; transition: border-color .15s;
}
.addr-search-input:focus { border-color: #0c3f35; background: #fff; }
.addr-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1.5px solid #e0e8e4; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(12, 63, 53,.12);
  list-style: none; margin: 0; padding: 4px 0;
  z-index: 200; max-height: 220px; overflow-y: auto;
}
.addr-suggestions li {
  padding: .6rem 1rem; font-size: .84rem; color: #0e1e18;
  cursor: pointer; transition: background .12s; line-height: 1.35;
}
.addr-suggestions li:hover { background: #eef4f1; }
.addr-suggestions li span { display: block; font-size: .72rem; color: #8aab9e; margin-top: 1px; }
.addr-search-hint {
  font-size: .72rem; color: #8aab9e; margin-top: 4px; margin-bottom: 4px;
}

/* ── Workout-Picker Modal ──────────────────────────────── */
.wk-pick-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  display: flex; align-items: flex-end; justify-content: center;
}
.wk-pick-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 560px;
  padding: 24px 20px 32px;
  max-height: 82vh;
  display: flex; flex-direction: column;
  animation: wkPickSlideUp .2s ease;
}
@keyframes wkPickSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.wk-pick-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.wk-pick-title { font-size: 15px; font-weight: 800; color: #1a1a1a; }
.wk-pick-close {
  background: none; border: none; font-size: 16px;
  color: #9ca3af; cursor: pointer; padding: 4px 8px;
  border-radius: 8px; transition: background .12s;
}
.wk-pick-close:hover { background: rgba(0,0,0,.06); }
.wk-pick-hint { font-size: 12px; color: #9ca3af; margin-bottom: 14px; }
.wk-pick-list {
  overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 4px;
}
.wk-pick-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 12px;
  cursor: pointer; transition: border-color .13s, background .13s;
}
.wk-pick-item input[type="checkbox"] { display: none; }
.wk-pick-item:has(input:checked) {
  border-color: #0c3f35;
  background: rgba(12, 63, 53,.05);
}
.wk-pick-info { flex: 1; }
.wk-pick-name { display: block; font-size: 14px; font-weight: 700; color: #1a1a1a; }
.wk-pick-meta { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; }
.wk-pick-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: #e5e7eb; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .13s, color .13s;
  color: transparent;
}
.wk-pick-item:has(input:checked) .wk-pick-check {
  background: #0c3f35; color: #fff;
}
.wk-pick-empty { font-size: 13px; color: #9ca3af; font-style: italic; text-align: center; padding: 20px 0; }
.wk-pick-footer {
  padding-top: 14px; border-top: 1px solid #f0f0f0; margin-top: 8px;
}
.wk-pick-confirm { width: 100%; justify-content: center; }
.wk-pick-confirm:disabled { opacity: .45; cursor: not-allowed; }

.legt-bew-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #0c3f35;
  text-decoration: none;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   BALANCE TAB – Farbliches Angleichen an balance.html
   (Grün #0c3f35 + Lime #d1f843)
   ============================================================ */

/* Workout-/Tagesplan-Cards */
#tabBalance .bal-workout-card {
  background: #eaf4f1;
  border: 1px solid rgba(12, 63, 53,0.22);
  box-shadow: 0 2px 10px rgba(12, 63, 53,0.10);
}
#tabBalance .bal-workout-label {
  color: #0c3f35;
}

/* Kalorien-Tracker Widget */
#tabBalance .tr-widget {
  background: #eaf4f1;
  border: 1px solid rgba(12, 63, 53,0.22);
  box-shadow: 0 2px 10px rgba(12, 63, 53,0.10);
}

/* Feature Tiles – individuelle Farbverläufe */
#tabBalance .bal-tile.rezept {
  background: linear-gradient(135deg, rgba(22,163,74,0.12) 0%, rgba(4,120,87,0.22) 100%);
  border: 1px solid rgba(22,163,74,0.22);
}
#tabBalance .bal-tile.bewegung {
  background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, rgba(6,182,212,0.22) 100%);
  border: 1px solid rgba(37,99,235,0.18);
}
#tabBalance .bal-tile.rat {
  background: linear-gradient(135deg, rgba(217,119,6,0.12) 0%, rgba(245,158,11,0.22) 100%);
  border: 1px solid rgba(217,119,6,0.18);
}
#tabBalance .bal-tile:hover {
  box-shadow: 0 4px 20px rgba(12, 63, 53, 0.18);
  filter: brightness(1.04);
}

/* Feature Tile Icons – jeweilige Farbe */
#tabBalance .bal-tile-icon--recipes { background: rgba(22,163,74,0.15); color: #16a34a; }
#tabBalance .bal-tile-icon--move    { background: rgba(37,99,235,0.15); color: #2563eb; }
#tabBalance .bal-tile-icon--guide   { background: rgba(217,119,6,0.15); color: #d97706; }

/* Chat-Card */
#tabBalance .bal-chat-card {
  background: #eaf4f1;
  border: 1px solid rgba(12, 63, 53,0.25);
  box-shadow: 0 2px 12px rgba(12, 63, 53,0.10);
}
#tabBalance .bal-chat-header {
  background: rgba(12, 63, 53, 0.12);
  border-bottom-color: rgba(12, 63, 53,0.20);
}
#tabBalance .bal-chat-title        { color: #0c3f35; }
#tabBalance .bal-chat-availability { color: #0c3f35; }
#tabBalance .bal-online-dot        { background: #0c3f35; }

#tabBalance .bal-msg--support .bal-msg-bubble {
  background: rgba(12, 63, 53,0.10);
  border-color: rgba(12, 63, 53,0.22);
  color: #0e1e18;
}
#tabBalance .bal-msg--user .bal-msg-bubble {
  background: #0c3f35;
  color: #ffffff;
}
#tabBalance .bal-chat-input-row {
  background: #eaf4f1;
  border-top-color: rgba(12, 63, 53,0.18);
}
#tabBalance .bal-chat-input {
  background: rgba(12, 63, 53,0.08);
  border-color: rgba(12, 63, 53,0.22);
  color: #0e1e18;
}
#tabBalance .bal-chat-input:focus        { border-color: rgba(12, 63, 53,0.55); }
#tabBalance .bal-chat-input::placeholder { color: #5f756d; }
#tabBalance .bal-chat-send               { background: #0c3f35; color: #fff; }

/* ============================================================
   LEGACY UPGRADE-SCREEN – Features-Karte dunkel-gold
   ============================================================ */

.legt-upgrade-features {
  background: #0d1a14;
  border: 1px solid rgba(201, 169, 110, 0.22);
}
.legt-upgrade-features-title {
  color: #c9a96e;
}
.legt-upgrade-list li {
  color: rgba(245, 240, 232, 0.80);
}

/* ============================================================
   LEGACY AKTIV-CONTENT – Alle Elemente dunkel + gold
   ============================================================ */

/* Kalorien-Tracker Widget */
#tabLegacy .tr-widget {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 169, 110, 0.28);
  box-shadow: none;
  color: #f5f0e8;
}
#tabLegacy .tr-widget-icon { background: rgba(201,169,110,0.18); color: #c9a96e; }
#tabLegacy .tr-widget-title { color: #f5f0e8; }
#tabLegacy .tr-widget-sub  { color: rgba(245,240,232,0.45); }
#tabLegacy .tr-widget-bar { background: #c9a96e; }
#tabLegacy .tr-widget-kcal { color: #c9a96e; }
#tabLegacy .tr-widget-bar-wrap { background: rgba(255,255,255,0.08); }

/* Feature Tiles – Farbverläufe auf dunklem Hintergrund */
#tabLegacy .bal-tile.rezept {
  background: var(--green-900);
  border-color: rgba(0, 0, 0, 0.18);
}
#tabLegacy .bal-tile.bewegung {
  background: #004379;
  border-color: rgba(0, 0, 0, 0.18);
}
#tabLegacy .bal-tile.rat {
  background: #ff9800;
  border-color: rgba(0, 0, 0, 0.15);
}
#tabLegacy .bal-tile.legt-community {
  background: var(--lime-400);
  border-color: rgba(0, 0, 0, 0.15);
}
#tabLegacy .bal-tile--coach {
  background: #f44336;
  border-color: rgba(0, 0, 0, 0.18);
}
/* Helle Kacheln (Orange/Lime): Schrift, Pfeil & Icon dunkel für Lesbarkeit */
#tabLegacy .bal-tile.rat .bal-tile-body h3,
#tabLegacy .bal-tile.legt-community .bal-tile-body h3 { color: #0d1a14; }
#tabLegacy .bal-tile.rat .bal-tile-body p,
#tabLegacy .bal-tile.legt-community .bal-tile-body p  { color: rgba(13,26,20,0.70); }
#tabLegacy .bal-tile.rat .bal-tile-arrow,
#tabLegacy .bal-tile.legt-community .bal-tile-arrow   { color: #0d1a14; opacity: 0.6; }
#tabLegacy .bal-tile.rat .bal-tile-icon,
#tabLegacy .bal-tile.legt-community .bal-tile-icon    { background: rgba(0,0,0,0.14); color: #0d1a14; }
#tabLegacy .bal-tile--coach .bal-tile-icon--coach {
  background: rgba(201, 169, 110, 0.30);
}
#tabLegacy .bal-tile:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.legt-content .bal-tile-icon--recipes {
  background: rgba(22, 163, 74, 0.28);
  color: #4ade80;
}
.legt-content .bal-tile-icon--move {
  background: rgba(37, 99, 235, 0.28);
  color: #60a5fa;
}
.legt-content .bal-tile-icon--guide {
  background: rgba(217, 119, 6, 0.28);
  color: #fbbf24;
}
.legt-content .bal-tile-body h3 { color: #f5f0e8; }
.legt-content .bal-tile-body p  { color: rgba(245,240,232,0.55); }
.legt-content .bal-tile-arrow   { color: #c9a96e; opacity: 0.6; }

/* Tageskarte */
.legt-content .legt-day-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 169, 110, 0.22);
  box-shadow: none;
}
.legt-content .legt-day-eyebrow    { color: #c9a96e; }
.legt-content .legt-day-date       { color: rgba(245,240,232,0.55); }
.legt-content .legt-day-section-label { color: #c9a96e; }
.legt-content .legt-day-divider    { background: rgba(255,255,255,0.07); }

/* Kalorienbalken */
.legt-content .legt-kcal-nums     { color: rgba(245,240,232,0.65); }
.legt-content .legt-kcal-consumed { color: #f5f0e8; }
.legt-content .legt-kcal-sep,
.legt-content .legt-kcal-remain   { color: rgba(245,240,232,0.55); }
.legt-content .legt-kcal-burn     { color: #c9a96e; }
.legt-content .legt-kcal-bar-wrap { background: rgba(255,255,255,0.08); }
.legt-content .legt-kcal-bar-fill { background: #c9a96e; }

/* Mahlzeiten-Zeilen */
.legt-content .legt-meal-row    { border-bottom-color: rgba(255,255,255,0.06); }
.legt-content .legt-meal-title  { color: #f5f0e8; }
.legt-content .legt-meal-type   { color: rgba(201,169,110,0.6); }
.legt-content .legt-meal-kcal   { color: rgba(245,240,232,0.55); }
.legt-content .legt-meal-cb:checked ~ .legt-meal-checkmark,
.legt-content .legt-custom-cb:checked ~ .legt-meal-checkmark {
  background: #c9a96e;
  border-color: #c9a96e;
}

/* Workout-Karte und Übungen */
.legt-content .legt-day-hint     { color: rgba(245,240,232,0.65); }
.legt-content .legt-workout-card {
  background: rgba(201,169,110,0.13);
  border-color: rgba(201,169,110,0.30);
}
.legt-content .legt-workout-name { color: #f5f0e8; }
.legt-content .legt-workout-meta { color: rgba(245,240,232,0.60); }
.legt-content .legt-workout-group-title { color: rgba(201,169,110,0.70); }
.legt-content .legt-day-cta      { color:#c9a96e; border-color:rgba(201,169,110,0.40); background:rgba(201,169,110,0.16); }
.legt-content .legt-day-cta:hover{ background:rgba(201,169,110,0.26); border-color:rgba(201,169,110,0.58); }
.legt-content .legt-workout-ex-num  { background: #c9a96e; color: #0d1a14; }
.legt-content .legt-workout-ex-name { color: #f5f0e8; }
.legt-content .legt-workout-ex-sets { color:#c9a96e; background:rgba(201,169,110,0.10); }
.legt-content .legt-done-btn         { border-color:rgba(201,169,110,0.50); background:rgba(201,169,110,0.22); color:#f5f0e8; }
.legt-content .legt-done-btn:hover   { background:rgba(201,169,110,0.24); color:#c9a96e; border-color:rgba(201,169,110,0.55); }
.legt-content .legt-done-btn.done    { background:rgba(201,169,110,0.22); border-color:#c9a96e; color:#c9a96e; }
.legt-content .legt-workout-toggle   { color:#c9a96e; border-top-color:rgba(201,169,110,0.12); }
.legt-content .legt-bew-link         { color:#c9a96e; }

/* Chat-Card */
.legt-content .bal-chat-card    { background:rgba(255,255,255,0.07); border-color:rgba(201,169,110,0.32); }
.legt-content .bal-chat-header  { background:rgba(13,26,20,0.95); border-bottom-color:rgba(201,169,110,0.14); }
.legt-content .bal-chat-title   { color:#f5f0e8; }
.legt-content .bal-chat-availability { color:rgba(245,240,232,0.45); }
.legt-content .bal-online-dot   { background:#c9a96e; }
.legt-content .bal-msg--support .bal-msg-bubble { background:rgba(255,255,255,0.05); border-color:rgba(201,169,110,0.15); color:#f5f0e8; }
.legt-content .bal-msg--user .bal-msg-bubble    { background:rgba(201,169,110,0.22); border:1px solid rgba(201,169,110,0.45); color:#f5f0e8; border-bottom-right-radius:4px; }
.legt-content .bal-chat-input-row { background:rgba(13,26,20,0.95); border-top-color:rgba(201,169,110,0.10); }
.legt-content .bal-chat-input   { background:rgba(255,255,255,0.05); border-color:rgba(255,255,255,0.10); color:#f5f0e8; }
.legt-content .bal-chat-input:focus { border-color:rgba(201,169,110,0.45); }
.legt-content .bal-chat-input::placeholder { color:rgba(245,240,232,0.30); }
.legt-content .bal-chat-send    { background:#c9a96e; color:#0d1a14; }
.bal-tile-icon--coach { background: rgba(201,169,110,0.15); }
.bal-tile-icon--coach svg { stroke: #c9a96e; }

/* Coach-Tab – eigene Vollbild-Seite, Nachrichtenbereich scrollt intern.
   .coach-page (= .legt-content, display:flex column) bekommt die verfügbare
   Höhe; der Zurück-Button nimmt seine natürliche Höhe, die Card flext in den Rest. */
#tabCoach .coach-page { gap: 12px; height: calc(100vh - 64px - 7.5rem); } /* Header 64px + .dash-main padding (2.5rem + 5rem) */
.coach-back {
  align-self: flex-start; background: none; border: none; cursor: pointer;
  color: #c9a96e; font-size: .85rem; padding: 4px 0;
}
.coach-back:hover { opacity: .75; }
#tabCoach .bal-chat-card {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; /* füllt den Platz unter dem Zurück-Button */
}
#tabCoach .bal-chat-messages {
  flex: 1; min-height: 0; max-height: none; overflow-y: auto; /* min-height:0 → internes Scrollen */
}
@media (max-width: 768px) {
  #tabCoach .coach-page { height: calc(100vh - 56px - 7.25rem); } /* Header 56px + padding (1.25rem + 6rem) */
}
.legt-bew-link:hover { opacity: .75; }

/* ============================================================
   LEGACY-WELT – Gesamte Seite dunkel (body.legacy-active)
   ============================================================ */

body.legacy-active {
  /* Gleicher Farbverlauf/Style wie .leg-hero der Homepage (legacy-programm.css) */
  background:
    radial-gradient(ellipse at 85% 15%, rgba(201,169,110,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 88%, rgba(12, 63, 53,0.22) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 50%, rgba(12, 63, 53,0.35) 0%, transparent 72%),
    #080f0d;                 /* = --legacy-dark */
  background-attachment: fixed;
}

/* Header bleibt hell */
body.legacy-active .dash-header {
  background: rgba(242, 244, 238, 0.96);
  border-bottom-color: rgba(201, 169, 110, 0.18);
}

/* Panel selbst braucht keinen eigenen Hintergrund mehr */
#tabLegacy {
  background: transparent;
}

/* ============================================================
   LEGACY-WELT – Aktiver Nav-Tab-Button (Dark-Gold statt Generic-Grün)
   ============================================================ */

/* Desktop */
.dash-tab[data-tab="legacy"].active {
  background: #0d1a14;
  color: #e2be88;
  box-shadow: inset 0 0 0 1.5px rgba(201,169,110,0.45);
}
.dash-tab[data-tab="legacy"].active .dash-tab-badge--gold {
  background: rgba(201,169,110,0.20);
  color: #e2be88;
}

/* Mobile Bottom-Nav */
.dash-bn-item[data-tab="legacy"].active {
  color: #c9a96e;
}
.dash-bn-item[data-tab="legacy"].active svg {
  color: #c9a96e;
}
.dash-bn-item[data-tab="legacy"].active::after {
  background: #c9a96e;
}
.dash-bn-item[data-tab="legacy"].active .dash-bn-badge--gold {
  color: #c9a96e;
}

/* ── Gewichtspanel: Ziel-Anpassen-Button + Warn-Box ─────────────────────── */
.wp-goal-set {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--ink-700, #5f756d);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  margin-top: 0.2rem;
  line-height: 1.3;
}
.wp-goal-set:hover { color: var(--green-700, #0c3f35); }
body.legacy-active .wp-goal-set { color: #c9a96e; }

.wp-warn {
  background: #fef3c7;
  color: #92400e;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 0.5rem;
}
body.legacy-active .wp-warn { background: #3a2a00; color: #fcd34d; }
