/* =====================
   Open Sans Schrift
   ===================== */
  

/* open-sans-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

/* open-sans-italic - latin */
@font-face {
  font-display: swap; 
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/open-sans-v44-latin-italic.woff2') format('woff2');
}

/* open-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/open-sans-v44-latin-700.woff2') format('woff2');
}

/* open-sans-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('/fonts/open-sans-v44-latin-800.woff2') format('woff2');
}



/* =====================
   Grundlayout & Typografie
   ===================== */

.visually-hidden {
    position: absolute !important;
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px; 
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    border: 0;
}


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #161616; /* dunkel */
    color: #f0e6d2; /* helles Gold/Beige für Text */
    display: flex;
    flex-direction: column;
}



/* Neuer Container für max. Breite und Zentrierung */
.container {
    max-width: 1600px;     /* Max. Seitenbreite */
    width: 100%;
    margin: 0 auto;        /* zentriert */
    background-color: #ffffff; /* Farbe Container-Hintergrund als body (optional) */
    color: #0f0f0f; /* Textfarbe <p> */
    flex-grow: 1;          /* Füllt den verfügbaren Platz */
    display: flex;
    flex-direction: column;
    min-height: 100vh;     /* Seite mindestens Bildschirmhöhe */
    box-sizing: border-box;
    padding: 0;       /* optional etwas horizontaler Innenabstand */
}

h1, h2, h3, h4 {
    color: #0f0f0f;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

a {
    color: #cea942;
    text-decoration: none;
}

main {
    flex: 1 0 auto;
    background: #fff;
    padding: 20px; /* Abstand im Body */
}



/* =====================
   Header
   ===================== */
header {
    background: #000;
    color: #cea942;
    width: 100%;
}

/* Erste Zeile: Logo links, Icons rechts */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.header-top .logo img {
    height: 100px;   
}

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


/* Suchfeld Styling */
.header-right form {
    display: flex;
    align-items: center;
}

.header-right input[type="search"] {
    padding: 6px 10px;
    border-radius: 6px 0 0 6px;
    border: 1px solid #cea942;
    background: #222;
    color: #f0e6d2;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.header-right input[type="search"]::placeholder {
    color: #cea942aa;
}

.header-right input[type="search"]:focus {
    border-color: #ffde7d;
    background: #333;
    color: #fff;
}

.header-right button {
    background: #cea942;
    border: 1px solid #cea942;
    border-left: none;
    padding: 6px 15px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    color: #000;
}

.header-right button:hover {
    background: #ffde7d;
}

/* Zweite Zeile: Navigation */
.main-nav {
    background: #000; /* schwarzer Hintergrund */
    text-align: center;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* =====================
   Navigation & Dropdown-Anpassungen für direkten Hover-Effekt
   ===================== */

/* Alle Links in der Hauptnavigation */
.main-nav a,
.nav-dropdown > a,
.dropdown-menu a {
    color: #fff;
    background-color: #000;
    padding: 12px 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0;
    transition: none !important; /* KEINE Übergänge */
    display: inline-block;
}

/* Nur Hauptnavigation größer darstellen */
.main-nav > a,
.nav-dropdown > a {
    font-size: 22px; /* Oder z. B. 20px, je nach Wunsch */
}


/* Hover-Effekt: Farbe und Hintergrund sofort wechseln */
.main-nav a:hover,
.nav-dropdown:hover > a,
.dropdown-menu a:hover {
    color: #000 !important;             /* schwarzer Text */
    background-color: #fff !important;  /* weißer Hintergrund */
}

/* Dropdown-Menü Hintergrund & Stil */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;          /* Weißer Hintergrund */
    color: #444;
    padding: 20px;
    z-index: 1000;
    min-width: 600px;
    max-width: 100vw;
    gap: 40px;
    flex-wrap: wrap;
    box-shadow: 2px 6px 12px -8px rgba(0,0,0,0.5);    
    border-radius: 0;          /* Keine abgerundeten Ecken */
    border: none;              /* Keine Ränder */
    margin-top: 0;             /* Kein Abstand oben */
    text-align: left;
}

/* Dropdown anzeigen bei Hover */
.nav-dropdown:hover .dropdown-menu {
    display: flex;
    top: 100%; /* Direkt unter dem Menüpunkt */
}

/* Optional: Für nahtlosen Übergang */
.nav-dropdown:hover > a {
    border-bottom: none; /* Verhindert evtl. Ränder/Striche */
}

/* Spalten im Dropdown */
.dropdown-column {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Hauptkategorie (nicht klickbar, mit Unterkategorien) */
.dropdown-column strong {
    font-weight: bold;
    margin-bottom: 6px;
    color: #444;
    text-align: left;
}

/* Klickbare Hauptkategorie (ohne Unterkategorien) */
.dropdown-column > .dropdown-headline {
    font-weight: bold !important;
    color: #444;
    text-align: left;
    text-decoration: none;
    display: block;
    padding: 2px 0;
}

.dropdown-headline:hover {
    color: #000 !important;
    background-color: #fff !important;
}

/* Unterkategorien */
.dropdown-menu a {
    font-weight: normal;
    color: #444;
    background-color: transparent;
    padding: 2px 6px;
    border-radius: 0;
    text-align: left;
    text-decoration: none;
    display: block;
}
.dropdown-menu a:hover {
    color: #000 !important;
    background-color: #fff !important;
}

/* =====================
   Suchfeld im Banner
   ===================== */

.search-form {
  display: flex;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  font-family: inherit;
}

/* =====================
   Eingabefeld (Pille links)
   ===================== */
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  height: 48px;              /* Feste Höhe */
  box-sizing: border-box;    /* Wichtig für Höhe */
  border: none;
  border-radius: 30px 0 0 30px;
  background-color: #fff;
  color: #000;
  font-size: 16px;
  outline: none;
  box-shadow: none;
}

/* Placeholder immer grau */
.search-form input[type="search"]::placeholder {
  color: #444;
  opacity: 1;
}

/* Fokus/Hover/Autofill-Schutz */
.search-form input[type="search"]:focus,
.search-form input[type="search"]:hover,
.search-form input[type="search"]:autofill {
  background-color: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
}

/* Deaktiviert/Read-only */
.search-form input[type="search"]:disabled,
.search-form input[type="search"]:read-only {
  background-color: #fff !important;
  color: #000 !important;
}

/* =====================
   Suchbutton (Pille rechts)
   ===================== */
.search-form button {
  background-color: #cea942; /* Gold */
  border: none;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  width: 48px;
  height: 48px;               /* Höhe passend zum Input */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  box-sizing: border-box;    /* Für Konsistenz */
}
/* Weißes SVG-Icon (Lupe) */
.search-form button svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Hover/Focus Button */
.search-form button:hover,
.search-form button:focus {
  background-color: #b69537;
  outline: none;
}

/* =====================
   Vorschlagsbox
   ===================== */
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background-color: #fff;
  border: none;
  border-radius: 16px; /* Rundherum */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 0;
}

/* Vorschlags-Eintrag */
.suggestion-item {
  padding: 10px 15px;
  color: #000;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Hover-Effekt */
.suggestion-item:hover {
  background-color: #cea942;
  color: #fff;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #000;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}

.suggestion-item:hover {
  background-color: #cea942;
  color: #fff;
}

.suggestion-img {
  width: 80px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
  flex-shrink: 0;
}



/* =====================
   Banner auf Startseite
   ===================== */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.banner img,
.banner .banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}



/* =====================
   Footer
   ===================== */

footer {
    background: #000;
    color: #ffffff;
    padding: 40px 30px 20px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-columns div {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-columns h4 {
    color: #cea942;
    margin-bottom: 10px;
}

.footer-columns a {
    color: #ffffff;
    text-decoration: none;
}
.footer-columns a:hover {
    color: #cea942;
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding-top: 10px;
    font-size: 0.8rem;
    color: #aaa;
}

/* =====================
   Kategorien & Produkte
   ===================== */

.kategorien {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 900px;
    margin: 20px auto;
}

.produkte {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: start;
    max-width: 1600px;
    margin: 20px auto;
}


.kategorie {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    flex: 0 0 200px; /* feste Breite */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.produkt {
    background: #ffffff;
    border: 1px solid #bebebe;
    border-radius: 8px;
    padding: 15px;
    flex: 0 0 200px; /* feste Breite */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kategorie:hover, .produkt:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.produkt img {
    max-width: 100%;
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
}

.produkt-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.produkt-link:hover .produkt {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.produkt-link {
    cursor: pointer;
}


/* =====================
   Buttons
   ===================== */
.btn {
    display: inline-block;
    background: #cea942;
    color: #000;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.1s;
}
.btn:hover {
    background: #e6bf5c;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

a:hover {
    color: #000;
}

/* =====================
   Produkt-Detailseite
   ===================== */

main > .container {
  max-width: 1600px;
  margin: 0 auto 40px auto;
  padding: 20px 30px;
  background: #fff;
  box-sizing: border-box;
  min-height: calc(100vh - 150px); /* sorgt für volle Höhe (Header+Footer ausgenommen) */
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Obere Reihe: Bild + Kurzinformationen nebeneinander */
.produkt-obere-reihe {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

/* Bild links, größer */
.produkt-bild {
  flex: 1 1 600px;
  max-width: 600px;
}

.produkt-bild img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.produkt-bild img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

/* Kurzinfo rechts daneben */
.produkt-kurzinfo {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.produkt-kurzinfo h1 {
  margin-top: 0;
  font-size: 2.2rem;
  color: #000;
  line-height: 1.2;
}

.produkt-kurzinfo .artikelnummer {
  font-size: 0.9rem;
  font-weight: normal;
  color: #555;
  display: block;
  margin-top: 4px;
}

.produkt-kurzinfo p {
  font-size: 1.05rem;
  margin: 4px 0;
  line-height: 1.4;
  color: #222;
}

/* Beschreibung, Größenbild & Formular komplett darunter */
.produkt-beschreibung {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.produkt-beschreibung h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: #000;
  font-size: 1.5rem;
}

/* Abstand direkt nach Größenbild verringern */
.produkt-beschreibung .groessenbild + p {
  margin-top: 6px;
}

/* Textabsätze Beschreibung */
.produkt-beschreibung p {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 6px 0;
  color: #222;
}

/* Größenbild mit Schatten */
.groessenbild {
  max-width: 500px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin-bottom: 5px;
}

/* Formular */
.bestell-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.bestell-form label {
  font-weight: 600;
  color: #000;
}

.bestell-form input,
.bestell-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #f7f7f7;
  color: #000;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.bestell-form input:focus,
.bestell-form textarea:focus {
  outline: none;
  border-color: #cea942;
  background: #fff;
}

.bestell-form button {
  width: fit-content;
  background: #cea942;
  color: #000;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.bestell-form button:hover {
  background: #ffde7d;
}


.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding-left: 0;
  margin: 0;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 4px;
  margin-left: 0;
}

.checkbox-row label {
  font-weight: normal;
  color: #000;
  line-height: 1.4;
}



/* Responsive: Bei kleinerem Bildschirm alles untereinander */
@media (max-width: 768px) {
  .produkt-obere-reihe {
    flex-direction: column;
  }

  .produkt-bild,
  .produkt-kurzinfo {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

/* =====================
   Cookie-Banner
   ===================== */
.cookie-banner {
    position: fixed;
    bottom: -120px;
    left: 10px;
    right: 10px;
    background: #111;
    color: #cea942;
    padding: 15px;
    text-align: center;
    border-radius: 12px 12px 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    transition: bottom 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    z-index: 9999;
}
.cookie-banner.show {
    bottom: 20px;
    opacity: 1;
}
.cookie-banner .cookie-btn {
    background: #cea942;
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
}
.cookie-banner .cookie-btn:hover {
    background: #ffde7d;
}

/* =====================
   Responsive
   ===================== */
@media(max-width:768px){
    .produkte, .kategorien {
        flex-direction: column;
        gap: 15px;
    }
    .produkt-detail {
        flex-direction: column;
    }
    header, footer {
        padding: 15px;
    }
    .header-top {
        flex-direction: column;
        gap: 10px;
    }
    .header-icons {
        margin-top: 10px;
    }
    .main-nav a {
        display: inline-block;
        margin: 5px 10px;
    }
  
  }    


/* ===============================
   Popup für das vergrößerte Bild
   =============================== */
.zoom-popup {
    display: none; /* Standardmäßig unsichtbar */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Dunkler Hintergrund */
    z-index: 1000; /* Über anderen Elementen anzeigen */
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.zoom-popup .popup-content {
    position: relative;
    max-width: 90%; /* Maximale Breite */
    max-height: 90%; /* Maximale Höhe */
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
}

.zoom-popup img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Schließen-Button (schwarzes X) */
.zoom-popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #000; /* Schwarzes X */
    background: none; /* Kein Hintergrund */
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010; /* Button soll immer oben liegen */
}

.zoom-popup .close-btn:hover {
    top: 8px;
    right: 8px;
    font-size: 35px;    
}

/* Popup schließen, wenn irgendwo im Popup geklickt wird */
.zoom-popup {
    cursor: pointer;
    pointer-events: none; /* Verhindert, dass der Hintergrund Klicks blockiert */
}
.zoom-popup .popup-content {
    cursor: pointer;
    pointer-events: auto; /* Popup-Content kann geklickt werden */
}

.produkt-detail .bild img {
    max-width: 100%;
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s; /* Sanfter Übergang */
}

/* Hover-Effekt für das Produktbild */
.produkt-detail .bild img:hover {
    transform: translateY(-3px); /* Bild leicht nach oben schieben */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Schatten-Effekt */
}


/* ===============================
    Hamburger-Butto
   =============================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: #cea942;
  cursor: pointer;
  padding: 15px 20px;
  background-color: #000;
  width: 100%;
  text-align: left;
}

/* Mobil-Ansicht */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none !important; /* <-- ergänzt: damit es zuverlässig überschreibt */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #000;
    width: 100%;
    padding: 0; /* <-- ergänzt zur Sicherheit */
  }

  .main-nav.nav-open {
    display: flex !important; /* <-- ergänzt: damit Anzeige wirklich greift */
    flex-direction: column;
  }

  .main-nav a,
  .nav-dropdown > a {
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-size: 18px;
  }

  /* Dropdown-Menü in der Mobilansicht */
  .dropdown-menu {
    position: static;
    display: none;
    flex-direction: column;
    background-color: #fff;
    padding: 10px 20px;
    gap: 10px;
    width: 100%;               /* Vollbreite */
    box-shadow: none;          /* Kein Schatten */
    border: none;
    max-width: none;           /* keine Begrenzung */
    min-width: auto;
}


  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    display: flex;
  }

  .dropdown-column {
    width: 100%;
    flex: none;
  }
}
