:root {
  --bg: #0a0e1a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.10);
  --text: #f0f0f5;
  --muted: #a0a8c0;
  --primary: #6c8aff;
  --primary-strong: #8da6ff;
  --accent: #ff6b6b;
  --border: rgba(255, 255, 255, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 960px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --ok: #34d399;
  --error: #f87171;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.narrow { max-width: 720px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-icon { width: 28px; height: 28px; border-radius: 8px; }

.main-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.main-nav a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.main-nav a:hover { color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(108, 138, 255, 0.3);
}

.btn-secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}

/* ── Hero / Product Showcase ── */
.hero {
  padding: 5rem 0 4rem;
}

.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-image {
  border-radius: 24px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.product-info h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.product-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: rgba(108, 138, 255, 0.12);
  border: 1px solid rgba(108, 138, 255, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.product-note {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ── Sections ── */
section { padding: 4rem 0; }

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 2rem 0;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.info-card {
  margin-top: 2rem;
  padding: 1.5rem;
}

.info-card h3 { margin-bottom: 0.8rem; }
.info-card p { color: var(--muted); margin-bottom: 0.6rem; }
.info-card p:last-child { margin-bottom: 0; }

/* ── Form ── */
.form-card {
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label { font-weight: 500; font-size: 0.9rem; }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

input::placeholder, textarea::placeholder { color: rgba(160, 168, 192, 0.6); }

select option { color: #1a1a2e; }

textarea { min-height: 140px; resize: vertical; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 400;
}
.checkbox-row input { width: auto; margin-top: 0.25rem; }

.error-text { font-size: 0.85rem; color: var(--error); }

.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.form-message.success { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.form-message.error { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }

/* ── References ── */
.references {
  margin-top: 2rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
  opacity: 0.7;
}
.references li { margin-bottom: 0.3rem; }

/* ── Wissenschaft: Studienübersicht ── */
.controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.controls label {
  font-weight: 600;
  white-space: nowrap;
}
.controls select,
.controls input {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}
.controls select { min-width: 180px; }
.controls input  { flex: 1; min-width: 180px; }

.study-group { margin-bottom: 2.5rem; }
.study-group h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary);
  color: var(--primary-strong);
}

.study-card {
  margin-bottom: 1rem;
  padding: 1.25rem;
}
.study-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  word-break: break-word;
}
.study-abstract {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.tag-badge {
  background: var(--primary);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.btn-sm {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

/* ── Category Grid (Wissenschaft) ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.category-card {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.category-card:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--text);
}
.category-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--primary-strong);
}
.category-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.category-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}
.breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* ── Waitlist Table ── */
.waitlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.waitlist-table th,
.waitlist-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.waitlist-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.waitlist-table td:first-child {
  color: var(--primary);
  font-weight: 600;
}
.waitlist-table tbody tr:hover {
  background: var(--surface-hover);
}

/* ── Legal Text ── */
.legal-text h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--primary-strong);
}
.legal-text h2:first-child {
  margin-top: 0;
}
.legal-text p {
  color: var(--muted);
  margin-bottom: 0.8rem;
  line-height: 1.7;
}
.legal-text ul {
  padding-left: 1.2rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  line-height: 1.7;
}
.legal-text li {
  margin-bottom: 0.3rem;
}

/* ── Utility ── */
.small-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Page Hero (sub-pages) ── */
.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.bullet-list {
  padding-left: 1.2rem;
  line-height: 1.8;
}

.timeline {
  padding-left: 1.2rem;
  line-height: 1.8;
}

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: rgba(10, 14, 26, 0.9);
}

.footer-top {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

.site-footer .small-note { text-align: center; }

/* ── Article Content ── */
.article-content {
  max-width: 720px;
  margin-inline: auto;
}

.article-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.article-content h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.article-content h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-strong);
}

.article-content strong {
  color: var(--text);
}

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-style: italic;
}

/* ── Symptom Cards ── */
.symptom-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
}

.symptom-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.symptom-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.symptom-card.cold {
  border-left-color: #60a5fa;
}

/* ── Video Container ── */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Chart Container ── */
.chart-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chart-container img {
  width: 100%;
  height: auto;
  display: block;
}

.chart-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ── Evidence Tags ── */
.evidence-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.evidence-tag.study {
  background: rgba(108, 138, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(108, 138, 255, 0.3);
}

.evidence-tag.hint {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ── Cross-Link Cards ── */
.cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.cross-link-card {
  display: block;
  padding: 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cross-link-card:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--text);
}

.cross-link-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cross-link-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.cross-link-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ── Inline CTA ── */
.cta-inline {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin: 3rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-inline h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cta-inline p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  max-width: 50ch;
  margin-inline: auto;
}

/* ── Collapsible Study Details ── */
.study-details {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.study-details > summary {
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem 0;
  list-style: none;
}

.study-details > summary::-webkit-details-marker { display: none; }

.study-details > summary::before {
  content: "▸ ";
  color: var(--primary);
  transition: transform 0.2s;
}

.study-details[open] > summary::before {
  content: "▾ ";
}

.study-details .study-card {
  margin-top: 1rem;
}

/* ── Customer Testimonial ── */
.testimonial-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.testimonial-gallery img {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
}

/* ── Breadcrumb (enhanced) ── */
.breadcrumb-nav {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav .sep { margin: 0 0.4rem; opacity: 0.5; }

/* ── Wissen Hub Cards ── */
.wissen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.wissen-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.wissen-card:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-3px);
  color: var(--text);
}

.wissen-card .card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.wissen-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.wissen-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  flex-grow: 1;
}

.wissen-card .read-more {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Störfaktor Cards ── */
.stoerfaktor-card {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.stoerfaktor-card h3 {
  font-size: 1.05rem;
  color: var(--primary-strong);
  margin-bottom: 0.6rem;
  margin-top: 0;
}

.stoerfaktor-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.stoerfaktor-card p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .product-showcase { grid-template-columns: 1fr; text-align: center; }
  .product-image { max-width: 280px; }
  .product-info { text-align: left; }
  .lead { max-width: 100%; }
  .stats-row { grid-template-columns: 1fr; }
  .main-nav { gap: 0.7rem; }
  .header-inner { flex-wrap: wrap; }
  section { padding: 3rem 0; }
  .hero { padding: 3rem 0 2rem; }
  .wissen-grid { grid-template-columns: 1fr; }
  .cross-links { grid-template-columns: 1fr; }
  .testimonial-gallery { grid-template-columns: 1fr; }
  .article-content h2 { margin-top: 2rem; }
}