/* CLAUDE: Mobile CTA-Bar Komponente */
/* CLAUDE: Sticky Footer-Bar mit Anruf + Formular-Button */
/* CLAUDE: Nur auf Mobile sichtbar (< 768px) */

/* ========================================
   CLAUDE: MOBILE CTA-BAR
   ======================================== */

/* CLAUDE: Fixierte Bar am unteren Bildschirmrand */
.lhi-mobile-cta-bar {
    /* CLAUDE: Auf Desktop ausblenden */
    display: none;

    /* CLAUDE: Fixiert am unteren Rand */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    /* CLAUDE: Flex-Layout für zwei Buttons */
    /* display: flex; wird per Media Query aktiviert */
    gap: 0;

    /* CLAUDE: Hintergrund mit Blur-Effekt */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* CLAUDE: Schatten nach oben */
    box-shadow: 0 -4px 20px rgba(59, 42, 26, 0.15);

    /* CLAUDE: Safe-Area für iPhone X+ */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* CLAUDE: Auf Mobile anzeigen */
@media (max-width: 768px) {
    .lhi-mobile-cta-bar {
        display: flex;
    }

    /* CLAUDE: Body-Padding für fixierte Bar */
    body.has-mobile-cta-bar {
        padding-bottom: 70px;
    }
}

/* ========================================
   CLAUDE: CTA BUTTONS
   ======================================== */

/* CLAUDE: Basis-Style für beide Buttons */
.lhi-mobile-cta-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--lhi-space-xs, 0.5rem);
    padding: var(--lhi-space-sm, 1rem);
    font-family: var(--lhi-font-sans, 'Source Sans Pro', sans-serif);
    font-size: var(--lhi-font-size-base, 1rem);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--lhi-transition-fast, 150ms ease);

    /* CLAUDE: Mindesthöhe für Touch-Targets */
    min-height: 56px;
}

/* CLAUDE: Anruf-Button (links, sekundär) */
.lhi-mobile-cta-bar__btn--call {
    background-color: var(--lhi-color-text, #3B2A1A);
    color: var(--lhi-color-white, #FFFFFF);
}

.lhi-mobile-cta-bar__btn--call:hover,
.lhi-mobile-cta-bar__btn--call:active {
    background-color: var(--lhi-color-secondary, #7C4A21);
}

/* CLAUDE: Formular-Button (rechts, primär) */
.lhi-mobile-cta-bar__btn--form {
    background-color: var(--lhi-color-gold, #8a6b3f);
    color: var(--lhi-color-white, #FFFFFF);
}

.lhi-mobile-cta-bar__btn--form:hover,
.lhi-mobile-cta-bar__btn--form:active {
    background-color: var(--lhi-color-secondary, #7C4A21);
}

/* CLAUDE: Icon im Button */
.lhi-mobile-cta-bar__icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* CLAUDE: Button-Text */
.lhi-mobile-cta-bar__text {
    /* CLAUDE: Standard-Styles erben */
}

@media (max-width: 360px) {
    .lhi-mobile-cta-bar__text {
        font-size: var(--lhi-font-size-sm, 0.9rem);
    }
}

/* ========================================
   CLAUDE: ANIMATION
   ======================================== */

/* CLAUDE: Einblend-Animation von unten */
@keyframes lhi-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lhi-mobile-cta-bar {
    animation: lhi-slide-up 0.3s ease forwards;
}

/* CLAUDE: Ausblenden beim Scrollen nach unten (optional) */
.lhi-mobile-cta-bar.is-hidden {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* CLAUDE: Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    .lhi-mobile-cta-bar {
        animation: none;
    }
}
