/* ============================================================
   KONTAKT FUNNEL – Scoped Styles
   ============================================================ */

/* Page Layout */
.kontakt-page {
  padding: clamp(6rem, 10vw, 10rem) 0 clamp(4rem, 8vw, 8rem);
}

.kontakt-header {
  margin-bottom: 3rem;
}

.kontakt-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
}

/* ============================================================
   Sidebar (Glassmorphism)
   ============================================================ */
.kontakt-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.kontakt-sidebar-card {
  background: rgba(var(--color-primary-rgb), 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--color-primary-rgb), 0.08);
  padding: 2rem;
}

.kontakt-sidebar-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.sidebar-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sidebar-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-item strong {
  display: block;
  font-size: var(--text-sm);
  color: #fff;
  margin-bottom: 0.15rem;
}

.sidebar-item span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-on-surface-variant);
}

/* ============================================================
   Funnel Container
   ============================================================ */
.kontakt-funnel {
  background: var(--color-surface-low);
  padding: 2.5rem 3rem;
  min-height: 500px;
}

/* ============================================================
   Progress Bar
   ============================================================ */
.funnel-progress {
  margin-bottom: 3rem;
}

.funnel-progress-bar {
  height: 2px;
  background: var(--color-surface-high);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.funnel-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-industrial);
  transition: width 0.5s ease;
}

.funnel-dots {
  display: flex;
  justify-content: space-between;
}

.funnel-dot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary-container);
  transition: color var(--transition-fast);
}

.funnel-dot span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-surface-high);
  color: var(--color-on-surface-variant);
  font-weight: 700;
  font-family: var(--font-headline);
  font-size: var(--text-xs);
  transition: all var(--transition-fast);
}

.funnel-dot.active {
  color: var(--color-primary);
}

.funnel-dot.active span {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.funnel-dot.done span {
  background: rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-primary);
}

.funnel-dot.done {
  color: var(--color-on-surface-variant);
}

/* ============================================================
   Step Transitions
   ============================================================ */
.funnel-step {
  display: none;
}

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

.funnel-step h2 {
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.funnel-step-desc {
  color: var(--color-on-surface-variant);
  margin-bottom: 2rem;
  font-size: var(--text-sm);
}

/* ============================================================
   Thema Cards (Step 1)
   ============================================================ */
.thema-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.thema-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid rgba(63, 72, 82, 0.15);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.thema-card:hover {
  border-color: rgba(var(--color-primary-rgb), 0.3);
  background: var(--color-surface);
}

.thema-card.selected {
  border-color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.05);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.thema-icon {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.thema-card strong {
  display: block;
  font-family: var(--font-headline);
  font-size: var(--text-base);
  color: var(--color-on-surface);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.thema-card.selected strong {
  color: var(--color-primary);
}

.thema-card span {
  font-size: var(--text-xs);
  color: var(--color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   Form Row (2-column)
   ============================================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ============================================================
   Error Messages
   ============================================================ */
.funnel-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 180, 171, 0.08);
  border-left: 3px solid var(--color-error);
  color: var(--color-error);
  font-size: var(--text-sm);
}

/* ============================================================
   Navigation Buttons
   ============================================================ */
.funnel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(63, 72, 82, 0.15);
}

/* ============================================================
   Success State (Step 4)
   ============================================================ */
.funnel-success {
  text-align: center;
  padding: 3rem 0;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.success-checkmark svg {
  width: 100%;
  height: 100%;
}

.checkmark-circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: checkmark-circle 0.6s ease forwards;
}

.checkmark-check {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: checkmark-check 0.4s ease 0.4s forwards;
}

@keyframes checkmark-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes checkmark-check {
  to { stroke-dashoffset: 0; }
}

.funnel-success h2 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.funnel-success p {
  color: var(--color-on-surface-variant);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1023px) {
  .kontakt-layout {
    grid-template-columns: 1fr;
  }

  .kontakt-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }

  .kontakt-funnel {
    padding: 2rem;
  }
}

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .kontakt-funnel {
    padding: 1.5rem;
  }

  .funnel-dots {
    gap: 0.25rem;
  }

  .funnel-dot {
    font-size: 9px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 480px) {
  .thema-cards {
    grid-template-columns: 1fr;
  }
}
