:root {
    --bg: #121212;
    --text: #f0f0f0;
    --accent: #dc3545;
    --card-bg: #1e1e1e;
}
ul{
    list-style-type: none;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h3, h4, h5, h6 {
    color: var(--accent);
    text-align: center;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.2s ease;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: #000000cc;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-bar__logo {
    flex: 0 0 auto;
}

.nav-bar__logo img {
        height: 48px;
    width: auto;
    max-width: 160px;
    display: block;
}

.autoscroll-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.burger {
    margin-left: 1.5rem;
    margin-right: 0;
    /* display: flex on mobile, none on desktop via media queries */
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: var(--accent);
}

/*
.hero {
    display: grid;
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
    gap: 2rem;
}
*/

.description h1 {
    font-size: 2.5rem;
    color: var(--accent);
}

description h2 {
    font-size: 1.5rem;
    color: var(--accent); 
}

.description, .contact{
    padding: 3rem 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    margin: 2rem;
}

video {
    border-radius: 12px;
    overflow: hidden;
}

.about-button, .offer-button, .cookie-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.about-button:hover, .offer-button:hover {
    background-color: #a72832;
}
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.main-content > div {
    margin-left: 2rem;
    margin-right: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.main-content img {
    width: 100%;
    border-radius: 8px;
}
.main-content > div:hover {
    transform: translateY(-5px);
}

.halal-certification, .maps {
    padding: 3rem 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    margin: 2rem;
}
.maps__content h2 {
    color: var(--accent);
}

.maps {
    text-align: center;
}

iframe {
    width: 100%;
    border: 0;
    border-radius: 8px;
}
.footer {
    text-align: center;
    padding: 2rem;
    color: #aaa;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background: #000;
        position: absolute;
        top: 100%;
        right: 0;
        padding: 1rem;
        border-radius: 8px;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    grundstücksbild {
        display: none; /* Hide Grundstücksbild on mobile */
        border-radius: 16px;
        overflow: hidden;
        margin: 20px 0;
    }

    .nav-links.open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .burger {
        display: flex;
    }

    .autoscroll-nav ul {
        flex-direction: column;
        gap: 1rem;
        background: #000;
        position: absolute;
        top: 100%;
        right: 0;
        padding: 1rem;
        border-radius: 8px;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: none;
    }
    .autoscroll-nav.open ul {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}
@media (min-width: 1025px) {
    .burger {
        display: none !important; /* Ensure the burger menu is completely hidden */
    }

    .nav-links {
        display: flex !important;
        gap: 1.5rem;
    }

    .autoscroll-nav ul {
        display: flex !important;
        gap: 1.5rem;
        position: static;
        background: none;
        padding: 0;
        border-radius: 0;
        opacity: 1;
        transform: none;
    }
}

.burger {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.burger div {
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger div:nth-child(1) {
    transform: translateY(-8px);
}

.burger div:nth-child(2) {
    transform: translateY(0);
}

.burger div:nth-child(3) {
    transform: translateY(8px);
}

.burger.open div:nth-child(1) {
    transform: rotate(45deg) translate(0, 0);
}

.burger.open div:nth-child(2) {
    opacity: 0;
}

.burger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(0, 0);
}

.datenschutzerklaerung {
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 90%; /* Prevents the div from exceeding 90% of the screen width */
    width: 100%; /* Ensures it adjusts to the screen size */
    box-sizing: border-box; /* Includes padding in width calculation */
    word-wrap: break-word; /* Breaks long words */
    overflow-wrap: break-word; /* Ensures compatibility for breaking long words */
    overflow-x: auto; /* Adds horizontal scrolling if content overflows */
}

.dropdown {
    margin: 20px 0;
    position: relative;
}

.dropdown-header {
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.dropdown-header:hover {
    background: #333;
    color: white;
}

.dropdown-arrow {
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.dropdown.open .dropdown-arrow {
    transform: rotate(-405deg);
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 8px;
    margin-top: 5px;
    padding: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: max-height 0.3s ease;
}

.dropdown.open .dropdown-menu {
    max-height: 300px; /* Adjust based on content */
}

.dropdown-menu li {
    padding: 10px 15px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown-menu li:hover {
    background: #333;
    color: white;
}

.info-box {
    margin-top: 20px;
    padding: 15px;
    background: var(--card-bg);
    color: var(--text);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 2rem 1rem;
    margin: 2rem 0;
    scroll-snap-type: x mandatory;
    max-width: 100vw;
    box-sizing: border-box;
    background-color: var(--card-bg);
    border-radius: 15px;
    scroll-behavior: smooth;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #222;
    justify-content: flex-start; /* default: left align */
}

/* Show custom scrollbar on Webkit browsers (Chrome, Edge, Safari) */
.product-carousel::-webkit-scrollbar {
    height: 10px;
    background: #222;
    border-radius: 8px;
}
.product-carousel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 8px;
    border: 2px solid #222;
}
.product-carousel::-webkit-scrollbar-thumb:hover {
    background: #a72832;
}
.product-carousel::-webkit-scrollbar-track {
    background: #222;
    border-radius: 8px;
}

/* Uniform card size */
.product-card {
    flex: 0 0 220px;
    width: 220px;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
    transition: transform 0.2s;
    margin: 0; /* Remove margin from card */
    margin-bottom: 1rem;
}

.carousel-wrapper {
    margin: 2rem; /* Add 2rem margin around the carousel */
}

/* Responsive: show more cards on large screens, fewer on small */
@media (max-width: 800px) {
    .product-carousel {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .product-card {
        flex: 0 0 75vw;
        width: 75vw;
        height: 220px;
        margin: 0 0.5rem; /* Only horizontal margin for spacing on mobile */
    }
}

/* Center carousel contents if all cards fit without scrolling */
@media (min-width: 801px) {
    .product-carousel {
        justify-content: center;
    }
}

.product-card:hover {
    transform: translateY(-5px);
}

.halal-badge {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  
}

.autoscroll-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.autoscroll-nav li {
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}
.autoscroll-nav li:hover {
    background: var(--card-bg);
}

@media (max-width: 1024px) {
    .autoscroll-nav ul {
        flex-direction: column;
        gap: 1rem;
        background: #000;
        position: absolute;
        top: 100%;
        right: 0;
        padding: 1rem;
        border-radius: 8px;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: none;
    }
    .autoscroll-nav.open ul {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    .burger {
        display: flex;
    }
}
@media (min-width: 1025px) {
    .burger {
        display: none !important;
    }
    .autoscroll-nav ul {
        display: flex !important;
        gap: 1.5rem;
        position: static;
        background: none;
        padding: 0;
        border-radius: 0;
        opacity: 1;
        transform: none;
    }
}

.product-card-overlay{
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
}

.video-modal-content {
    width: 90vw;
    max-width: 800px;
    max-height: 80vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#videoModal video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 12px;
}
@media (max-width: 600px) {
    .video-modal-content {
        max-width: 98vw;
        width: 98vw;
        padding: 0;
    }
    #videoModal video {
        max-height: 40vh;
    }
    #closeVideo {
        font-size: 1rem !important;
        padding: 6px 12px !important;
        top: -32px !important;
    }
}

.addresse-video-banner {
    width: 100%;
    margin: 20px auto;
    display: block;
}
@media (max-width: 600px) {
    .addresse-video-banner {
        width: 100;
        margin: 1rem auto;
    }
}