/* Allgemeine Einstellungen */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa';
}
body, html {
    height: 100%;
    background: #090909;
    scroll-behavior: smooth; /* Fügt ein sanftes Scrollen hinzu */

    color: #f9f9f9;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 150px;
    cursor: pointer;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #1e1e1e;
    border-radius: 40px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    color: #c8c8c8;
}

h1, h2, h3, p {
    margin-bottom: 20px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Blog-Kacheln */
.blog-card {
    background: #1e1e1e;
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.blog-card h2 {
    font-size: 1.5rem;
    color: #fff;
}

.blog-card p {
    font-size: 1rem;
    color: #878787;
    margin-bottom: 20px;
}

.blog-card .read-more {
    font-size: 1rem;
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.3s;
}

.blog-card .read-more:hover {
    color: #ff5555;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

/* Footer */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #090909; /* Dunkler Hintergrund */
    color: #fff;
    text-align: center;
    padding: 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-nav {
    display: flex;
    gap: 20px; /* Abstand zwischen den Links */
    justify-content: center;
    margin-top: 10px;
}

.footer-nav a {
    color: #fff;
    font-size: 1rem;
    text-decoration: none; /* Entfernt die Unterstreichung */
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ff0000; /* Rot beim Hover */
}

/* Zurück-Button Styling */
.back-button-container {
    text-align: center;
    padding: 20px;
}

.back-button {
    background-color: #ff0000;
    color: #fff;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.back-button:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.back-button:active {
    transform: scale(0.95);
}
/* Popup Styling */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e1e;
    color: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.5s ease;
}

.popup-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ff0000;
}

.popup-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #f9f9f9;
}

.popup-content button {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.popup-content button:hover {
    background: #cc0000;
}

.popup-content button:active {
    transform: scale(0.95);
}

#close-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s;
}

#close-popup:hover {
    color: #ff5555;
}

/* Minimized Popup */
#popup-minimized {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #c8c8c8;
    color: #ff0000;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    font-size: 1rem;
    z-index: 1000;
    transition: transform 0.3s;
}

#popup-minimized:hover {
    transform: scale(1.1);
}

/* Hidden class */
.hidden {
    display: none;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
/* Overlay Styling */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Abdunkelung */
    z-index: 999; /* Unter dem Popup, aber über allem anderen */
    transition: opacity 0.3s ease;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }

    .logo {
        width: 120px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Hilfepopup */
.help-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.help-popup.show {
    visibility: visible;
    opacity: 1;
}
.help-popup button{
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;}
.help-popup-content {
    background: linear-gradient(145deg, #1a1a1a, #2b2b2b);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 50%;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.help-popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.help-popup-content p {
    margin: 10px 0;
    font-size: 1rem;
    color: #ccc;
}
