/* ============================================================
   PKV-PRUEFEN.DE – Mobile-First Stylesheet
   Colors: Dark Blue #0D2B55 | Green #27AE60 | White #FFFFFF
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --blue:        #0D2B55;
  --blue-mid:    #163c72;
  --blue-light:  #1a4a8a;
  --green:       #27AE60;
  --green-hover: #1e8e4e;
  --white:       #FFFFFF;
  --gray-light:  #f4f6f9;
  --gray-text:   #6b7280;
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.12);
  --radius:      8px;
  --transition:  0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--blue);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--blue);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo svg {
  flex-shrink: 0;
}

.logo-text span {
  color: var(--green);
}

/* Contact info */
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.header-contact .contact-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.header-contact .contact-phone {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-contact .contact-phone:hover {
  color: var(--green);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--blue);
  overflow: hidden;
}

/* Blurred background image layer */
.hero::after {
  content: '';
  position: absolute;
  inset: -12px; /* extend slightly to hide blur edges */
  background-image: url('../images/hero-image.jpeg');
  background-size: cover;
  background-position: 65% -40px;
  background-repeat: no-repeat;
  filter: blur(4px) brightness(1.25);
  z-index: 0;
}

/* Dark overlay on top of the blurred image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 43, 85, 0.60) 0%,
    rgba(13, 43, 85, 0.42) 55%,
    rgba(13, 43, 85, 0.20) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  padding: 6rem 1.25rem 3rem;
  margin: 0 auto;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(39, 174, 96, 0.18);
  border: 1px solid rgba(39, 174, 96, 0.45);
  color: #6ee9a0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* Headlines */
.hero-headline {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-headline .accent {
  color: var(--green);
}

.hero-subheadline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
  font-weight: 400;
  max-width: 480px;
}

/* Trust points */
.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 2rem;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
}

.trust-list li .checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.trust-list li .checkmark svg {
  width: 12px;
  height: 12px;
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.40);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
  width: 100%;
  justify-content: center;
  max-width: 400px;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(39, 174, 96, 0.50);
  outline: none;
}

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

.btn-cta svg {
  flex-shrink: 0;
}

/* Sub-note below button */
.cta-note {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  text-align: center;
  max-width: 400px;
}

/* ============================================================
   TRUST BAR (below hero, optional)
   ============================================================ */
.trust-bar {
  background: var(--blue);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
}

.trust-bar-item svg {
  color: var(--green);
  flex-shrink: 0;
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 950;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.50);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fab-bounce 0.6s 1.5s ease both;
}

@keyframes fab-bounce {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
}

/* Tooltip */
.whatsapp-fab::after {
  content: 'WhatsApp schreiben';
  position: absolute;
  right: calc(100% + 10px);
  background: rgba(13, 43, 85, 0.92);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.whatsapp-fab:hover::after {
  opacity: 1;
}

/* ============================================================
   MODAL / FUNNEL OVERLAY
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 43, 85, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90svh;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
@media (min-width: 480px) {
  .modal { padding: 2rem 1.75rem; }
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--blue);
}

.modal-close:hover {
  background: #e0e7ef;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-header .modal-icon {
  width: 52px;
  height: 52px;
  background: rgba(39, 174, 96, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.modal-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.modal-header p {
  color: var(--gray-text);
  font-size: 0.9rem;
}

/* ── Funnel: Progress bar ── */
.funnel-progress {
  height: 5px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.funnel-progress-bar {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.35s ease;
  width: 0%;
}
.funnel-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

/* ── Funnel: Question ── */
.funnel-question {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.1rem;
  line-height: 1.3;
}

/* ── Funnel: Option cards ── */
.funnel-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.funnel-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--blue);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  width: 100%;
  min-height: 48px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.funnel-option:hover,
.funnel-option:focus-visible {
  border-color: var(--green);
  background: rgba(39, 174, 96, 0.05);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
  outline: none;
}
.option-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.funnel-option:hover .option-dot,
.funnel-option:focus-visible .option-dot {
  border-color: var(--green);
  background: rgba(39, 174, 96, 0.15);
}

/* ── Funnel: Input fields ── */
.funnel-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.funnel-row {
  display: flex;
  gap: 0.5rem;
}
.funnel-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.funnel-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.funnel-field input,
.funnel-field select {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: var(--blue);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}
.funnel-field input:focus,
.funnel-field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}
.funnel-field input.is-error {
  border-color: #ef4444;
}

/* ── Funnel: Checkbox ── */
.funnel-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
  cursor: pointer;
}
.funnel-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}
.funnel-checkbox-wrap span {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.5;
}
.funnel-checkbox-wrap a {
  color: var(--green);
  text-decoration: underline;
}

/* ── Funnel: Error text ── */
.funnel-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-bottom: 0.75rem;
  display: none;
}

/* ── Funnel: Navigation buttons ── */
.funnel-nav {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.btn-funnel-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-text);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  min-height: 44px;
  font-family: inherit;
  white-space: nowrap;
}
.btn-funnel-back:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-funnel-next {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.25rem;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.35);
  min-height: 44px;
  font-family: inherit;
}
.btn-funnel-next:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(39, 174, 96, 0.45);
}

/* ── Funnel: Thank you ── */
.funnel-thanks {
  text-align: center;
  padding: 0.75rem 0 0.5rem;
}
.thanks-icon {
  width: 64px;
  height: 64px;
  background: rgba(39, 174, 96, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.funnel-thanks h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.funnel-thanks p {
  color: #374151;
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.thanks-highlight {
  color: var(--green);
  font-weight: 700;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section {
  background: var(--gray-light);
  padding: 4rem 1.25rem;
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(13, 43, 85, 0.10);
}

.faq-item:first-child {
  border-top: 1px solid rgba(13, 43, 85, 0.10);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--blue);
  text-align: left;
  line-height: 1.4;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--green);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding-bottom: 1.1rem;
  font-size: 0.93rem;
  color: #374151;
  line-height: 1.7;
}

/* ============================================================
   SEO TEXT
   ============================================================ */
.seo-section {
  background: var(--white);
  padding: 3.5rem 1.25rem;
  border-top: 1px solid rgba(13, 43, 85, 0.08);
}

.seo-inner {
  max-width: 720px;
  margin: 0 auto;
}

.seo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.seo-inner p {
  font-size: 0.93rem;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.seo-inner p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.55);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.70);
  transition: color var(--transition);
  margin: 0 0.5rem;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links {
  margin-bottom: 0.5rem;
}

/* ============================================================
   RESPONSIVE — Tablet / Desktop
   ============================================================ */
@media (min-width: 640px) {
  .hero-content {
    padding: 8rem 2rem 4rem;
    margin: 0;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .btn-cta {
    width: auto;
    min-width: 280px;
  }

  .cta-note {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .hero {
    /* 1. Keeps the image covering the background naturally */
    background-size: cover;
    
    /* 2. ADJUST THIS TO POSITION YOUR IMAGE: 
       First value = Horizontal (Left/Right), Second value = Vertical (Up/Down)
       Examples: 'right center', '75% center', 'center center' */
    background-position: 80% center; 
  }

  .hero::before {
    /* 3. FIXES THE OVERLAY: Fades from dark blue on the left (so text is readable) 
       to completely transparent on the right (so your image shines through clearly) */
    background: linear-gradient(
      to right,
      rgba(13, 43, 85, 0.95) 0%,
      rgba(13, 43, 85, 0.75) 38%,
      rgba(13, 43, 85, 0.10) 62%,
      rgba(13, 43, 85, 0.0) 100%
    );
  }

  .hero-content {
    padding: 8rem 0 4rem;
    margin-left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
    max-width: 580px;
  }

  .hero-headline {
    font-size: 3.6rem;
  }

  .logo {
    font-size: 1.35rem;
  }
}

@media (min-width: 1200px) {
  .header-inner {
    padding: 0 2rem;
  }
}
