﻿.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.8); */
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.overlay-content h2 {
    font-size: 24px;
    margin: 0;
    text-align: left;
}

.overlay-content .date {
    font-size: 15px;
    color: darkgray;
    text-align: left;
    margin-top: 5px;
}

.overlay-content .description {
    text-align: left;
}

.overlay-content .overlay-sections {
    white-space: pre-wrap;
    width: 100%;
    padding-top: 10px;
}

.overlay-header {
    display: flex;
    flex-direction: row;
}

.overlay-header img {
    width: 250px;
    height: 250px;
}

.overlay-text {
    display: flex;
    flex-direction: column;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--button-hover-color);
}

.cover-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: min-content;
    max-width: 270px;
    margin-right: 20px;
}

.report-link {
    color: darkgray;
    font-size: small;
    cursor: pointer;
    width: 100%;
    text-align: right;
    transition: color 0.3s ease;
}

.report-link:hover {
    color: gray;
}

.overlay {
    background-color: rgba(0, 0, 0, 0);
}

.overlay-content {
    background: linear-gradient(135deg,
            rgba(240, 240, 240, 0.15) 0%,
            rgba(230, 230, 230, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.close-button {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    height: 40px;
    width: 40px;
}

.close-button {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Subtile Animation beim Öffnen */
@keyframes overlayAppear {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.overlay[style*="flex"] .overlay-content {
    animation: overlayAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overlay-sections-container {
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
}

.mobile-buttons {
    display: none;
}

.platform-link-buttons-container {
    display: flex;
    justify-content: space-around;
    gap: 50px;
    width: 100%;
    max-width: 250px;
    height: 40px;
    margin-top: 15px;
}

.platform-link-buttons-container img {
    height: 40px;
    width: auto;
}

.platform-link-button {
    width: 40px;
}

@media (max-width: 600px) {
    .cover-column {
        display: none;
    }

    .mobile-buttons {
        display: block;
    }
}