/* ===================================== */
/* 🌍 Allgemeine Einstellungen           */
/* ===================================== */
body {
    font-family: 'Arial', sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* ===================================== */
/* 🔝 Header Design                     */
/* ===================================== */
header {
    background-color: #333;
    color: white;
    padding: 15px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header nav {
    margin-top: 10px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin-right: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: 0.3s;
}

header nav a:hover {
    background-color: #555;
}

/* ===================================== */
/* 🛒 Container für Inhalt               */
/* ===================================== */
.container {
    display: flex;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ===================================== */
/* 📋 Sidebar für Kategorien            */
/* ===================================== */
.sidebar {
    width: 250px;
    background-color: #f4f4f4;
    padding: 15px;
    border-right: 2px solid #ddd;
    position: relative;
    margin-left: -30%;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.sidebar a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    background: #e0e0e0;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #ccc;
}

/* ===================================== */
/* 📦 Hauptinhalt Design                */
/* ===================================== */
.content {
    flex-grow: 1;
    padding-left: 20px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.product {
    border: 1px solid #ddd;
    padding: 15px;
    width: 300px;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.product:hover {
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
}

.product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.product p {
    font-size: 1rem;
    color: #555;
}

.mehr-anzeigen-button {
    background-color: transparent !important;
    color: #555 !important;
}

.mehr-anzeigen-button:hover {
    color: green !important;
}

.product button {
    background-color: #555;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.product button:hover {
    background-color: #444;
}

/* ===================================== */
/* 🔍 Suchleiste und Filter             */
/* ===================================== */
.search-bar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.search-bar input[type="text"],
.search-bar select {
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #555;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.search-bar button:hover {
    background-color: #444;
}

/* ===================================== */
/* ❌ Keine Produkte gefunden           */
/* ===================================== */
.no-products {
    color: red;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}

/* ===================================== */
/* 🔻 Footer Bereich                    */
/* ===================================== */
footer {
    background-color: #333;
    color: #ccc;
    padding: 60px;
    text-align: center;
    margin-top: 50px;
    border-top: 3px solid #555;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
    font-weight: normal;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
    background-color: #444; /* sanfter Hintergrund für den Button-Look */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.footer-links a:hover {
    background-color: #555; /* leicht dunklerer Hintergrund bei Hover */
    color: #fff;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
}

.footer-copy {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}


/* NEUUU */

.image-slider {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 200px;
    margin: 0 auto 10px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #eee;
}

/* Jedes Bild wird absolut positioniert und versteckt */
.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

/* Nur das aktive Bild ist sichtbar */
.slider-image.active {
    display: block;
}

/* Bild passt sich Container an */
.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    position: relative;
    z-index: 5; /* Bild liegt unter dem Logo */
}

/* YouTube Icon auf dem aktiven Bild, oben links als Link */
.slider-image.active .yt-icon-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10; /* Logo liegt über dem Bild */
    pointer-events: auto; /* Logo ist klickbar */
    display: inline-block;
}

/* YouTube Link Styles */
.yt-icon-overlay a {
    display: block;
    width: 96px;
    height: auto;
    opacity: 0.8;
    user-select: none;
}

/* Overlay für das große Bild */
.overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}


/* Dots: unten zentriert, über dem Bild */
.dots {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    width: 400px;
}

/* Jeder Dot */
.dot {
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Aktiver Dot oder Hover */
.dot.active,
.dot:hover {
    background-color: #717171;
}



/* HANDY */
/* Mobile-Optimierung erweitern */
@media (max-width: 768px) {

    /* Container */
    .container {
        display: block;
        padding: 10px;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Sidebar */
    .sidebar {
        width: 100%;
        margin-left: 0;
        border-right: none;
        padding: 10px 0;
        border-bottom: 2px solid #ddd;
        position: relative;
    }

    /* Inhalt */
    .content {
        padding-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    /* Produktliste als Block, Bilder größer */
    .product-list {
        display: block;
    }

    /* Produktboxen größer und voller Breite */
    .product {
        width: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }

    .product img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }

    /* Header Schriftgrößen etwas kleiner */
    header h1 {
        font-size: 1.5rem;
    }

    /* Suchleiste block mit 100% Breite */
    .search-bar {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar input[type="text"],
    .search-bar select,
    .search-bar button {
        width: 100%;
        margin-right: 0;
    }

    /* Footer Links flex & zentriert */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    /* Bild-Slider größer */
    .image-slider {
        max-width: 100%;
        height: 250px; /* größer als vorher */
        margin-bottom: 20px;
    }

    /* Dots größer für touch */
    .dot {
        height: 16px;
        width: 16px;
        margin: 0 6px;
    }

    /* ====================== */
    /* Navigation oben mobil   */
    /* ====================== */
    header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    header nav a {
        flex: 1 1 auto; /* alle Links gleich breit */
        text-align: center;
        padding: 12px 8px;
        border-radius: 6px;
        background-color: #444;
        color: white;
        margin: 2px;
        transition: background-color 0.3s ease;
    }

    header nav a:hover {
        background-color: #666;
    }
}
