:root {
  --green-dark: #064e3b;
  --green: #059669;
  --green-soft: #a7f3d0;
  --bg-page: #f3f4f6;
  --bg-card: #ffffff;
  --text-main: #020617;
  --text-muted: #6b7280;
  --border-soft: rgba(148, 163, 184, 0.4);
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

body.home,
body.page-bg {
  background: var(--bg-page);
  color: var(--text-main);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

/* NAV */

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--green-dark);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-left: 18px;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.15fr);
  gap: 18px;
  background: radial-gradient(circle at top left, #16a34a 0, #064e3b 55%);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  color: #f9fafb;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: url("https://images.pexels.com/photos/5726898/pexels-photo-5726898.jpeg?auto=compress&cs=tinysrgb&w=1200");
  background-size: cover;
  background-position: center;
  opacity: 0.17;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 0.98rem;
  max-width: 420px;
  color: #e5e7eb;
}

.hero-text form {
  margin-top: 18px;
}

/* Hero-Bild rechts – HIER eigenes Bild hinterlegen */

.hero-player {
  border-radius: calc(var(--radius-xl) - 6px);
  background:
    linear-gradient(to top, rgba(6, 78, 59, 0.85), transparent 65%),
    url("/assets/images/hero-football-dna.jpg") center / cover no-repeat;
  min-height: 260px;
}

/* BUTTONS */

.btn {
  border-radius: 999px;
  padding: 11px 22px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn.primary {
  background: #22c55e;
  color: #064e3b;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.6);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.secondary {
  background: #0f172a;
  color: #e5e7eb;
}

.btn.full {
  width: 100%;
}

/* FEATURES */

.features {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* HOW IT WORKS */

.how {
  margin-top: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.how h2 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 16px;
}

.how-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.how-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* SCIENCE BLOCK */

.science-hero {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 22px 18px 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  margin-top: 26px;
}

.science-hero h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.science-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 780px;
}

.science-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.science-tags span {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
}

.science-section {
  margin-top: 24px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 20px 18px 22px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
}

.science-section h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.section-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 780px;
}

/* Science-Cluster */

.science-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.science-card {
  background: #f9fafb;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 14px 14px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.science-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.science-graph {
  margin-top: 10px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #064e3b;
}

.science-graph span {
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 999px;
}

.graph-psc { background: linear-gradient(135deg, #22c55e, #16a34a); }
.graph-erc { background: linear-gradient(135deg, #22c55e, #0ea5e9); }
.graph-nsc { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.graph-mfc { background: linear-gradient(135deg, #a855f7, #22c55e); }

/* Epigenetic layout */

.science-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 18px;
}

.science-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pillar {
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
  font-size: 0.86rem;
}

.pillar h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

/* Article boxes */

.article-boxes {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.article-card {
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 12px 12px 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.article-card h4 {
  font-size: 0.96rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.article-card a {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  text-decoration: none;
  color: #0f766e;
}

/* PRICING */

.pricing {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.pricing-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, #064e3b, #022c22);
  border-radius: var(--radius-lg);
  padding: 20px 18px 22px;
  border: 1px solid rgba(22, 163, 74, 0.5);
  color: #f9fafb;
}

.pricing-card h2 {
  font-size: 1.3rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 10px;
}

.price span {
  font-size: 0.9rem;
}

.pricing-sub {
  font-size: 0.9rem;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* TEST FORM */

.test-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 22px 18px 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  margin-top: 16px;
}

.test-wrapper h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.test-form {
  margin-top: 16px;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.form-row input[type="text"],
.form-row input[type="number"] {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f9fafb;
  color: var(--text-main);
}

.test-wrapper h2 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 1rem;
}

/* sliders */

.slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.6fr) 40px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.slider-row .slider-value {
  text-align: right;
  color: var(--text-muted);
}

/* Alerts */

.alert {
  margin-top: 8px;
  font-size: 0.82rem;
}

.alert.error {
  color: #b91c1c;
}

/* RESULT */

.result {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 22px 18px 26px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  margin-top: 16px;
}

.cluster-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.cluster-card {
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 10px 10px 12px;
}

.cluster-card.wide {
  grid-column: 1 / -1;
}

.cluster-card h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.cluster-value {
  font-weight: 700;
  font-size: 1rem;
}

.cluster-value.big {
  font-size: 1.3rem;
}

.ai-report {
  margin-top: 18px;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 12px;
}

.ai-report h2 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.ai-report pre {
  white-space: pre-wrap;
  font-size: 0.88rem;
  color: var(--text-main);
}

.actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* FOOTER */

.footer {
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

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

  .hero-player {
    min-height: 210px;
  }

  .nav-links {
    display: none; /* simple mobile handling */
  }

  .science-layout {
    grid-template-columns: 1fr;
  }
}
