/* ===== STICKY CTA — MOBILE BOTTOM SHEET ===== */
/* Design C: Mini Bottom Sheet on Mobile, Sidebar Card on Desktop */

.sticky-cta-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: #1a8a7f;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    border-radius: 16px 16px 0 0;
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
}

.sticky-cta-bottom.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sticky-cta-inner {
    max-width: 400px;
    margin: 0 auto;
}

.sticky-cta-headline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem 0;
}

.sticky-cta-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.sticky-cta-title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
}

.sticky-cta-message {
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-wrap: balance;
}

.sticky-cta-button {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: #ffffff;
    color: #0d3b3b;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    border-radius: 10px;
    text-align: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease;
}

.sticky-cta-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Desktop: Hide bottom sheet */
@media (min-width: 769px) {
    .sticky-cta-bottom {
        display: none;
    }
}

/* Push Superchat chatbot above sticky CTA bar (mobile only) */
@media (max-width: 768px) {
    .sticky-cta-bottom.visible ~ #superchat-widget,
    .sticky-cta-bottom.visible ~ [id^="superchat"],
    .sticky-cta-bottom.visible ~ iframe[src*="superchat"] {
        bottom: 120px !important;
    }
}

/* ===== SIDEBAR CTA CARD — DESKTOP ONLY ===== */
/* Rendered inside the TOC sidebar, below the navigation */

.sidebar-cta-card {
    display: none; /* Hidden on mobile */
}

@media (min-width: 769px) {
    .sidebar-cta-card {
        display: block;
        margin-top: 0.75rem;       /* Abstand letztes TOC-Item → Divider */
        padding-top: 0.75rem;      /* Abstand Divider → gruene Box (gleich wie oben) */
        border-top: none;
    }

    .sidebar-cta-card-inner {
        padding: 1.25rem;
        background: #1a8a7f;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .sidebar-cta-headline {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0 0 0.375rem 0;
    }

    .sidebar-cta-icon {
        font-size: 1.125rem;
        flex-shrink: 0;
    }

    .sidebar-cta-title {
        margin: 0;
        color: #ffffff;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25;
        text-align: center;
        text-wrap: balance;
    }

    .sidebar-cta-message {
        margin: 0 0 0.875rem 0;
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        line-height: 1.4;
        text-align: center;
        text-wrap: balance;
    }

    .sidebar-cta-button {
        display: block;
        width: 100%;
        padding: 12px 16px;
        background: #ffffff;
        color: #0d3b3b;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        border-radius: 8px;
        text-align: center;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: box-shadow 0.2s ease;
    }

    .sidebar-cta-button:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

}
