/* Trostpunkte Basis-Styles */
.trostpunkt {
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: var(--wp--preset--color-secondary);
    opacity: 0;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: absolute;
    will-change: transform;
}

/* Trostpunkte nach der Positionsberechnung einblenden */
.trostpunkt.initialized {
    opacity: 0.9 !important;
}

/* Umgekehrte Farben auf der Startseite */
.home .trostpunkt {
    background-color: var(--wp--preset--color-primary);
}

.trostpunkt:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Container ist immer Fixed Fullscreen */
.mm-trostpunkte-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    pointer-events: none;
}

.mm-trostpunkte-container .trostpunkt {
    position: absolute !important;
    z-index: 10000 !important;
    pointer-events: auto;
}

/* Overlay-Container - Transparenter Vollbild Hintergrund */
.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-container.active {
    opacity: 1;
    visibility: visible;

}

/* Scrollbars bei aktivem Overlay komplett ausblenden */
body.overlay-active {
    overflow: hidden;
    padding-right: 0 !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

body.overlay-active::-webkit-scrollbar {
    display: none; /* Webkit-Browser */
}

/* Overlay-Inhalt - positionierbar über JavaScript */
.overlay-content {
    position: fixed;
    display: block;
}

/* Overlay-Bild - rund, clean ohne Rand und Schatten */
.overlay-image {
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
    display: block;
}

/* Schließen-Button - unten zentriert innerhalb des Bildes */
.close-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--wp--preset--color-primary);
    color: var(--wp--preset--color-secondary);
    border: 1px solid var(--wp--preset--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: var(--wp--preset--font-size--small);
    font-weight: normal;
    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10001;
}

/* Umgekehrte Farben auf der Startseite */
.home .close-overlay {
    background-color: var(--wp--preset--color-secondary);
    color: var(--wp--preset--color-primary);
    border: 1px solid var(--wp--preset--color-secondary);
}

/* Hover-Effekt: Farben wechseln */
.close-overlay:hover {
    background-color: var(--wp--preset--color-secondary);
    border: 1px solid var(--wp--preset--color-primary);
    color: var(--wp--preset--color-primary);
    transform: translateX(-50%) scale(1);
}

/* Umgekehrte Hover-Farben auf der Startseite */
.home .close-overlay:hover {
    background-color: var(--wp--preset--color-primary);
    border: 1px solid var(--wp--preset--color-secondary);
    color: var(--wp--preset--color-secondary);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .close-overlay {
        bottom: 15px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* Smartphone Hochformat - Overlay größer machen */
@media (max-width: 767px) and (orientation: portrait) {
    .overlay-image {
        width: 120vw !important;
        height: 120vw !important;
        min-width: 120vw;
        min-height: 120vw;
    }
}

/* Medienabfragen */
@media (max-width: 768px) {
    .trostpunkte-container {
        max-height: 100vh;
    }
}

