/* ============================================================
   efficient-life.de — Haupt-Stylesheet
   Farben, Typografie, Layout, Animationen, Responsive
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ------------------------------------------------------------ */
:root {
  /* Hintergrundfarben */
  --bg-darkest:      #060D18;
  --bg-dark:         #0A1628;
  --bg-dark-mid:     #0F1B2D;
  --bg-dark-light:   #162540;
  --bg-light:        #F8F9FC;
  --bg-white:        #ffffff;

  /* Primärfarben */
  --blue-primary:    #1E6BFF;
  --blue-light:      #5BA8FF;
  --blue-lighter:    #6BA3FF;

  /* Textfarben */
  --text-dark:       #0F1B2D;
  --text-gray:       #556B82;
  --text-gray-light: #8899AA;
  --text-white:      #ffffff;

  /* Border */
  --border-light:    #E8ECF2;
  --border-blue:     rgba(30, 107, 255, 0.18);

  /* Schatten */
  --shadow-card:     0 2px 16px rgba(15, 27, 45, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(15, 27, 45, 0.14);
  --shadow-form:     0 8px 48px rgba(10, 22, 40, 0.18);

  /* Typografie */
  --font-family:     'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --fw-regular:      400;
  --fw-medium:       500;
  --fw-semibold:     600;
  --fw-bold:         700;
  --fw-extrabold:    800;

  /* Abstände */
  --section-pad-y:   80px;
  --section-pad-x:   32px;
  --container-max:   1140px;

  /* Radien */
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       24px;

  /* Übergänge */
  --transition-fast: 0.18s ease;
  --transition-mid:  0.28s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: var(--fw-regular);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ------------------------------------------------------------
   3. Layout-Helfer
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-heading--white {
  color: var(--text-white);
}

.section-subtext {
  font-size: 1rem;
  color: var(--text-gray);
  max-width: 480px;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-center .section-subtext {
  margin: 0 auto;
}

/* ------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

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

.btn:active {
  transform: translateY(0);
}

/* Primär — gefüllt blau */
.btn--primary {
  background: var(--blue-primary);
  color: var(--text-white);
  border-color: var(--blue-primary);
}

.btn--primary:hover {
  background: #1558d6;
  border-color: #1558d6;
  box-shadow: 0 6px 24px rgba(30, 107, 255, 0.38);
}

/* Outline weiß */
.btn--outline-white {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Volle Breite */
.btn--full {
  width: 100%;
  justify-content: center;
}

/* ------------------------------------------------------------
   5. Navbar
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: background var(--transition-mid),
              padding var(--transition-mid),
              box-shadow var(--transition-mid),
              backdrop-filter var(--transition-mid);
}

/* Zustand nach Scrollen — gesetzt via JS */
.navbar.scrolled {
  background: rgba(15, 27, 45, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

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

/* Logo */
.navbar__logo {
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.navbar__logo span {
  color: var(--blue-primary);
}

/* Navigationslinks (Desktop) */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  transition: color var(--transition-fast);
}

.navbar__links a:hover {
  color: var(--text-white);
}

/* CTA in Navbar */
.navbar__cta {
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* Hamburger-Button (Mobile) */
.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-white);
  padding: 4px;
  align-items: center;
  justify-content: center;
}

/* SVGs in Buttons nie als Klick-Ziel — Event bubbelt sicher zum Button */
.navbar__hamburger svg,
.navbar__mobile-close svg {
  pointer-events: none;
}

/* Mobile-Overlay */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 18, 40, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.navbar__mobile-menu.open {
  display: flex;
}

.navbar__mobile-menu a {
  color: var(--text-white);
  font-size: 1.4rem;
  font-weight: var(--fw-semibold);
  transition: color var(--transition-fast);
}

.navbar__mobile-menu a:hover {
  color: var(--blue-light);
}

.navbar__mobile-close {
  display: none; /* Hamburger-Toggle übernimmt Schließen */
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

/* ------------------------------------------------------------
   6. Hero-Sektion
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Hintergrundbild */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Navy-Overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 18, 35, 0.88) 0%,
    rgba(15, 27, 45, 0.82) 100%
  );
}

/* Inhalt */
.hero__content {
  position: relative;
  z-index: 1;
  padding: 120px var(--section-pad-x) 80px;
  max-width: 820px;
  margin: 0 auto;
}

/* Pill-Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(30, 107, 255, 0.5);
  background: rgba(30, 107, 255, 0.1);
  color: var(--blue-light);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}

/* Hauptüberschrift */
.hero__heading {
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: var(--fw-extrabold);
  color: var(--text-white);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 24px;
}

/* Untertext */
.hero__subtext {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.72;
}

/* Button-Gruppe */
.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Trust-Bar */
.hero__trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.48);
  font-weight: var(--fw-semibold);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
}

.hero__trust-item svg {
  color: var(--blue-light);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   7. Problem-Sektion
   ------------------------------------------------------------ */
.problem {
  background: var(--bg-light);
  margin-top: -40px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  z-index: 2;
  padding: var(--section-pad-y) 0;
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.problem-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-mid), transform var(--transition-mid), border-left-color var(--transition-mid);
  border-left: 3px solid transparent;
}

.problem-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-left-color: var(--blue-primary);
}

.problem-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  background: rgba(3, 105, 161, 0.08);
  color: #0369A1;
}

.problem-card__title {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-bottom: 8px;
}

.problem-card__text {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   8. Leistungen-Sektion
   ------------------------------------------------------------ */
.services {
  background: var(--bg-dark-mid);
  padding: var(--section-pad-y) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: rgba(30, 107, 255, 0.08);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: background var(--transition-mid),
              border-color var(--transition-mid),
              transform var(--transition-mid),
              box-shadow var(--transition-mid);
}

.service-card:hover {
  background: rgba(30, 107, 255, 0.14);
  border-color: rgba(30, 107, 255, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30, 107, 255, 0.12);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  background: rgba(30, 107, 255, 0.15);
  color: #5BA8FF;
}

.service-card__title {
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  color: var(--text-white);
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   9. Ablauf-Sektion
   ------------------------------------------------------------ */
.process {
  background: var(--bg-light);
  padding: var(--section-pad-y) 0;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}

/* Verbindungslinie */
.process__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 4px);
  width: calc(75% - 8px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  z-index: 0;
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.process-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--text-white);
  font-size: 1.1875rem;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(30, 107, 255, 0.3);
  position: relative;
  z-index: 1;
}

.process-step__title {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-bottom: 8px;
}

.process-step__text {
  font-size: 0.875rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   10. Vorteile-Sektion
   ------------------------------------------------------------ */
.benefits {
  background: var(--bg-white);
  padding: var(--section-pad-y) 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition-mid), transform var(--transition-mid), border-left-color var(--transition-mid);
  border-left: 3px solid transparent;
}

.benefit-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-left-color: var(--blue-primary);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  background: rgba(3, 105, 161, 0.08);
  color: #0369A1;
}

.benefit-card__title {
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-bottom: 10px;
}

.benefit-card__text {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   11. Kontakt-Sektion
   ------------------------------------------------------------ */
.contact {
  background: linear-gradient(135deg, var(--bg-dark-mid), var(--bg-dark-light));
  padding: var(--section-pad-y) 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Linke Seite — Beschreibungstext */
.contact__info {
  padding-top: 8px;
}

.contact__info .section-heading {
  color: var(--text-white);
}

.contact__info .section-subtext {
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
}

.contact__email {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-light);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
}

.contact__email-icon {
  display: flex;
  align-items: center;
  color: var(--blue-light);
}

/* Formular-Karte */
.contact__form-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-form);
}

/* Formular-Layout */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form__label {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
}

.form__label span {
  color: var(--blue-primary);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-gray-light);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.12);
}

/* Ungültige Felder nach Validierung */
.form__input.invalid,
.form__textarea.invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form__error {
  font-size: 0.8rem;
  color: #e53e3e;
  display: none;
}

.form__error.visible {
  display: block;
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

/* Erfolgs-/Fehler-Meldungen */
.form__message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  display: none;
}

.form__message.visible {
  display: block;
}

.form__message--success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
}

.form__message--error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: #9b2c2c;
}

/* ------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--bg-darkest);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--text-white);
}

.footer__logo span {
  color: var(--blue-primary);
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

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

/* ------------------------------------------------------------
   13. Subseiten (Impressum, Datenschutz)
   ------------------------------------------------------------ */
.subpage-hero {
  background: var(--bg-dark-mid);
  padding: 120px 0 60px;
  text-align: center;
}

.subpage-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}

.subpage-hero__heading {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--text-white);
}

.subpage-content {
  background: var(--bg-white);
  padding: 64px 0 80px;
}

.subpage-content .container {
  max-width: 760px;
}

.subpage-content h2 {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-top: 40px;
  margin-bottom: 12px;
}

.subpage-content h2:first-child {
  margin-top: 0;
}

.subpage-content p,
.subpage-content li {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 10px;
}

.subpage-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.subpage-content a {
  color: var(--blue-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subpage-content a:hover {
  color: #1558d6;
}

/* ------------------------------------------------------------
   14. Scroll-Animationen
   ------------------------------------------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ausgangszustand — unsichtbar */
.fade-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Sichtbar (gesetzt via IntersectionObserver) */
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Verzögerungsstufen für gestaffelte Karten */
.fade-section.delay-1 { transition-delay: 0.1s; }
.fade-section.delay-2 { transition-delay: 0.2s; }
.fade-section.delay-3 { transition-delay: 0.3s; }
.fade-section.delay-4 { transition-delay: 0.4s; }

/* ------------------------------------------------------------
   15. Responsive — Mobile First (max-width: 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --section-pad-y: 56px;
    --section-pad-x: 20px;
  }

  /* Navbar */
  .navbar__links,
  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Hero */
  .hero__content {
    padding: 100px 20px 64px;
  }

  .hero__heading {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Problem-Grid: 1 Spalte */
  .problem__grid {
    grid-template-columns: 1fr;
  }

  /* Services-Grid: 1 Spalte */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Ablauf: 2 Spalten, dann 1 */
  .process__steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .process__steps::before {
    display: none;
  }

  /* Vorteile: 1 Spalte */
  .benefits__grid {
    grid-template-columns: 1fr;
  }

  /* Kontakt: 1 Spalte */
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Formular */
  .contact__form-wrapper {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  /* Ablauf: 1 Spalte */
  .process__steps {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Stats-Sektion
   ------------------------------------------------------------ */
.stats {
  background: var(--bg-white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--border-light);
  cursor: default;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
}

.stat-item__number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-item__suffix {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1;
}

.stat-item__label {
  font-size: 0.8125rem;
  color: var(--text-gray);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-top: 1px solid var(--border-light);
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hero-Eingangsanimationen (gestaffelt) */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge {
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.1s;
}

.hero__heading {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.3s;
}

.hero__subtext {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.5s;
}

.hero__buttons {
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.65s;
}

.hero__trust {
  animation: heroFadeUp 0.6s ease both;
  animation-delay: 0.8s;
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge,
  .hero__heading,
  .hero__subtext,
  .hero__buttons,
  .hero__trust {
    animation: none;
  }
}

/* Prozess-Nummern: Einblend-Animation mit Scale */
.process-step.visible .process-step__number {
  animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes stepPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.process-step.delay-1.visible .process-step__number { animation-delay: 0.1s; }
.process-step.delay-2.visible .process-step__number { animation-delay: 0.2s; }
.process-step.delay-3.visible .process-step__number { animation-delay: 0.3s; }
.process-step.delay-4.visible .process-step__number { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .process-step.visible .process-step__number {
    animation: none;
  }
}

/* ------------------------------------------------------------
   Story-Sektion — Transformation Journey
   ------------------------------------------------------------ */
.story {
  background: var(--bg-light);
  padding: var(--section-pad-y) 0;
  overflow: hidden;
  position: relative;
}

.story::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(18, 29, 46, 0.55) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.story .container {
  position: relative;
  z-index: 2;
}

/* Horizontaler Karten-Track */
.story__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
  position: relative;
}

/* Einzelne Story-Karte */
.story-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
  cursor: default;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(15, 27, 45, 0.14);
}

/* Bild-Bereich */
.story-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.story-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.story-card:hover .story-card__image img {
  transform: scale(1.04);
}

/* Dunkler Overlay über dem Foto */
.story-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 18, 40, 0.1) 0%,
    rgba(10, 18, 40, 0.55) 100%
  );
}

/* Brand-Karte (Szene 4) — kein Foto, CSS-Illustration */
.story-card__image--brand {
  background: linear-gradient(135deg, var(--bg-dark-mid), #1a3a6e);
}

.story-card__brand-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

/* App-Icon oben links in der Brand-Karte */
.story-card__app-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  background: var(--blue-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(30, 107, 255, 0.4);
}

/* Tablet-Silhouette */
.story-card__tablet {
  width: 110px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.story-card__tablet-screen {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.story-card__app-name {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-dark);
  font-family: var(--font-family);
  letter-spacing: -0.02em;
  line-height: 1;
}

.story-card__app-name span {
  color: var(--blue-primary);
}

.story-card__app-ui {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.story-card__app-bar {
  height: 6px;
  background: var(--blue-primary);
  border-radius: 3px;
  opacity: 0.7;
}

.story-card__app-bar--short {
  width: 55%;
  opacity: 0.4;
}

.story-card__app-bar--medium {
  width: 75%;
  opacity: 0.5;
}

/* Text-Bereich */
.story-card__content {
  padding: 20px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-white);
}

.story-card__content--brand {
  background: var(--bg-white);
}

/* Stage-Label */
.story-card__stage {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #006ef4 !important;
}

.story-card__stage--brand {
  color: #006ef4 !important;
}

/* Karten-Titel */
.story-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

/* Karten-Text */
.story-card__text {
  font-size: 0.8375rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-top: 2px;
}

/* Pfeil zwischen Karten */

/* Linke Akzent-Linie auf der letzten Karte */
.story-card--4 {
  border-bottom: 3px solid var(--blue-primary);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .story__track {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .story-card__arrow {
    display: none; /* Pfeile nur auf Desktop */
  }

  .story-card--2 {
    border-right: none;
  }
}

@media (max-width: 600px) {
  .story__track {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .story-card__image {
    height: 180px;
  }
}

/* ------------------------------------------------------------
   16. Accessibility — Focus-Stile
   ------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Keine Outline auf Mouse-Klick, nur bei Tastatur */
:focus:not(:focus-visible) {
  outline: none;
}


/* ============================================================
   COOKIE-BANNER
   ============================================================ */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-dark-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner--visible {
  display: block;
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  min-width: 260px;
}

.cookie-banner__text strong {
  color: #fff;
}

.cookie-banner__text a {
  color: var(--blue-primary);
  text-decoration: underline;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 0.875rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
