/* =========================================================================
   Kontaktseite – Info-Spalte, Tabs, Kontaktformular & Terminbuchung
   ========================================================================= */

/* ---------- Kontakt-Hero ---------- */
.k-hero {
  color: #fff;
  background: radial-gradient(120% 150% at 50% 0%, #0a4040 0%, #012b2b 60%);
}
.k-hero .inner { max-width: 1180px; margin: 0 auto; padding: 72px 24px 64px; text-align: center; }
.k-hero .pill { background: rgba(7,169,178,.16); border: 1px solid rgba(7,169,178,.4); color: #7fe3e8; font-weight: 700; font-size: 13px; letter-spacing: .4px; padding: 8px 16px; }
.k-hero h1 {
  font-weight: 800; font-size: clamp(30px, 5vw, 48px); line-height: 1.1;
  letter-spacing: -1.2px; margin: 22px auto 0; max-width: 760px;
}
.k-hero p { font-size: 18px; line-height: 1.6; color: #bfe0df; max-width: 560px; margin: 18px auto 0; }

/* ---------- Inhalt ---------- */
.k-body { background: var(--grey); }
.k-grid {
  max-width: 1180px; margin: 0 auto; padding: 64px 24px 80px;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start;
}

/* Info-Spalte */
.k-info { display: flex; flex-direction: column; gap: 18px; }
.k-info-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px;
  box-shadow: 0 10px 30px rgba(1,43,43,.05);
}
.k-info-card .title { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--ink); margin: 0 0 18px; }
.k-info-rows { display: flex; flex-direction: column; gap: 16px; }
.k-info-row { display: flex; align-items: flex-start; gap: 13px; text-decoration: none; }
.k-info-row .ico {
  flex: none; width: 40px; height: 40px; border-radius: 11px; background: #e6f5f4; color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.k-info-row .label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.k-info-row .value { display: block; font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--ink); }
.k-info-row .sub { display: block; font-size: 14.5px; color: #34504d; }
.k-info-dark { background: var(--ink); border-radius: 20px; padding: 26px 30px; color: #bfe0df; }
.k-info-dark .title { font-family: var(--head); font-weight: 800; font-size: 16px; color: #fff; margin: 0 0 8px; }
.k-info-dark p { font-size: 14.5px; line-height: 1.6; margin: 0; }

/* Formular-Karte */
.k-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px;
  box-shadow: 0 18px 50px rgba(1,43,43,.08);
}

/* ---------- Tabs ---------- */
.k-tabs { display: flex; gap: 8px; background: var(--grey); border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 26px; }
.k-tab {
  flex: 1; border: none; background: transparent; cursor: pointer;
  font-family: var(--head); font-weight: 700; font-size: 14.5px; color: var(--muted);
  padding: 12px 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.k-tab.active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(1,43,43,.08); }
.k-tab .em { font-size: 16px; }

.k-panel { display: none; }
.k-panel.active { display: block; }

/* ---------- Formularfelder ---------- */
.k-head-row { margin-bottom: 24px; }
.k-head-row h2 { font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--ink); margin: 0 0 4px; }
.k-head-row p { font-size: 14.5px; color: var(--muted); margin: 0; }
.req { color: var(--teal-text); }

.k-form { display: flex; flex-direction: column; gap: 18px; }
.k-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block; font-family: var(--head); font-weight: 700; font-size: 13px; color: var(--ink); margin: 0 0 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--body); font-size: 15px; color: var(--text); background: #fff; outline: none;
  transition: border-color .15s;
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d716f' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: #c0392b; }

.k-consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.k-consent input { flex: none; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--teal); }
.k-consent span { font-size: 13.5px; line-height: 1.55; color: #34504d; }
.k-consent a { color: var(--teal-text); font-weight: 600; }

.k-error {
  margin: 0; font-size: 13.5px; color: #c0392b; background: #fdecea;
  border: 1px solid #f5c4bd; padding: 11px 14px; border-radius: 11px;
}
.k-fineprint { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Honeypot – für Menschen unsichtbar */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Erfolgs-Zustand ---------- */
.k-success { text-align: center; padding: 30px 10px; }
.k-success .check {
  display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 74px;
  border-radius: 50%; background: #e6f5f4; color: var(--teal); font-size: 36px;
}
.k-success h2 { font-family: var(--head); font-weight: 800; font-size: 24px; color: var(--ink); margin: 22px 0 0; }
.k-success p { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 400px; margin: 12px auto 0; }
.k-success .meta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 18px;
  background: var(--grey); border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 15px;
}

/* =========================================================================
   Terminbuchung – Kalender & Zeitfenster
   ========================================================================= */
.booking-intro { font-size: 14.5px; color: var(--muted); margin: 0 0 20px; }

.cal {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head .month { font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--ink); }
.cal-nav {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--grey);
  cursor: pointer; font-size: 16px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
}
.cal-nav:hover:not(:disabled) { background: #e6f5f4; }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-dow span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1 / 1; border: none; background: transparent; border-radius: 10px;
  font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.cal-day.empty { cursor: default; }
.cal-day.disabled { color: #c3d0ce; cursor: not-allowed; }
.cal-day.available:hover { background: #e6f5f4; }
.cal-day.selected { background: var(--teal-btn); color: #fff; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--teal); }

.slots-wrap { margin-top: 20px; }
.slots-title { font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--ink); margin: 0 0 12px; }
.slots-title .date { color: var(--teal-text); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 6px;
  font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  text-align: center; transition: border-color .15s, background .15s, color .15s;
}
.slot:hover:not(:disabled) { border-color: var(--teal); }
.slot.selected { background: var(--teal-btn); border-color: var(--teal-btn); color: #fff; }
.slot:disabled, .slot.taken { color: #b9c6c4; background: var(--grey); border-color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.slots-empty { font-size: 14px; color: var(--muted); padding: 12px 0; }
.slots-loading { font-size: 14px; color: var(--muted); padding: 12px 0; }

/* Vorschlag bei belegtem Termin */
.slot-suggestion {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #f3d6ad; color: #8a5a1a; font-size: 14px; line-height: 1.5;
}
.slot-suggestion strong { color: #6b4410; }
.slot-suggestion button {
  margin-top: 10px; background: var(--warm); color: var(--ink); border: none; border-radius: 10px;
  font-family: var(--head); font-weight: 700; font-size: 14px; padding: 9px 16px; cursor: pointer;
}

/* Ausgewählter Termin – Zusammenfassung im Schritt 2 */
.booking-summary {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 13px;
  background: #e6f5f4; border: 1px solid #bfe6e4; margin-bottom: 20px;
}
.booking-summary .ico {
  flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.booking-summary .when { font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--ink); }
.booking-summary .dur { font-size: 13px; color: #2c6a67; }
.booking-summary .change {
  margin-left: auto; background: none; border: none; color: var(--teal-text); font-weight: 700;
  font-size: 13px; cursor: pointer; font-family: var(--head); text-decoration: underline;
}

.booking-step { display: none; }
.booking-step.active { display: block; }

@media (max-width: 1024px) {
  .k-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .k-row { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .k-card { padding: 24px; }
}
