/* =====================================================================
   DREHMOMENT CSS-BUCKET 04: COMPONENTS (BUTTONS, CARDS, TAGS)
   ===================================================================== */

/* ---------------------------------------------------------------------
   04_COMPONENTS.CSS
   Buttons, Badges, Cards, Utilities, AI-Labels
   --------------------------------------------------------------------- */

/* AI Image Label */
.ai-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

/* ---------------------------------------------------------------------
   BUTTONS (PREMIUM DESIGN)
   --------------------------------------------------------------------- */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-sm);  /* Eckenradius für Knöpfe */
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-align: center;
}

/* Primär-Button: Brand-Blue */
.btn--primary {
    background-color: var(--primary-brand);
    color: var(--text-light);
}

.btn--primary:hover {
    background-color: var(--primary-brand-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(19, 108, 188, 0.2);
}

/* Sekundär- / Umriss-Button */
.btn--outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Signalfarbener Button: Gelb (Notruf) */
.btn--accent {
    background-color: var(--accent-red);
    color: var(--text-dark);
}

.btn--accent:hover {
    background-color: var(--accent-red-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.2);
}

/* Yellow Pulse Rule - Pulsierende Notruf-Aura */
@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.btn--pulse {
    animation: pulse-yellow 2s infinite;
}

/* ---------------------------------------------------------------------
   TAGS (BADGES IN GLASSMORPHISM LOOK)
   --------------------------------------------------------------------- */
.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.tag--blue {
    background-color: rgba(19, 108, 188, 0.15);
    color: var(--primary-brand-light);
    border: 1px solid rgba(19, 108, 188, 0.3);
}

.tag--red {
    background-color: rgba(211, 47, 47, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.tag--cyan {
    background-color: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* ---------------------------------------------------------------------
   SERVICE CARDS (REPARATURKACHELN)
   --------------------------------------------------------------------- */
.service-card {
    position: relative;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);  /* Gold Standard Eckenradius: 24px */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition-smooth);
}

.service-card:hover {
    background-color: var(--card-bg-hover);
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(211, 47, 47, 0.2);
}

/* Karten-Icons */
.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background-color: rgba(19, 108, 188, 0.1);
    border: 1px solid rgba(19, 108, 188, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon-wrapper {
    background-color: var(--primary-brand);
    border-color: var(--primary-brand);
}

.card-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-brand-light);
    transition: var(--transition-smooth);
}

.service-card:hover .card-icon {
    color: var(--text-light);
}

/* Kartenbeschreibung & Stichpunkte */
.service-card h3 {
    margin-bottom: 1rem;
    word-break: break-word;
    hyphens: auto;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Schiebt die Stichpunkte nach unten für symmetrische Höhe */
}

.card-bullet-list {
    list-style: none;
    border-top: 1px solid var(--card-border);
    padding-top: 1.25rem;
}

.card-bullet-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
    hyphens: auto;
}

.card-bullet-list li::before {
    content: "•";
    color: var(--primary-brand-light);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 0.8;
}

/* =====================================================================
   SCHWEBENDER WHATSAPP BUTTON (FLOATING ACTION BUTTON)
   ===================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(30, 41, 59, 0.7); /* Dark Glassmorphism */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #25D366; /* WhatsApp Green */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 211, 102, 0.2);
    transition: all var(--transition-smooth);
    animation: float-pulse 2s infinite;
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    transition: transform var(--transition-smooth);
}

.floating-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(37, 211, 102, 0.4);
    color: #25D366;
}

.floating-whatsapp:hover svg {
    transform: scale(1.1);
}

@media (min-width: 1024px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* Pulsier-Animation */
@keyframes float-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (min-width: 1024px) {
    /* Auf Desktop oben links unter dem Header, wie vom Kunden als interessante Position vorgeschlagen */
    .floating-whatsapp {
        top: 120px; /* Header ist 100px */
        left: 30px;
        bottom: auto;
        right: auto;
    }
}
