/* Stil für das Floating Widget */
.cf-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Positioniere die Links über dem Toggle-Button */
#cf-widget-links {
    position: absolute;
    bottom: 70px; /* 60px Button-Höhe + 10px Abstand */
    right: 0;
    padding: 10px 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    display: none; /* Anfangs versteckt */
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

#cf-widget-links.cf-hidden {
    display: none;
}

#cf-widget-toggle {
    border: none;
    padding: 15px;
    border-radius: 50%; /* Button rund gestalten */
    cursor: pointer;
    animation: pulse 2s infinite; /* Pulsierende Animation */
    width: 60px; /* Breite des runden Buttons */
    height: 60px; /* Höhe des runden Buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit; /* Farbe vom Inline-Stil übernehmen */
    background-color: inherit; /* Hintergrundfarbe vom Inline-Stil übernehmen */
}

/* Wenn Links sichtbar sind, zeige sie mit Opazität und Position */
#cf-widget-links:not(.cf-hidden) {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Flexbox für Links */
#cf-widget-links a {
    display: flex; /* Flexbox für horizontale Ausrichtung */
    align-items: center; /* Vertikale Zentrierung */
    padding: 12px 15px;
    text-decoration: none;
    color: black; /* Link-Textfarbe */
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap; /* Verhindert Zeilenumbruch */
}

/* Hover-Effekt für Links */
#cf-widget-links a:hover {
    color: #555; /* Optional: Farbe beim Hover ändern */
    background-color: #f3f3f3;
}

/* Stil für Font Awesome Icons */
#cf-widget-toggle i {
    font-size: 2em; /* Größere Icon-Größe, passe nach Bedarf an */
    text-align: center; /* Zentrierung des Icons */
}

#cf-widget-links a i {
    margin-right: 8px; /* Abstand zwischen Icon und Text */
    font-size: 1.2em; /* Einheitliche Icon-Größe */
    width: 24px; /* Feste Breite für Icons */
    text-align: center; /* Zentrierung des Icons */
}

/* Label-Styling */
.cf-widget-label {
    display: inline-block;
    white-space: nowrap; /* Verhindert Zeilenumbruch des Textes */
}

/* Beispielhafte zusätzliche CSS-Klassen */
.cf-widget-link.meine-klasse {
    /* Beispiel: Hintergrundfarbe ändern */
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .cf-widget {
        bottom: 10px;
        right: 10px;
    }

    #cf-widget-toggle {
        width: 50px;
        height: 50px;
    }

    #cf-widget-links {
        bottom: 60px;
        padding: 8px;
    }

    #cf-widget-links a {
        margin: 8px 0;
    }

    #cf-widget-links a i {
        font-size: 1em;
        margin-right: 6px;
        width: 20px; /* Anpassung für kleinere Bildschirme */
    }

    .cf-widget-label {
        font-size: 0.9em; /* Kleinere Schriftgröße für mobile Geräte */
    }
}