/* ============================================================
   Compass Treuhand — Mandanten-Start Funnel
   Vollseite mit Sticky-Header, Progress, 4 Schritten und Erfolgsansicht
   ============================================================ */

.ct-funnel-body {
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
  font-family: 'Fira Sans', sans-serif;
  color: var(--ct-text);
  min-height: 100vh;
  padding-top: 76px;  /* Platz für sticky Header */
}

/* Compass-Rose Watermark, sehr dezent */
.ct-funnel-body::before {
  content: '';
  position: fixed;
  top: -120px;
  right: -160px;
  width: 540px;
  height: 540px;
  background-image: url('../img/bg-compass-rose.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.ct-funnel-body::after {
  content: '';
  position: fixed;
  bottom: -120px;
  left: -160px;
  width: 460px;
  height: 460px;
  background-image: url('../img/bg-compass-rose.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.ct-funnel-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.ct-funnel-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(4, 99, 144, 0.08);
  box-shadow: 0 4px 18px rgba(4, 99, 144, 0.04);
  z-index: 1000;
}

.ct-funnel-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ct-funnel-brand {
  display: inline-flex;
  align-items: center;
  height: 44px;
}
.ct-funnel-brand img {
  height: 44px;
  width: auto;
  display: block;
}

.ct-funnel-header-center {
  flex: 1;
  text-align: center;
}

.ct-funnel-header-eyebrow {
  font-family: 'Fira Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ct-blue);
}

.ct-funnel-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ct-save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ct-text-muted);
  opacity: 0.6;
  transition: opacity 0.4s ease, color 0.4s ease;
}
.ct-save-indicator.is-active {
  opacity: 1;
  color: var(--ct-gold);
}
.ct-save-indicator i {
  font-size: 13px;
}

.ct-funnel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(4, 99, 144, 0.06);
  color: var(--ct-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.ct-funnel-close:hover {
  background: rgba(4, 99, 144, 0.14);
  color: var(--ct-blue-dark);
}

/* ============================================================
   RESUME BANNER
   ============================================================ */
.ct-resume-banner {
  background: linear-gradient(135deg, rgba(168, 136, 2, 0.10) 0%, rgba(168, 136, 2, 0.04) 100%);
  border-bottom: 1px solid rgba(168, 136, 2, 0.18);
  animation: ctSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ctSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.ct-resume-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ct-resume-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(168, 136, 2, 0.18);
  color: var(--ct-gold);
  font-size: 15px;
  flex-shrink: 0;
}
.ct-resume-text {
  flex: 1;
  font-size: 14px;
  color: var(--ct-text);
}
.ct-resume-text strong { color: var(--ct-blue); font-weight: 600; }
.ct-resume-discard {
  background: none;
  border: none;
  text-decoration: underline;
  color: var(--ct-text-muted);
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.ct-resume-discard:hover { color: var(--ct-blue); }
.ct-resume-btn {
  background: var(--ct-gold);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.ct-resume-btn:hover {
  background: #c69f0d;
  transform: translateY(-1px);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.ct-funnel-progress {
  background: #ffffff;
  border-bottom: 1px solid rgba(4, 99, 144, 0.06);
  padding: 28px 0 24px;
  position: relative;
  z-index: 1;
}

.ct-funnel-progress-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.ct-progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.ct-progress-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(4, 99, 144, 0.10);
  z-index: 0;
}

/* Gold-Linie hinter erledigten Schritten */
.ct-progress-steps::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--ct-blue) 0%, var(--ct-gold) 100%);
  width: 0%;
  max-width: 80%;
  z-index: 0;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-progress-steps[data-progress="0"]::after { width: 0%; }
.ct-progress-steps[data-progress="1"]::after { width: 27%; }
.ct-progress-steps[data-progress="2"]::after { width: 53%; }
.ct-progress-steps[data-progress="3"]::after { width: 80%; }
.ct-progress-steps[data-progress="4"]::after { width: 80%; }

.ct-progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  flex: 1;
}

.ct-progress-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(4, 99, 144, 0.18);
  color: var(--ct-text-muted);
  font-family: 'Marcellus SC', serif;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-progress-step.is-active .ct-progress-num {
  background: linear-gradient(135deg, var(--ct-gold) 0%, #c69f0d 100%);
  color: #fff;
  border-color: var(--ct-gold);
  box-shadow: 0 6px 16px rgba(168, 136, 2, 0.35);
  animation: ctPulseActive 2.2s ease-in-out infinite;
}

.ct-progress-step.is-completed .ct-progress-num {
  background: var(--ct-blue);
  color: #fff;
  border-color: var(--ct-blue);
}
.ct-progress-step.is-completed .ct-progress-num::before {
  content: '✓';
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.ct-progress-step.is-completed .ct-progress-num {
  text-indent: -9999px;
  position: relative;
}
.ct-progress-step.is-completed .ct-progress-num::before {
  position: absolute;
  text-indent: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ct-progress-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ct-text-muted);
  transition: color 0.3s ease;
}
.ct-progress-step.is-active .ct-progress-label { color: var(--ct-blue); }
.ct-progress-step.is-completed .ct-progress-label { color: var(--ct-blue); }

@keyframes ctPulseActive {
  0%, 100% { box-shadow: 0 6px 16px rgba(168, 136, 2, 0.35); }
  50% { box-shadow: 0 6px 22px rgba(168, 136, 2, 0.55); }
}

/* ============================================================
   HERO
   ============================================================ */
.ct-funnel-hero {
  padding: 50px 0 28px;
  text-align: center;
}

.ct-funnel-hero h1 {
  font-family: 'Marcellus SC', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--ct-blue);
  letter-spacing: 1.2px;
  line-height: 1.2;
  margin: 0 0 18px;
}

.ct-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ct-text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.ct-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ct-hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(4, 99, 144, 0.06);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ct-blue);
  letter-spacing: 0.3px;
}
.ct-hero-meta-pill i {
  color: var(--ct-gold);
  font-size: 13px;
}

/* ============================================================
   FUNNEL MAIN + STEPS
   ============================================================ */
.ct-funnel-main {
  padding: 28px 0 80px;
}

.ct-step {
  display: none;
  animation: ctStepFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ct-step.is-active { display: block; }
@keyframes ctStepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ct-step-head {
  text-align: center;
  margin-bottom: 40px;
}

.ct-step-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ct-gold);
  margin-bottom: 14px;
  padding: 6px 14px;
  background: rgba(168, 136, 2, 0.08);
  border-radius: 100px;
}

.ct-step-head h2 {
  font-family: 'Fira Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--ct-blue);
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.ct-step-head p {
  font-size: 16px;
  color: var(--ct-text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   STEP 1 — ANLIEGEN CARDS
   ============================================================ */
.ct-anliegen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.ct-anliegen-card {
  position: relative;
  background: #ffffff;
  border: 2px solid rgba(4, 99, 144, 0.10);
  border-radius: 6px;
  padding: 28px 26px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: inherit;
  min-height: 168px;
}

.ct-anliegen-card:hover {
  border-color: var(--ct-gold);
  background: #fdfaee;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(168, 136, 2, 0.18);
}

.ct-anliegen-card.is-selected {
  border-color: var(--ct-gold);
  background: linear-gradient(135deg, rgba(168, 136, 2, 0.10) 0%, rgba(168, 136, 2, 0.02) 100%);
  box-shadow: 0 16px 36px rgba(168, 136, 2, 0.28);
  animation: ctCardSelected 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ctCardSelected {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.ct-anliegen-card.is-selected::after {
  content: '✓';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  background: var(--ct-gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.ct-anliegen-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(4, 99, 144, 0.08);
  color: var(--ct-blue);
  font-size: 22px;
  transition: all 0.4s ease;
}
.ct-anliegen-card:hover .ct-anliegen-icon,
.ct-anliegen-card.is-selected .ct-anliegen-icon {
  background: var(--ct-gold);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.ct-anliegen-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ct-blue);
  line-height: 1.25;
  letter-spacing: 0.1px;
}

.ct-anliegen-desc {
  font-size: 13px;
  color: var(--ct-text-muted);
  line-height: 1.55;
}

/* ============================================================
   STEP 2 — DYNAMIC QUESTIONS
   ============================================================ */
.ct-questions {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ct-question {
  background: #ffffff;
  border-radius: 8px;
  padding: 28px 30px;
  border: 1px solid rgba(4, 99, 144, 0.08);
  box-shadow: 0 4px 14px rgba(4, 99, 144, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ct-question:focus-within {
  border-color: rgba(168, 136, 2, 0.30);
  box-shadow: 0 6px 18px rgba(4, 99, 144, 0.08);
}

.ct-question-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ct-blue);
  margin-bottom: 4px;
  line-height: 1.4;
}
.ct-question-label .ct-req { color: var(--ct-gold); margin-left: 4px; }

.ct-question-hint {
  display: block;
  font-size: 13px;
  color: var(--ct-text-muted);
  margin-bottom: 18px;
  line-height: 1.55;
}

/* Card-choices innerhalb von questions */
.ct-q-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.ct-q-choice {
  background: #ffffff;
  border: 2px solid rgba(4, 99, 144, 0.10);
  border-radius: 4px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--ct-text);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  min-height: 52px;
}
.ct-q-choice:hover {
  border-color: var(--ct-gold);
  background: #fdfaee;
}
.ct-q-choice.is-selected {
  border-color: var(--ct-gold);
  background: rgba(168, 136, 2, 0.10);
  color: var(--ct-blue);
  font-weight: 600;
}
.ct-q-choice.is-selected::after {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--ct-gold);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.ct-q-multi-hint {
  font-size: 12px;
  color: var(--ct-text-muted);
  margin-top: 8px;
  display: block;
  font-style: italic;
}

.ct-q-input,
.ct-q-select,
.ct-q-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ct-text);
  background: #f6f9fb;
  border: 1.5px solid transparent;
  border-radius: 4px;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}
.ct-q-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.55;
}
.ct-q-input:focus,
.ct-q-select:focus,
.ct-q-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--ct-gold);
  box-shadow: 0 0 0 4px rgba(168, 136, 2, 0.10);
}
.ct-q-select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23046390' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 11px;
  padding-right: 38px;
  cursor: pointer;
}

.ct-q-char-count {
  font-size: 11px;
  color: var(--ct-text-muted);
  text-align: right;
  margin-top: 4px;
}

/* "Bitte hier noch ausfuellen" — freundlich-warm statt aggressiv-rot.
   Gold/amber-Toene fuehlen sich wie ein dezenter Hinweis an, nicht
   wie ein Fehler-Vorwurf. */
.ct-question.is-invalid {
  border-color: rgba(168, 136, 2, 0.55);
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 12%);
}
.ct-question.is-invalid .ct-question-error {
  display: block;
}
.ct-question-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(168, 136, 2, 0.08);
  color: #7a5a00;
  font-size: 13px;
  font-weight: 500;
  border-radius: 3px;
  border-left: 3px solid var(--ct-gold);
}
.ct-question-error::before {
  content: '↑ ';
  font-weight: 700;
  margin-right: 4px;
  color: var(--ct-gold);
}

/* ============================================================
   STEP 3 — UNTERLAGEN
   ============================================================ */
.ct-upload-choices {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.ct-upload-choice {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #ffffff;
  border: 2px solid rgba(4, 99, 144, 0.10);
  border-radius: 6px;
  padding: 22px 26px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.35s ease;
  width: 100%;
}
.ct-upload-choice:hover {
  border-color: var(--ct-gold);
  background: #fdfaee;
  transform: translateY(-2px);
}
.ct-upload-choice.is-selected {
  border-color: var(--ct-gold);
  background: linear-gradient(135deg, rgba(168, 136, 2, 0.08) 0%, rgba(168, 136, 2, 0.02) 100%);
  box-shadow: 0 12px 28px rgba(168, 136, 2, 0.18);
}

.ct-upload-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 22px;
  flex-shrink: 0;
}

.ct-upload-choice-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ct-blue);
  margin-bottom: 4px;
}
.ct-upload-choice-text small {
  display: block;
  font-size: 13px;
  color: var(--ct-text-muted);
  line-height: 1.5;
}

/* Upload Zone — smooth reveal nach Choice "Jetzt hochladen" */
.ct-upload-zone {
  background: #ffffff;
  border-radius: 6px;
  padding: 22px 26px 26px;
  border: 1px solid rgba(4, 99, 144, 0.08);
  box-shadow: 0 6px 18px rgba(4, 99, 144, 0.04);
  animation: ctZoneReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ctZoneReveal {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 2000px; }
}

.ct-upload-info {
  animation: ctZoneReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-upload-trust {
  font-size: 12px;
  color: var(--ct-text-muted);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(4, 99, 144, 0.04);
  border-radius: 3px;
  border-left: 3px solid var(--ct-blue);
}
.ct-upload-trust i { color: var(--ct-blue); margin-right: 8px; }

.ct-dropzone {
  border: 2.5px dashed rgba(168, 136, 2, 0.45);
  border-radius: 6px;
  padding: 40px 22px;
  text-align: center;
  background: #fdfaee;
  cursor: pointer;
  transition: all 0.35s ease;
}
.ct-dropzone:hover,
.ct-dropzone.is-dragover {
  border-color: var(--ct-gold);
  background: rgba(168, 136, 2, 0.10);
  transform: scale(1.01);
}

.ct-dropzone-icon {
  font-size: 38px;
  color: var(--ct-gold);
  margin-bottom: 12px;
}

.ct-dropzone-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ct-blue);
  margin-bottom: 6px;
}
.ct-dropzone-text small {
  display: block;
  font-size: 13px;
  color: var(--ct-text-muted);
}

.ct-file-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f6f9fb;
  border-radius: 4px;
  border: 1px solid rgba(4, 99, 144, 0.06);
  animation: ctFileIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ctFileIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.ct-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(4, 99, 144, 0.10);
  color: var(--ct-blue);
  border-radius: 4px;
  font-size: 15px;
  flex-shrink: 0;
}

.ct-file-meta {
  flex: 1;
  min-width: 0;
}
.ct-file-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ct-blue);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-file-size {
  display: block;
  font-size: 12px;
  color: var(--ct-text-muted);
  margin-top: 2px;
}

.ct-file-progress {
  width: 100px;
  height: 4px;
  background: rgba(4, 99, 144, 0.10);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 6px;
}
.ct-file-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ct-gold) 0%, #d4ae1a 100%);
  width: 0%;
  transition: width 0.3s ease;
}

.ct-file-status {
  font-size: 12px;
  color: var(--ct-gold);
  font-weight: 600;
}
.ct-file-item.is-done .ct-file-status::before { content: '✓ '; }
.ct-file-item.is-error .ct-file-status { color: #d04545; }
.ct-file-item.is-error .ct-file-status::before { content: '✕ '; }

.ct-file-remove {
  background: none;
  border: none;
  color: var(--ct-text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s ease;
}
.ct-file-remove:hover { color: #d04545; }

.ct-upload-meter {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(4, 99, 144, 0.08);
}
.ct-upload-meter-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ct-text-muted);
}
.ct-upload-meter-info strong { color: var(--ct-blue); }

.ct-upload-info {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(4, 99, 144, 0.06);
  border-radius: 4px;
  border-left: 3px solid var(--ct-blue);
  color: var(--ct-blue);
  font-size: 14px;
  line-height: 1.5;
}
.ct-upload-info i { color: var(--ct-gold); margin-right: 10px; font-size: 15px; }

/* Inline-Hinweis im Upload-Bereich (statt browser-alert) */
.ct-upload-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: rgba(168, 136, 2, 0.10);
  border-radius: 4px;
  border-left: 3px solid var(--ct-gold);
  color: #7a5a00;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}
.ct-upload-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 200px;
  padding-top: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.ct-upload-notice i {
  color: var(--ct-gold);
  margin-right: 10px;
  font-size: 16px;
}

/* ============================================================
   STEP 4 — KONTAKT
   ============================================================ */
.ct-step--4 .ct-form-grid {
  background: #ffffff;
  border-radius: 6px;
  padding: 32px 32px 28px;
  border: 1px solid rgba(4, 99, 144, 0.08);
  box-shadow: 0 6px 18px rgba(4, 99, 144, 0.04);
}

/* Wunschtermin */
.ct-termin-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
}

.ct-termin-date {
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ct-text);
  background: #f6f9fb;
  border: 1.5px solid transparent;
  border-radius: 4px;
  transition: all 0.25s ease;
}
.ct-termin-date:focus {
  outline: none;
  background: #fff;
  border-color: var(--ct-gold);
  box-shadow: 0 0 0 4px rgba(168, 136, 2, 0.10);
}

.ct-termin-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ct-termin-slot {
  background: #ffffff;
  border: 1.5px solid rgba(4, 99, 144, 0.12);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ct-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.25s ease;
  text-align: center;
  line-height: 1.2;
}
.ct-termin-slot:hover {
  border-color: var(--ct-gold);
  background: #fdfaee;
}
.ct-termin-slot.is-selected {
  border-color: var(--ct-gold);
  background: rgba(168, 136, 2, 0.12);
  color: var(--ct-blue);
  font-weight: 600;
}
.ct-termin-slot small {
  font-size: 10px;
  color: var(--ct-text-muted);
  font-weight: 400;
}
.ct-termin-slot.is-selected small { color: var(--ct-blue); }

.ct-termin-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ct-text-muted);
  font-style: italic;
}

/* ============================================================
   STEP NAVIGATION
   - Desktop: inline am Ende
   - Mobile: sticky am unteren Bildschirmrand für ständige Erreichbarkeit
   ============================================================ */
.ct-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(4, 99, 144, 0.08);
  gap: 16px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.ct-nav-back {
  background: transparent;
  border: 1.5px solid rgba(4, 99, 144, 0.18);
  color: var(--ct-text-muted);
  padding: 12px 22px;
  border-radius: 3px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ct-nav-back:hover {
  border-color: var(--ct-blue);
  color: var(--ct-blue);
}
.ct-nav-back i { font-size: 12px; }

.ct-nav-next,
.ct-nav-submit {
  background: var(--ct-gold);
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(168, 136, 2, 0.4);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin-left: auto;
}
.ct-nav-next:hover:not(:disabled),
.ct-nav-submit:hover:not(:disabled) {
  background: #c69f0d;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(168, 136, 2, 0.55);
}
.ct-nav-next:disabled,
.ct-nav-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.ct-nav-submit.is-loading {
  pointer-events: none;
}
.ct-btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ctSpinFunnel 0.7s linear infinite;
}
.ct-nav-submit.is-loading .ct-btn-spinner { display: inline-block; }
@keyframes ctSpinFunnel {
  to { transform: rotate(360deg); }
}

/* ============================================================
   ABSCHLUSS-SEITE
   ============================================================ */
.ct-funnel-success {
  padding: 80px 0 100px;
  text-align: center;
  animation: ctSuccessIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ctSuccessIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Kompass + Eyebrow als horizontales Duo, kompakt und zentriert.
   Der Kompass war vorher 104px und schwebte einsam; jetzt 56px und
   gemeinsam mit dem Eyebrow vertikal zentriert. */
.ct-success-header {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto 32px;
  padding: 10px 26px 10px 10px;
  background: rgba(4, 99, 144, 0.03);
  border-radius: 100px;
}

.ct-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ct-blue) 0%, var(--ct-blue-dark) 100%);
  color: var(--ct-gold-light);
  font-size: 24px;
  box-shadow: 0 8px 22px rgba(4, 99, 144, 0.25);
  animation: ctCompassWobble 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  flex-shrink: 0;
}

.ct-success-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--ct-gold);
  white-space: nowrap;
}

@keyframes ctCompassWobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}

.ct-funnel-success h2 {
  font-family: 'Marcellus SC', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--ct-blue);
  letter-spacing: 1px;
  margin: 0 0 12px;
}

.ct-success-sub {
  font-size: 17px;
  color: var(--ct-text-muted);
  margin: 0 0 28px;
  font-style: italic;
}

.ct-success-id {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #ffffff;
  border: 1px solid rgba(4, 99, 144, 0.10);
  border-radius: 100px;
  margin-bottom: 48px;
  box-shadow: 0 6px 16px rgba(4, 99, 144, 0.06);
}
.ct-success-id > span {
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ct-text-muted);
}
.ct-success-id code {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ct-blue);
  letter-spacing: 1.2px;
  background: none;
}

.ct-success-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: left;
}

.ct-success-step {
  background: #ffffff;
  border-radius: 6px;
  padding: 26px 22px;
  border: 1px solid rgba(4, 99, 144, 0.08);
  box-shadow: 0 6px 18px rgba(4, 99, 144, 0.04);
  position: relative;
}

.ct-success-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fdfaee;
  border: 1.5px solid var(--ct-gold);
  color: var(--ct-blue);
  font-family: 'Marcellus SC', serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 14px;
}

.ct-success-step h4 {
  font-family: 'Fira Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ct-blue);
  margin: 0 0 8px;
  line-height: 1.3;
}

.ct-success-step p {
  font-size: 13px;
  color: var(--ct-text-muted);
  margin: 0;
  line-height: 1.55;
}

.ct-success-quick {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 100px;
  border: 1px solid rgba(4, 99, 144, 0.10);
  max-width: 760px;
  margin: 0 auto 30px;
  box-shadow: 0 6px 16px rgba(4, 99, 144, 0.04);
}
.ct-success-quick > span {
  font-size: 13px;
  color: var(--ct-text-muted);
}

.ct-success-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ct-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
.ct-success-link:hover { color: var(--ct-gold); }
.ct-success-link i { color: var(--ct-gold); font-size: 13px; }

.ct-success-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ct-text-muted);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.ct-success-back:hover { color: var(--ct-blue); }

/* ============================================================
   TRUST-FOOTER (immer sichtbar)
   ============================================================ */
.ct-funnel-footer {
  border-top: 1px solid rgba(4, 99, 144, 0.08);
  background: #ffffff;
  padding: 24px 0 28px;
  margin-top: auto;
}

.ct-trust-footer-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.ct-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(4, 99, 144, 0.04);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ct-text-muted);
  letter-spacing: 0.4px;
}
.ct-trust-pill i { color: var(--ct-gold); font-size: 13px; }
.ct-trust-pill strong { color: var(--ct-blue); font-weight: 600; }

.ct-funnel-footer-meta {
  text-align: center;
  font-size: 12px;
  color: var(--ct-text-muted);
}
.ct-funnel-footer-meta a {
  color: var(--ct-text-muted);
  text-decoration: none;
  margin: 0 4px;
}
.ct-funnel-footer-meta a:hover { color: var(--ct-blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 768px) {
  .ct-funnel-body { padding-top: 64px; }
  .ct-funnel-container { padding: 0 18px; }
  .ct-funnel-header-inner { padding: 10px 16px; gap: 8px; }
  .ct-funnel-brand img { height: 36px; }
  .ct-funnel-header-eyebrow { font-size: 10px; letter-spacing: 1.5px; }
  .ct-save-indicator .ct-save-label { display: none; }
  /* Close-Button auf Mobile weniger prominent — damit nicht versehentlich getippt */
  .ct-funnel-close {
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--ct-text-muted);
    font-size: 13px;
  }

  .ct-funnel-progress { padding: 22px 0 18px; }
  .ct-funnel-progress-inner { padding: 0 16px; }
  .ct-progress-num { width: 32px; height: 32px; font-size: 14px; }
  .ct-progress-label { font-size: 9px; letter-spacing: 1px; }
  .ct-progress-steps::before { top: 16px; }

  .ct-funnel-hero { padding: 36px 0 18px; }
  .ct-funnel-hero h1 { font-size: 28px; }
  .ct-hero-sub { font-size: 15px; }

  .ct-step-head h2 { font-size: 24px; }
  .ct-step-head p { font-size: 15px; }

  .ct-anliegen-grid { grid-template-columns: 1fr; gap: 12px; }
  .ct-anliegen-card { padding: 22px 20px; min-height: auto; }
  .ct-anliegen-title { font-size: 16px; }

  .ct-question { padding: 22px 20px; }
  .ct-q-choices { grid-template-columns: 1fr; }

  .ct-upload-choice { padding: 18px 20px; gap: 16px; }
  .ct-upload-choice-icon { width: 48px; height: 48px; font-size: 18px; }

  .ct-step--4 .ct-form-grid { padding: 24px 20px; }
  .ct-termin-row { grid-template-columns: 1fr; }
  .ct-termin-slots { grid-template-columns: repeat(2, 1fr); }

  /* Mobile: Step-Nav sticky am unteren Bildschirmrand,
     damit Weiter/Zurueck immer erreichbar bleibt */
  .ct-step-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(4, 99, 144, 0.12);
    box-shadow: 0 -6px 20px rgba(4, 99, 144, 0.08);
    z-index: 900;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .ct-nav-next, .ct-nav-submit {
    padding: 14px 18px;
    font-size: 13px;
    flex: 1;
    justify-content: center;
    margin-left: 0;
  }
  .ct-nav-back {
    padding: 14px 16px;
    font-size: 12px;
    flex-shrink: 0;
    letter-spacing: 0.8px;
  }

  /* Bottom-Padding fuer den Funnel-Main damit Content nicht von der
     sticky Step-Nav verdeckt wird */
  .ct-funnel-main { padding-bottom: 110px; }

  /* Funnel-Footer mit Trust-Pills auf Mobile staerker spacing, damit
     er nicht von Sticky-Nav verdeckt wird */
  .ct-funnel-footer { padding-bottom: 90px; }

  .ct-funnel-success { padding: 50px 0 60px; }
  .ct-funnel-success h2 { font-size: 30px; }
  .ct-success-header {
    gap: 14px;
    padding: 8px 20px 8px 8px;
    margin-bottom: 24px;
  }
  .ct-success-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .ct-success-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .ct-success-steps { grid-template-columns: 1fr; gap: 12px; }
  .ct-success-quick { padding: 16px 18px; flex-direction: column; gap: 10px; border-radius: 12px; }

  .ct-trust-footer-row { gap: 8px; }
  .ct-trust-pill { padding: 6px 12px; font-size: 11px; }
}

@media screen and (max-width: 480px) {
  .ct-funnel-header-center { display: none; }
  .ct-progress-label { display: none; }
  .ct-progress-steps::before { left: 18%; right: 18%; }
}
