/* Nach-oben-Button-Stile */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 90px; /* vorher: 20px – nach oben versetzt, damit kein overlap */
    right: 20px;
    background-color: var(--color-bg);
    border: none; /* Entfernung des Borders */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    outline: none;
    transition: all 0.4s ease-in-out;
    opacity: 1;
    z-index: 99;
    box-shadow: var(--shadow);
    border: var(--color-border);
}

.back-to-top:hover {
    opacity: 1;
    background-color: var(--color-primary);
    transform: scale(1.15);
}

.back-to-top .scroll-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: 50% 50%;
    width: 100%;
    height: 100%;
    stroke: var(--color-primary);
    stroke-width: 12;
    fill: none;
    stroke-dasharray: 364.49;
    stroke-dashoffset: 364.49;
    stroke-linecap: round;
    border-radius: 50%;
    transition: stroke-dashoffset 0.1s ease-in-out, stroke 0.4s ease-in-out;
}

.back-to-top:hover .scroll-indicator {
    stroke: var(--color-white);
}

.back-to-top .arrow-icon {
    fill: var(--color-primary);
    display: block;
    margin: auto;
    width: 14px;
    height: 17px;
    position: absolute;
    top: 50%;
    left: 50%;
    transition: all 0.4s ease-in-out;
    transform: translate(-50%, -50%);
}

.back-to-top:hover .arrow-icon {
    fill: var(--color-white);
}

@media screen and (max-width: 768px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 80px; /* etwas weniger, aber immer noch über WhatsApp */
    }
}




.whatsapp-button {
    position: fixed !important;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #25D366; /* WhatsApp-Grün */
    color: #ffffff;
    box-shadow: var(--shadow);
    z-index: 100; /* über back-to-top (99), aber nicht komplett über allem */
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Kreis-Hintergrund, dezent */
.whatsapp-indicator {
    position: absolute;
    inset: 0;
}

.whatsapp-indicator circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 2;
}

/* Icon in der Mitte */
.whatsapp-icon {
    width: 26px;
    height: 26px;
    fill: #ffffff;
    position: relative;
}

/* Hover / Active */
.whatsapp-button:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.whatsapp-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* Mobile etwas kleiner */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-icon {
        width: 22px;
        height: 22px;
    }
}




