/**
 * join.msd-dates.com v1 -- Landingpage 1 ("Reiche Singles warten auf dich").
 *
 * Built 1:1 from the Figma export screenshots (Desktop 1440 / Tablet ~834 /
 * Mobile 375). Dark theme, split hero (copy left, photo right on desktop,
 * photo behind copy on mobile/tablet), a horizontally scrollable testimonial
 * row, a 3-icon stat band, a CTA band and a 3-column footer.
 */

:root {
  --c-bg: #000000;
  --c-bg-testimonials: #000000;
  --c-bg-features: #050505;
  --c-bg-cta: #111111;
  --c-surface: #151515;
  --c-border: #3d3d3d;
  --c-accent: #c82151;
  --c-star: #f5b400;
  --c-text: #ffffff;
  --c-text-muted: #b2b2b2;

  --radius: 4px;
  --font-display: 'Tinos', 'Times New Roman', serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 18px;
  --content-max: 1440px;
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.section-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
}

.section-intro {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background: #b01c47;
}

.btn-primary:disabled {
  cursor: default;
  opacity: 0.7;
}

/* ------------------------------------------------------------ navigation */

.nav {
  position: relative;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--content-max);
  height: 68px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.nav__logo {
  display: block;
  margin-right: auto;
}

.nav__logo img {
  width: 110px;
  height: auto;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__links > a {
  color: var(--c-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__links > a:hover {
  color: var(--c-accent);
}

.nav__lang {
  position: relative;
}

.nav__lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

/* The caret glyph sits a hair taller than the uppercase letters around it --
   shrink and nudge only the caret (not the "Sprache" label) so the label
   stays the same size/baseline as "SO FUNKTIONIERT'S" and "LOGIN". */
.nav__lang-caret {
  position: relative;
  top: 1px;
  font-size: 10px;
}

.nav__lang-toggle:hover {
  color: var(--c-accent);
}

.nav__lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  min-width: 140px;
  margin: 0;
  padding: 8px 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  list-style: none;
}

.nav__lang.is-open .nav__lang-menu {
  display: flex;
}

.nav__lang-menu li {
  padding: 8px 16px;
  color: var(--c-text-muted);
  font-size: 13px;
  cursor: pointer;
}

.nav__lang-menu li:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-text);
}

.nav__lang-menu li[aria-selected="true"] {
  color: var(--c-text);
  font-weight: 500;
}

.nav__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 35px;
  border: 1px solid var(--c-text);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav__login:hover {
  background: var(--c-text);
  color: var(--c-bg);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}

/* The photo carries the contrast for the white headline, so it needs a
   dark overlay behind the text on every breakpoint. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.88) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--gutter) 40px;
}

.hero__headline {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
}

.hero__subline {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
}

.benefits {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 500;
}

.benefits__check {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.hero__trust {
  margin: 12px 0 0;
  color: var(--c-text-muted);
  font-size: 11px;
}

/* ---------------------------------------------------------- testimonials */

.testimonials {
  background: var(--c-bg-testimonials);
}

.testimonials__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px var(--gutter);
}

/* Stacked, full-width cards on mobile/tablet -- no horizontal scrolling on
   any screen size. Only the desktop breakpoint switches to a 3-column row
   (see below), where all three cards fit without overflow. */
.testimonials__grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial-card {
  width: 100%;
  margin: 0;
  padding: 26px 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  scroll-snap-align: start;
}

.testimonial-card__title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  text-align: center;
}

.testimonial-card__quote {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.testimonial-card__rating {
  margin: 18px 0 0;
  color: var(--c-star);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-align: center;
}

.testimonial-card__person {
  margin-top: 8px;
  color: var(--c-text-muted);
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------- features */

.features {
  background: var(--c-bg-features);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.features__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 44px var(--gutter);
}

.features__grid {
  display: grid;
  gap: 40px;
  text-align: center;
}

.stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #1a1a1a;
}

.stat__title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
}

.stat__body {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 14px;
}

/* --------------------------------------------------------------- cta band */

.cta {
  background: var(--c-bg-cta);
}

.cta__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px var(--gutter) 60px;
  text-align: center;
}

.cta .btn-primary {
  width: auto;
  min-width: 260px;
  margin-top: 8px;
  padding-inline: 32px;
}

/* ----------------------------------------------------------------- footer */

.footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px var(--gutter);
  text-align: center;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal li + li::before {
  content: '·';
  margin-right: 8px;
  color: var(--c-text-muted);
}

.footer__legal a {
  color: var(--c-text-muted);
  font-size: 12px;
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--c-text);
}

.footer__age {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 11px;
}

/* ================================================= Tablet (Figma: 768px) */

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }

  .nav__links {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero__media::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.78) 100%);
  }

  .hero__inner {
    padding-block: 56px;
  }

  .hero__headline {
    max-width: 620px;
    font-size: 40px;
  }

  .hero__subline {
    font-size: 18px;
  }

  .section-title {
    font-size: 36px;
  }

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

  .cta .btn-primary {
    width: auto;
  }
}

/* ================================================ Desktop (Figma: 1440px) */

@media (min-width: 1024px) {
  :root {
    --gutter: 100px;
  }

  .nav__inner {
    height: 84px;
  }

  .nav__logo img {
    width: 130px;
  }

  .hero {
    min-height: 760px;
  }

  .hero__media::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.22) 100%);
  }

  .hero__headline {
    max-width: 560px;
    font-size: 52px;
  }

  .hero__subline {
    max-width: 480px;
  }

  .btn-primary {
    width: 260px;
  }

  .testimonials__grid {
    flex-direction: row;
  }

  .testimonial-card {
    flex: 1 1 0;
    width: auto;
  }

  .features__inner {
    padding-block: 56px;
  }

  .features__grid {
    gap: 24px;
  }

  .cta__inner {
    padding-block: 72px 80px;
  }

  .cta .section-title {
    font-size: 40px;
  }
}
