/* ═══════════════════════════════════════════════════════════════════════════
   Clean & Gut – Angebots-Funnel Stylesheet
   Farben: Türkis #2ab4c0 · Petrol #1a3a4a · Weiß #ffffff · Grau #f4f7f9
   ═══════════════════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: #f4f7f9;
  color: #1a3a4a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dde4ea;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
}

.logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* ─── Main / Funnel Wrapper ─────────────────────────────────────────────── */
.funnel-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 32px;
}

/* ─── Funnel Card ───────────────────────────────────────────────────────── */
.funnel-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(26,58,74,0.10);
  border: 1px solid #dde4ea;
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  position: relative;
}

/* Türkis-Petrol-Akzentbalken oben */
.funnel-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #2ab4c0 0%, #1a3a4a 100%);
}

/* ─── Progress Bar ──────────────────────────────────────────────────────── */
.progress-track {
  height: 4px;
  background: #dde4ea;
  margin: 24px 32px 0;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #2ab4c0;
  border-radius: 99px;
  width: 25%;
  transition: width 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─── Funnel Steps ──────────────────────────────────────────────────────── */
.funnel-step {
  display: none;
  padding: 28px 32px 36px;
}

.funnel-step.active {
  display: block;
}

/* ─── Step Title ────────────────────────────────────────────────────────── */
.step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a3a4a;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.3;
}

/* ─── Tile Grid ─────────────────────────────────────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ─── Tile ──────────────────────────────────────────────────────────────── */
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: #ffffff;
  border: 2px solid #dde4ea;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  font-family: inherit;
  min-height: 100px;
}

.tile:hover {
  border-color: #2ab4c0;
  box-shadow: 0 2px 12px rgba(42,180,192,0.18);
}

.tile:active {
  transform: scale(0.97);
}

.tile.selected {
  border-color: #2ab4c0;
  background: rgba(42,180,192,0.08);
  box-shadow: 0 2px 14px rgba(42,180,192,0.22);
}

/* Icon inside tile */
.tile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2ab4c0;
  transition: color 0.18s ease;
}

.tile-icon svg {
  width: 32px;
  height: 32px;
  stroke: #2ab4c0;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a3a4a;
  line-height: 1.25;
}

/* ─── Area Tiles (Schritt 3) ────────────────────────────────────────────── */
.tile--area {
  min-height: 80px;
  gap: 0;
}

.area-label {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a4a;
  transition: color 0.18s ease;
}

.tile--area:hover .area-label,
.tile--area.selected .area-label {
  color: #2ab4c0;
}

/* ─── Back Button ───────────────────────────────────────────────────────── */
.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 24px auto 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  color: #7a9aaa;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.back-btn:hover { color: #1a3a4a; }
.back-btn svg { stroke: currentColor; }

/* ─── Contact Form ──────────────────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a3a4a;
}

.form-field input {
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #dde4ea;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1a3a4a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field input::placeholder { color: #aabbc6; }

.form-field input:focus {
  border-color: #2ab4c0;
  box-shadow: 0 0 0 3px rgba(42,180,192,0.15);
}

.form-field input.error {
  border-color: #e05252;
}

.field-error {
  font-size: 0.78rem;
  color: #e05252;
  min-height: 16px;
  display: block;
}

/* ─── Submit Button ─────────────────────────────────────────────────────── */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  background: #1a3a4a;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.18s ease, transform 0.12s ease;
  letter-spacing: 0.01em;
}

.submit-btn:hover { background: #254d63; }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.submit-btn svg { stroke: #ffffff; }

/* ─── Success Screen ────────────────────────────────────────────────────── */
.success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 12px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(42,180,192,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2ab4c0;
}

.success-icon svg { stroke: #2ab4c0; }

.success-text {
  font-size: 0.95rem;
  color: #3d6070;
  line-height: 1.6;
  max-width: 380px;
}

.restart-btn {
  margin-top: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  color: #2ab4c0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.restart-btn:hover { color: #1a8a96; }

/* ─── Trust Line ────────────────────────────────────────────────────────── */
.trust-line {
  margin-top: 18px;
  font-size: 0.78rem;
  color: #7a9aaa;
  text-align: center;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #dde4ea;
  padding: 14px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.78rem;
  color: #7a9aaa;
}

.footer-inner a {
  color: #7a9aaa;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-inner a:hover { color: #2ab4c0; }

/* ─── Spinner (Senden-Zustand) ──────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .funnel-step { padding: 22px 20px 28px; }
  .progress-track { margin: 20px 20px 0; }
  .step-title { font-size: 1.15rem; margin-bottom: 22px; }
  .tile { padding: 16px 10px; min-height: 90px; }
  .tile-icon svg { width: 28px; height: 28px; }
  .tile-label { font-size: 0.82rem; }
  .tile-grid { gap: 10px; }
  .submit-btn { height: 46px; font-size: 0.95rem; }
}
