﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100vw;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background: #f8f8f8;
    background-color: lightgray;
}

/* Navigation */
header {
    background: #222;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

    .navbar .logo {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .navbar nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-wrap: wrap;
    }

    .navbar nav ul li {
        margin-left: 1rem;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .logo img {
        height: 40px;
        width: auto;
    }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

    .nav-links a {
        color: white;
        text-decoration: none;
        transition: color 0.3s;
    }

        .nav-links a:hover {
            color: #f39c12;
        }

.burger {
    display:none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Carousel */
.carousel, 
.carousel * {
    max-width: none;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding-top: 2rem;
    margin: auto;
    overflow: hidden;
    user-select: none;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: inline-flex;
    transition: transform 0.5s ease-in-out;
    width: auto;
    white-space: nowrap;
}

.slide {
    flex: 0 0 auto;
    width: 90%;
    margin: 0;
    opacity: 0;
    position: relative;
    transition: opacity 0.4s ease;
    pointer-events: none;
    user-select: none;
}

    .slide.active {
        opacity: 1;
        pointer-events: auto;
    }

    .slide img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        display: block;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    user-select: none;
    z-index: 10;
}

.prev {
    left: 0px;
}

.next {
    right: 0px;
}

.carousel-nav {
    text-align: center;
    margin-top: 15px;
}

    .carousel-nav button {
        background-color: #bbb;
        border: none;
        width: 12px;
        height: 12px;
        margin: 0 6px;
        border-radius: 50%;
        display: inline-block;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .carousel-nav button.active {
            background-color: #717171;
        }

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 1rem;
    border-radius: 5px;
}

/* About Section */
.about {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Row Styles */
.row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-direction: row;
    color: #222;
    padding: 2rem;
    border-radius: 12px;
    text-align: justify;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: repeating-linear-gradient( 135deg, lightgrey, lightgrey 10px, darkgrey 10px, darkgrey 20px), rgba(255,255,255,0.7);
    background-blend-mode: lighten; /* mischt beide Layer */
}

    /* Hover-Effekt */
    .row:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    }

    /* Reverse Reihenfolge */
    .row.reverse {
        flex-direction: row-reverse;
    }

    /* Bilder */
    .row img {
        flex: 0 0 auto;
        max-width: 15%;
        border-radius: 10px;
        height: auto;
        order: 1;
        object-fit: cover;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        transform-style: preserve-3d;
        perspective: 1000px;
    }

        .row img:hover {
            transform: scale(1.4);
            box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        }

    /* Text */
    .row .text {
        flex: 0 0 82%;
        order: 2;
    }

h3 {
    margin-bottom: 1rem;
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
}

/* Danke-Abschnitt */
.thanks {
    text-align: center;
    background: linear-gradient(135deg, #fceabb, #f8b500);
    color: #222;
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
    .row {
        flex-direction: column;
        text-align: center;
    }

        .row img, .row .text {
            flex: 1 1 100%;
            max-width: 80%;
        }
}

/* Overlay */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    /* Sichtbar machen */
    .popup.show {
        visibility: visible;
        opacity: 1;
    }

/* Inhalt */
.popup-content {
    background: #fff;
    color: #222;
    padding: 2rem;
    border-radius: 12px;
    max-width: 415px;
    width: 90%;
    text-align: justify;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: popup-zoom 0.4s ease;
}

    .popup-content h2 {
        margin-bottom: 2rem;
    }

/* Schließen Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Kleine Animation */
@keyframes popup-zoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 1rem;
}

    footer a {
        color: #f39c12;
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* Responsive: Stapeln untereinander */
@media (max-width: 768px) {

    * {
        box-sizing: border-box;
        max-width: 100%;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1; /* nimmt Platz ein, damit Burger rechts bleibt */
        flex-wrap: wrap; /* falls Logo + Text in mehreren Zeilen */
    }

    .burger {
        display: block;
        order: 2; /* rechts neben Logo */
        margin-left: auto; /* schiebt es an den rechten Rand */
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }



    /* Normale Links ausblenden */
    .nav-links {
        display: none;
        width: 100%;
        background: #222;
        flex-direction: column;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease; /* Slide-Down Animation */
    }

    .nav-links.show {
        display:flex;
        max-height: 500px;
    }

    .nav-links li {
        margin: 0.5rem 0;
        list-style: none;
        text-align: center;
    }

    .caption {
        display: none;
    }

    .row,
    .row.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        width: 100%;
    }

        .row img {
            order: 1;
            width: 100%;
            max-width: 200px;
            height: auto;
            border-radius: 10px;
        }
        
        .row .text {
            width: 100%;
            order: 2;
            max-width: 500px;
        }

        .row.reverse img {
            order: 1;
        }

        .row.reverse .text {
            order: 2;
        }
}


/* css für Anmeldung*/
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    text-align: left;
}

form input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.password-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

    .password-wrapper input {
        padding-right: 2.5rem;
    }

#togglePassword {
    position: absolute;
    right: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
}

.hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}

form button {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.7rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 2rem;
}

    form button:hover {
        background: #555;
    }

form a {
    text-align: center;
    text-decoration: none;
    color: black;
}


/* special */
.special-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

    .special-container h2 {
        margin-bottom: 2rem;
    }

    .special-container p {
        text-align: justify;
        margin-bottom: 2rem;
    }

    .special-container a {
        text-decoration: none;
        color: black;
    }

/* rules */
main.rules {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
}

/* Allgemeine Regel-Sektionen */
.rules-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

    .rules-section h2 {
        margin-bottom: 1rem;
        color: #333;
    }

    .rules-section h3 {
        font-family: Arial;
    }

    /* Listen in Regel-Sektionen */
    .rules-section ul, .rules-section ol {
        padding-left: 1.5rem;
        line-height: 1.5;
    }

        .rules-section ul li, .rules-section ol li {
            margin-bottom: 0.8rem;
        }

    .rules-section .step {
        background: #f9f9f9;
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
        margin-bottom: 1.5rem;
    }

        .rules-section .step h3 {
            margin-bottom: 0.5rem;
            color: #333;
        }

        .rules-section .step p {
            margin: 0;
            text-align: justify;
            color: #555;
        }

/* Kartenbeispiele in Regeln */
.card-example {
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .card-example img {
        margin-top: 0.8rem;
        max-width: 200px;
        width: 100%;
    }

/* Karten-Beispiele */
.example-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

    .example-cards img {
        flex: 0 0 auto;
        max-width: 30%;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
    }

        .example-cards img:hover {
            transform: scale(1.05) rotateX(5deg) rotateY(5deg);
            cursor: pointer;
        }

    /* Hervorhebungen */
    .rules-section strong {
        color: #1a73e8; /* dezenter blauer Akzent für wichtige Begriffe */
    }

/* profile */
.profile-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: #f4f4f4;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

    .stat-card h3 {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
        color: #333;
    }

    .stat-card p {
        font-size: 1.8rem;
        font-weight: bold;
        color: #222;
    }

#logoutBtn {
    background: #222;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

    #logoutBtn:hover {
        background: #444;
    }

.form-container textarea {
    width: 100%
}

/* News */
main.news {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
    align-content: center;
}

.news-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

    .news-item p {
        margin-bottom: 1rem;
    }

    .news-item a {
        color:black;
        text-decoration:none;
    }

    .news-item img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        display: block;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        margin-bottom: 2rem;
    }