/* Allgemeine Stile */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#image-container img {
    max-width: 100%;
    height: auto;
    border: 2px solid black;
    margin-top: 20px;
}

/* Altersüberprüfung */
#age-verification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#age-verification button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 18px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

#age-verification button:hover {
    background-color: #45a049;
}

#content {
    display: none; /* Verstecke den Inhalt anfangs */
}

/* Header */
a.Knot24 {
    text-decoration: none;
    color: red;
}

header {
    background-color: #1f1f1f; /* Dunkles Grau für den Header */
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 36px;
}

/* Button zum Wechseln des Designs */
#toggle-theme {
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #656565;
    color: white;
    border: none;
    border-radius: 5px;
}

#new-image-button {
    background-color: #656565;
    color: white;
    border: none;
    border-radius: 5px;
}

#share-button {
    background-color: #656565;
    color: white;
    border: none;
    border-radius: 5px;
}

/* Allgemeine Navigation - für große Bildschirme */
nav {
    display: flex;
    justify-content: center;
    background-color: #333;
}

nav a {
    padding: 14px 20px;
    display: inline-block;
    text-align: center;
    color: white;
    text-decoration: none;
}

nav a:hover {
    background-color: #575757;
}

/* Verstecke die Toggle-Schaltfläche standardmäßig (nur für mobile sichtbar) */
.nav-toggle {
    display: none;
}

/* Responsive Navigation für Bildschirme kleiner als 768px */
@media (max-width: 768px) {
    .product-item {
        flex: 1 1 100%; /* Bei schmalen Bildschirmen nimmt das Produkt die volle Breite ein */
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        margin-left: 0;
        margin-top: 20px;
    }

    nav {
        display: block;
    }

    nav a {
        display: none; /* Verstecke die Navigationselemente standardmäßig */
        width: 100%;
        text-align: left;
    }

    /* Navigation-Elemente im geöffneten Zustand (aktiviert durch .open) */
    nav.open a {
        display: block;
    }

    /* Zeige den Hamburger-Button für mobile Geräte */
    .nav-toggle {
        display: block;
        background-color: #333;
        color: white;
        padding: 14px;
        text-align: center;
        cursor: pointer;
    }

    /* Ändere den Hintergrund beim Hover über den Toggle-Button */
    .nav-toggle:hover {
        background-color: #575757;
    }
}


/* Layout */
.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.main-content {
    flex: 3;
    background-color: #1c1c1c; /* Dunkles Hintergrund für den Hauptinhalt */
    padding: 20px;
    border-radius: 5px;
    color: #ffffff; /* Heller Text */
}

.sidebar {
    flex: 1;
    background-color: #1c1c1c; /* Gleicher Hintergrund wie Hauptinhalt */
    padding: 20px;
    margin-left: 20px;
    border-radius: 5px;
    color: #ffffff; /* Heller Text */
}

/* Footer */
footer {
    background-color: #1f1f1f; /* Gleicher Hintergrund wie der Header */
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/* Platzhalter für dynamische Inhalte */
.placeholder {
    background-color: #333333; /* Dunkler Platzhalter-Hintergrund */
    color: #e0e0e0; /* Heller Text */
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Hell-Modus */
body.light-mode {
    background-color: #f4f4f4;
    color: #121212;
}

body.light-mode header {
    background-color: #ffffff;
    color: #333;
}

body.light-mode nav {
    background-color: #f4f4f4;
}

body.light-mode nav a {
    color: #333;
}

body.light-mode nav a:hover {
    background-color: #ddd;
}

body.light-mode .nav-toggle {
    background-color: #ddd;
    color: #121212;
}

body.light-mode .main-content,
body.light-mode .sidebar {
    background-color: #ffffff;
    color: #333;
}

body.light-mode .placeholder {
    background-color: #ddd;
    color: #333;
}

body.light-mode footer {
    background-color: #ffffff;
    color: #333;
}

/* Dunkel-Modus */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode header {
    background-color: #1f1f1f;
    color: #ffffff;
}

body.dark-mode nav {
    background-color: #333333;
}

body.dark-mode nav a {
    color: #e0e0e0;
}

body.dark-mode nav a:hover {
    background-color: #555555;
}

body.dark-mode .nav-toggle {
    background-color: #555555;
    color: #e0e0e0;
}

body.dark-mode .main-content,
body.dark-mode .sidebar {
    background-color: #1c1c1c;
    color: #ffffff;
}

body.dark-mode .placeholder {
    background-color: #333333;
    color: #e0e0e0;
}

body.dark-mode footer {
    background-color: #1f1f1f;
    color: #ffffff;
}

/* Produktliste Layout */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Abstand zwischen den Boxen */
    margin: 20px;
}

/* Einzelne Produktboxen */
.product-item {
    background-color: var(--nav-background);
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    flex: 1 1 200px; /* Flexible Boxen, die eine Mindestbreite von 200px haben */
    max-width: 300px; /* Maximalbreite */
    aspect-ratio: 1 / 1; /* Gleiche Höhe und Breite */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item img {
    max-width: 100%;
    height: auto;
}

.product-item h2 {
    color: var(--text-color);
    font-size: 1.2em;
}

.product-item .price {
    font-size: 1.2em;
    color: #555;
    margin: 10px 0;
}

button.add-to-cart {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

button.add-to-cart:hover {
    opacity: 0.9;
}