/* LK Buchungssystem — Frontend Styles */
.lk-kurstermine {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 28px 0;
}

/* ── Card ─────────────────────────────────────────── */
.lk-termin {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(43, 58, 74, 0.1);
    box-shadow: 0 2px 10px rgba(43, 58, 74, 0.06);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.lk-termin:not(.lk-termin--voll):hover {
    box-shadow: 0 4px 18px rgba(43, 58, 74, 0.12);
    transform: translateY(-1px);
}

/* ── Header ───────────────────────────────────────── */
.lk-termin__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 22px 18px 26px;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: background 0.2s;
    position: relative;
}
.lk-termin__header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #E8A830;
}
.lk-termin__header:hover { background:var(--ast-global-color-0); color: black; }
.lk-termin--voll .lk-termin__header { background: #6b7a85; cursor: default; }
.lk-termin--voll .lk-termin__header::before { background: rgba(255,255,255,0.2); }

.lk-termin__header-left { display: flex; flex-direction: column; gap: 4px; }
.lk-termin__name {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}
.lk-termin__meta { font-size: 12px; opacity: 0.72; letter-spacing: 0.02em; }

.lk-termin__header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.lk-plaetze {
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.lk-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lk-badge--voll { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.lk-toggle-icon { transition: transform 0.25s ease; font-size: 13px; opacity: 0.65; flex-shrink: 0; }
.lk-termin__header[aria-expanded="true"] .lk-toggle-icon { transform: rotate(180deg); }

/* ── Body ─────────────────────────────────────────── */
.lk-termin__body {
    display: none;
    padding: 22px 26px 28px;
    background: #fdfaf5;
    border-top: 2px solid rgba(232, 168, 48, 0.25);
}
.lk-termin__body.is-open { display: block; }

.lk-termin__details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(43, 58, 74, 0.08);
}
.lk-termin__details span {
    font-size: 14px;
    color: #2B3A4A;
    background: #fff;
    border: 1.5px solid rgba(232, 168, 48, 0.5);
    padding: 7px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 4px rgba(232, 168, 48, 0.12);
}
.lk-termin__details span strong {
    color: #E8A830;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-right: 2px;
}
.lk-ausgebucht-hinweis { color: #888; font-style: italic; margin: 4px 0 0; font-size: 14px; }

/* ── Formular ─────────────────────────────────────── */
.lk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-bottom: 18px;
}
.lk-form-field--wide { grid-column: 1 / -1; }

.lk-form-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #2B3A4A;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.lk-form-field input,
.lk-form-field select,
.lk-form-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #ddd9d2;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    color: #333;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.lk-form-field input:focus,
.lk-form-field select:focus,
.lk-form-field textarea:focus {
    outline: none;
    border-color: #E8A830;
    box-shadow: 0 0 0 3px rgba(232, 168, 48, 0.12);
}
.lk-required { color: #E8A830; }

.lk-form-datenschutz {
    font-size: 12.5px;
    color: #666;
    margin-bottom: 18px;
    line-height: 1.6;
    padding: 11px 14px;
    background: rgba(43, 58, 74, 0.04);
    border-radius: 7px;
    border-left: 3px solid rgba(232, 168, 48, 0.45);
}
.lk-form-datenschutz a { color: #2B6CB0; }

.lk-form-actions { display: flex; align-items: center; gap: 14px; }
.lk-submit-btn {
    background: #E8A830;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
    box-shadow: 0 2px 10px rgba(232, 168, 48, 0.35);
}
.lk-submit-btn:hover {
    background: #D4922A;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 168, 48, 0.45);
}
.lk-submit-btn:active { transform: translateY(0); }
.lk-submit-btn:disabled { background: #bbb; cursor: not-allowed; box-shadow: none; transform: none; }

.lk-form-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e0ddd8;
    border-top-color: #E8A830;
    border-radius: 50%;
    animation: lk-spin 0.7s linear infinite;
    display: none;
}
.lk-form-spinner.is-visible { display: inline-block; }
@keyframes lk-spin { to { transform: rotate(360deg); } }

.lk-form-message {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.6;
}
.lk-form-message.is-visible { display: block; }
.lk-buchung-form.is-hidden { display: none; }
.lk-form-message--success { background: #fdf8ec; color: #6a4800; border: 1px solid rgba(232, 168, 48, 0.4); }
.lk-form-message--error { background: #fdf0f0; color: #9b2828; border: 1px solid #f0c0c0; }
.lk-keine-termine { color: #888; font-style: italic; }

@media (max-width: 600px) {
    .lk-termin__header { flex-direction: column; align-items: flex-start; }
    .lk-termin__header-right { width: 100%; }
    .lk-form-grid { grid-template-columns: 1fr; }
    .lk-form-field--wide { grid-column: 1; }
}
