/* ============================================================
   Landeskonferenz 2026 – Dynamik- & Conversion-Erweiterungen
   Ergänzt styles.css 1:1 (keine Farb-/Font-Änderungen), nutzt
   dieselben Design-Tokens: --navy --teal --teal-deep --cream
   --coral --font-display --font-sans --radius --shadow-soft
   --shadow-lift --border --muted-foreground
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Urgency / Frühbucher-Countdown ---------- */
.urgency-bar {
    background: linear-gradient(90deg, var(--navy), var(--navy-soft) 65%, var(--teal-deep));
    color: var(--cream);
    font-family: var(--font-sans);
    position: relative;
}
.urgency-bar__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.65rem 2.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    flex-wrap: wrap;
    text-align: center;
}
.urgency-bar__icon { font-size: 1rem; }
.urgency-bar__timer {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: var(--navy);
    background: var(--teal);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.urgency-bar__cta {
    border: 1px solid rgba(247, 245, 240, 0.5);
    border-radius: 999px;
    padding: 0.3rem 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.urgency-bar__cta:hover { background: var(--teal); color: var(--navy); border-color: var(--teal); transform: translateY(-1px); }
.urgency-bar__close {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: none;
    border: 0;
    color: var(--cream);
    opacity: 0.6;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.urgency-bar__close:hover { opacity: 1; }
.urgency-bar.is-hidden { display: none; }

/* ---------- Animierte Zähler ---------- */
.counter { font-variant-numeric: tabular-nums; }

/* ---------- Seminargruppen: Icon + Hover-Dynamik ---------- */
.sem-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(98, 195, 208, 0.14);
    color: var(--teal);
}
.sem-icon svg { width: 1.2rem; height: 1.2rem; }
main section#seminargruppen article.lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
main section#seminargruppen article.lift:hover,
main section#seminargruppen article.lift:focus-within {
    transform: translateY(-6px);
    border-color: rgba(98, 195, 208, 0.45);
    box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.55);
}

/* ---------- Hero: schwebendes Badge + Ambient-Bewegung ---------- */
.floating-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--cream);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    box-shadow: var(--shadow-lift);
    animation: float-y 4.5s ease-in-out infinite;
    z-index: 10;
}
.floating-badge .live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--teal-deep);
    display: inline-block;
    animation: pulse-soft 1.8s ease-in-out infinite;
}
@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.ambient-glow { animation: drift 13s ease-in-out infinite alternate; }
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-18px, 14px) scale(1.08); }
}

/* ---------- Gestaffeltes Einblenden für Grids ---------- */
.stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 0.02s; }
.stagger.is-in > *:nth-child(2) { transition-delay: 0.09s; }
.stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.is-in > *:nth-child(4) { transition-delay: 0.23s; }
.stagger.is-in > *:nth-child(5) { transition-delay: 0.3s; }
.stagger.is-in > *:nth-child(6) { transition-delay: 0.37s; }

/* ---------- FAQ Accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 1.35rem 0.1rem;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--foreground);
}
.faq-q:hover { color: var(--teal-deep); }
.faq-q .faq-plus {
    flex: none;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    border: 1.5px solid var(--teal-deep);
    color: var(--teal-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.faq-item[data-open="true"] .faq-plus {
    transform: rotate(135deg);
    background: var(--teal-deep);
    color: #fff;
}
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.faq-a p {
    padding: 0 0.1rem 1.35rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--muted-foreground);
    max-width: 42rem;
}

/* ---------- Prozess-Schritte (Anmeldeseite) ---------- */
.process-steps { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .process-steps { grid-template-columns: repeat(3, 1fr); } }
.process-step { display: flex; gap: 0.85rem; align-items: flex-start; }
.process-step__num {
    flex: none;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.process-step__body h4 { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; color: var(--foreground); }
.process-step__body p { font-size: 0.9rem; color: var(--muted-foreground); line-height: 1.55; }

/* ---------- Sticky Mobile-CTA ---------- */
.mobile-sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 53, 57, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(247, 245, 240, 0.12);
    transform: translateY(110%);
    transition: transform 0.35s ease;
}
.mobile-sticky-cta.is-visible { transform: translateY(0); }
.mobile-sticky-cta__price { color: var(--cream); font-size: 0.8rem; font-weight: 600; line-height: 1.2; }
.mobile-sticky-cta__price strong { color: var(--teal); font-family: var(--font-display); font-size: 1.2rem; display: block; }
@media (min-width: 768px) { .mobile-sticky-cta { display: none; } }

/* ---------- Back-to-top ---------- */
.back-to-top {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 40;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lift);
    border: 0;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
    cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--teal-deep); color: #fff; }
@media (min-width: 768px) { .back-to-top { bottom: 1.75rem; right: 1.75rem; } }

/* ---------- Scrollspy-Navigation ---------- */
nav a.is-active { color: var(--foreground); position: relative; }
nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--teal-deep);
    border-radius: 999px;
}

/* ---------- Haupt-CTA: einziger, bewusst zurückhaltender Blickfang ---------- */
.cta-pulse { position: relative; }
.cta-pulse::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 1.5px solid var(--coral);
    opacity: 0;
    animation: cta-pulse-ring 2.8s ease-out infinite;
    pointer-events: none;
}
@keyframes cta-pulse-ring {
    0% { opacity: 0.55; transform: scale(1); }
    70% { opacity: 0; transform: scale(1.12); }
    100% { opacity: 0; transform: scale(1.12); }
}

/* ---------- Hero-Bilder: einmaliger Reveal beim Laden ---------- */
@media (prefers-reduced-motion: no-preference) {
    #lako img { animation: hero-reveal 0.9s cubic-bezier(.22, .68, .36, 1) both; }
    #lako img + img { animation-delay: 0.18s; }
}
@keyframes hero-reveal {
    from { clip-path: inset(0 0 100% 0); opacity: 0; }
    to { clip-path: inset(0 0 0% 0); opacity: 1; }
}