/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #663573, #225668 );
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    max-width: 100%;
    text-align: center;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: linear-gradient(45deg, #663573, #225668, #6643a7);
    animation: gradientAnimation 20s infinite;
    background-size: 300% 300%;
    scroll-behavior: smooth;

}
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Haupt-Content */
.content {
    width: 40%; 
    max-width: 1000px;
    margin: 0 auto;
}

#scrolltoo, #dailyQuizButton {
    color: white;
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    background: rgba(60, 15, 97, 0.2);
    text-decoration: none;
    border-radius: 5px;
    margin: 15px;
  }
  #scrolltoo:hover, #dailyQuizButton:hover {
        transform: scale(1.07);
        background-color: #d79a48;
  }

.quiz-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px; /* Falls nötig, anpassen */
    text-align: center;
}
.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(170, 119, 162, 0.8);
    color: white;
    font-size: 0.8rem;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    max-width: 100px;
    text-align: center;
    margin-top: 10px; /* Abstand nach oben */
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
.section:hover {
    box-shadow: 0 0 8px rgba(145, 111, 224, 0.7);
}
/* Section-Stile */
.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    max-width: 99%;
}
.section h2 {
    color: rgb(179, 183, 245);
    font-size: 2rem;
}
.section p {
    color: rgb(242, 229, 209);
}
.section a {
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
}
.section img {
    width: 80%; 
    border-radius: 10px;
    margin-right: 10px; 
}

.section .text {
    width: 99%; 
    margin-left: 1px;
}


.section {
    gap: 10px; 
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Cookie-Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 570px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 45px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 9999;
}
#cookie-banner button {
    margin: 10px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: 0.3s;
}

#cookie-banner button:first-of-type {
    background: #7b7c7b;
    color: white;
}

#cookie-banner button:first-of-type:hover {
    background: #636463;
}

#cookie-banner button:last-of-type {
    background: #4CAF50;
    color: white;
}

#cookie-banner button:last-of-type:hover {
    background: #2b6b2d;
}
#cookie-settings {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
    z-index: 10000;
    color: black;
}

/* Anpassung für sehr große Bildschirme (4K) */
@media (max-width: 2560px) {
    .content {
        width: 70%;
    }
}

@media (max-width: 1920px) {
    .content {
        width: 75%;
    }
}

/* Anpassung für größere Laptops & kleine Desktops */
@media (max-width: 1600px) {
    h4, h2 {
        font-size: 1rem;
    }

    .content {
        width: 80%;
    }
}

/* Anpassung für Standard-Laptops */
@media (max-width: 1366px) {
    .content {
        width: 85%;
    }

    .section img,
    .section .text {
        width: 90%;
    }
}

/* Anpassung für Tablets im Querformat */
@media (max-width: 1024px) {
    .section {
        flex-direction: column;
        padding: 15px;
    }

    .content {
        width: 90%;
    }

    .section img,
    .section .text {
        width: 100%;
    }
}

/* Anpassung für Tablets im Hochformat */
@media (max-width: 900px) {
    .content {
        width: 95%;
    }

    .section img,
    .section .text {
        width: 100%;
    }
}

/* Anpassung für große Smartphones */
@media (max-width: 768px) {
    h4, h2 {
        font-size: 0.9rem;
    }

    .content {
        width: 98%;
    }

    .section img,
    .section .text {
        width: 100%;
    }
}

/* Anpassung für mittelgroße Smartphones */
@media (max-width: 600px) {
    h4, h2 {
        font-size: 0.85rem;
    }

    .content {
        width: 100%;
    }
}

/* Anpassung für kleine Smartphones */
@media (max-width: 480px) {
    h4, h2 {
        font-size: 0.8rem;
    }

    .content {
        width: 100%;
    }

    .section img {
        width: 100%;
        margin-bottom: 15px;
    }

    .section .text {
        width: 100%;
    }

    #cookie-banner {
        width: 95%;
    }
}

/* Anpassung für sehr kleine Bildschirme (z. B. alte Handys) */
@media (max-width: 360px) {
    h4, h2 {
        font-size: 0.75rem;
    }
}

/* Footer */
footer {
    margin-top: 40px;
    width: 100%;
    color: white;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


@media (max-width: 480px) {
    #cookie-banner {
        width: 95%; 
    }
}
