/* ===============================================
   Boonsted Funnel CSS - Angepasst an Boonsted Design
   Pfad: /assets/css/funnel.css
   =============================================== */

/* Fonts - Lokal eingebunden */
@font-face {
  font-display: swap;
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/nunito-sans-v19-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/nunito-sans-v19-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/nunito-sans-v19-latin-700.woff2') format('woff2');
}

/* CSS Reset & Grundeinstellungen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Hauptcontainer */
#funnel {
  min-height: 100vh;
  background: var(--color-white);
}

/* Progress Bar - Dezent oben */
#progress {
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#progress::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: var(--progress, 0%);
  background: var(--color-primary);
  transition: width 0.4s ease;
}

#progress-text {
  display: none;
  /* Text verstecken, nur Linie zeigen */
}

/* Form Steps */
#funnel-form {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Count - Klein und grau */
.step-count {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 400;
}

/* Überschrift */
.step h2 {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  color: var(--color-dark);
  margin-bottom: 32px;
  line-height: 1.3;
}

/* Subtitle (z.B. Mehrfachauswahl möglich) */
.subtitle {
  text-align: center;
  color: var(--color-gray);
  margin-top: -10px;
  margin-bottom: 20px;
}

/* Radio & Checkbox Cards */
.radio-group,
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

/* 2 Spalten für ALLE Gruppen auf Desktop */

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.radio-group label:hover,
.checkbox-group label:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(9, 153, 141, 0.1);
}

/* Radio/Checkbox verstecken, Custom Circle zeigen */
.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-group label span,
.checkbox-group label span {
  font-size: 17px;
  color: var(--color-dark);
  flex: 1;
  position: relative;
}

/* Custom Circle rechts */
.radio-group label::after,
.checkbox-group label::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

/* Checked State */
.radio-group label:has(input:checked),
.checkbox-group label:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-accent-mint);
}

.radio-group label:has(input:checked)::after,
.checkbox-group label:has(input:checked)::after {
  border-color: var(--color-primary);
  border-width: 8px;
}

/* Textarea */
textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  transition: all 0.2s ease;
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(9, 153, 141, 0.1);
}

textarea::placeholder {
  color: #9ca3af;
}

/* Input Felder */
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s ease;
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(9, 153, 141, 0.1);
}

input::placeholder {
  color: #9ca3af;
}

/* Privacy Checkbox */
.privacy {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
}

.privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.privacy span {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.privacy span a {
  color: var(--color-primary);
  text-decoration: none;
}

.privacy span a:hover {
  text-decoration: underline;
}

.privacy-note {
  font-size: 13px;
  color: var(--color-gray);
  margin-top: 16px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  line-height: 1.5;
  text-align: center;
}

/* Buttons - Einheitliche Styles für <a> und <button> */
#funnel button.btn,
#funnel a.btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  margin-top: 24px;
}

#funnel button.btn-primary,
#funnel a.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

#funnel button.btn-primary:hover,
#funnel a.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

#funnel button.btn-secondary,
#funnel a.btn-secondary {
  background-color: #f5f5f5;
  color: var(--color-dark);
}

#funnel button.btn-secondary:hover,
#funnel a.btn-secondary:hover {
  background-color: #e5e5e5;
}

#funnel .continue-btn {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

#funnel .landing-hero #start-btn,
#funnel .landing-cta-bottom #start-btn-bottom {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Hint Text */
.hint {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 64px;
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.6;
}

.hint strong {
  color: var(--color-dark);
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

/* Info Section (Partner Step 1) - VOLLE BREITE */
.info-section {
  margin-top: 64px;
  padding-top: 48px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: 135px;
  padding-right: 135px;
}

.info-subtitle {
  text-align: center;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.info-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 48px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto 48px;
}

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

.info-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.info-item h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.info-item p {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.6;
}

/* Saving Step */
#saving {
  text-align: center;
  padding: 80px 20px;
}

#saving h2 {
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--color-dark);
}

#saving p {
  font-size: 16px;
  color: var(--color-gray);
}

#saving::after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  margin: 32px auto 0;
  border: 3px solid #f3f4f6;
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Thank You Page */
#thankyou {
  text-align: center;
  padding: 80px 20px;
}

#thankyou h2 {
  color: var(--color-primary);
  margin-bottom: 20px;
  font-size: 28px;
}

#thankyou p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Form spezifisch */
#contact h2 {
  margin-bottom: 32px;
}

.next-steps-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin: 60px 0 32px;
  color: var(--color-dark);
}

.next-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.next-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.next-step-item .checkmark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.next-step-item span {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.5;
}

/* RESPONSIVE */

/* DIVIDER - Für Abstände zwischen Sections */
.section-divider {
  height: 80px;
  width: 100%;
}

.section-divider.small {
  height: 40px;
}

.section-divider.large {
  height: 120px;
}

/* Error Message */
.error-message {
  color: #dc2626;
  padding: 12px 16px;
  margin-top: 12px;
  background: #fef2f2;
  border-radius: 8px;
  font-size: 14px;
  border-left: 3px solid #dc2626;
  animation: shake 0.4s;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

/* Field Validation (AJAX-Check) */
.field-validation-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-validation-error::before {
  content: '✕';
  font-weight: bold;
}

.field-validation-success {
  color: #10b981;
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Landing Page (Customer Funnel) */
#landing {
  display: none;
  padding: 0;
  max-width: 100%;
}

#landing.active {
  display: block;
}

/* MINI FOOTER - Für Landing Page Modus */
.funnel-logo {
  text-align: center;
  padding: 40px 20px 20px;
  background: var(--color-white);
}

.funnel-logo img {
  height: 32px;
  width: auto;
}

.funnel-footer {
  background: var(--color-white);
  padding: 32px 20px;
  margin-top: 80px;
  border-top: 1px solid #e5e7eb;
}

.funnel-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.funnel-footer-links a {
  color: var(--color-gray);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.funnel-footer-links a:hover {
  color: var(--color-primary);
}

.funnel-footer-links span {
  color: #d1d5db;
  font-size: 14px;
}

/* HERO SECTION */
.landing-hero {
  text-align: center;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.landing-subtitle {
  font-size: 16px;
  color: var(--color-gray);
  margin-bottom: 16px;
  font-weight: 400;
}

.landing-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-dark);
  line-height: 1.2;
}

.landing-intro {
  font-size: 18px;
  margin-bottom: 40px;
  color: #4b5563;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO IMAGE (Full Width) */
.landing-hero-image {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 0;
}

.landing-hero-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

/* INFO BLOCKS Container - VOLLE BREITE wie info-section */
.info-blocks-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 80px 135px;
}

/* INFO BLOCKS - Image/Text alternierend */
.info-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto 80px auto;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block.left {
  direction: rtl;
}

.info-block.left>* {
  direction: ltr;
}

.info-block-title {
  font-size: 36px !important;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.info-block-content p.info-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.7;
  text-align: left;
  margin-bottom: 8px;
}

.info-block-content p strong {
  color: var(--color-primary);
  font-weight: 600;
}

.info-block-content p {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-gray);
  line-height: 1.7;
  text-align: left;
}

.info-block-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
}

/* CTA BOTTOM */
.landing-cta-bottom {
  background: var(--color-white);
  padding: 80px 40px;
  text-align: center;
}

.landing-cta-bottom h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

.landing-cta-bottom p {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* RESPONSIVE */



/* ===============================================
   RESPONSIVE - Konsolidierte Media Queries
   =============================================== */

/* Desktop: 768px+ */
@media (min-width: 768px) {

  .radio-group,
  .checkbox-group {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .next-steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* Tablet: max 1024px */
@media (max-width: 1024px) {
  .info-section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .info-blocks-container {
    padding: 80px 40px;
  }

  .info-block {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .info-block.left {
    direction: ltr;
  }

  .info-block-image img {
    height: 300px;
  }

  .landing-block {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }

  .landing-block.left {
    direction: ltr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .info-block {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 40px;
    margin-bottom: 60px;
  }

  .info-block.left {
    direction: ltr;
  }

  .info-block-image img {
    height: 300px;
  }
}

/* Mobile: max 640px */
@media (max-width: 640px) {
  .info-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  #funnel-form {
    padding: 24px 16px;
  }

  .step h2 {
    font-size: 24px;
  }

  .radio-group label,
  .checkbox-group label {
    padding: 16px 20px;
  }

  .radio-group label span,
  .checkbox-group label span {
    font-size: 16px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 16px;
  }

  .info-title {
    font-size: 24px;
  }

  .section-divider {
    height: 60px;
  }

  .section-divider.small {
    height: 30px;
  }

  .section-divider.large {
    height: 80px;
  }

  .info-blocks-container {
    padding: 80px 20px;
  }

  .info-block-title {
    font-size: 28px !important;
  }

  .info-block-content p {
    font-size: 16px;
  }

  .info-block-image img {
    height: 280px;
  }

  .landing-hero {
    padding: 60px 20px;
  }

  .landing-hero h1 {
    font-size: 32px;
  }

  .landing-intro {
    font-size: 16px;
  }

  .landing-hero-image img {
    height: 300px;
  }

  .landing-cta-bottom {
    padding: 60px 20px;
  }

  .landing-cta-bottom h2 {
    font-size: 28px;
  }

  .landing-cta-bottom p {
    font-size: 16px;
  }

  .info-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .info-block {
    padding: 0 20px;
  }

  .info-block-title {
    font-size: 28px !important;
  }

  .info-block-content p {
    font-size: 16px;
  }

  .info-block-image img {
    height: 280px;
  }
}