/* ==========================================================
   LEBENSGEFÜHL — v6
   Minimal · Helvetica · Schwarz · Weißraum
   ========================================================== */

:root {
  --bg:           #FFFFFF;
  --bg-soft:      #FAFAFA;

  --ink:          #000000;
  --ink-soft:     #1A1A1A;
  --ink-mid:      #6B6B6B;
  --ink-light:    #9E9E9E;
  --ink-faint:    #D4D4D4;
  --line:         #EAEAEA;
  --line-soft:    #F0F0F0;

  --status-ok:    #1F1F1F;  /* neutral, kein farbiger Akzent — Status durch Typografie */
  --status-warn:  #8C7A4F;  /* sehr gedämpftes Bronze nur für Warnungen */
  --status-bad:  #7A4A3F;   /* sehr gedämpftes Burgund nur für hohe Werte */

  --font: Helvetica, 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ink); color: white; }

/* TYPOGRAFIE — Helvetica, sehr ruhig */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}

h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 400; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 14px; font-weight: 500; }

p { color: var(--ink-soft); }

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input, textarea, select {
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
}

/* LABELS — diskret, ohne Hintergrund */
.label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* ==========================================================
   AUTH-SEITE — ein einziger ruhiger Bildschirm
   ========================================================== */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  padding: 32px;
}

/* Die Hero-Seite wird auf v6 sehr reduziert — kein Split-Screen mehr */
.auth-hero {
  display: none;  /* der zweispaltige Hero entfällt für maximale Ruhe */
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

.auth-form {
  width: 100%;
}

.auth-form .auth-mark {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 80px;
  display: block;
}

.auth-form h1 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.auth-form .auth-lead {
  color: var(--ink-mid);
  margin-bottom: 56px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 340px;
}

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-mid);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.18s;
  border-radius: 0;
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field input::placeholder { color: var(--ink-light); }

/* BUTTONS — flach, scharf, ohne Schmuck */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  letter-spacing: 0.04em;
}
.btn:hover { background: #2a2a2a; }
.btn.solid { background: var(--ink); color: white; border-color: var(--ink); }
.btn.wide { width: 100%; padding: 16px 28px; }
.btn.small { padding: 10px 18px; font-size: 12px; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: white; }

.auth-toggle {
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-mid);
}
.auth-toggle button {
  color: var(--ink);
  font-weight: 400;
  font-size: 13px;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 1px;
}
.auth-toggle button:hover { color: var(--ink-mid); border-color: var(--ink-mid); }

.error-msg, .success-msg {
  padding: 12px 0;
  font-size: 12px;
  margin-bottom: 24px;
  display: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.error-msg.active, .success-msg.active { display: block; }

/* ==========================================================
   APP-SHELL
   ========================================================== */

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* SIDEBAR — sehr reduziert */
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 40px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 400;
}

.sidebar-tagline {
  font-size: 11px;
  color: var(--ink-light);
  margin-bottom: 64px;
}

.nav-item {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mid);
  margin-bottom: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  transition: color 0.18s;
}
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--ink); font-weight: 500; }

.sidebar-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.user-chip {
  margin-bottom: 16px;
}
.user-chip .name { font-size: 13px; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.user-chip .mail { font-size: 11px; color: var(--ink-light); }
/* Avatar nicht mehr gezeigt — keine farbigen Kreise */
.user-avatar { display: none; }

.logout-btn {
  font-size: 12px;
  color: var(--ink-mid);
  text-align: left;
  width: 100%;
  padding: 4px 0;
  transition: color 0.18s;
}
.logout-btn:hover { color: var(--ink); }

/* MAIN */
.main {
  padding: 64px 80px 120px;
  max-width: 980px;
}

/* HERO HEADER */
.page-hero {
  margin-bottom: 80px;
}
.page-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 24px;
  display: block;
}
.page-hero h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 720px;
}
.page-hero .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.page-hero .date,
.page-hero .meta-right {
  font-size: 12px;
  color: var(--ink-mid);
}

/* SECTIONS */
.section { display: none; }
.section.active { display: block; }

.section-hero { margin-bottom: 56px; }
.section-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 24px;
  display: block;
}
.section-hero h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 720px;
  margin-bottom: 16px;
}
.section-hero .lead {
  font-size: 15px;
  color: var(--ink-mid);
  max-width: 580px;
  line-height: 1.55;
  font-weight: 400;
}

/* BLÖCKE — keine Karten, nur Linien */
.block {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.block:last-child { border-bottom: 1px solid var(--line); }
.block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
}
.block-header h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.block-header .sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* CHECK-IN */
.checkin-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.checkin-row:last-child { border-bottom: none; }
.checkin-row .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.checkin-row .val {
  font-size: 28px;
  font-weight: 400;
  text-align: right;
  color: var(--ink);
  letter-spacing: -0.02em;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1px;
  background: var(--ink-faint);
  outline: none;
  border-radius: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  border: none;
  transition: transform 0.15s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.4); }
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); cursor: pointer; border: none;
}

/* TAGES-EMPFEHLUNG — Pull-Quote-Stil */
.advice {
  padding: 40px 0 40px 32px;
  margin: 0;
  border-left: 1px solid var(--ink);
  max-width: 700px;
}
.advice .eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 18px;
}
.advice .advice-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.advice .advice-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-mid);
}

/* METRIKEN — riesige Zahlen, ohne Karte */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: none; }
.metric .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 16px;
}
.metric .value {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.035em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.metric .value em {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-mid);
  font-weight: 400;
}
.metric .sub {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* BUDGET */
.budget { margin-top: 4px; }
.budget-track {
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: visible;
}
.budget-fill {
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  background: var(--ink);
  transition: width 0.5s var(--ease);
}
.budget-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.budget-meta .status { color: var(--ink); }
.budget-meta .goal { color: var(--ink-mid); }

/* FOOD-LIST */
.food-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  gap: 16px;
}
.food-row:last-child { border-bottom: none; }
.food-row .fr-name {
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
  flex: 1;
  min-width: 0;
}
.food-row .fr-name .fr-meta {
  display: block;
  font-size: 11px;
  color: var(--ink-mid);
  margin-top: 4px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.food-row .fr-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.food-row .fr-score {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  min-width: 36px;
  text-align: right;
}
.food-row .fr-score.mid  { color: var(--status-warn); }
.food-row .fr-score.high { color: var(--status-bad); }
.food-row .fr-del {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink-light);
  background: transparent;
  font-weight: 300;
  line-height: 1;
}
.food-row .fr-del:hover { color: var(--ink); }

.empty-state {
  padding: 28px 0;
  text-align: left;
  color: var(--ink-light);
  font-size: 14px;
  font-style: normal;
}

/* SUCHE */
.search-bar {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}
.search-bar input {
  flex: 1;
  padding: 14px 0;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
}
.search-bar input::placeholder { color: var(--ink-light); }
.search-bar button {
  padding: 0 20px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.search-bar button:hover { color: var(--ink-mid); }

.search-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.search-tab {
  padding: 12px 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: all 0.18s;
}
.search-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.search-tab:hover { color: var(--ink); }

/* OFF-RESULTS */
.off-results { display: flex; flex-direction: column; }
.off-result {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: padding 0.18s var(--ease);
}
.off-result:hover { padding-left: 8px; }
.off-result img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: var(--bg-soft);
  filter: grayscale(1);
}
.off-result .placeholder {
  width: 44px;
  height: 44px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink-mid);
  font-weight: 400;
}
.off-result .info .name { font-size: 14px; color: var(--ink); margin-bottom: 4px; font-weight: 400; }
.off-result .info .why { font-size: 11px; color: var(--ink-mid); }
.off-result .score { text-align: right; }
.off-result .score .num {
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.off-result .score .num.mid  { color: var(--status-warn); }
.off-result .score .num.high { color: var(--status-bad); }
.off-result .score .meta {
  font-size: 10px;
  color: var(--ink-light);
  margin-top: 4px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* CUSTOM FOOD */
.custom-food-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: padding 0.18s var(--ease);
}
.custom-food-row:hover { padding-left: 8px; }
.custom-food-row .star {
  font-size: 14px;
  color: var(--ink-light);
}
.custom-food-row.fav .star { color: var(--ink); }

/* WORKOUT */
.workout-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: padding 0.18s var(--ease);
}
.workout-row:hover { padding-left: 8px; }
.workout-row .wo-name {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.workout-row .wo-num {
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.workout-row .wo-title { font-size: 15px; color: var(--ink); font-weight: 400; }
.workout-row .wo-duration {
  font-size: 14px;
  color: var(--ink-mid);
}
.workout-row .wo-add {
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.workout-row:hover .wo-add { color: var(--ink); }

/* SYMPTOM-CHIPS — flach, ohne Karte */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.symptom-chip {
  background: var(--bg);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: all 0.18s var(--ease);
}
.symptom-chip:nth-child(3n) { border-right: none; }
.symptom-chip:nth-child(n+7) { border-bottom: none; }
.symptom-chip:hover { background: var(--bg-soft); }
.symptom-chip.selected { background: var(--ink); color: white; }
.symptom-chip .title {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 4px;
}
.symptom-chip .sub {
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.1em;
}
.symptom-chip.selected .sub { color: rgba(255,255,255,0.6); }

.severity-track {
  display: flex;
  gap: 4px;
  margin: 20px 0 32px;
}
.severity-dot {
  flex: 1;
  height: 4px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.18s;
}
.severity-dot.active { background: var(--ink); }
.severity-dot.severity-high { background: var(--status-bad); }

/* EVENT-CARD — schwarzes Rechteck, scharfkantig */
.event {
  padding: 48px 40px;
  background: var(--ink);
  color: white;
  position: relative;
}
.event .ec-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
  opacity: 0.6;
  margin-bottom: 20px;
}
.event h3 {
  font-size: 32px;
  font-weight: 400;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.event .ec-date {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 36px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.event-step .num {
  font-size: 12px;
  color: white;
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.event-step .day {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: white;
}
.event-step .desc {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.5;
}

/* CHART */
.chart-wrap {
  position: relative;
  height: 280px;
  margin-top: 20px;
}

/* VERLAUFS-LISTE */
.history-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.history-row .date {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.history-row .vals {
  font-size: 14px;
  color: var(--ink-soft);
}
.history-row .vals em { font-style: normal; font-weight: 400; color: var(--ink); padding: 0 6px; }
.history-row .badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* INSIGHTS */
.insight {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.insight:last-child { border-bottom: none; }
.insight .insight-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 16px;
}
.insight.strong .insight-tag { color: var(--ink); }
.insight h4 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.insight .finding {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.6;
  max-width: 640px;
}
.insight .rec {
  padding-left: 24px;
  border-left: 1px solid var(--ink);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
  max-width: 580px;
}

/* MODAL — flach, ohne Schatten */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fade 0.18s ease;
}
.modal-bg.active { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg);
  padding: 48px;
  width: 100%;
  max-width: 460px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  display: block;
  margin-bottom: 14px;
}
.modal h3 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: -0.022em;
  line-height: 1.15;
}
.modal .modal-lead {
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 32px;
  line-height: 1.55;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  justify-content: flex-end;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1;
}
.modal-close:hover { color: var(--ink); }

/* Felder im Modal */
.modal .field input,
.modal .field select {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  background: transparent;
  border-radius: 0;
  font-size: 15px;
  width: 100%;
}
.modal .field input:focus,
.modal .field select:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  z-index: 200;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s var(--ease);
  pointer-events: none;
  max-width: 360px;
}
.toast.active { opacity: 1; transform: translateY(0); }

/* ATEMÜBUNG */
.breathe-modal { text-align: center; padding: 56px 48px; }
.breathe-circle {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 4s ease-in-out;
}
.breathe-circle.expand { transform: scale(1.35); }

/* SELECT */
select {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23000000' d='M5 6L0 0h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select:focus { outline: none; border-color: var(--ink); }

/* MENGEN-PORTIONS-UI */
.portion-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin: 24px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.portion-preview .pp-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.portion-preview .pp-meta {
  font-size: 11px;
  color: var(--ink-mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.portion-preview .pp-score {
  font-size: 38px;
  font-weight: 300;
  text-align: right;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.portion-preview .pp-score.mid { color: var(--status-warn); }
.portion-preview .pp-score.high { color: var(--status-bad); }
.portion-preview .pp-score-sub {
  font-size: 10px;
  color: var(--ink-mid);
  text-align: right;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.portion-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 12px 0 8px;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.portion-preset {
  padding: 12px 18px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  font-size: 12px;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  letter-spacing: 0.02em;
}
.portion-preset:hover { color: var(--ink); }
.portion-preset.active { background: var(--ink); color: white; border-color: var(--ink); }

.portion-custom-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  align-items: end;
  margin: 24px 0 8px;
}
.portion-custom-row .field { margin-bottom: 0; }
.portion-custom-row input[type="number"] {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  -moz-appearance: textfield;
  transition: border-color 0.2s;
}
.portion-custom-row input[type="number"]:focus {
  border-bottom-color: var(--ink);
}
.portion-custom-row input[type="number"]::-webkit-outer-spin-button,
.portion-custom-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.portion-custom-row select {
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  background: transparent;
  border-radius: 0;
  padding-right: 20px;
  background-position: right 0 center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    padding: 12px 16px;
    z-index: 50;
    border-right: none;
    border-top: 1px solid var(--line);
    background: var(--bg);
    justify-content: space-around;
  }
  .sidebar-brand, .sidebar-tagline, .sidebar-foot { display: none; }
  .nav-item {
    flex: 1;
    padding: 6px 4px;
    font-size: 11px;
    text-align: center;
  }
  .main { padding: 40px 24px 100px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: none; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .symptom-chip { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .symptom-chip:nth-child(3n) { border-right: 1px solid var(--line); }
  .symptom-chip:nth-child(2n) { border-right: none; }
  .symptom-chip:nth-child(n+7) { border-bottom: 1px solid var(--line); }
  .page-hero h1 { font-size: 32px; }
  .section-hero h2 { font-size: 28px; }
  .modal { padding: 32px 24px; }
  .portion-preview { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .portion-preview .pp-score { text-align: left; }
  .portion-preview .pp-score-sub { text-align: left; }
}
