/* ============================================================
   Compass Treuhand — Forms (Kontaktformular + Compass Wizard)
   ============================================================ */

/* ---- Kontakt-Sektion-Layout ---- */
.ct-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 32px 0;
}

.ct-contact-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */
.ct-form-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 44px 44px 38px;
  box-shadow: 0 14px 38px rgba(4, 99, 144, 0.10);
  border: 1px solid rgba(4, 99, 144, 0.06);
  height: 100%;
}

.ct-form-head {
  margin-bottom: 28px;
}

.ct-form-head h4 {
  font-family: 'Fira Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #046390;
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.ct-form-head p {
  margin: 0;
  color: #6b7986;
  font-size: 15px;
  line-height: 1.6;
}

/* Honeypot — sichtbar nur für Bots, semantisch unsichtbar */
.ct-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Form-Grid */
.ct-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

.ct-form-field--full {
  grid-column: 1 / -1;
}

.ct-form-field {
  display: flex;
  flex-direction: column;
}

.ct-form-field label {
  font-family: 'Fira Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #046390;
  letter-spacing: 0.4px;
  margin-bottom: 7px;
}

.ct-form-field .ct-req {
  color: #A88802;
  font-weight: 600;
  margin-left: 2px;
}

.ct-form-field .ct-opt {
  color: #9aa5b1;
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}

.ct-form-field input[type="text"],
.ct-form-field input[type="email"],
.ct-form-field input[type="tel"],
.ct-form-field select,
.ct-form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: 'Fira Sans', sans-serif;
  font-size: 15px;
  color: #2a3645;
  background: #f6f9fb;
  border: 1.5px solid transparent;
  border-radius: 4px;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.ct-form-field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  line-height: 1.55;
}

.ct-form-field 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-form-field input::placeholder,
.ct-form-field textarea::placeholder {
  color: #9aa5b1;
}

.ct-form-field input:focus,
.ct-form-field select:focus,
.ct-form-field textarea:focus {
  outline: none;
  border-color: #A88802;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(168, 136, 2, 0.10);
}

/* Sanftere "Bitte ausfuellen"-Markierung: Gold statt Rot.
   Wirkt einladend, nicht abweisend. */
.ct-form-field.is-invalid input,
.ct-form-field.is-invalid select,
.ct-form-field.is-invalid textarea {
  border-color: var(--ct-gold);
  background: #fffaf0;
  box-shadow: 0 0 0 4px rgba(168, 136, 2, 0.10);
}

.ct-form-field-error {
  color: #7a5a00;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
  display: none;
}

.ct-form-field.is-invalid .ct-form-field-error {
  display: block;
}

/* Submit-Status (Netzwerkfehler etc.) auch goldig statt rot */
.ct-form-status.is-error {
  background: rgba(168, 136, 2, 0.08);
  color: #7a5a00;
  border-left-color: var(--ct-gold);
}

/* Radio-Buttons */
.ct-form-label-block {
  display: block;
}

.ct-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ct-radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 16px;
  background: #f6f9fb;
  border: 1.5px solid transparent;
  border-radius: 100px;
  transition: all 0.25s ease;
  font-size: 14px;
  color: #2a3645;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}

.ct-radio:hover {
  background: rgba(168, 136, 2, 0.08);
  border-color: rgba(168, 136, 2, 0.25);
}

.ct-radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #c0cad4;
  border-radius: 50%;
  margin: 0 8px 0 0;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ct-radio input:checked {
  border-color: #A88802;
}

.ct-radio input:checked::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: #A88802;
  border-radius: 50%;
}

.ct-radio:has(input:checked) {
  background: rgba(168, 136, 2, 0.12);
  border-color: #A88802;
  color: #046390;
}

/* Checkbox (Consent) */
.ct-checkbox {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: #6b7986;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  margin: 4px 0 0;
}

.ct-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #c0cad4;
  border-radius: 3px;
  margin-right: 12px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  top: 2px;
}

.ct-checkbox input:checked {
  background: #A88802;
  border-color: #A88802;
}

.ct-checkbox input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ct-checkbox a {
  color: #046390;
  font-weight: 600;
  text-decoration: underline;
}

/* Submit Button */
.ct-form-submit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.ct-form-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #A88802;
  color: #fff;
  border: none;
  padding: 16px 38px;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(168, 136, 2, 0.32);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 52px;
  min-width: 280px;
}

.ct-form-submit:hover:not(:disabled) {
  background: #c69f0d;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(168, 136, 2, 0.5);
}

.ct-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ct-form-submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ctSpin 0.7s linear infinite;
}

.ct-form-submit.is-loading .ct-form-submit-spinner {
  display: inline-block;
}

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

.ct-form-hint {
  font-size: 13px;
  color: #6b7986;
  font-style: italic;
}

.ct-form-status {
  margin-top: 18px;
  padding: 0;
  font-size: 14px;
  display: none;
}

.ct-form-status.is-error {
  display: block;
  padding: 14px 18px;
  background: #fff5f5;
  border-left: 3px solid #d04545;
  color: #b73a3a;
  border-radius: 3px;
}

/* Success View */
.ct-form-success {
  text-align: center;
  padding: 40px 20px;
  animation: ctFadeIn 0.6s ease;
}

@keyframes ctFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ct-form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #046390 0%, #034f73 100%);
  color: #A88802;
  font-size: 38px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(4, 99, 144, 0.25);
  animation: ctPulse 2s ease-in-out infinite;
}

@keyframes ctPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.ct-form-success h4 {
  font-family: 'Fira Sans', sans-serif;
  font-size: 22px;
  color: #046390;
  margin: 0 0 14px;
  font-weight: 600;
}

.ct-form-success p {
  color: #6b7986;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.ct-form-success a {
  color: #A88802;
  font-weight: 600;
}

/* ============================================================
   KONTAKT-INFO-KARTE
   ============================================================ */
.ct-contact-info-card {
  background: linear-gradient(180deg, #046390 0%, #034f73 100%);
  color: #fff;
  border-radius: 6px;
  padding: 36px 32px 30px;
  margin-bottom: 22px;
  box-shadow: 0 14px 38px rgba(4, 99, 144, 0.20);
  position: relative;
  overflow: hidden;
}

.ct-contact-info-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(168, 136, 2, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ct-contact-info-card h5 {
  font-family: 'Marcellus SC', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
  text-transform: uppercase;
}

.ct-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ct-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ct-contact-list li:last-child {
  border-bottom: none;
}

.ct-contact-list li > div {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.ct-contact-list strong {
  display: block;
  font-family: 'Fira Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.ct-contact-list a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ct-contact-list a:hover {
  color: #d4ae1a;
}

.ct-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(168, 136, 2, 0.18);
  border-radius: 50%;
  color: #d4ae1a;
  font-size: 16px;
}

.ct-contact-map {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(4, 99, 144, 0.12);
  line-height: 0;
}

.ct-contact-map iframe {
  display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 991px) {
  .ct-form-card {
    padding: 32px 24px 26px;
  }
  .ct-form-head h4 {
    font-size: 21px;
  }
  .ct-form-grid {
    grid-template-columns: 1fr;
  }
  .ct-form-submit {
    min-width: 100%;
  }
  .ct-form-submit-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .ct-form-hint {
    text-align: center;
  }
}

@media screen and (max-width: 549px) {
  .ct-form-card {
    padding: 26px 20px 22px;
  }
  .ct-contact-info-card {
    padding: 26px 22px 22px;
  }
}

/* ============================================================
   COMPASS FINDER WIZARD
   ============================================================ */
.ct-wizard-section {
  padding: 100px 0 110px;
  background: linear-gradient(180deg, #f6f9fb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.ct-wizard-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(168, 136, 2, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ct-wizard-section::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(4, 99, 144, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ct-wizard-section .container {
  position: relative;
  z-index: 2;
}

.ct-wizard {
  max-width: 880px;
  margin: 60px auto 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(4, 99, 144, 0.14);
  border: 1px solid rgba(4, 99, 144, 0.06);
  overflow: hidden;
}

/* Progress */
.ct-wiz-progress {
  padding: 22px 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
  border-bottom: 1px solid rgba(4, 99, 144, 0.08);
  display: flex;
  align-items: center;
  gap: 22px;
}

.ct-wiz-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(4, 99, 144, 0.10);
  border-radius: 100px;
  overflow: hidden;
}

.ct-wiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #046390 0%, #A88802 100%);
  border-radius: 100px;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-wiz-step-counter {
  font-family: 'Fira Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #046390;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Stages */
.ct-wiz-stages {
  padding: 50px 50px 40px;
  min-height: 320px;
}

.ct-wiz-stage {
  animation: ctWizFade 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ctWizFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ct-wiz-stage h4 {
  font-family: 'Fira Sans', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #046390;
  margin: 0 0 32px;
  letter-spacing: 0.2px;
  line-height: 1.3;
  text-align: center;
}

/* Options */
.ct-wiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ct-wiz-option {
  background: #ffffff;
  border: 2px solid rgba(4, 99, 144, 0.10);
  border-radius: 6px;
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'Fira Sans', sans-serif;
  opacity: 0;
  animation: ctWizOptionIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ctWizOptionIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ct-wiz-option:hover {
  border-color: #A88802;
  background: #fdfaee;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(168, 136, 2, 0.18);
}

.ct-wiz-option::after {
  content: '→';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  font-size: 22px;
  color: rgba(168, 136, 2, 0);
  font-weight: 400;
  transition: all 0.4s ease;
}

.ct-wiz-option:hover::after {
  color: #A88802;
  transform: translateY(-50%) translateX(4px);
}

.ct-wiz-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(4, 99, 144, 0.08);
  color: #046390;
  font-size: 20px;
  margin-bottom: 14px;
  transition: all 0.4s ease;
}

.ct-wiz-option:hover .ct-wiz-option-icon {
  background: #A88802;
  color: #fff;
}

.ct-wiz-option-label {
  font-size: 17px;
  font-weight: 600;
  color: #046390;
  display: block;
  line-height: 1.3;
  padding-right: 30px;
}

.ct-wiz-option-desc {
  font-size: 13px;
  color: #6b7986;
  display: block;
  margin-top: 6px;
  line-height: 1.5;
}

/* Actions Bar */
.ct-wiz-actions {
  padding: 0 50px 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 30px;
}

.ct-wiz-back {
  background: transparent;
  border: none;
  color: #6b7986;
  font-family: 'Fira Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.ct-wiz-back:hover {
  color: #046390;
}

/* Result */
.ct-wiz-result {
  text-align: center;
}

.ct-wiz-result-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: 'Fira Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #A88802;
  margin-bottom: 18px;
}

.ct-wiz-result-eyebrow i {
  margin-right: 10px;
  font-size: 16px;
  animation: ctCompassSpin 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ctCompassSpin {
  0%   { transform: rotate(0deg); }
  60%  { transform: rotate(380deg); }
  100% { transform: rotate(360deg); }
}

.ct-wiz-result-card {
  background: linear-gradient(135deg, #046390 0%, #034f73 100%);
  color: #fff;
  border-radius: 8px;
  padding: 38px 36px 32px;
  margin-bottom: 26px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.ct-wiz-result-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(168, 136, 2, 0.22) 0%, transparent 70%);
}

.ct-wiz-result-label {
  font-family: 'Fira Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #d4ae1a;
  margin-bottom: 8px;
}

.ct-wiz-result-card h3 {
  font-family: 'Fira Sans', sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0 0 16px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.ct-wiz-result-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 22px;
  position: relative;
  z-index: 1;
}

.ct-wiz-result-meta {
  position: relative;
  z-index: 1;
}

.ct-wiz-result-price {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(168, 136, 2, 0.18);
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.ct-wiz-result-price strong {
  color: #d4ae1a;
  margin-right: 6px;
  font-weight: 600;
}

.ct-wiz-summary {
  background: #f6f9fb;
  border-radius: 6px;
  padding: 22px 26px;
  margin-bottom: 30px;
  text-align: left;
  font-size: 14px;
}

.ct-wiz-summary strong {
  color: #046390;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.ct-wiz-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.ct-wiz-summary li {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid rgba(4, 99, 144, 0.12);
  border-radius: 100px;
  font-size: 13px;
  color: #2a3645;
  font-weight: 500;
}

.ct-wiz-cta {
  display: inline-flex;
  align-items: center;
  background: #A88802;
  color: #fff !important;
  padding: 18px 38px;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 3px;
  box-shadow: 0 14px 38px rgba(168, 136, 2, 0.4);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-wiz-cta span {
  margin-left: 12px;
  font-size: 18px;
  transition: transform 0.35s ease;
}

.ct-wiz-cta:hover {
  background: #c69f0d;
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(168, 136, 2, 0.55);
  color: #fff !important;
}

.ct-wiz-cta:hover span {
  transform: translateX(6px);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .ct-wizard-section {
    padding: 70px 0 80px;
  }
  .ct-wizard {
    margin-top: 40px;
    border-radius: 6px;
  }
  .ct-wiz-progress {
    padding: 18px 22px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .ct-wiz-step-counter {
    order: -1;
    width: 100%;
    text-align: center;
  }
  .ct-wiz-stages {
    padding: 30px 24px 26px;
    min-height: 280px;
  }
  .ct-wiz-stage h4 {
    font-size: 21px;
    margin-bottom: 24px;
  }
  .ct-wiz-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ct-wiz-option {
    padding: 18px 20px;
  }
  .ct-wiz-actions {
    padding: 0 24px 24px;
  }
  .ct-wiz-result-card {
    padding: 28px 22px 24px;
  }
  .ct-wiz-result-card h3 {
    font-size: 22px;
  }
  .ct-wiz-result-card p {
    font-size: 15px;
  }
  .ct-wiz-cta {
    padding: 16px 28px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
}
