/* ============================================================
   DA LACHT DAS HERZ — Design System
   Inspired by Luxterior editorial aesthetic
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-primary: #d5dde3;
  --bg-white: #ffffff;
  --bg-dark: #1a1a2e;
  --bg-muted: #e8edf1;
  --accent: #c8a97e;
  --accent-hover: #b8955f;
  --text-dark: #1a1a1a;
  --text-body: #3d4654;
  --text-light: #6b7280;
  --text-white: #ffffff;
  --border-color: #c5cdd4;

  --font-headline: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

p {
  font-size: 1rem;
  max-width: 600px;
}

.text-light { color: var(--text-light); }
.text-white { color: var(--text-white); }
.text-accent { color: var(--accent); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-white);
}

.section--muted {
  background-color: var(--bg-muted);
}

.section--slate {
  background-color: var(--bg-primary);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: 0.01em;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-dark);
  transition: width var(--transition);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dark);
  transition: transform var(--transition);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-color: var(--bg-primary);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero__content {
  padding: var(--space-xl) var(--space-lg);
  z-index: 2;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  max-width: 440px;
}

.hero__images {
  position: relative;
  height: 100%;
  min-height: 500px;
}

.hero__img-main {
  position: absolute;
  top: 10%;
  right: 0;
  width: 75%;
  height: 65%;
  object-fit: cover;
  z-index: 2;
}

.hero__img-accent {
  position: absolute;
  bottom: 8%;
  left: 5%;
  width: 50%;
  height: 40%;
  object-fit: cover;
  z-index: 3;
  border: 6px solid var(--bg-primary);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}

.hero__scroll-arrow {
  width: 1px;
  height: 40px;
  background: var(--text-light);
  position: relative;
  overflow: hidden;
}

.hero__scroll-arrow::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-dark);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* --- Stats Bar --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-color);
}

.stat__number {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- Benefits --- */
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.benefits__heading {
  margin-bottom: var(--space-lg);
}

.benefits__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.benefit {
  text-align: center;
}

.benefit__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--text-dark);
  stroke-width: 1.5;
  fill: none;
}

.benefit__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.benefit__text {
  font-size: 0.85rem;
  color: var(--text-light);
  max-width: 180px;
  margin: 0 auto;
}

/* --- Article Cards (Content Teaser) --- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.article-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
}

.article-card:first-child {
  grid-row: span 2;
}

.article-card__img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.article-card:first-child .article-card__img {
  height: 100%;
  min-height: 400px;
}

.article-card__body {
  padding: var(--space-md);
}

.article-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.article-card__title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-top: var(--space-sm);
}

.article-card__arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.article-card:hover .article-card__arrow svg {
  transform: translateX(4px);
}

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.process-step {
  display: flex;
  gap: var(--space-md);
}

.process-step__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 0.9rem;
  color: var(--text-white);
  background: var(--accent);
}

.process-step__title {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.process-step__text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.testimonial {
  padding: var(--space-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  position: relative;
}

.testimonial__quote {
  font-family: var(--font-headline);
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.testimonial__text {
  font-size: 1rem;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  color: var(--text-dark);
  font-size: 1rem;
}

.testimonial__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- CTA / Newsletter --- */
.cta {
  text-align: center;
}

.cta h2 {
  margin-bottom: var(--space-sm);
}

.cta p {
  margin: 0 auto var(--space-lg);
}

.cta__form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.cta__input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-white);
  outline: none;
}

.cta__input::placeholder {
  color: var(--text-light);
}

.cta__button {
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--text-white);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--transition);
}

.cta__button:hover {
  background: var(--accent-hover);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--text-white);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}

.btn--outline:hover {
  background: var(--text-dark);
  color: var(--text-white);
}

.btn--white {
  background: var(--bg-white);
  color: var(--text-dark);
}

.btn--white:hover {
  background: var(--bg-muted);
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__brand {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.footer__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer__links a:hover {
  color: var(--text-dark);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Page Header (for content pages) --- */
.page-header {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 80px;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.75) 0%, rgba(26, 26, 46, 0.1) 70%);
}

.page-header__content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) 0;
}

.page-header__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.page-header h1 {
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* --- Article Content --- */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.article-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.article-content p {
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.article-content img {
  width: 100%;
  margin: var(--space-lg) 0;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.comparison-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  background: var(--bg-muted);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

/* --- Heart Rate Bars --- */
.pulse-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.pulse-bar__label {
  min-width: 140px;
  font-weight: 600;
  color: var(--text-dark);
}

.pulse-bar__track {
  flex: 1;
  height: 8px;
  background: var(--bg-muted);
  position: relative;
  overflow: hidden;
}

.pulse-bar__fill {
  height: 100%;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pulse-bar__bpm {
  min-width: 70px;
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: var(--text-dark);
  text-align: right;
}

/* --- Listicle Numbers --- */
.listicle-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-color);
}

.listicle-item__number {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--bg-primary);
  line-height: 1;
}

.listicle-item__content h3 {
  margin-bottom: var(--space-xs);
}

.listicle-item__meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-light);
}

.listicle-item__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Inline CTA Box --- */
.inline-cta {
  padding: var(--space-lg);
  background: var(--bg-dark);
  color: var(--text-white);
  margin: var(--space-xl) 0;
}

.inline-cta h3 {
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.inline-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-md);
  max-width: 100%;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__content {
    padding: var(--space-xl) var(--space-md);
  }

  .hero__images {
    min-height: 350px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .benefits__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card:first-child {
    grid-row: auto;
  }

  .article-card:first-child .article-card__img {
    height: 280px;
    min-height: auto;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .listicle-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

@media (max-width: 600px) {
  .benefits__list {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .stats {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .cta__form {
    flex-direction: column;
  }

  .cta__button {
    width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
