/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; }
body { min-height: 100vh; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #111111;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

/* =============================================
   HEADER — transparent, liegt über dem Hero
   ============================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 16px 20px;
}

.site-logo {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .site-header { padding: 10px 12px; }
  .site-logo   { height: 26px; }
}

/* =============================================
   HERO — Hintergrundbild + dunkler Overlay
   ============================================= */
.hero {
  position: relative;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url('../images/hero-bg.png');
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 24px 200px;
}

.hero.funnel-open {
  align-items: flex-start;
}

/* =============================================
   HERO CONTENT — zentriert im Hero
   ============================================= */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 720px;
  gap: 20px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.gratis {
  color: #1B4DFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.btn-cta {
  background: #1B4DFF;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-cta:hover  { background: #2860FF; }
.btn-cta:active { transform: scale(0.98); }

/* =============================================
   LOGO TICKER
   ============================================= */
.logo-ticker-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 680px;
  margin-top: 8px;
  /* Fade-Effekt an beiden Seiten */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.logo-ticker {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: ticker 160s linear infinite;
  gap: 28px;
}

.logo-ticker img {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.75;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =============================================
   FORMULAR-KARTE
   ============================================= */
.step-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  animation: fadeUp 0.25s ease;
  overflow: hidden;
  position: relative;
  z-index: 2;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 1%, black 99%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 1%, black 99%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 1%, black 99%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 1%, black 99%, transparent 100%);
  mask-composite: intersect;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-card h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: #111;
  line-height: 1.25;
}

.step-why {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
}

/* Felder */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.97rem;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
.field::placeholder { color: #aaa; }
.field:focus { border-color: #1B4DFF; }
.field.error { border-color: #ef4444; }

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1.3fr;
  gap: 10px;
  width: 100%;
}

/* Telefon */
.phone-field {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}
.phone-field:focus-within { border-color: #1B4DFF; }

.phone-flag {
  padding: 0 8px 0 12px;
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
  color: #111;
}

.phone-input {
  border: none !important;
  border-radius: 0 !important;
  padding-left: 4px;
  text-align: left !important;
  flex: 1;
}

/* Checkboxen */
.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  color: #444;
  line-height: 1.5;
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: #1B4DFF;
  cursor: pointer;
}

.check-label a { color: #1B4DFF; text-decoration: underline; }

.ssl-note {
  font-size: 0.75rem;
  color: #1B4DFF;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.guarantee {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  text-align: center;
}

/* Weiter-Button */
.btn-weiter {
  background: #1B4DFF;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 48px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: auto;
}
.btn-weiter:hover  { background: #2860FF; }
.btn-weiter:active { transform: scale(0.98); }
.btn-weiter:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Erfolgs-Karte */
.success-check {
  width: 64px;
  height: 64px;
  background: #1B4DFF;
  color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fehlermeldungen */
.error-msg {
  color: #ef4444;
  font-size: 0.82rem;
  text-align: left;
  width: 100%;
  margin-top: -4px;
}

/* =============================================
   TRUST-SEKTION — immer sichtbar, dunkel
   ============================================= */
.trust {
  background: #1a1a1a;
  padding: 48px 24px 36px;
  position: relative;
  z-index: 1;
}

.trust::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'><path d='M0,0 Q600,80 1200,0 L1200,80 L0,80 Z' fill='%231a1a1a'/></svg>") no-repeat center / 100% 100%;
}

.trust-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 160px;
}

.trust-icon {
  font-size: 1.4rem;
  color: #fff;
  line-height: 1;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
  z-index: 1;
  padding: 4px 8px;
  line-height: 1;
}
.modal-close:hover { color: #111; }

.modal-content {
  padding: 40px 36px 36px;
  overflow-y: auto;
  flex: 1;
  color: #111;
  font-size: 0.9rem;
  line-height: 1.75;
}

.modal-content h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: #111;
}

.modal-content h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: #111;
}

.modal-content p { margin-bottom: 12px; }

.modal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.modal-content li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .modal-content { padding: 32px 20px 24px; }
  .modal-box { max-height: 90vh; border-radius: 12px; }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #111111;
  border-top: 1px solid #222;
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.site-footer a {
  color: #999;
  text-decoration: none;
  font-size: 0.85rem;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 640px) {

  /* Hero */
  .hero {
    padding: 100px 16px 200px;
    align-items: flex-start;
  }

  .hero-content {
    gap: 16px;
  }

  .hero h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-sub {
    font-size: 0.92rem;
  }

  .btn-cta {
    font-size: 1rem;
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }

  /* Logo-Ticker auf Mobile kleiner */
  .logo-ticker img { height: 16px; }
  .logo-ticker-wrap { max-width: 100%; }

  /* Formular-Karte: Breite vom Hero-Padding kontrolliert */
  .step-card {
    max-width: 100%;
    padding: 28px 20px 24px;
    border-radius: 16px;
  }

  .step-card h2 {
    font-size: 1.35rem;
  }

  /* Felder */
  .field-row {
    grid-template-columns: 1fr;
  }

  .date-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  /* Trust: vertikal stapeln */
  .trust {
    padding: 32px 16px;
  }

  .trust-inner {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .trust-item {
    max-width: 240px;
  }

  /* Footer: vertikal stapeln */
  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
  }
}

@media (max-width: 360px) {
  .date-row { grid-template-columns: 1fr; }
  .hero h1  { font-size: 1.45rem; }
}
