/* Kontaktformular /erstkontakt (Pages/Formulare/_ErstkontaktFormular.cshtml), gleiche Optik wie termin.css */

.kf, .kf-done {
    --kf-accent: #ac7499;
    --kf-accent-dark: #8e5a7d;
    --kf-accent-soft: #f6e9f1;
    --kf-ink: #1b2c51;
    --kf-muted: #6c7480;
    --kf-line: #e3e6ea;
}

.kf-intro { max-width: 760px; margin-bottom: 1.5rem; }
.kf-req { color: #c0392b; font-weight: 700; }

.kf { max-width: 960px; margin-bottom: 3rem; color: var(--kf-ink); }

.kf-alert {
    display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1.25rem; padding: 12px 16px;
    border-radius: 10px; background: #fdecec; color: #8a1f1f;
}
.kf-alert p { margin: 0; color: inherit; }

/* ---------- Karten ---------- */
.kf-card {
    background: #fff; border: 1px solid var(--kf-line); border-radius: 14px;
    box-shadow: 0 6px 20px rgba(27, 44, 81, 0.06); padding: 22px 24px; margin-bottom: 18px;
}
.kf-card-title {
    display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
    font-size: 1.2rem; font-weight: 700; color: var(--kf-ink);
}
.kf-card-title > .bi:first-child {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 50%; background: var(--kf-accent-soft); color: var(--kf-accent); font-size: 1.05rem;
}
.kf-optional {
    font-size: 0.75rem; font-weight: 600; color: var(--kf-muted); background: #f1f3f5;
    padding: 2px 8px; border-radius: 999px;
}
.kf-hint { color: var(--kf-muted); font-size: 0.9rem; margin: -6px 0 12px; }

/* aufklappbare Karte (Partner:in) */
.kf-collapsible > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.kf-collapsible > summary::-webkit-details-marker { display: none; }
.kf-collapsible[open] > summary { margin-bottom: 16px; }
.kf-chevron { margin-left: auto; color: var(--kf-muted); transition: transform 0.2s; }
.kf-collapsible[open] .kf-chevron { transform: rotate(180deg); }

/* ---------- Felder ---------- */
.kf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 14px; }
.kf-col-2 { grid-column: span 2; }
.kf-col-3 { grid-column: span 3; }
.kf-col-4 { grid-column: span 4; }
.kf-col-5 { grid-column: span 5; }
.kf-col-6 { grid-column: span 6; }
.kf-col-8 { grid-column: span 8; }
.kf-col-12 { grid-column: span 12; }

.kf-field { margin-bottom: 14px; }
.kf-field > label, .kf-label {
    display: block; margin-bottom: 5px; font-size: 0.85rem; font-weight: 600; color: var(--kf-ink);
}
.kf .form-control, .kf .form-select {
    border: 1px solid #cfd4da; border-radius: 8px; padding: 9px 12px; font-size: 0.95rem; color: var(--kf-ink);
}
.kf .form-control::placeholder { color: #a7adb5; }
.kf .form-control:focus, .kf .form-select:focus {
    border-color: var(--kf-accent); box-shadow: 0 0 0 3px var(--kf-accent-soft);
}

/* Auswahl als Knöpfe (Familienstand) und Chips (Mehrfachauswahl) */
.kf-pills, .kf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-pill, .kf-chip { position: relative; margin: 0; cursor: pointer; }
.kf-pill input, .kf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kf-pill span, .kf-chip span {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border: 1.5px solid var(--kf-line); border-radius: 999px; font-size: 0.9rem; color: var(--kf-ink);
    background: #fff; transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.kf-pill:hover span, .kf-chip:hover span { border-color: var(--kf-accent); }
.kf-pill input:checked + span, .kf-chip input:checked + span {
    border-color: var(--kf-accent); background: var(--kf-accent-soft); color: var(--kf-accent-dark); font-weight: 600;
}
.kf-pill input:focus-visible + span, .kf-chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--kf-accent-soft); }
.kf-chip .bi { color: var(--kf-accent); }
/* Häkchen bei Behandlungen nur, wenn angehakt */
.kf-chip .bi-check2 { display: none; }
.kf-chip input:checked + span .bi-check2 { display: inline; }

/* ---------- Absenden ---------- */
.kf-submit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end; }
.kf-privacy { font-size: 0.85rem; color: var(--kf-muted); line-height: 1.5; }
.kf-privacy strong { color: var(--kf-ink); }
.kf-send { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.kf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px;
    border: 0; border-radius: 999px; background: var(--kf-accent); color: #fff; font-weight: 600;
    font-size: 1rem; cursor: pointer; text-decoration: none; transition: background-color 0.15s, transform 0.15s;
}
.kf-btn:hover, .kf-btn:focus-visible { background: var(--kf-accent-dark); color: #fff; }
.kf-btn:active { transform: translateY(1px); }

/* ---------- Bestätigung ---------- */
.kf-done { text-align: center; max-width: 560px; margin: 4rem auto; padding: 2.5rem 2rem; background: #fff;
    border: 1px solid var(--kf-line); border-radius: 16px; box-shadow: 0 10px 30px rgba(27, 44, 81, 0.08); }
.kf-done > .bi { font-size: 3.5rem; color: #3f9b5b; }
.kf-done h1 { font-size: 1.8rem; margin: 0.5rem 0; color: var(--kf-ink); }
.kf-done p { color: var(--kf-muted); margin-bottom: 1.5rem; }

@media (max-width: 767.98px) {
    .kf-card { padding: 18px 16px; }
    .kf-grid { grid-template-columns: repeat(6, 1fr); }
    .kf-col-2, .kf-col-3 { grid-column: span 3; }
    .kf-col-4, .kf-col-5, .kf-col-6, .kf-col-8, .kf-col-12 { grid-column: span 6; }
    .kf-submit { grid-template-columns: 1fr; }
    .kf-send { align-items: stretch; }
}

/* ---------- Infoabend-Anmeldung (Pages/Infoabend/_Anmeldung.cshtml) ---------- */
#kiwuab_subscribe_form_wrap .kf { margin-bottom: 0; max-width: none; }
.ia-facts { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ia-facts li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ia-facts .bi {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 50%; background: #fff; color: #ac7499; box-shadow: 0 2px 8px rgba(27, 44, 81, 0.08);
}
.ia-alt { background: rgba(255, 255, 255, 0.7); border-radius: 12px; padding: 16px 18px; font-size: 0.9rem; }
.ia-alt strong { display: block; margin-bottom: 6px; color: #1b2c51; }
.ia-alt strong .bi { color: #ac7499; margin-right: 4px; }
.ia-alt p { margin-bottom: 8px; }
.ia-alt a { font-weight: 600; }

.ia-events { display: grid; gap: 10px; }
.ia-event {
    position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 10px 14px;
    border: 1.5px solid var(--kf-line); border-radius: 12px; background: #fff; cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.ia-event input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ia-event:hover { border-color: var(--kf-accent); }
.ia-event:has(input:checked) { border-color: var(--kf-accent); background: var(--kf-accent-soft); }
.ia-event:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--kf-accent-soft); }
.ia-date {
    flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 10px; background: var(--kf-accent); color: #fff;
    font-size: 0.75rem; text-transform: uppercase; line-height: 1.1;
}
.ia-date b { font-size: 1.35rem; }
.ia-text { display: flex; flex-direction: column; line-height: 1.3; }
.ia-text strong { font-size: 1rem; color: var(--kf-ink); }
.ia-text small { color: var(--kf-muted); font-size: 0.85rem; }
.ia-tick { margin-left: auto; font-size: 1.3rem; color: var(--kf-accent); opacity: 0; transition: opacity 0.15s; }
.ia-event:has(input:checked) .ia-tick { opacity: 1; }
.ia-event.full { cursor: default; opacity: 0.55; }
.ia-event.full:hover { border-color: var(--kf-line); }
.ia-event.full .ia-date { background: #9aa1aa; }

.ia-submit { border-top: 1px solid var(--kf-line); padding-top: 18px; margin-top: 8px; }

.ia-done { text-align: center; padding: 2.5rem 2rem; }
.ia-done > .bi { font-size: 3.5rem; color: #3f9b5b; }
.ia-done h2 { font-size: 1.6rem; margin: 0.5rem 0; color: var(--kf-ink); }
.ia-done p { color: var(--kf-muted); margin-bottom: 1.5rem; }
