/* ============================================
   Biohacking Supplement Check – Styles
   ============================================ */

:root {
  /* Farben – Longevity Light Theme */
  --bg: #fbfcfa;
  --bg-alt: #f3f5f0;
  --surface: #ffffff;
  --surface-hover: #f7faf5;
  --surface-border: rgba(45, 90, 70, 0.10);
  --text: #1d2420;
  --text-muted: #5a6560;
  --text-dim: #8a948f;
  --accent: #2f8b6a;
  --accent-2: #4a7a8a;
  --accent-gradient: linear-gradient(135deg, #2f8b6a 0%, #4a7a8a 100%);
  --accent-soft: #d8ece2;
  --accent-2-soft: #dbe6ec;
  --danger: #c84a65;
  --warning: #d48a28;
  --success: #2f8b6a;

  /* Evidenz */
  --evidence-high: #2f8b6a;
  --evidence-medium: #d48a28;
  --evidence-low: #c84a65;

  /* Spacings / Radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 20px rgba(45, 90, 70, 0.06);
  --shadow-glow: 0 0 40px rgba(47, 139, 106, 0.06);

  /* Fonts */
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================
   Hintergrund-Effekte
   ============================================ */
.bg-effects {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.08;
}
.bg-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #a8d8c4 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: float 20s ease-in-out infinite;
}
.bg-orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #bcd2dc 0%, transparent 70%);
  top: 30%; right: -150px;
  animation: float 25s ease-in-out infinite reverse;
}
.bg-orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #e8d9b8 0%, transparent 70%);
  bottom: 0; left: 30%; opacity: 0.06;
  animation: float 30s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(80px, 60px); }
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 90, 70, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 90, 70, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 252, 250, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(45, 90, 70, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px; color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(47, 139, 106, 0.08);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
}
.logo-text em {
  font-style: normal; font-size: 11px;
  color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text-muted); font-weight: 500; font-size: 15px;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }
.btn-nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  flex-direction: column; gap: 4px;
}
.btn-nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(10, 163, 148, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(107, 78, 255, 0.25);
  color: #ffffff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid var(--surface-border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-color: rgba(94, 70, 210, 0.25);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; margin-bottom: 28px;
  background: rgba(47, 139, 106, 0.08);
  border: 1px solid rgba(47, 139, 106, 0.22);
  border-radius: 100px;
  font-size: 13px; color: var(--accent);
  font-weight: 500;
}
.pulse-dot {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(34px, 6vw, 64px);
  margin-bottom: 24px;
}
.hero-lead {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-muted);
}
.hero-actions {
  display: flex; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 60px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 50px;
  flex-wrap: wrap; margin-top: 40px;
}
.hero-stats .stat {
  display: flex; flex-direction: column; align-items: center;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats span {
  font-size: 13px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 90px 0;
  position: relative;
}
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(94, 70, 210, 0.05), transparent);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  display: inline-block;
  padding: 6px 14px; margin-bottom: 16px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-muted);
}

/* ============================================
   Empfehlungs-Tool
   ============================================ */
.recommender {
  max-width: 900px; margin: 0 auto;
}
.recommender-input {
  display: flex; gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.input-wrap {
  position: relative; flex: 1; min-width: 280px;
}
.input-icon {
  position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 16px 50px 16px 50px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px; font-family: inherit;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.input-wrap select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234e5574' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 163, 148, 0.18);
}
.input-wrap input::placeholder {
  color: var(--text-dim);
}
.btn-clear {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 25, 50, 0.06);
  border: 0; color: var(--text-muted);
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 18px; line-height: 1;
  display: none; align-items: center; justify-content: center;
}
.input-wrap input:not(:placeholder-shown) ~ .btn-clear {
  display: flex;
}
.quick-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center; margin-bottom: 36px;
}
.chips-label {
  font-size: 13px; color: var(--text-muted);
  margin-right: 4px;
}
.chip {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover, .chip.active {
  background: rgba(10, 163, 148, 0.10);
  border-color: var(--accent);
  color: var(--accent);
}

.recommendation-results {
  margin-top: 40px;
}
.rec-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--surface-border);
}
.rec-header h3 {
  margin: 0; font-size: 22px;
}
.rec-count {
  padding: 4px 12px;
  background: rgba(0, 229, 212, 0.12);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
}
.rec-section {
  margin-bottom: 40px;
}
.rec-section h4 {
  font-size: 15px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.rec-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius);
}

/* ============================================
   Supplement-Grid
   ============================================ */
.filter-bar {
  margin-bottom: 40px;
}
.filter-bar .input-wrap {
  margin-bottom: 18px;
}
.category-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.category-filters .chip {
  font-weight: 500;
}

.supplement-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-border);
  flex-wrap: wrap;
}
.supplement-list-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
  color: var(--text);
}
.supplement-list-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.symptom-hint {
  margin: -16px 0 28px;
  color: var(--text-muted);
}

.supplement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.supplement-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.supplement-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-gradient);
  opacity: 0; transition: opacity 0.25s;
}
.supplement-card:hover {
  background: var(--surface-hover);
  border-color: rgba(0, 229, 212, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.supplement-card:hover::before { opacity: 1; }

.supp-category {
  display: inline-block;
  padding: 4px 10px; margin-bottom: 12px;
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent-2);
  border-radius: 6px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.supp-name {
  font-size: 20px; margin-bottom: 8px;
}
.supp-desc {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 16px; flex: 1;
}
.supp-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(124, 92, 255, 0.1);
}
.evidence {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.evidence-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.evidence-dot.high { background: var(--evidence-high); box-shadow: 0 0 8px var(--evidence-high); }
.evidence-dot.medium { background: var(--evidence-medium); box-shadow: 0 0 8px var(--evidence-medium); }
.evidence-dot.low { background: var(--evidence-low); box-shadow: 0 0 8px var(--evidence-low); }

.supp-arrow {
  color: var(--accent); font-size: 18px;
  transition: transform 0.2s;
}
.supplement-card:hover .supp-arrow {
  transform: translateX(4px);
}

.no-results {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

/* ============================================
   Tipps-Grid
   ============================================ */
.tips-filter {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.tip-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.tip-card::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(0, 229, 212, 0.1), transparent 70%);
  border-radius: 50%;
  transition: transform 0.3s;
}
.tip-card:hover {
  border-color: rgba(0, 229, 212, 0.35);
  transform: translateY(-3px);
}
.tip-card:hover::before { transform: scale(1.5); }

.tip-icon {
  font-size: 32px; margin-bottom: 16px;
  display: block;
}
.tip-category {
  font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; margin-bottom: 10px;
}
.tip-title {
  font-size: 19px; margin-bottom: 12px;
}
.tip-desc {
  color: var(--text-muted); font-size: 15px;
  margin-bottom: 16px;
}
.tip-how {
  background: rgba(124, 92, 255, 0.08);
  border-left: 3px solid var(--accent-2);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}
.tip-how strong { color: var(--accent-2); }

/* ============================================
   Über-Grid
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.about-card h3 {
  font-size: 18px; margin-bottom: 10px;
  color: var(--accent);
}
.about-card p {
  font-size: 14px; color: var(--text-muted);
  margin: 0 0 10px;
}
.about-card p:last-child { margin-bottom: 0; }
.about-card--warning {
  background: rgba(226, 63, 102, 0.05);
  border-color: rgba(226, 63, 102, 0.22);
}
.about-card--warning h3 { color: var(--danger); }
.about-card--warning p { color: var(--text); }

/* ============================================
   Modal (Supplement-Detail)
   ============================================ */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.hidden { display: none; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(20, 25, 50, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
.modal-content {
  position: relative;
  max-width: 800px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  animation: slideUp 0.3s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 22px; line-height: 1;
  display: grid; place-items: center;
  z-index: 2;
}
.modal-close:hover {
  background: rgba(255, 107, 138, 0.15);
  color: var(--danger);
}

.modal-body .supp-category { font-size: 12px; }
.modal-body h2 {
  font-size: 32px; margin: 0 0 10px;
}
.modal-body .alt-names {
  color: var(--text-muted); font-size: 14px;
  margin-bottom: 20px;
}
.modal-body .lead {
  font-size: 17px; color: var(--text-muted);
  margin-bottom: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.detail-block {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--surface-border);
}
.detail-block h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 600;
}
.detail-block p {
  font-size: 15px; margin: 0 0 8px;
}
.detail-block .note {
  font-size: 13px; color: var(--text-muted);
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(124, 92, 255, 0.1);
}

.benefits-risks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.benefits-box, .risks-box {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--surface-border);
}
.benefits-box { border-left: 3px solid var(--success); }
.risks-box { border-left: 3px solid var(--warning); }
.benefits-box h4, .risks-box h4 {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.benefits-box h4 { color: var(--success); }
.risks-box h4 { color: var(--warning); }
.benefits-box ul, .risks-box ul {
  margin: 0; padding-left: 18px;
  font-size: 14px; color: var(--text-muted);
}
.benefits-box li, .risks-box li {
  margin-bottom: 8px;
}

.combo-section {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--surface-border);
}
.combo-section h4 {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}
.combo-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.combo-chip {
  padding: 6px 12px;
  background: rgba(0, 229, 212, 0.08);
  border: 1px solid rgba(0, 229, 212, 0.25);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.combo-chip:hover {
  background: rgba(0, 229, 212, 0.18);
}
.combo-chip.avoid {
  background: rgba(255, 107, 138, 0.08);
  border-color: rgba(255, 107, 138, 0.25);
  color: var(--danger);
}
.combo-chip.avoid:hover {
  background: rgba(255, 107, 138, 0.15);
}
.combo-chip.readonly {
  cursor: default;
  opacity: 0.7;
}
.combo-chip.readonly:hover {
  background: rgba(0, 229, 212, 0.08);
}
.combo-chip.avoid.readonly:hover {
  background: rgba(255, 107, 138, 0.08);
}

.meta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.meta-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
}
.meta-badge strong { color: var(--text); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--surface-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer p { margin: 0 0 6px; }
.footer-small {
  font-size: 12px;
  color: var(--text-dim);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  /* Mobile: Navigation zugeklappt, Hamburger sichtbar */
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg, #fbfcfa);
    border-bottom: 1px solid var(--surface-border, rgba(45, 90, 70, 0.10));
    padding: 18px 24px;
    gap: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    z-index: 95;
  }
  .main-nav.open a {
    font-size: 16px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(45, 90, 70, 0.06);
  }
  .main-nav.open a:last-child { border-bottom: 0; }
  .btn-nav-toggle { display: flex; }
  /* Hamburger-Animation: drei Striche → X wenn offen */
  .btn-nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .btn-nav-toggle.open span:nth-child(2) { opacity: 0; }
  .btn-nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .btn-nav-toggle span { transition: transform .2s, opacity .15s; }
  .hero { padding: 50px 0 70px; }
  .hero-stats { gap: 30px; }
  .hero-stats strong { font-size: 30px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .recommender-input { flex-direction: column; }
  .recommender-input .btn { width: 100%; justify-content: center; }
  .detail-grid, .benefits-risks { grid-template-columns: 1fr; }
  .modal-content { padding: 28px 22px; max-height: 94vh; }
  .modal-body h2 { font-size: 24px; }
  .supplement-grid, .tips-grid {
    grid-template-columns: 1fr;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.6); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0,229,212,0.5), rgba(124,92,255,0.5));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0,229,212,0.8), rgba(124,92,255,0.8));
}

/* ============================================================
   KI-Assistent (BYOK Gemini)
   ============================================================ */
.ai-assistant {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ai-key-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 24px 26px;
  border: 1px solid rgba(0, 229, 212, 0.18);
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.7), rgba(15, 23, 42, 0.5));
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.ai-key-info h4 {
  margin: 0 0 8px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  color: #e6edf7;
}

.ai-key-info p {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(230, 237, 247, 0.75);
}

.ai-key-info .ai-key-how a {
  color: #00e5d4;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 229, 212, 0.4);
}

.ai-key-info .ai-key-how a:hover { color: #7c5cff; border-bottom-color: rgba(124, 92, 255, 0.5); }

.ai-key-form .input-wrap { margin-bottom: 10px; }
.ai-key-form input {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.03em;
}

.ai-key-form .btn-clear { right: 10px; color: rgba(230, 237, 247, 0.6); font-size: 18px; }

.ai-key-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ai-key-status {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(230, 237, 247, 0.6);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ai-key-status.ok {
  color: #8af5df;
  border-color: rgba(0, 229, 212, 0.3);
  background: rgba(0, 229, 212, 0.08);
}
.ai-key-status.err {
  color: #ff8c9e;
  border-color: rgba(255, 80, 100, 0.3);
  background: rgba(255, 80, 100, 0.08);
}

.ai-chips .chip {
  font-size: 13px;
  padding: 6px 14px;
}

/* Chat */
.ai-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.55), rgba(15, 23, 42, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 260px;
  max-height: 620px;
  overflow-y: auto;
}

.ai-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 90%;
}

.ai-message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: linear-gradient(135deg, rgba(0, 229, 212, 0.25), rgba(124, 92, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-message--user .ai-avatar {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(0, 229, 212, 0.25));
}

.ai-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14.5px;
  line-height: 1.6;
  color: #e6edf7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ai-message--user .ai-bubble {
  background: linear-gradient(135deg, rgba(0, 229, 212, 0.18), rgba(124, 92, 255, 0.18));
  border-color: rgba(0, 229, 212, 0.25);
}

.ai-message--error .ai-bubble {
  border-color: rgba(255, 80, 100, 0.4);
  background: rgba(255, 80, 100, 0.08);
}

.ai-bubble h3, .ai-bubble h4, .ai-bubble h5 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 10px 0 6px 0;
  color: #00e5d4;
}
.ai-bubble h3 { font-size: 17px; }
.ai-bubble h4 { font-size: 15.5px; color: #b8acff; }
.ai-bubble h5 { font-size: 14.5px; color: #e6edf7; }

.ai-bubble p { margin: 0 0 8px 0; }
.ai-bubble p:last-child { margin-bottom: 0; }

.ai-bubble ul, .ai-bubble ol {
  margin: 6px 0 10px 20px;
  padding: 0;
}
.ai-bubble li { margin-bottom: 4px; }

.ai-bubble code {
  background: rgba(0, 229, 212, 0.1);
  color: #9af8e9;
  padding: 1px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.ai-bubble strong { color: #ffffff; }
.ai-bubble em { color: rgba(230, 237, 247, 0.85); font-style: italic; }

/* Typing-Indicator */
.ai-typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 2px 0;
}
.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5d4, #7c5cff);
  animation: ai-blink 1.2s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-blink {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Eingabe-Formular */
.ai-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(11, 16, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e6edf7;
  font: 400 15px/1.55 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-form textarea:focus {
  outline: none;
  border-color: rgba(0, 229, 212, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 229, 212, 0.15);
}

.ai-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ai-form-actions .btn-primary { min-width: 180px; }

#ai-send[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-disclaimer {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(230, 237, 247, 0.6);
  background: rgba(255, 200, 0, 0.05);
  border: 1px solid rgba(255, 200, 0, 0.18);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
  .ai-key-box {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .ai-messages { padding: 16px; }
  .ai-message { max-width: 100%; }
  .ai-form textarea { min-height: 90px; }
  .ai-form-actions { flex-direction: column; }
  .ai-form-actions .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   VIEW-ROUTER & STARTSEITE (3-Kategorien-Relaunch)
   ========================================================= */

.view { padding: 48px 0 80px; }
.view.hidden { display: none !important; }

/* Home-Hero */
#view-home .hero {
  text-align: center;
  padding: 32px 0 20px;
  max-width: 820px;
  margin: 0 auto;
}
#view-home .hero-title { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin-bottom: 16px; }
#view-home .hero-lead { color: var(--text-muted); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* 3 Tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 48px 0;
}
.tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 240px;
}
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  z-index: 0;
}
.tile::after {
  content: "";
  position: absolute; inset: 1px;
  background: var(--surface);
  border-radius: calc(var(--radius-lg) - 1px);
  z-index: 1;
}
.tile > * { position: relative; z-index: 2; }
.tile:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 20px 44px rgba(94, 70, 210, 0.15);
}
.tile:hover::before { opacity: 1; }
.tile-icon {
  font-size: 44px;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 10px rgba(10, 163, 148, 0.18));
}
.tile h2 {
  font-size: 22px;
  margin: 0 0 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tile p { color: var(--text-muted); font-size: 15px; margin: 0 0 18px; flex: 1; }
.tile-cta {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tile { min-height: 0; padding: 24px; }
}

/* View-Header */
.view-head {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-border);
}
.view-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 8px 0 10px;
}
.view-head p { color: var(--text-muted); max-width: 720px; }
.back-link {
  display: inline-flex; align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

/* Key-Badge im Header */
.key-badge {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: rgba(11, 16, 32, 0.6);
  color: var(--text-muted);
  white-space: nowrap;
}
.key-badge--own { color: var(--accent); border-color: rgba(0, 229, 212, 0.35); }
.key-badge--default { color: var(--accent-2); border-color: rgba(124, 92, 255, 0.35); }
.key-badge--none { color: var(--warning); border-color: rgba(255, 182, 72, 0.35); }

/* Nav active */
.main-nav a.active {
  color: var(--accent);
}

/* Chip aktiv */
.chip.chip--active,
.chips-bar .chip.chip--active {
  background: var(--accent-gradient);
  color: #07121a;
  border-color: transparent;
  font-weight: 600;
}

/* Chips Bar */
.chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================================
   Supplement-Detail (Kategorie 1)
   ========================================================= */
.supp-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
  color: inherit;
  display: flex; flex-direction: column; gap: 8px;
}
.supp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 163, 148, 0.4);
  box-shadow: 0 10px 28px rgba(94, 70, 210, 0.12);
}
.supp-card h3 { font-size: 18px; margin: 4px 0 2px; }
.supp-card p { color: var(--text-muted); font-size: 14px; margin: 0; }
.supp-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.supp-cat {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.supp-alt { font-size: 12px; color: var(--text-dim); font-style: italic; }

.ev {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.ev-hoch { background: rgba(63, 224, 160, 0.15); color: var(--evidence-high); border-color: rgba(63, 224, 160, 0.35); }
.ev-mittel { background: rgba(255, 182, 72, 0.15); color: var(--evidence-medium); border-color: rgba(255, 182, 72, 0.35); }
.ev-niedrig { background: rgba(255, 107, 138, 0.15); color: var(--evidence-low); border-color: rgba(255, 107, 138, 0.35); }

.supp-detail {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.supp-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
  transition: border-color .15s, color .15s, background .15s;
}
.supp-detail-back:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(47, 139, 106, 0.06);
}
.supp-detail-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 10px 0 6px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.supp-detail-head .supp-alt { font-size: 14px; margin-bottom: 10px; }
.supp-short { font-size: 17px; color: var(--text); }
.supp-detail section { margin-top: 22px; }
.supp-detail section h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--accent);
}
.supp-detail ul { margin: 0; padding-left: 22px; }
.supp-detail ul li { margin-bottom: 6px; }

.tag {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px 4px 2px 0;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--text);
}
.tag--warn { background: rgba(255, 107, 138, 0.14); border-color: rgba(255, 107, 138, 0.35); color: var(--danger); }

/* KI-Antwort bei Supplement */
.supp-ai {
  background: linear-gradient(135deg, rgba(0, 229, 212, 0.06), rgba(124, 92, 255, 0.06));
  border: 1px solid rgba(0, 229, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 24px;
}
.supp-ai-head h3 {
  margin: 6px 0 0;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.supp-ai-body h3 { color: var(--accent); font-size: 17px; margin-top: 18px; }
.supp-ai-body h4 { color: var(--accent-2); font-size: 15px; margin-top: 14px; }
.supp-ai-body ul { padding-left: 22px; }
.supp-ai-body li { margin-bottom: 4px; }
.supp-ai-loading {
  background: var(--surface);
  border: 1px dashed rgba(0, 229, 212, 0.4);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.supp-ai-error {
  background: rgba(255, 107, 138, 0.08);
  border: 1px solid rgba(255, 107, 138, 0.35);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--danger);
  margin-bottom: 24px;
}
.no-results {
  background: var(--surface);
  border: 1px dashed var(--surface-border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-muted);
}
.no-results .btn { margin-top: 14px; }

/* =========================================================
   Symptom-Ergebnisse (Kategorie 2)
   ========================================================= */
.results-head h3 {
  margin-bottom: 22px;
  font-size: 22px;
}
.results-section { margin-top: 32px; }
.results-section h4 {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--accent);
  border-bottom: 1px solid var(--surface-border);
  padding-bottom: 8px;
}
.results-section.ai-section h4 { color: var(--accent-2); }
.ai-output {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 22px;
  line-height: 1.7;
}
.ai-output h3 { color: var(--accent); margin-top: 18px; font-size: 17px; }
.ai-output h4 { color: var(--accent-2); font-size: 15px; margin-top: 14px; }
.ai-output ul { padding-left: 22px; }
.ai-output li { margin-bottom: 6px; }
.ai-output .err { color: var(--danger); }
.muted { color: var(--text-muted); font-size: 15px; }
.small { font-size: 13px; color: var(--text-muted); }

/* =========================================================
   NEWS (Kategorie 3)
   ========================================================= */
.news-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
#news-topic-chips { gap: 8px; }
.news-status { margin-bottom: 18px; }
.news-status .ok,
.news-status .info,
.news-status .err {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.news-status .ok { background: rgba(31, 178, 123, 0.10); border: 1px solid rgba(31, 178, 123, 0.30); color: #117a54; }
.news-status .info { background: rgba(10, 163, 148, 0.08); border: 1px solid rgba(10, 163, 148, 0.28); color: var(--accent); }
.news-status .err { background: rgba(226, 63, 102, 0.08); border: 1px solid rgba(226, 63, 102, 0.28); color: var(--danger); }
.news-status a { color: inherit; text-decoration: underline; }

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 10px;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 212, 0.4);
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.18);
}
.news-cat {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}
.news-card h3 { font-size: 17px; margin: 0; line-height: 1.35; }
.news-card h3 a { color: var(--text); text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.5; }
.news-src { font-size: 12px; color: var(--text-dim); margin-top: auto; }

.news-sources {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}
.news-sources h4 { font-size: 15px; margin-bottom: 10px; color: var(--text-muted); }
.news-sources ul { margin: 0; padding-left: 22px; }
.news-sources li { margin-bottom: 4px; font-size: 13px; }
.news-sources a { color: var(--accent); }

@media (max-width: 600px) {
  .news-controls { flex-direction: column; align-items: stretch; }
  .news-controls .btn { width: 100%; }
}

/* =========================================================
   About-Karten: Formular drin
   ========================================================= */
.about-card .ai-key-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-card .ai-key-form .input-wrap {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  display: flex; align-items: center;
  padding: 0 8px;
}
.about-card .ai-key-form .input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 10px 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.about-card .ai-key-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.about-card .ai-key-actions .btn { flex: 1; min-width: 140px; padding: 8px 14px; font-size: 14px; }
.ai-key-status .ok { color: var(--success); }
.ai-key-status .info { color: var(--accent); }
.ai-key-status .err { color: var(--danger); }

/* Header Badge - klein halten auf Mobile */
@media (max-width: 700px) {
  .key-badge { display: none; }
  /* main-nav bleibt sichtbar als horizontale Scroll-Liste – Regel aus 768px greift */
}

/* =========================================================
   Home Redesign – 2 große Action-Buttons + News-Preview
   ========================================================= */
.main-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 48px auto 72px;
}
.action-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(45, 90, 70, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.action-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(47, 139, 106, 0.06) 0%, rgba(74, 122, 138, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.action-btn--alt::before {
  background: linear-gradient(135deg, rgba(74, 122, 138, 0.06) 0%, rgba(47, 139, 106, 0.02) 100%);
}
.action-btn > * { position: relative; z-index: 1; }
.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(45, 90, 70, 0.10);
  border-color: rgba(47, 139, 106, 0.35);
  color: var(--text);
}
.action-btn:hover::before { opacity: 1; }

.action-btn-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #ffffff 100%);
  border: 1px solid rgba(47, 139, 106, 0.18);
  border-radius: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.action-btn--alt .action-btn-icon {
  background: linear-gradient(135deg, var(--accent-2-soft) 0%, #ffffff 100%);
  border-color: rgba(74, 122, 138, 0.22);
  color: var(--accent-2);
}

.action-btn-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.action-btn-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.action-btn-arrow {
  font-size: 22px;
  color: var(--accent);
  font-weight: 500;
  transition: transform 0.25s ease;
}
.action-btn--alt .action-btn-arrow { color: var(--accent-2); }
.action-btn:hover .action-btn-arrow { transform: translateX(4px); }

@media (max-width: 760px) {
  .main-actions {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 36px auto 48px;
  }
  .action-btn { padding: 22px 20px; gap: 14px; }
  .action-btn-icon { width: 52px; height: 52px; border-radius: 14px; }
  .action-btn-icon svg { width: 28px; height: 28px; }
  .action-btn-body h2 { font-size: 19px; }
  .action-btn-body p { font-size: 13.5px; }
}

/* News-Preview auf Home */
.news-preview {
  margin: 0 auto 64px;
  max-width: 1180px;
}
.news-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.news-preview-head .eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.news-preview-head h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.news-preview-all {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(47, 139, 106, 0.06);
  border: 1px solid rgba(47, 139, 106, 0.18);
  transition: all 0.2s;
}
.news-preview-all:hover {
  background: rgba(47, 139, 106, 0.12);
  color: var(--accent);
}

.home-news-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.home-news-status.err { color: var(--danger); }

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.home-news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 2px 8px rgba(45, 90, 70, 0.03);
  min-height: 190px;
}
.home-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 139, 106, 0.32);
  box-shadow: 0 12px 28px rgba(45, 90, 70, 0.08);
  color: var(--text);
}
.home-news-card .home-news-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 100px;
}
.home-news-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.005em;
}
.home-news-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-news-card .home-news-src {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(45, 90, 70, 0.08);
}

.home-news-skeleton, .home-news-loading {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(45, 90, 70, 0.18);
  border-radius: 16px;
}
.home-news-error {
  grid-column: 1 / -1;
  padding: 20px;
  text-align: center;
  color: var(--danger);
  background: rgba(200, 74, 101, 0.06);
  border: 1px solid rgba(200, 74, 101, 0.22);
  border-radius: 14px;
}
.home-news-refreshing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 139, 106, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  animation: bhc-pulse 1.4s ease-in-out infinite;
}
@keyframes bhc-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (max-width: 940px) {
  .home-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .home-news-grid { grid-template-columns: 1fr; }
}

/* ============ WEARABLES / PRODUKT-EMPFEHLUNGEN ============ */
.home-products {
  margin-top: 32px;
}
.home-products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.home-products-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  max-width: 560px;
}
.home-products-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.product-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(45, 90, 70, 0.12);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 139, 106, 0.08);
}
.product-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.product-emoji {
  font-size: 32px;
  flex-shrink: 0;
}
.product-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.product-aff {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47, 139, 106, 0.12);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.product-short {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}
.product-list {
  font-size: 13px;
}
.product-list strong {
  display: block;
  color: var(--accent);
  margin-bottom: 2px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.product-list--cons strong {
  color: #b86a7e;
}
.product-list ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.product-list li {
  margin-bottom: 2px;
}
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(45, 90, 70, 0.08);
  font-size: 13px;
}
.product-price {
  color: var(--muted);
  font-weight: 600;
}
.product-code {
  color: var(--text);
  font-size: 12px;
}
.product-code strong {
  color: var(--accent);
  letter-spacing: 0.4px;
}
.product-cta {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 14px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
}
.product-cta:hover { background: #267657; }
.product-cta--disabled {
  background: rgba(45, 90, 70, 0.15);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

/* ============ KI-CACHE-INDIKATOR ============ */
.ai-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ai-refresh-btn {
  background: transparent;
  border: 1px solid var(--surface-border, rgba(45, 90, 70, 0.18));
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.ai-refresh-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(47, 139, 106, 0.06);
}
.ai-meta {
  margin-top: 8px;
  font-size: 12px;
}
.ai-cached {
  color: var(--muted);
  font-style: italic;
}
.ai-fresh {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 620px) {
  .home-products-grid { grid-template-columns: 1fr; }
  .home-products-head { flex-direction: column; align-items: stretch; }
}

/* ============ EXPERIMENTELLES ============ */
.exp-disclaimer {
  background: linear-gradient(180deg, rgba(200, 74, 101, 0.06) 0%, rgba(212, 138, 40, 0.04) 100%);
  border: 1px solid rgba(200, 74, 101, 0.22);
  border-left: 4px solid #c84a65;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--text);
}
.exp-disclaimer strong { display: block; margin-bottom: 8px; font-size: 15px; color: #a63a52; }
.exp-disclaimer ul { margin: 4px 0 0; padding-left: 20px; }
.exp-disclaimer li { margin-bottom: 4px; }

.exp-controls { margin-bottom: 22px; }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}
.exp-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(45, 90, 70, 0.12);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exp-head { display: flex; gap: 14px; align-items: flex-start; }
.exp-emoji { font-size: 36px; line-height: 1; flex-shrink: 0; }
.exp-title h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.exp-alt { font-size: 12px; color: var(--muted); margin-top: 2px; font-style: italic; }
.exp-class {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-top: 4px;
}
.exp-short { font-size: 14px; color: var(--text); margin: 0; line-height: 1.55; }

.exp-section { font-size: 13px; }
.exp-section strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--accent);
}
.exp-section ul { margin: 0; padding-left: 18px; color: var(--muted); }
.exp-section li { margin-bottom: 3px; line-height: 1.45; }
.exp-section--risks strong { color: #c84a65; }
.exp-section--risks ul li { color: #8e3c50; }

.exp-status {
  padding: 8px 12px;
  background: rgba(212, 138, 40, 0.08);
  border-left: 3px solid rgba(212, 138, 40, 0.5);
  border-radius: 4px;
  font-size: 13px;
}
.exp-status strong { color: #b87410; font-weight: 700; }

.exp-sources { font-size: 13px; }
.exp-sources summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 0;
  list-style: none;
}
.exp-sources summary::-webkit-details-marker { display: none; }
.exp-sources summary::before { content: '📚 '; }
.exp-sources[open] summary::before { content: '📖 '; }
.exp-sources ul { margin: 8px 0 0; padding-left: 20px; }
.exp-sources li { margin-bottom: 4px; line-height: 1.4; }
.exp-sources a { word-break: break-word; }

.exp-disclaimer-mini {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(45, 90, 70, 0.08);
  font-style: italic;
}

/* ============ NEWS – BROKEN LINKS ============ */
.news-card.news-broken,
.home-news-card.news-broken {
  opacity: 0.55;
  background: rgba(200, 74, 101, 0.04);
  border-color: rgba(200, 74, 101, 0.18) !important;
}
.news-broken-badge {
  margin-top: 8px;
  font-size: 11px;
  color: #a63a52;
  background: rgba(200, 74, 101, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-block;
}

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

/* ============ EXP-COMMUNITY-LINKS ============ */
.exp-community { font-size: 13px; }
.exp-community summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-2);
  padding: 4px 0;
  list-style: none;
}
.exp-community summary::-webkit-details-marker { display: none; }
.exp-community summary::before { content: '🌐 '; }
.exp-community[open] summary::before { content: '🔽 '; }
.exp-community-note {
  font-size: 12px;
  color: var(--muted);
  background: rgba(200, 74, 101, 0.05);
  padding: 8px 10px;
  border-left: 3px solid rgba(200, 74, 101, 0.3);
  border-radius: 4px;
  margin: 8px 0;
  line-height: 1.5;
}
.exp-community-note strong { color: #a63a52; }
.exp-community ul { margin: 4px 0 0; padding-left: 20px; }
.exp-community li { margin-bottom: 4px; line-height: 1.4; }
.exp-community a { word-break: break-word; color: var(--accent-2); }

/* ============ EXP-DISCLAIMER – KOMPAKT ============ */
.exp-disclaimer--compact {
  background: rgba(200, 74, 101, 0.05);
  border: 1px solid rgba(200, 74, 101, 0.20);
  border-left: 3px solid #c84a65;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text);
}
.exp-disclaimer--compact summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  color: #8e3c50;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.exp-disclaimer--compact summary::-webkit-details-marker { display: none; }
.exp-disclaimer-toggle {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  background: rgba(200, 74, 101, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}
.exp-disclaimer--compact[open] .exp-disclaimer-toggle::after { content: ' (zuklappen)'; }
.exp-disclaimer--compact ul {
  margin: 10px 0 2px;
  padding-left: 20px;
  font-size: 12px;
  color: var(--muted);
}
.exp-disclaimer--compact li { margin-bottom: 4px; line-height: 1.5; }
.exp-disclaimer--compact li strong { color: var(--text); }

/* Override the old prominent disclaimer style for any leftover usage */
.exp-disclaimer:not(.exp-disclaimer--compact) {
  padding: 12px 16px;
  font-size: 13px;
}


/* Sehr schmale Screens (Telefon hochkant) */
@media (max-width: 480px) {
  .header-inner { padding: 10px 14px; }
  .logo-text strong { font-size: 13px; }
  .logo-text em { font-size: 10px; }
  .logo-mark { width: 36px; height: 36px; }
}


/* Header braucht position:relative damit das Dropdown absolut darunter sitzt */
.site-header .header-inner { position: relative; }
.btn-nav-toggle {
  background: transparent;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .15s;
}
.btn-nav-toggle:hover { background: rgba(47, 139, 106, 0.08); }
.btn-nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text, #1d2420); border-radius: 2px; }
.btn-nav-toggle span + span { margin-top: 4px; }

/* ============ TAGESCHECK ============ */
.tagescheck-wrap { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.tagescheck-upload {
  background: rgba(255, 255, 255, 0.75);
  border: 2px dashed rgba(30, 107, 124, 0.30);
  border-radius: 22px;
  padding: 50px 24px;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.tagescheck-upload:hover { border-color: var(--accent); background: rgba(47, 139, 106, 0.04); }
.tagescheck-upload-icon { font-size: 48px; line-height: 1; margin-bottom: 14px; }
.tagescheck-upload h3 { margin: 0 0 8px; font-size: 22px; }
.tagescheck-upload .muted { color: var(--muted); max-width: 480px; margin: 0 auto 20px; font-size: 14px; }
.tagescheck-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.tagescheck-preview {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--surface-border);
}
.tagescheck-preview img { max-width: 340px; width: 100%; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.tagescheck-preview-actions { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.tagescheck-result { background: rgba(255, 255, 255, 0.85); border-radius: 22px; padding: 28px; }
.tagescheck-loading { padding: 40px; text-align: center; color: var(--muted); font-size: 15px; }

.tc-score-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}
.tc-score-circle {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: conic-gradient(var(--score-color) var(--score-deg), rgba(45, 90, 70, 0.10) 0);
  display: grid; place-items: center;
  position: relative;
}
.tc-score-circle::before {
  content: '';
  position: absolute;
  inset: 12px;
  background: var(--bg, #fbfcfa);
  border-radius: 50%;
}
.tc-score-num { position: relative; font-size: 44px; font-weight: 800; color: var(--score-color); font-family: var(--font-display); }
.tc-score-label { position: relative; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: -4px; }

.tc-subscores { display: flex; flex-direction: column; gap: 10px; }
.tc-sub {
  display: grid;
  grid-template-columns: 90px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.tc-sub-label { font-weight: 600; color: var(--text); }
.tc-sub-bar { height: 8px; background: rgba(45, 90, 70, 0.10); border-radius: 999px; overflow: hidden; }
.tc-sub-fill { height: 100%; border-radius: 999px; transition: width .3s ease; }
.tc-sub-val { font-weight: 700; color: var(--text); text-align: right; }

.tc-focus {
  background: linear-gradient(135deg, rgba(47, 139, 106, 0.10) 0%, rgba(212, 138, 40, 0.08) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.tc-focus strong { color: var(--accent); }

.tc-section { margin-top: 24px; }
.tc-section h4 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.tc-section ul { margin: 0; padding-left: 22px; color: var(--text); }
.tc-section li { margin-bottom: 6px; line-height: 1.5; }

.tc-disclaimer {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 90, 70, 0.08);
}
.tc-actions { display: flex; justify-content: center; margin-top: 18px; }

.tagescheck-disclaimer {
  background: rgba(212, 138, 40, 0.05);
  border: 1px solid rgba(212, 138, 40, 0.20);
  border-left: 3px solid #d48a28;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}
.tagescheck-disclaimer summary {
  cursor: pointer;
  list-style: none;
  color: #b87410;
  font-weight: 600;
}
.tagescheck-disclaimer summary::-webkit-details-marker { display: none; }
.tagescheck-disclaimer ul { margin: 10px 0 4px; padding-left: 22px; font-size: 12px; color: var(--muted); }
.tagescheck-disclaimer li { margin-bottom: 4px; line-height: 1.5; }

@media (max-width: 620px) {
  .tc-score-wrap { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .tc-subscores { width: 100%; }
}

/* ============ TAGESCHECK – VERLAUF ============ */
.tagescheck-history { background: rgba(255, 255, 255, 0.85); border-radius: 18px; padding: 22px; }
.tagescheck-history:empty { display: none; }
.tc-history-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.tc-history-head h3 { margin: 0; font-size: 17px; }
.btn-link {
  background: transparent;
  border: 0;
  color: var(--accent-2, #4a7a8a);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.btn-link:hover { background: rgba(47, 139, 106, 0.06); color: var(--accent); }
.tc-history-spark { width: 100%; height: 80px; display: block; margin: 6px 0 14px; }
.tc-hist-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tc-hist-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(45, 90, 70, 0.03);
  border-radius: 10px;
  font-size: 13px;
}
.tc-hist-score {
  flex-shrink: 0;
  min-width: 42px;
  text-align: center;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
}
.tc-hist-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tc-hist-when { color: var(--muted); font-size: 12px; }
.tc-hist-sub { color: var(--text); font-size: 12px; }
.tc-hist-focus { color: var(--muted); font-style: italic; font-size: 12px; }

/* ============ TAGESCHECK – BILDQUALITÄT FEHLER ============ */
.tc-quality-error {
  text-align: center;
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(212, 138, 40, 0.06) 0%, rgba(255, 255, 255, 0.85) 100%);
  border: 1px solid rgba(212, 138, 40, 0.30);
  border-radius: 18px;
}
.tc-quality-icon { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.tc-quality-error h3 { margin: 0 0 8px; font-size: 20px; color: #b87410; }
.tc-quality-reason {
  background: rgba(212, 138, 40, 0.10);
  border-left: 3px solid #d48a28;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 540px;
  margin: 12px auto 18px;
  text-align: left;
}
.tc-quality-tips {
  max-width: 480px;
  margin: 6px auto 18px;
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  padding-left: 22px;
}
.tc-quality-tips li { margin-bottom: 4px; line-height: 1.5; }

/* Balken-Verlauf ersetzt Sparkline */
.tc-history-spark { display: none; }
.tc-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100px;
  padding: 0 4px;
  margin: 10px 0 4px;
  border-bottom: 1px solid rgba(45, 90, 70, 0.10);
}
.tc-bar {
  flex: 1;
  min-width: 4px;
  border-radius: 3px 3px 0 0;
  transition: opacity .15s;
  cursor: default;
}
.tc-bar:hover { opacity: 0.78; }
.tc-bars-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px;
  margin-bottom: 14px;
}
.tc-hist-count { font-size: 12px; color: var(--muted); font-weight: 400; }
.tc-hist-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 14px 0 8px;
  font-weight: 700;
}
.tc-hist-list--top .tc-hist-item {
  background: rgba(47, 139, 106, 0.06);
  border: 1px solid rgba(47, 139, 106, 0.12);
}
.tc-hist-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
  border: 1px solid rgba(45, 90, 70, 0.08);
  border-radius: 10px;
  padding: 8px 8px 8px 8px;
}
.tc-hist-scroll::-webkit-scrollbar { width: 6px; }
.tc-hist-scroll::-webkit-scrollbar-thumb { background: rgba(45, 90, 70, 0.25); border-radius: 3px; }
.tc-hist-scroll .tc-hist-list { gap: 6px; }
.tc-hist-scroll .tc-hist-item { background: rgba(45, 90, 70, 0.025); }

/* Body-Inputs für BMI */
.tagescheck-body-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--surface-border, rgba(45, 90, 70, 0.10));
  border-radius: 16px;
  padding: 18px;
}
.tc-input-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tc-input-field span { font-weight: 600; color: var(--text); }
.tc-input-field em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 11px; }
.tc-input-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
}
.tc-input-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 139, 106, 0.12);
}
.tc-body-hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}

/* BMI-Anzeige im Ergebnis */
.tc-bmi {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(47, 139, 106, 0.05);
  border: 1px solid rgba(47, 139, 106, 0.18);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.tc-bmi-num {
  font-size: 38px;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.tc-bmi-meta { display: flex; flex-direction: column; gap: 2px; }
.tc-bmi-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.tc-bmi-cat { font-size: 17px; font-weight: 700; }
.tc-bmi-note { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 2px; }

@media (max-width: 540px) {
  .tagescheck-body-inputs { grid-template-columns: 1fr; }
}

/* Body-Inputs einspaltiger Container; innere Row für Größe+Alter nebeneinander */
.tagescheck-body-inputs { grid-template-columns: 1fr; }
.tc-input-field--full { width: 100%; max-width: 320px; }
.tc-input-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  max-width: 420px;
}
@media (max-width: 420px) {
  .tc-input-row { grid-template-columns: 1fr 1fr; }
}

/* Selfie-Vorschau spiegeln wie im Kamera-Sucher (nur Anzeige, Originalbild bleibt) */
.selfie-mirror { transform: scaleX(-1); }

.tc-bmi-conf {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  vertical-align: middle;
}
.tc-bmi--unavailable {
  background: rgba(45, 90, 70, 0.04);
  border-color: rgba(45, 90, 70, 0.10);
}
.tc-bmi--unavailable .tc-bmi-note { color: var(--text); font-style: normal; }

/* Verlauf: BMI-Mitführung in Balken + Liste */
.tc-bars { align-items: flex-end; height: 120px; }
.tc-bar-col {
  flex: 1;
  min-width: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 100%;
  gap: 2px;
}
.tc-bar-col .tc-bar { flex: 0 0 auto; width: 100%; }
.tc-bar-bmi {
  font-size: 8px;
  text-align: center;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
  line-height: 1;
  height: 10px;
  overflow: hidden;
}
.tc-bar-bmi--empty { opacity: 0.25; }

.tc-hist-bmi {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(30, 107, 124, 0.08);
  color: var(--accent-2, #4a7a8a);
  font-weight: 600;
}

/* Kompakte BMI-Box UNTER dem Wellness-Score */
.tc-bmi--mini {
  display: block;
  background: rgba(45, 90, 70, 0.04);
  border: 1px solid rgba(45, 90, 70, 0.10);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0 6px;
  font-size: 13px;
}
.tc-bmi-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tc-bmi-num-mini {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}
.tc-bmi-label-mini { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.tc-bmi-cat-mini { font-weight: 700; font-size: 13px; }
.tc-bmi-conf-mini { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.3px; }
.tc-bmi-msg {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text);
  font-style: italic;
  line-height: 1.45;
}

/* ============ KHAVINSON-SUB-SEKTION ============ */
.khavinson-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px dashed rgba(45, 90, 70, 0.15);
}
.khavinson-head {
  margin-bottom: 22px;
}
.khavinson-head h3 {
  font-size: 26px;
  margin: 6px 0 10px;
}
.khavinson-head p {
  color: var(--muted);
  max-width: 720px;
  font-size: 14px;
  line-height: 1.55;
}
.exp-card--khavinson {
  background: linear-gradient(180deg, rgba(74, 122, 138, 0.04) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-color: rgba(74, 122, 138, 0.18);
}
.exp-card--khavinson .exp-class { color: #4a7a8a; }

/* ============ TAGESCHECK · LIVE-MESSUNG (Vitalwerte) ============ */
.tagescheck-camera { margin-top: 8px; }
.tc-cam-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  background: #0d1411;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
#tc-cam-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Spiegel-Sucher wie gewohnt */
  display: block;
}
.tc-cam-oval {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: 58%; height: 70%;
  border: 3px dashed rgba(255,255,255,0.7);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 2000px rgba(8,16,12,0.28);
}
.tc-cam-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 18px; text-align: center;
  pointer-events: none;
}
.tc-cam-count {
  position: absolute; top: 14px; right: 16px;
  min-width: 46px; padding: 6px 10px;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: #fff; background: rgba(47,139,106,0.85);
  border-radius: 999px; line-height: 1;
}
.tc-cam-hint {
  color: #fff; font-size: 0.92rem; font-weight: 500;
  background: rgba(8,16,12,0.45);
  padding: 7px 12px; border-radius: 999px;
  backdrop-filter: blur(3px);
}
.tc-cam-stage.measuring .tc-cam-oval { border-color: var(--accent); border-style: solid; animation: tcPulse 1.1s ease-in-out infinite; }
@keyframes tcPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.tc-cam-progress {
  max-width: 420px; margin: 12px auto 0;
  height: 8px; background: var(--bg-alt);
  border-radius: 999px; overflow: hidden;
}
.tc-cam-progress-fill {
  height: 100%; width: 0%;
  background: var(--accent-gradient);
  border-radius: 999px; transition: width 0.2s linear;
}
.tc-cam-status { text-align: center; margin: 8px 0 0; }
.tc-cam-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* Vital-Karten im Ergebnis */
.tc-vitals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0 14px;
}
.tc-vital {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 14px 10px; text-align: center;
  box-shadow: var(--shadow);
}
.tc-vital-icon { font-size: 1.5rem; line-height: 1; }
.tc-vital-val {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.6rem; color: var(--text); margin-top: 4px;
}
.tc-vital-val small { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.tc-vital-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.tc-vital-conf {
  display: inline-block; margin-top: 6px;
  font-size: 0.68rem; padding: 2px 7px; border-radius: 999px;
}
.tc-vital--na .tc-vital-val { color: var(--text-dim); font-size: 1.1rem; }
.tc-vitals-note {
  font-size: 0.8rem; color: var(--text-muted);
  background: var(--bg-alt); border-radius: var(--radius-sm);
  padding: 8px 12px; margin: -6px 0 14px;
}
@media (max-width: 420px) {
  .tc-vital-val { font-size: 1.35rem; }
  .tc-vital-icon { font-size: 1.3rem; }
}

/* ============ GLOBALE SUCHE (Header) ============ */
.global-search {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
  max-width: 360px;
  margin: 0 14px;
  display: flex;
  align-items: center;
}
.global-search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem; opacity: 0.6; pointer-events: none;
}
#global-search-input {
  width: 100%;
  padding: 9px 14px 9px 34px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#global-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,139,106,0.12);
}
.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  max-height: 68vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(45,90,70,0.16);
  z-index: 1200;
  padding: 6px;
}
.gsr-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none; background: transparent;
  border-radius: var(--radius-sm);
  text-align: left; cursor: pointer;
  font-family: var(--font-body);
}
.gsr-item:hover, .gsr-item.gsr-active { background: var(--surface-hover); }
.gsr-emoji { font-size: 1.2rem; flex: 0 0 auto; line-height: 1; }
.gsr-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gsr-name { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.gsr-short {
  font-size: 0.78rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gsr-badge {
  flex: 0 0 auto;
  font-size: 0.68rem; color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
}
.gsr-empty { padding: 14px; color: var(--text-muted); font-size: 0.9rem; text-align: center; }
.search-hit { animation: searchHit 2.4s ease; scroll-margin-top: 90px; }
@keyframes searchHit {
  0%, 100% { box-shadow: var(--shadow); }
  15%, 60% { box-shadow: 0 0 0 3px var(--accent), 0 8px 30px rgba(47,139,106,0.25); }
}
@media (max-width: 720px) {
  .global-search { order: 3; flex-basis: 100%; max-width: none; margin: 10px 0 0; }
  .global-search-results { max-height: 60vh; }
}

/* ============ GLOBALE SUCHE — Design-Refresh (v42c, überschreibt oben) ============ */
.global-search { flex: 1 1 220px; max-width: 340px; margin: 0 18px; }
.global-search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none; opacity: 1;
}
#global-search-input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 36px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
#global-search-input::placeholder { color: var(--text-dim); }
#global-search-input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,139,106,0.14);
}
#global-search-input:focus + .global-search-clear,
#global-search-input:not(:placeholder-shown) { }
.global-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0;
  border: none; border-radius: 50%;
  background: var(--surface-border);
  color: var(--text-muted);
  font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.global-search-clear:hover { background: var(--danger); color: #fff; }
.global-search-results {
  top: calc(100% + 10px);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(20,40,30,0.18);
  padding: 7px;
}
.gsr-item { gap: 12px; padding: 10px 11px; border-radius: 9px; }
.gsr-emoji {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-radius: 9px; font-size: 1.05rem;
}
.gsr-name { font-size: 0.93rem; }
.gsr-short { font-size: 0.76rem; margin-top: 1px; }
.gsr-badge { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (max-width: 720px) {
  .global-search { order: 3; flex-basis: 100%; max-width: none; margin: 10px 0 2px; }
}

/* ============ KI-PODCAST-BLOCK (Experimentelles/Peptide) ============ */
.exp-podcast {
  margin: 12px 0 6px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47,139,106,0.08), rgba(74,122,138,0.08));
  border: 1px solid var(--surface-border);
}
.exp-podcast-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.exp-podcast-icon {
  font-size: 1.3rem; width: 40px; height: 40px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: 11px; box-shadow: var(--shadow);
}
.exp-podcast-titles { min-width: 0; }
.exp-podcast-title { font-weight: 700; color: var(--text); font-size: 0.95rem; line-height: 1.25; }
.exp-podcast-meta { font-size: 0.76rem; color: var(--accent); font-weight: 600; margin-top: 2px; }
.exp-podcast-audio { width: 100%; height: 40px; margin: 2px 0 8px; }
.exp-podcast-note { font-size: 0.78rem; color: var(--text-muted); line-height: 1.45; }
.exp-podcast-src { margin-top: 8px; }
.exp-podcast-src summary { cursor: pointer; font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.exp-podcast-src ul { margin: 6px 0 0; padding-left: 18px; }
.exp-podcast-src li { font-size: 0.78rem; margin: 3px 0; }
.exp-podcasts-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin: 12px 0 4px; }
.exp-podcasts .exp-podcast + .exp-podcast { margin-top: 8px; }
