/* ============================================================
   BlinkDate Landing Page – Hauptstylesheet
   Mobile First Ansatz: Basis-Styles für Handy,
   dann Anpassungen für Tablet (768px) und Desktop (1024px)
   ============================================================ */

/* ==================== CSS-Variablen (Farbschema) ==================== */
:root {
  /* Hauptfarben */
  --color-primary: #E91E63;         /* Lebendiges Pink/Magenta */
  --color-secondary: #7B1FA2;       /* Dunkles Violett */
  --color-accent: #FF7043;          /* Warmes Orange/Koralle für CTAs */

  /* Hintergrund & Text */
  --color-bg: #FAFAFA;              /* Sehr helles Grau */
  --color-white: #FFFFFF;
  --color-text: #212121;            /* Dunkelgrau für gute Lesbarkeit */
  --color-text-light: #757575;      /* Helleres Grau für Subtexte */

  /* Gradient */
  --gradient-hero: linear-gradient(135deg, #E91E63 0%, #7B1FA2 100%);
  --gradient-cta: linear-gradient(135deg, #7B1FA2 0%, #E91E63 100%);

  /* Schatten */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Abstände */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Rundungen */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

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

html {
  /* Smooth Scroll für Anker-Links */
  scroll-behavior: smooth;
  /* Damit der sticky Header keinen Inhalt verdeckt */
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Allgemeiner Container – begrenzt die Breite und zentriert den Inhalt */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Standard-Link-Styling */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* Bilder responsive machen */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Überschriften allgemein */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

/* Abschnittstitel (wiederverwendbar) */
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Primärer Button (auf dunklem Hintergrund – weiß) */
.btn--primary {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn--primary:hover {
  background-color: #fff3f6;
  color: var(--color-primary);
}

/* Sekundärer Button (auf hellem Hintergrund – Gradient) */
.btn--secondary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--secondary:hover {
  background: #ff8a65;
  color: var(--color-white);
}

/* Kleiner Button (z.B. Cookie-Banner) */
.btn--small {
  font-size: 0.9rem;
  padding: 0.5rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn--small:hover {
  background: var(--color-secondary);
}

/* ==================== HEADER / NAVIGATION ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Klasse wird per JavaScript hinzugefügt, wenn der Nutzer scrollt */
.header--scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0;
}

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

/* Logo im Header */
.header__logo-img {
  height: 40px;
  width: auto;
}

/* Navigation (standardmäßig auf Mobil versteckt) */
.header__nav {
  display: none;
}

/* Navigation sichtbar, wenn .header__nav--open gesetzt wird */
.header__nav--open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  padding: var(--spacing-sm);
}

.header__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  width: 100%;
}

.header__nav-link {
  display: block;
  padding: 0.75rem var(--spacing-sm);
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link:hover {
  background-color: #fce4ec;
  color: var(--color-primary);
}

/* Hamburger-Menü Button */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.header__burger-line {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation: Burger wird zu X wenn Menü geöffnet */
.header__burger--open .header__burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger--open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger--open .header__burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==================== HERO-BEREICH ==================== */
.hero {
  background: var(--gradient-hero);
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Platz für den fixed Header */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.7;
}

.hero__cta {
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
}

.hero__note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* SVG-Welle am unteren Rand */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 80px;
}

/* ==================== SO FUNKTIONIERT'S (Schritte) ==================== */
.steps {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-bg);
}

.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.steps__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.steps__icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.steps__card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.steps__card-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ==================== FEATURES ==================== */
.features {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-white);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.features__card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.features__icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.features__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.features__card-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ==================== CTA-BEREICH ==================== */
.cta {
  background: var(--gradient-cta);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.cta__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.cta__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--color-text);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer__logo {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

.footer__nav {
  display: flex;
  gap: var(--spacing-md);
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* ==================== COOKIE-BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  padding: var(--spacing-sm);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

/* Versteckt das Banner, wenn der Nutzer es akzeptiert hat */
.cookie-banner--hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
}

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

/* ==================== RECHTLICHE SEITEN (Impressum, Datenschutz) ==================== */
.legal-page {
  /* Platz für den fixed Header oben */
  padding-top: 7rem;
  padding-bottom: var(--spacing-xl);
}

.legal-page__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.legal-page__subtitle {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  font-size: 0.95rem;
}

.legal-page__section {
  margin-bottom: var(--spacing-lg);
}

.legal-page__section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.legal-page__section p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

.legal-page__section ul {
  margin-bottom: var(--spacing-sm);
  padding-left: 1.5rem;
}

.legal-page__section li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.7;
}

/* ==================== SCROLL-ANIMATIONEN ==================== */
/* Elemente starten unsichtbar und werden per JS sichtbar */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Klasse wird per IntersectionObserver hinzugefügt */
.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE: TABLET (ab 768px) ==================== */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Schritte: 3 Spalten */
  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Features: 2x2 Grid */
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cookie-Banner horizontal */
  .cookie-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==================== RESPONSIVE: DESKTOP (ab 1024px) ==================== */
@media (min-width: 1024px) {
  /* Navigation auf Desktop immer sichtbar */
  .header__nav {
    display: flex !important;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
    width: auto;
  }

  .header__nav-list {
    flex-direction: row;
    gap: var(--spacing-xs);
  }

  .header__nav-link {
    padding: 0.5rem 1rem;
  }

  /* Hamburger auf Desktop verstecken */
  .header__burger {
    display: none;
  }

  .hero__title {
    font-size: 3.25rem;
  }

  .hero__subtitle {
    font-size: 1.3rem;
    max-width: 700px;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .cta__title {
    font-size: 2.5rem;
  }

  .legal-page__title {
    font-size: 2.5rem;
  }
}
