/* ─── Elementor-Widget „Webinar-Anmeldeformular" (v0.9.1) ─── */

.klw-ausloeser-zeile {
    display: flex;
}

.klw-ausloeser {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Mindestgrösse: WCAG 2.2 verlangt 24 × 24 für Bedienelemente. */
    min-height: 44px;
}

.klw-ausloeser--link {
    background: none;
    padding: 0;
    text-decoration: underline;
    min-height: 0;
}

.klw-ausloeser:hover {
    filter: brightness(1.06);
}

/* ─── Pop-up ─── */

.klw-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 12, 16, .66);
}

/* [hidden] durchsetzen: Elementors Stil-Ausgabe setzt display auf dem
   Wrapper, sonst bliebe das Pop-up beim Laden kurz sichtbar. */
.klw-overlay[hidden] {
    display: none !important;
}

.klw-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    background: #fff;
    color: #14181f;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}

.klw-schliessen {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .55;
}

.klw-schliessen:hover {
    opacity: 1;
}

.klw-titel {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.25;
}

.klw-untertitel,
.klw-termin {
    margin: 0 0 16px;
    font-size: 14px;
    opacity: .8;
}

.klw-termin {
    font-weight: 600;
    opacity: 1;
}

.klw-label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
}

.klw-feld,
.klw-form select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px 14px;
    font: inherit;
    font-weight: 400;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    box-sizing: border-box;
}

.klw-feld:focus,
.klw-form select:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 0;
    border-color: #FF6B35;
}

/* Honigtopf: für Menschen unsichtbar, für Bots ein Feld zum Ausfüllen.
   Nicht display:none — manche Bots überspringen solche Felder gezielt. */
.klw-honig {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.klw-senden {
    width: 100%;
    margin-top: 4px;
    padding: 13px;
    border: 0;
    border-radius: 8px;
    background: #FF6B35;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}

.klw-senden:hover {
    filter: brightness(1.06);
}

.klw-senden[disabled] {
    opacity: .6;
    cursor: progress;
}

.klw-fehler {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(220, 50, 50, .1);
    color: #b3261e;
    font-size: 13px;
}

.klw-fehler[hidden],
.klw-danke[hidden] {
    display: none !important;
}

/* v1.24.0: Die Betonung unter der Terminwahl — eigenes, schemata-unabhängiges
   Design nach dem Muster der übrigen `.klw-*`-Regeln, feste Werte statt
   Farbvariablen. */
.klw-form .kl-slot-knapp {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
}
.klw-form .kl-slot-knapp[hidden] { display: none !important; }

/* v1.24.0: Der Countdown darunter — ruhige Zusatzangabe, gedämpft über
   `opacity` wie `.klw-untertitel`/`.klw-termin`, statt der Betonungsfarbe
   der Zeile darüber. */
.klw-form .kl-slot-countdown {
    margin: 4px 0 0;
    font-size: 13px;
    color: inherit;
    opacity: .8;
}
.klw-form .kl-slot-countdown[hidden] { display: none !important; }

.klw-danke {
    text-align: center;
    padding: 12px 0;
    font-size: 15px;
}

.klw-hinweis {
    padding: 16px;
    border: 1px dashed rgba(0, 0, 0, .25);
    border-radius: 8px;
    font-size: 14px;
    opacity: .75;
}

@media (prefers-reduced-motion: no-preference) {
    .klw-dialog {
        animation: klw-auf .18s ease-out;
    }
    @keyframes klw-auf {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: none; }
    }
}
