body {
    font-family: sans-serif;
    margin: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("images/background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #DEB887;
    font-size: 1.1em;
    text-align: center;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

header {
    background-color: #202719;
    color: #DEB887;
    height: 3cm;
    padding: 0 5cm;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1001;
}

header h1 {
    margin: 0 auto;
    font-size: 2.5em;
    color: #DEB887;
    text-align: center;
}

header nav {
    margin-left: auto;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

header nav li {
    margin: 0 15px;
}

header nav a {
    color: #DEB887;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

#logo {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
}

main {
    padding: 1rem 0;
}

section {
    padding: 2rem 0;
    margin-bottom: 0.5rem;
    min-height: 100vh;
}

.section-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-divider {
    height: 1.5cm;
    background-color: #202719;
    width: 100%;
}

section:last-child {
    border-bottom: none;
}

section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2em;
    color: #DEB887 !important;
}

section p,
section ul {
    list-style-type: none;
    margin: 0 auto;
    width: fit-content;
    padding-left: 0; /* Removed padding as there are no bullets */
    line-height: 1.6;
}

#idee ul {
    list-style-type: disc;
    padding-left: 40px;
}

#idee .col-md-6:nth-child(2) .contact-box h3 {
    text-align: left;
}

.home-button {
    display: block;
    margin: 2rem auto;
    width: fit-content;
    padding: 0.5rem 1rem;
    background-color: #202719;
    color: #DEB887;
    text-decoration: none;
    border-radius: 5px;
}

.row {
    display: flex;
    justify-content: center;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    cursor: pointer;
}

.card-face .btn {
    background-color: #202719;
    color: #DEB887;
    border: 2px solid #202719;
}

.card:hover {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 300px; /* Fixed height for uniform card size */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
    border: 2px solid #DEB887;
    border-radius: 10px;
}

.card-face.front {
    background-color: #202719;
}

.card-face.back {
    background-color: #2a342d;
    transform: rotateY(180deg);
}

.card-face h5,
.card-face p {
    color: #DEB887;
}

.card-face img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}



.contact-box p,
.contact-box ul li,
#impressum p {
    text-align: justify;
    color: #DEB887;
}





.home-cards-row {
    margin-top: 10vh;
    margin-bottom: 10vh;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
}

.hamburger-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    padding: 0;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #DEB887;
}

.mobile-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #202719;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
}

.mobile-nav-links.show {
    display: block;
}

.mobile-nav-links li {
    text-align: center;
    padding: 1rem;
}

.mobile-nav-links li a {
    color: #DEB887;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

/* Media Queries */
@media (min-width: 1024px) and (max-width: 1500px) {
    header {
        padding: 0 2cm;
    }

    header h1 {
        font-size: 2em;
    }

    header nav a {
        font-size: 1em;
    }
}

@media (max-width: 1024px) {
    header {
        height: auto;
        padding: 1rem;
        flex-wrap: wrap;
    }

    header h1 {
        font-size: 2em;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    #home {
        min-height: auto;
    }

    .home-cards-row {
        flex-direction: column;
        align-items: center;
    }

    .col {
        width: 80%;
        margin-bottom: 2rem;
    }

    .card {
        position: static;
        transform-style: flat;
    }

    .card:hover {
        transform: none;
    }

    .card-face {
        position: relative;
        height: auto;
        backface-visibility: visible;
        transform: none;
        border: 2px solid #DEB887;
        border-radius: 10px;
        padding-bottom: 50px; /* Increased padding for the button */
    }

    .card-face.back {
        display: none;
    }

    .row .col:first-child .card-face.front img,
    .row .col:nth-child(3) .card-face.front img,
    .row .col:nth-child(4) .card-face.front img {
        width: 150px;
        height: 150px;
    }

    #idee .row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.5em;
    }
}

.konditionen-table {
    color: #DEB887;
    background-color: #202719;
    border: 1px solid #DEB887;
    width: 100%;
    margin: 0 auto;
}

.konditionen-table th,
.konditionen-table td {
    text-align: left;
    border: 1px solid #DEB887;
}

.konditionen-table thead th {
    border-bottom: 2px solid #DEB887;
}

.konditionen-table tbody td:first-child {
    padding-left: 2em;
}

.ersparnis-info {
    font-size: 0.8em;
    text-align: center;
    margin-top: 1rem;
}

.versand-info {
    font-size: 0.8em;
    text-align: center;
    margin-top: 1rem;
}

.placeholder {
    color: red;
}

.konditionen-table th:nth-child(2),
.konditionen-table th:nth-child(3),
.konditionen-table td:nth-child(2),
.konditionen-table td:nth-child(3) {
    text-align: center;
}

footer {
    background-color: #202719;
    color: #DEB887;
    padding: 1.5rem 0;
}



#family-friends-edition,
#x-in-a-row,
#extreme,
#mill,
#the-house-of-nine-triangles,
#home, #idee, #spiele, #konditionen, #kontakt {
    scroll-margin-top: 3cm;
}

.konditionen-table th:nth-child(2),
.konditionen-table td:nth-child(2) {
    width: 150px;
}

.game-image {
    max-width: 25%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
}