/**
 * CTA Buttons Styles
 * Sidebar buttons + Floating mobile buttons
 */

/* ============================================
   SIDEBAR CTA BUTTONS (Desktop)
   ============================================ */

.cta-button {
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Primary CTA Button (Angebot anfordern) - Compact */
.cta-primary {
    background-color: var(--color-primary, #C19A6B);
    color: #2C2C2C;
    padding: 0.625rem 0.875rem;
    line-height: 1.3;
}

.cta-primary .cta-line-1 {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
}

.cta-primary .cta-line-2 {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}

.cta-primary:hover {
    background-color: #A67C52;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 154, 107, 0.4);
}

.cta-primary:hover .cta-line-1,
.cta-primary:hover .cta-line-2 {
    color: #FFFFFF;
}

/* WhatsApp Button - Compact */
.cta-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    padding: 0.75rem 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.cta-whatsapp:hover {
    background-color: #20BA5A;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.cta-whatsapp:hover span {
    color: #FFFFFF;
}

.whatsapp-icon {
    flex-shrink: 0;
}

/* ============================================
   FLOATING CTA BAR (Mobile Only)
   ============================================ */

.floating-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    gap: 0.75rem;
    justify-content: space-between;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.floating-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-height: 48px; /* Touch-friendly */
}

.floating-quote {
    background-color: var(--color-primary, #C19A6B);
    color: #2C2C2C;
}

.floating-quote:hover,
.floating-quote:active {
    background-color: #B8860B;
    transform: scale(1.02);
}

.floating-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
}

.floating-whatsapp:hover,
.floating-whatsapp:active {
    background-color: #20BA5A;
    transform: scale(1.02);
}

/* Show floating bar only on mobile */
@media (max-width: 768px) {
    .floating-cta-bar {
        display: flex;
    }
    
    /* Add padding to body to prevent content being hidden */
    body {
        padding-bottom: 80px;
    }
}

/* Hide floating bar on desktop */
@media (min-width: 769px) {
    .floating-cta-bar {
        display: none !important;
    }
}

/* ============================================
   GENERAL BUTTON STYLES - Modern
   ============================================ */

.read-more-btn,
.btn-home,
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background-color: transparent;
    color: var(--color-primary, #C19A6B);
    border: 1px solid var(--color-primary, #C19A6B);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.read-more-btn:hover,
.btn-home:hover,
.btn-back:hover {
    background-color: var(--color-primary, #C19A6B);
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 154, 107, 0.3);
}

.read-more-btn .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.read-more-btn:hover .arrow {
    transform: translateX(5px);
}

/* ============================================
   SMOOTH SCROLL BEHAVIOR
   ============================================ */

.smooth-scroll {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--color-primary, #C19A6B);
    outline-offset: 2px;
}

/* Touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
    .floating-btn:active {
        opacity: 0.8;
    }
    
    .cta-button:active {
        opacity: 0.9;
    }
}

