/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #d6d7d0;
    color: #e0d9ae;
    margin-top: 100px; /* Adjusting for fixed header */
}

/* Header */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #2e3c55;
    color: #e0d9ae;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.header-right-symbol {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 20px;
}

.header-right-symbol li {
    list-style: none;
    display: inline-block;
}

.header-right-symbol li a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: #e0d9ae;
    padding: 10px;
}

.header-right-symbol li a:hover {
    color: #9b8d52;
}

/* search */

.search-btn {
    background-color: transparent; /* Transparenter Hintergrund */
    color: #e0d9ae; /* Textfarbe weiß */
    border: none; /* Kein Rahmen */
    font-size: 20px; /* Schriftgröße */
    margin-left: 20px; /* Abstand nach links */
    cursor: pointer; /* Zeigt den Cursor als Pointer an */
}

.search-btn:hover {
    color: #9b8d52; /* Textfarbe hellgrün beim Hover */
}

/* search input */
.search-input {
    display: none; /* Versteckt das Eingabefeld initial */
    margin-left: 10px;
}

#search-field {
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #e0d9ae;
    background-color: transparent;
    color: #e0d9ae;
}

#search-field::placeholder {
    color: #e0d9ae;
}

#search-field:focus {
    outline: none;
    border-color: #9b8d52;
}

/* Hero section */

#hero-shop {
    position: relative;
    padding: 20px 0; /* Beispiel: Vorher vielleicht 80px */
}

.hero-section {
    position: relative;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: #e0d9ae;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
    color: #e0d9ae;
    padding: 10px 20px; /* Reduziere die Polsterung innerhalb des Inhalts */
    margin-top: 50px; /* Schiebt den Text etwas weiter nach unten */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Text-Schattierung für bessere Lesbarkeit */
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#subcategory-links a {
    margin: 0 10px;
    color: #e0d9ae;
    text-decoration: none;
}

#subcategory-links a:hover {
    color: #9b8d52;
}

#main-content {
    display: flex;
    align-items: flex-start;
}




/* Sidebar */
#sidebar-container {
    display: flex;
    margin-top: 0; /* No margin at the top */
}

#sidebar {
    background-color: #2e3c55;
    color: #e0d9ae;
    padding: 40px;
    height: calc(100vh - 120px); /* Passt die Höhe an, um unter dem Hero-Bereich zu bleiben */
    overflow-y: auto;
    flex-shrink: 0;
    margin-right: 20px; /* Platz zwischen Sidebar und Hauptinhalt */
    position: relative; /* Für das nachfolgende Pseudo-Element */
    padding-top: 5px;
}

#sidebar:before {
    content: "";
    position: absolute;
    top: 5px;
    right: 10px;
    bottom: 5px;
    left: 10px;
    border: 2px solid #e0d9ae; /* Dezenter goldfarbener Rahmen */
    pointer-events: none; /* Ermöglicht das Interagieren mit dem Inhalt darunter */
}


#sidebar ul {
    list-style: none;
    padding-left: 0;
    padding-top: 20px;
}

#sidebar ul li {
    margin-bottom: 10px;
    transition: color 0.3s ease, text-shadow 0.3s ease; /* Glatter Hover-Effekt */
    position: relative;
}

#sidebar ul li a {
    color: #e0d9ae;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

#sidebar ul li:hover > a {
    color: #f0c050; /* Hellerer Goldton für den Hover-Effekt */
    font-weight: bold; /* Fettgedruckt bei Hover */
    text-shadow: 1px 1px 6px rgba(255, 215, 0, 0.5); /* Schattierung für bessere Sichtbarkeit */
}

.subcategory-list {
    display: none;
    padding: 15px;
    padding-left: 20px; /* Grundsätzlicher Einzug für die gesamte Liste */
    margin-top: 5px;
}

#sidebar ul li:hover .subcategory-list {
    display: block; /* Nur anzeigen, wenn die Hauptkategorie gehovt wird */
    background-color: rgba(255, 255, 255, 0.05); /* Leichtes Overlay hinter Unterkategorien */
    border-left: 2px solid #f0c050; /* Markierung an der linken Seite */
}


.subcategory-list li {
    margin-bottom: 5px;
    transition: color 0.3s ease, padding-left 0.3s ease; /* Animation für padding-left */
}


.subcategory-list li a {
    font-size: 0.9rem;
    color: #e0d9ae;
    text-decoration: none;
    display: block;
    margin-left: 10px; /* Einheitliches Einrücken mit margin-left */
    transition: color 0.3s ease, margin-left 0.3s ease;
}

.subcategory-list li a:hover {
    color: #f0c050; /* Hellerer Goldton für den Hover-Effekt der Unterkategorien */
    margin-left: 20px; /* Weiteres Einrücken beim Hover */
    font-weight: bold;
}


/* Product Container */
.products-container {
    display: flex;
    flex-wrap: wrap; /* Umbruch für eine neue Zeile bei Bedarf */
    justify-content: flex-start; /* Beginnt die Produkte von links nach rechts */
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%; /* Volle Breite des Containers */
    margin-top: 20px; /* Platz unter der Überschrift */
}

.products-container h1 {
    width: 100%;
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #2e3c55;
}

/* Shop Items */
.product-item {
    flex: 1 1 280px; /* Mindestbreite für jede Box */
    max-width: 280px; /* Maximale Breite für größere Bildschirme */
    height: 350px; /* Feste Höhe für gleichmäßige Boxen */
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Bilder anpassen */
.product-item img {
    width: 100%;
    height: auto;
    max-height: 100%; /* Begrenze die Bildhöhe */
    object-fit: contain; /* Bild passt sich an, ohne das Seitenverhältnis zu verlieren */
    transition: transform 0.3s ease-in-out;
}



/* Hover-Effekt für die Produktbox */
.product-item:hover {
    transform: scale(1.05); /* Vergrößert die Box leicht */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.product-item:hover img {
    transform: scale(1.1); /* Vergrößert das Bild leicht innerhalb der Box */
}

.product-item .item-title,
.product-item .item-price {
    display: none;
}

/* Produktliste - Abstand nach oben anpassen */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Produkte gleichmäßig auf die Zeile verteilen */
    padding: 0;
    gap: 25px; /* Abstand zwischen den Produkten */
}

/* Abstand zwischen Sortierleiste und Produktliste */
/* Sortierleiste - Abstand verringern */
/* Adjusted Sort Options */
.sort-options {
    display: flex;
    justify-content: flex-end;
    max-width: 100%; /* Removed the width restriction */
    margin: 0 0 20px auto;
    padding: 0;
}

.sort-options select {
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    background-color: #2e3c55;
    color: #e0d9ae;
    border: 1px solid #9b8d52;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sort-options select:hover {
    background-color: #2e3c55;
    color: #e0d9ae;
}
/* Main Content */
#main-content {
    display: flex;
    gap: 20px;
    padding: 20px;
    width: 100%;
    margin-top: 10px;
    align-items: flex-start;
    justify-content: space-between; /* Distribute remaining space */
}




/* Category box */

#box {
    background-color: #2e3c55;
    padding-top: 15px;
    padding-bottom: 15px;
}

.kategorien_main {
    display: flex;
    align-items: center; /* Zentriert den Text vertikal */
    padding-left: 38px; /* Fügt links einen Abstand hinzu */
    margin-bottom: 10px; /* Fügt unten einen Abstand hinzu, um den Abstand unter der Überschrift zu steuern */
}

/* Stil für die Überschrift */
.kategorien_main h2 {
    color: #e0d9ae; 
    font-size: 2.em; /* Setzt die Schriftgröße */
    margin: 0; /* Entfernt den Standardabstand um die Überschrift */
    padding: 10px 50px; /* Fügt innenliegenden Abstand (Padding) hinzu, um die Box anzupassen */
    border: 2px solid #e0d9ae; /* Setzt eine Umrandung um die Überschrift, passend zur Textfarbe */
    display: inline-block; /* Verhindert, dass die Box die ganze Zeile einnimmt */
    background-color: transparent; /* Setzt den Hintergrund transparent */
}

/* Container für Überschrift und Kategoriekästen */
.kategorien-container {
    display: flex;
    align-items: center; /* Richtet .kategorien_main und .category-boxes vertikal aus */
    justify-content: center; /* Zentriert die Kategoriekästen auf der Seite */
    padding: 5px; /* Fügt innenliegenden Abstand hinzu */
    width: 100%; /* Setzt die Breite des Containers auf 100% */
}

/* Stil für die Kategoriekästen */
.category-boxes {
    display: flex;
    justify-content: center; /* Zentriert die Kategoriekästen horizontal */
    gap: 50px; /* Setzt den Abstand zwischen den einzelnen Boxen */
    flex-wrap: wrap; /* Ermöglicht den Kategoriekästen, auf mehrere Zeilen umzubrechen */
    padding: 10px 20px; /* Fügt innenliegenden Abstand hinzu */
    margin: 0 auto; /* Zentriert den Container der Kategoriekästen */
}

.category-box {
    background-color: #2e2e2e;
    width: 220px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.category-box h3 {
    color: #d6d7d0;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    position: relative;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000; /* Schwarze Umrandung */
}

.category-box:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4);
}

.category-box:hover h3 {
    color: #f0c674;
}

.category-box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-box:hover:before {
    opacity: 1;
}

/* Layout für Produktart-Filter */
#product-type-filter {
    display: flex;
    flex-direction: column; /* Zeigt die Buttons untereinander an */
    gap: 10px; /* Abstand zwischen den Buttons */
    margin-top: 10px; /* Platz unterhalb der Überschrift */
}

#product-type-filter button {
    width: 100%; /* Vollständige Breite für jeden Button */
    max-width: 200px; /* Maximalbreite für die Buttons */
    padding: 5px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #2e3c55;
    color: #e0d9ae;
    border: 1px solid #9b8d52;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Hover- und aktiver Zustand */
#product-type-filter button:hover {
    background-color: #9b8d52;
    color: #2e3c55;
}

#product-type-filter .active-button {
    background-color: #9b8d52;
    color: #2e3c55;
    border-color: #2e3c55;
}




/* Page */

.pagination-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
  }
  
  .pagination-controls button {
    background-color: #2e3c55;
    color: #e0d9ae;
    border: 1px solid #9b8d52;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .pagination-controls button:hover {
    background-color: #9b8d52;
  }
  
  .pagination-controls button:disabled {
    background-color: #444;
    cursor: not-allowed;
  }



/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left align */
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0d9ae; /* Optional separator */
    padding-left: 50px;
}

.language-selector .headline {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #e0d9ae; /* Matching the text color */
    text-align: left;
    width: 100%; /* Takes full width */
}

.language-selector img.flag {
    width: 36px;
    height: 24px;
    margin-right: 12px; /* Space between flag and text */
}

.language-selector p, .language-selector a {
    font-size: 18px;
    color: #e0d9ae;
    margin: 0; /* Remove bottom margin */
}

.language-selector p {
    margin-right: 10px; /* Small space between elements */
}

.language-selector a {
    color: #e0d9ae;
    text-decoration: none;
    padding-left: 10px; /* Add space to the left of the link */
}

.language-selector a:hover {
    text-decoration: underline;
    color: #9b8d52;
}

.footer-headline {
    font-size: 30px;
    color: #e0d9ae;
    margin-bottom: 20px;
    padding-left: 50px;
}

/* Footer General Layout */
footer {
    background-color: #2e3c55;
    padding: 40px 0;
    color: #e0d9ae;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Schattierung für mehr Tiefe */
    flex-wrap: wrap;
}

.footer-top {
    border-bottom: 1px solid #e0d9ae;
    margin-bottom: 20px;
}


.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

footer .col {
    padding: 0 20px;
    flex-direction: column; /* Elemente untereinander anordnen */
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

footer .logo {
    margin-bottom: 20px;
    max-width: 200px;
}

footer h4 {
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer p, footer a {
    font-size: 18px;
    margin-bottom: 10px;
    color: #e0d9ae;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-direction: column; /* Elemente untereinander anordnen */
}

footer a:hover {
    color: #9b8d52;
}

.footer-container .icons i {
    font-size: 20px;
    margin-right: 10px;
    transition: color 0.3s ease;
    cursor: pointer;
    flex-direction: column; /* Elemente untereinander anordnen */
}

.footer-container .icons i:hover {
    color: #9b8d52;
}

footer .icons {
    display: flex;
    margin-top: 10px;
}

footer .copyright {
    text-align: center;
    font-size: 14px;
    color: #e0d9ae;
    border-top: 1px solid #e0d9ae;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-logo {
    text-align: center; /* Zentriert das Bild horizontal */
}

.footer-logo img {
    display: inline-block;
    max-width: 30%; /* Verkleinert das Logo auf 50% seiner Originalgröße */
    height: auto;
}
