/* ============================================================
   Kontakt: Kontaktwege (Nachricht / Rückruf / Beratungstermin)
   + Terminassistent (weiße Buchungskarte). Ergänzt kontakt.css.
   Farben: Petrol #223a4f, Türkis #32b4a2 (Theme-Variablen).
   ============================================================ */

.kt-head {
  width: 100%;
  color: var(--light-primary);
  margin-bottom: 26px;
}

.kt-title {
  font-family: "CocogooseProNarrow Semilight", "CocogooseProNarrow", sans-serif;
  font-size: 40px;
  line-height: 1.15;
  color: var(--light-primary);
  margin: 0 0 10px;
}

.kt-sub {
  font-weight: 300;
  font-size: 20px;
  margin: 0;
  color: var(--light-primary);
}

/* --- Kontaktweg-Auswahl --- */
/* Kanalwahl kommt aus den Tabs; das gleichlautende Radio-Feld im Formular bleibt unsichtbar (JS setzt Klasse, :has als Fallback) */
.kontakt-form .ff-el-group.kt-channel-hidden,
.kontakt-form .ff-el-group:has(input[name="input_radio"]) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: 0;
}

.kt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  margin-bottom: 18px;
}

.kt-tab {
  flex: 1 1 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: var(--light-primary);
  font-family: "CocogooseProNarrow Semilight", "CocogooseProNarrow", sans-serif;
  font-size: 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.kt-tab--accent {
  flex-grow: 1.6;
}

.kt-tab svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.kt-tab:hover {
  background: rgba(255, 255, 255, 0.22);
}

.kt-tab[aria-selected="true"] {
  background: var(--light-primary);
  border-color: var(--light-primary);
  color: var(--primary-1000);
}

.kt-tab--accent[aria-selected="true"] {
  background: var(--secondary-1000);
  border-color: var(--secondary-1000);
  color: var(--light-primary);
}

.kt-tab:focus-visible,
.kt-card button:focus-visible,
.kt-card a:focus-visible,
.kt-card input:focus-visible,
.kt-card select:focus-visible,
.kt-card textarea:focus-visible,
.kt-alt a:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

.kt-panel {
  width: 100%;
}

.kt-panel[hidden],
.kt-tab[hidden] {
  display: none;
}

/* --- Buchungskarte --- */
.kt-card {
  width: 100%;
  background: var(--light-primary);
  color: var(--primary-1000);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  font-size: 17px;
  line-height: 1.5;
}

.kt-card-title {
  font-family: "CocogooseProNarrow Semilight", "CocogooseProNarrow", sans-serif;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 4px;
  color: var(--primary-1000);
}

.kt-card-sub {
  margin: 0 0 22px;
  font-weight: 300;
  color: #3e596f;
}

.kt-steps {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  font-size: 16px;
  color: #7e909f;
}

.kt-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  hyphens: manual;
}

.kt-steps li + li::before {
  content: "";
  display: block;
  width: 70px;
  height: 1px;
  background: #d4dadf;
  margin-right: 6px;
}

.kt-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9ecef;
  color: #7e909f;
  font-weight: 600;
  font-size: 15px;
}

.kt-steps li.is-active {
  color: var(--primary-1000);
  font-weight: 600;
}

.kt-steps li.is-active .kt-step-num {
  background: var(--secondary-1000);
  color: #fff;
}

.kt-steps li.is-done .kt-step-num {
  background: var(--primary-1000);
  color: #fff;
}

.kt-status {
  margin: 0 0 16px;
}

.kt-status:empty {
  display: none;
}

.kt-banner {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 16px;
}

.kt-banner--demo {
  background: #fff4d6;
  border: 1px dashed #d9a400;
  color: #5b4300;
}

.kt-banner--error {
  background: #fdecec;
  border: 1px solid #e59a9a;
  color: #7a1f1f;
}

.kt-banner--info {
  background: #eaf7f5;
  border: 1px solid #b8e4dc;
  color: #1f4d46;
}

.kt-banner a {
  color: inherit;
  text-decoration: underline;
}

.kt-label {
  display: block;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--primary-1000);
}

.kt-field {
  margin-bottom: 20px;
}

.kt-select,
.kt-input,
.kt-textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #c7d0d8;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-1000);
  font: inherit;
  font-size: 17px;
}

.kt-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23223a4f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.kt-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Rot erst nach der Prüfung beim Absenden (aria-invalid), nicht schon bei leeren Pflichtfeldern */
.kt-input[aria-invalid="true"] {
  border-color: #c0392b;
}

.kt-hint {
  font-size: 14px;
  color: #536b7f;
  margin: 8px 0 0;
}

.kt-hint a {
  color: var(--primary-1000);
  text-decoration: underline;
}

.kt-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}

.kt-fieldset legend {
  padding: 0;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-1000);
}

.kt-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kt-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 16px;
  border: 1px solid #c7d0d8;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}

.kt-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--secondary-1000);
  flex: none;
}

.kt-choice svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--primary-1000);
}

.kt-choice:has(input:checked) {
  border: 2px solid var(--secondary-1000);
  background: #eaf7f5;
  padding: 11px 15px;
}

.kt-choice:has(input:focus-visible) {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

/* --- Terminvorschläge --- */
.kt-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  min-height: 96px;
}

.kt-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 14px 10px;
  border: 1px solid #c7d0d8;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}

.kt-slot input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.kt-slot-day {
  font-size: 15px;
  color: #536b7f;
}

.kt-slot-time {
  font-family: "CocogooseProNarrow Semilight", "CocogooseProNarrow", sans-serif;
  font-size: 24px;
  color: var(--primary-1000);
}

.kt-slot-demo {
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #8a6d00;
}

.kt-slot:hover {
  border-color: var(--secondary-1000);
}

.kt-slot:has(input:checked) {
  border: 2px solid var(--secondary-1000);
  background: #eaf7f5;
  padding: 13px 9px;
}

.kt-slot:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-1000) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

.kt-slot:has(input:focus-visible) {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

.kt-slot-grid .kt-empty {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3f5f7;
  color: #3e596f;
  font-size: 15px;
}

.kt-slot-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 15px;
}

.kt-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--secondary-1000);
  font: inherit;
  font-size: 16px;
  text-decoration: underline;
  cursor: pointer;
}

.kt-link:hover {
  color: var(--primary-1000);
}

.kt-tz {
  color: #536b7f;
}

.kt-days {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.kt-day-title {
  font-weight: 600;
  margin: 0 0 8px;
}

.kt-day-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kt-time {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #c7d0d8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}

.kt-time input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.kt-time:hover {
  border-color: var(--secondary-1000);
}

.kt-time:has(input:checked) {
  border: 2px solid var(--secondary-1000);
  background: #eaf7f5;
  padding: 7px 13px;
}

.kt-time:has(input:focus-visible) {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

/* --- Zusammenfassung --- */
.kt-summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #eef6fb;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0 20px;
}

.kt-summary svg {
  width: 40px;
  height: 40px;
  flex: none;
  color: #1f6fb2;
}

.kt-summary-title {
  font-weight: 600;
  margin: 0 0 2px;
}

.kt-summary p {
  margin: 0;
  font-size: 16px;
}

.kt-summary-note {
  color: #536b7f;
}

.kt-btn-primary {
  display: block;
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-1000);
  color: #fff;
  font-family: "CocogooseProNarrow Semilight", "CocogooseProNarrow", sans-serif;
  font-size: 19px;
  cursor: pointer;
  transition: background .15s;
}

.kt-btn-primary:hover:not(:disabled) {
  background: var(--secondary-1000);
}

.kt-btn-primary:disabled {
  background: #a9b5bf;
  cursor: not-allowed;
}

.kt-btn-secondary {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary-1000);
  font: inherit;
  font-size: 16px;
  text-decoration: underline;
  cursor: pointer;
}

.kt-note {
  text-align: center;
  font-size: 14px;
  color: #536b7f;
  margin: 12px 0 0;
}

.kt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  align-items: start;
}

.kt-grid-2 .kt-label {
  white-space: nowrap;
}

.kt-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  font-size: 15px;
}

.kt-consent input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--secondary-1000);
  flex: none;
}

.kt-consent a {
  color: var(--primary-1000);
  text-decoration: underline;
}

.kt-error {
  color: #a11a1a;
  font-size: 15px;
  margin: 0 0 14px;
}

.kt-error:empty {
  display: none;
}

.kt-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.kt-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kt-step[hidden] {
  display: none;
}

/* Abschluss */
.kt-done-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eaf7f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.kt-done-icon svg {
  width: 30px;
  height: 30px;
  color: var(--secondary-1000);
}

.kt-done-title {
  font-family: "CocogooseProNarrow Semilight", "CocogooseProNarrow", sans-serif;
  font-size: 30px;
  margin: 0 0 8px;
}

.kt-done dl {
  margin: 16px 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: 16px;
}

.kt-done dt {
  color: #536b7f;
}

.kt-done dd {
  margin: 0;
}

.kt-alt {
  width: 100%;
  margin: 18px 0 0;
  color: var(--light-primary);
  font-weight: 300;
}

.kt-alt a {
  color: var(--light-primary);
  text-decoration: underline;
  transition: .15s;
}

.kt-alt a:hover {
  color: var(--secondary-1000);
}

/* --- Responsiv --- */
@media (max-width: 1399px) {
  .kt-title {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .kt-title {
    font-size: 30px;
  }

  .kt-sub {
    font-size: 18px;
  }

  .kt-tab {
    flex-basis: calc(50% - 7px);
    font-size: 16px;
    min-height: 54px;
    padding: 10px 12px;
  }

  .kt-tab--accent {
    flex-basis: 100%;
  }

  .kt-card {
    padding: 24px 18px 22px;
    font-size: 16px;
  }

  .kt-card-title {
    font-size: 28px;
  }

  .kt-steps {
    font-size: 14px;
    gap: 8px;
  }

  .kt-steps li + li::before {
    width: 24px;
  }

  .kt-slot-grid {
    grid-template-columns: 1fr;
  }

  .kt-slot {
    flex-direction: row;
    justify-content: space-between;
    min-height: 60px;
    padding: 12px 42px 12px 16px;
  }

  .kt-slot:has(input:checked) {
    padding: 11px 41px 11px 15px;
  }

  .kt-slot:has(input:checked)::after {
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
  }

  .kt-choices,
  .kt-grid-2 {
    grid-template-columns: 1fr;
  }

  .kt-done dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .kt-done dt {
    margin-top: 8px;
  }
}

@media (max-width: 359px) {
  .kt-tab {
    flex-basis: 100%;
  }
}

/* Nutzensatz unter der Kartenüberschrift */
.kt-card-benefit {
  margin: -12px 0 22px;
  color: #3e596f;
}

/* Ladehinweis: leicht pulsierend, damit Nachladen als Vorgang erkennbar ist */
.kt-loading {
  animation: kt-pulse 1.2s ease-in-out infinite;
}

.kt-link.kt-loading {
  text-decoration: none;
  color: #536b7f;
  cursor: progress;
}

@keyframes kt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
