/* ============================================
   Design System — Das Gesundheitsnetzwerk
   ============================================ */

:root {
  --primary: #1A3E50;
  --primary-light: #edf4f7;
  --primary-dark: #0f2a38;
  --teal: #2AAFA9;
  --teal-light: #e8f8f7;
  --accent: #D4864A;
  --accent-light: #fdf1ea;
  --bg: #f8fafb;
  --text: #1a2a32;
  --text-secondary: #4a5e68;
  --text-tertiary: #7a8e98;
  --border: rgba(26, 62, 80, 0.08);
  --border-strong: rgba(26, 62, 80, 0.16);
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-display: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(26, 62, 80, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 62, 80, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 62, 80, 0.1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--sm { font-size: 0.875rem; padding: 10px 22px; }
.btn--lg { font-size: 1.05rem; padding: 16px 36px; }
.btn--full { width: 100%; }

/* Badge */
.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

/* Progress Bar — Mission */
.progress-mission {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.progress-mission__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.progress-mission__count {
  font-size: 0.95rem;
  color: var(--text);
}
.progress-mission__count strong {
  font-size: 1.1rem;
  color: var(--primary);
}
.progress-mission__percent {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
}
.progress-mission__track {
  width: 100%;
  height: 12px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}
.progress-mission__bar {
  height: 100%;
  min-width: 8px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: var(--radius-pill);
  transition: width 1.5s ease-out;
  position: relative;
}
.progress-mission__bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  filter: blur(2px);
}
.progress-mission__label {
  font-size: 0.825rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  text-align: center;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 250, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.nav--scrolled {
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 44px;
  width: auto;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 140px 0 30px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 20%, rgba(42, 175, 169, 0.07) 0%, rgba(26, 62, 80, 0.03) 40%, transparent 70%);
}
.hero__inner {
  max-width: 780px;
  margin: 0 auto;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.hero__text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero__cta {
  margin-top: 0.5rem;
}

/* ============================================
   Video
   ============================================ */
.video-section {
  padding: 20px 0 60px;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--text);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-caption {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-top: 1rem;
}
.video-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   Problem
   ============================================ */
.problem {
  padding: 80px 0;
}
.problem__intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.fact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.fact-card__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.fact-card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.problem__conclusion {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Pillars
   ============================================ */
.pillars {
  padding: 80px 0;
  background: var(--primary-light);
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}
.pillar-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.pillar-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}
.pillar-card__list {
  list-style: none;
}
.pillar-card__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pillar-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* ============================================
   Trust
   ============================================ */
.trust {
  padding: 80px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust-item__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.trust-item__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial {
  padding: 80px 0;
  background: var(--primary-light);
  text-align: center;
}
.testimonial__quote {
  max-width: 640px;
  margin: 0 auto 1rem;
}
.testimonial__quote p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}
.testimonial__note {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

/* ============================================
   Signup
   ============================================ */
.signup {
  padding: 100px 0;
  text-align: center;
  background: radial-gradient(ellipse at 50% 80%, rgba(42, 175, 169, 0.06) 0%, rgba(26, 62, 80, 0.03) 40%, transparent 70%);
}
.signup__subtitle {
  max-width: 640px;
  margin: -1.5rem auto 2.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Modal
   ============================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 37, 32, 0.5);
  backdrop-filter: blur(4px);
}
.modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-tertiary);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal__close:hover { color: var(--text); }
.modal__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group--sm {
  max-width: 140px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.required { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 175, 169, 0.18);
}
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #c0392b;
}
.form-group textarea { resize: vertical; }
.char-count {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.form-group--checkbox label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}
.form-group--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-message--error {
  background: #fdf2f2;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}
.form-message--success {
  background: #f0f9f0;
  color: var(--primary-dark);
  border: 1px solid #c3e6cb;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
  padding: 120px 0 80px;
}
.legal-page .container {
  max-width: 720px;
}
.legal-page__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
}
.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.legal-page ul {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1rem;
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(42, 37, 32, 0.08);
  padding: 16px 0;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner__inner p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer__disclaimer {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 0.825rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--primary); }
.footer__copy {
  font-size: 0.825rem;
  color: var(--text-tertiary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding: 120px 0 60px; }
  .hero__title { font-size: 2.25rem; }
  .hero__subtitle { font-size: 1.1rem; }
  .section-title { font-size: 1.65rem; }

  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact-card__number { font-size: 2rem; }

  .trust-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .trust-item__number { font-size: 2rem; }

  .form-row { grid-template-columns: 1fr; }
  .form-group--sm { max-width: none; }
  .modal__content { padding: 1.5rem; }

  .nav__cta { font-size: 0.8rem; padding: 8px 16px; }

  .cookie-banner__inner { flex-direction: column; text-align: center; }

  .testimonial__quote p { font-size: 1.25rem; }
}
