/* =========================================================================
   konfigurator.css – Design des Charter-Konfigurators
   (includes/charter-konfigurator.php). Benötigt zusätzlich events.css
   (Buttons/Formularfelder) und schiffskarten.css (Schiffskarten).
   Farben wie die Landingpages: Navy #0b2f6b, Gold #e8c877 / #a9812c.
   ========================================================================= */

.kf{
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e3e9f4;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(11,47,107,.10);
  padding: 32px 36px 36px;
}
@media (max-width: 640px){ .kf{ padding: 22px 16px 24px; border-radius: 18px; } }

.kf-sr, .kf-hp{
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Fortschritt ── */
.kf-progress{
  list-style: none; margin: 0 0 30px; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  counter-reset: none;
}
.kf-progress-item{
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 600; color: #8a9ab3; text-align: center;
  position: relative;
}
.kf-progress-item::before{
  content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px;
  background: #e3e9f4; z-index: 0;
}
.kf-progress-item:first-child::before{ display: none; }
.kf-progress-num{
  position: relative; z-index: 1;
  width: 32px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #d0dcef; color: #8a9ab3; font-weight: 800; font-size: .85rem;
}
.kf-progress-item.is-done .kf-progress-num{ background: #e8c877; border-color: #e8c877; color: #0b2f6b; }
.kf-progress-item.is-done::before, .kf-progress-item.is-active::before{ background: #e8c877; }
.kf-progress-item.is-active .kf-progress-num{ background: #0b2f6b; border-color: #0b2f6b; color: #fff; }
.kf-progress-item.is-active{ color: #0b2f6b; }
@media (max-width: 640px){
  .kf-progress-label{ display: none; }
  .kf-progress-item.is-active .kf-progress-label{ display: block; position: absolute; top: 38px; white-space: nowrap; }
  .kf-progress{ margin-bottom: 40px; }
}

/* ── Schritte ── */
.kf-step{ border: 0; margin: 0; padding: 0; min-width: 0; }
.kf-step-title{
  display: block; padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800; letter-spacing: -0.01em;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: #0d1f3c;
  margin: 0 0 6px; outline: none;
}
.kf-step-lead{ color: #4a6080; font-size: .95rem; line-height: 1.65; margin: 0 0 24px; }

.kf-field{ margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.kf-label{ font-size: .82rem; font-weight: 700; color: #0d1f3c; margin: 0; }
.kf-optional{ font-weight: 400; color: #8a9ab3; }
.kf-hint-text{ font-size: .78rem; color: #6b778c; line-height: 1.5; }
.kf-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
@media (max-width: 700px){ .kf-row{ grid-template-columns: 1fr; } }

.kf input[type="date"], .kf input[type="number"], .kf input[type="text"], .kf textarea{
  width: 100%; box-sizing: border-box;
  padding: 13px 14px; border: 1.5px solid #d0dcef; border-radius: 12px;
  font: inherit; font-size: 1rem; color: #0d1f3c; background: #fff;
}
.kf input:focus-visible, .kf textarea:focus-visible{ outline: none; border-color: #0b2f6b; box-shadow: 0 0 0 3px rgba(11,47,107,.15); }

/* Auswahl-Chips (Radio) */
.kf-chips{ display: flex; flex-wrap: wrap; gap: 10px; }
.kf-chips--stack{ flex-direction: column; align-items: stretch; }
.kf-chip{ position: relative; cursor: pointer; }
.kf-chip input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.kf-chip span{
  display: inline-flex; align-items: center; min-height: 46px;
  padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid #d0dcef; background: #fff;
  font-size: .9rem; font-weight: 600; color: #0d1f3c; line-height: 1.35;
  transition: border-color .2s, background .2s, color .2s;
}
.kf-chips--stack .kf-chip span{ border-radius: 14px; width: 100%; box-sizing: border-box; }
.kf-chip:hover span{ border-color: #0b2f6b; }
.kf-chip input:checked + span{ background: #0b2f6b; border-color: #0b2f6b; color: #fff; }
.kf-chip input:focus-visible + span{ outline: 2px solid #a9812c; outline-offset: 2px; }
.kf-chip--small span{ min-height: 36px; padding: 6px 13px; font-size: .78rem; }
.kf-chips--small{ gap: 6px; }

/* Checkboxen Zusatzleistungen */
.kf-checks{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
@media (max-width: 600px){ .kf-checks{ grid-template-columns: 1fr; } }
.kf-check{
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 16px; border: 1.5px solid #d0dcef; border-radius: 14px;
  font-size: .9rem; font-weight: 600; color: #0d1f3c;
}
.kf-check input{ width: 20px; height: 20px; accent-color: #0b2f6b; flex: 0 0 auto; }
.kf-check--wide{ font-weight: 500; line-height: 1.5; }
.kf-check:has(input:checked){ border-color: #0b2f6b; background: #f0f4fb; }

/* ── Schiffe (Schritt 3) ── */
.kf-ships{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px){ .kf-ships{ grid-template-columns: 1fr; } }
.kf-ship{ position: relative; cursor: pointer; display: flex; flex-direction: column; }
.kf-ship .sk-body, .kf-ship .sk-img, .kf-ship .sk-price{ display: flex; }
.kf-ship .sk-body{ flex-direction: column; padding: 20px 20px 22px; }
.kf-ship .sk-img{ display: block; }
.kf-ship .sk-name{ display: block; font-size: 1.3rem; margin-bottom: 10px; }
.kf-ship .sk-profil{ display: block; }
.kf-ship .sk-price{ flex-direction: column; margin-bottom: 14px; }
.kf-ship-radio{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.kf-ship-facts{ display: flex; flex-direction: column; gap: 0; font-size: .84rem; color: #3c5170; margin-bottom: 12px; border-top: 1px solid #e7ebf2; }
.kf-fact{ display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #e7ebf2; }
.kf-fact-l{ color: #6b778c; }
.kf-fact-v{ font-weight: 700; color: #0d1f3c; text-align: right; }
.kf-ship-check{
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 999px;
  background: #fff; color: #0b2f6b; display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.kf-ship-check svg{ width: 22px; height: 22px; }
.kf-ship-select{
  display: inline-flex; justify-content: center; align-items: center;
  margin-top: auto; padding: 11px 16px; border-radius: 999px;
  border: 1.5px solid rgba(11,47,107,.35); color: #0b2f6b; font-weight: 700; font-size: .84rem;
}
.kf-ship:has(.kf-ship-radio:checked){ border-color: #0b2f6b; box-shadow: 0 0 0 3px rgba(11,47,107,.25), 0 26px 60px rgba(11,47,107,.14); }
.kf-ship:has(.kf-ship-radio:checked) .kf-ship-check{ display: flex; }
.kf-ship:has(.kf-ship-radio:checked) .kf-ship-select{ background: #0b2f6b; color: #fff; border-color: #0b2f6b; }
.kf-ship:has(.kf-ship-radio:focus-visible){ outline: 2px solid #a9812c; outline-offset: 3px; }
.kf-ship--beraten{
  border: 1.5px dashed #d0dcef; border-radius: 22px; background: #f6f8fc; padding: 22px;
}
.kf-beraten-body{ display: flex; flex-direction: column; gap: 10px; height: 100%; font-size: .9rem; color: #4a6080; line-height: 1.6; }
.kf-beraten-body .sk-name{ margin: 0; color: #0d1f3c; }

.kf-hints{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.kf-hint{
  display: block; font-size: .8rem; line-height: 1.5; color: #6b5420;
  background: rgba(232,200,119,.16); border-left: 3px solid #e8c877; border-radius: 0 10px 10px 0; padding: 7px 10px;
}
.kf-hints--box{ margin: 4px 0 20px; }
.kf-hints-title{ font-size: .82rem; font-weight: 700; color: #0d1f3c; margin: 0 0 4px; }

.kf-saison{
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: 14px; background: #f0f4fb; border: 1px solid #d0dcef;
  font-size: .9rem; line-height: 1.6; color: #0d1f3c; margin: 0 0 20px;
}
.kf-saison svg{ width: 18px; height: 18px; flex: 0 0 auto; color: #0b2f6b; margin-top: 3px; }
.kf-saison--winter{ background: rgba(232,200,119,.14); border-color: rgba(169,129,44,.35); }
.kf-saison--winter svg{ color: #a9812c; }

.kf-nicht{ margin-top: 20px; font-size: .86rem; color: #4a6080; }
.kf-nicht summary{ cursor: pointer; font-weight: 600; color: #0b2f6b; }
.kf-nicht ul{ margin: 10px 0 0; padding-left: 18px; line-height: 1.7; }

.kf-leer{ padding: 16px 18px; border-radius: 14px; background: #fff6f0; border: 1px solid #f0c9a8; color: #5a3a1a; margin-bottom: 20px; }
.kf-leer p{ margin: 0 0 6px; }

/* ── Preise (Schritt 4) ── */
.kf-price-wrap{ overflow-x: auto; }
.kf-price-table{ width: 100%; min-width: 480px; border-collapse: collapse; font-size: .92rem; }
.kf-price-table caption{ text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a9812c; padding-bottom: 10px; }
.kf-price-table th, .kf-price-table td{ padding: 13px 12px; text-align: left; border-bottom: 1px solid #e3e9f4; vertical-align: top; }
.kf-price-table thead th{ background: #0b2f6b; color: #fff; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.kf-price-table tbody th{ color: #0d1f3c; white-space: nowrap; }
.kf-price-table td strong{ color: #0b2f6b; font-size: 1.05rem; }
.kf-price-table small{ color: #6b778c; }
.kf-price-notes{ margin: 18px 0 0; padding-left: 18px; font-size: .84rem; line-height: 1.7; color: #4a6080; }

/* ── Zusammenfassung (Schritt 6) ── */
.kf-summary{
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 24px;
  background: #e3e9f4; border: 1px solid #e3e9f4; border-radius: 16px; overflow: hidden;
}
@media (max-width: 600px){ .kf-summary{ grid-template-columns: 1fr; } }
.kf-summary > div{ background: #f6f8fc; padding: 12px 14px; }
.kf-summary dt{ font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b778c; }
.kf-summary dd{ margin: 3px 0 0; font-size: .92rem; font-weight: 600; color: #0d1f3c; word-break: break-word; }

.kf-info{
  margin: 18px 0 0 !important; padding: 12px 14px; border-radius: 12px;
  background: rgba(232,200,119,.16); border: 1px solid rgba(169,129,44,.35);
  font-size: .86rem !important; line-height: 1.6 !important; color: #0d1f3c !important;
}

/* ── Fehler, Laden, Navigation, Bestätigung ── */
.kf-error{ margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fdecec; border: 1px solid #f3b9b9; color: #8a1c1c; font-size: .88rem; }
.kf-error ul{ margin: 0; padding-left: 18px; }
.kf-loading{ color: #6b778c; font-size: .9rem; padding: 20px 0; }

.kf-nav{ display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #e7ebf2; }
.kf-nav .kf-next, .kf-nav .kf-submit{ margin-left: auto; }
@media (max-width: 480px){
  .kf-nav{ flex-direction: column-reverse; }
  .kf-nav .ev-btn{ width: 100%; justify-content: center; text-align: center; margin-left: 0; }
}
.kf-nav [hidden]{ display: none !important; }

.kf-done{ text-align: center; padding: 30px 10px; outline: none; }
.kf-done-title{ font-size: 1.4rem; font-weight: 800; color: #0b2f6b; margin: 0 0 12px; }
.kf-done p{ color: #4a6080; line-height: 1.7; max-width: 620px; margin: 0 auto 10px; }

.kf-noscript{ padding: 16px 18px; border-radius: 14px; background: rgba(232,200,119,.16); border: 1px solid rgba(169,129,44,.35); margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce){ .kf *{ transition: none !important; } }
