:root {
  --gold: #b5905b;
  --dark: #282828;
  --light: #ffffff;
  --text: #dddddd;
  --font-serif: "Cinzel", serif;
  --font-sans: "Roboto", sans-serif;
}

/* Höhe der fixen Kopfzeile (falls noch nicht gesetzt) */
:root {
  --header-h: 100px;
}

/* Platz unter dem fixen Header schaffen */
body.shop {
  padding-top: calc(var(--header-h) + 12px);
  font-family: var(--font-sans);
  background: #f9f9f9;
  margin: 0;
  padding: 0rem;
  color: #333;
}

html,
body {
  height: 100%;
  margin: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Optional: direkt den Hero/Slider verschieben, falls du body-Padding nicht magst */
.header-hero {
  margin-top: calc(var(--header-h) + 12px);
}

/* === Navigation für Shopsite === */

/* == ENDE Überschreiben Rootsite == */

h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #222;
}

a {
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.content {
  padding: 1rem;
  /* background: var(--dark); */
}

.lableSearch {
  margin-left: auto;
}

@media (max-width: 600px) {
  .lableSearch {
    margin-left: 0.6rem;
  }
}

/* Text statt Overlay */

.hero-text-block h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.hero-text-block p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-text-block .hero-btn {
  background: #28a745;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
}

.hero-text-block .hero-btn:hover {
  background: #218838;
}

/* Slider-Navigation ausblenden */

.hidden {
  display: none;
}

/* Produktliste */
/* Fade-In für AJAX-Produkte sanfter Übergang beim Reload*/
#produktliste {
  position: relative;
}

#produktliste.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#produktliste.fade-in {
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

#produktliste.loading::after {
  content: "Lädt…";
  display: block;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  color: #555;
}

.produktliste {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-template-columns: repeat(3, 1fr); /* max. 3 Spalten */
  gap: 2rem;
}

@media (max-width: 900px) {
  .produktliste {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 Spalten */
  }
}

@media (max-width: 600px) {
  .produktliste {
    grid-template-columns: 1fr; /* Smartphone: 1 Spalte */
  }
}

.gruppen-ueberschrift {
  font-family: Georgia, "Times New Roman", serif;

  color: var(--farbe1);
  font-size: 2rem;
  width: 100%; /* volle Breite */
  display: block; /* block-level, keine Inline-Einschränkung */
  grid-column: 1 / -1; /* falls in einem Grid, spannt alle Spalten */
  margin: 30px 0 0px; /* optional: Abstand oben/unten */
}

.gruppen-abstand {
  height: 60px;
  width: 100%;
}
@media (max-width: 600px) {
  .gruppen-abstand {
    height: 10px;
  }
  .gruppen-ueberschrift {
    font-size: 2rem;

    margin: 0px 0 0px; /* optional: Abstand oben/unten */
  }
}

.produkt {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

label {
  font-weight: bold;
  margin-right: 1rem;
}

.labelGroupVarianten {
  width: 10%;
  min-width: 100px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db; /* dezenter grauer Rahmen */
  border-radius: 0px;
  font-size: 0.95rem;
  background-color: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

select,
input[type="number"] {
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 0.5rem 0;
}

.produktbild {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.produktbild img {
  max-height: 220px; /* gewünschte Bildhöhe */
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: crimson;
  color: white;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 6px;
  font-weight: bold;
}

.badge-hit {
  background: goldenrod;
  top: 10px;
  right: 10px;
  left: auto;
}

.produktinfo {
  display: flex;
  flex-direction: column; /* Text / Inhalt untereinander */
  justify-content: center; /* vertikal zentrieren */
  align-items: center; /* horizontal zentrieren */
  text-align: center; /* Text mittig */
}

.produktinfo h2 {
  font-size: 1.3rem;
  color: black;
  margin-bottom: 0.5rem;
}

/*
.beschreibung {
  font-size: 0.9rem;
  color: #555;
}
*/

.preis {
  font-size: 1.3rem;
  color: var(--farbe1);
  font-weight: bold;
}

.VersandInfo {
  font-size: 0.8rem;
  color: #777;
}

/*preis-value global angelegt*/
.preis-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--farbe1);
  letter-spacing: -0.5px;
}

/* Fade / Flip bleibt gleich */
.preis-value {
  display: inline-block;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  transform-origin: center top;
}

.preis-value,
.kg-preis-value {
  display: inline-block;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
  transform-origin: center top;
  opacity: 1;
  backface-visibility: hidden;
}

.flip-out {
  transform: rotateX(90deg);
  opacity: 0;
}

.flip-in {
  transform: rotateX(0deg);
  opacity: 1;
}

.verfuegbar {
  font-size: 0.9rem;
  color: #777;
}

.beliebtheit {
  font-size: 0.9rem;
  color: #f0ad4e;
  font-weight: 500;
}

/*Chat-GPT*/

.produkt-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  width: 100%;
}

/* Gruppe aus Label + Input */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  margin: 0 auto; /* zentriert das Element */
}
/*
@media (max-width: 600px) {
  .form-group {
  width: 80%;
}
}
*/
/* Label */
.form-group label {
  font-size: 0.85rem;
  color: #374151; /* dunkles Grau */
}

/* Select & Input */
.form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db; /* dezenter grauer Rahmen */
  border-radius: 0px;
  font-size: 0.95rem;
  background-color: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

/* Fokus-Effekt */
.form-input:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.25);
}

/* Sicherheit */
.produkt-form,
.produkt-form * {
  box-sizing: border-box;
}

.qty-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #d1d5db; /* Rand um den ganzen Container */
  border-radius: 0;
  overflow: hidden;
  height: 44px;
}

.qty-btn {
  width: 44px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #f3f4f6;
}

.qty-input {
  flex: 1;
  text-align: center;
  border: none !important; /* Rand weg */
  outline: none !important; /* Fokus-Ring weg */
  box-shadow: none !important; /* Chrome/Edge Shadow weg */
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  -moz-appearance: textfield; /* Firefox */
  -webkit-appearance: none; /* Chrome/Safari */
  appearance: none;
}

/* Spinner entfernen */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Fokus überall entfernen */
.qty-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Button */
.btn-warenkorb {
  display: block; /* oder flex, aber block reicht */
  margin: 0.5rem auto; /* oben/unten 0.5rem, links/rechts auto = zentriert */
  padding: 0.7rem;

  background: black;

  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.2s,
    opacity 0.2s;
  border-radius: 0;
  width: 70%; /* Breite beibehalten */
}

.btn-warenkorb:hover {
  background: var(--farbe1);
  color: #111827;
  border: none;
}

.btn-warenkorb:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-warenkorb:disabled:hover {
  background: black;
  color: white;
  border: none;
}

.produkt:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
/*
.produkt img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 1rem;

  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 sorgt für volle Höhe ohne Verzerrung 
  display: block;
}*/

.produkt p {
  margin: 0.4rem 0;
  line-height: 1.4;
}

form {
  margin-top: 1rem;
}

button {
  background-color: #28a745;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-weight: bold;
}

button:hover {
  background-color: var(--farbe1);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

a {
  display: block;
  /* margin: 2rem auto 0; */
  text-align: center;
  text-decoration: none;
  /* background: #007bff; */
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  width: fit-content;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

/*
a:hover {
  background-color: #0056b3; /* deaktiviert wegen Menülayout
}
*/

/* === Hero / Slider (index.php) ========================================== */

/* .header-hero { margin: 0; padding: clamp(8px, 2vw, 20px); } */

.slider {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  background: #000;
}

/* Höhe/Auflösung: 21:9 auf Desktop, etwas höher auf Mobile */
.slides {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 260px;
}
@media (max-width: 900px) {
  .slides {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 560px) {
  .slides {
    aspect-ratio: 4 / 3;
  }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none; /* nur aktive Slide klickbar */
}
.slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

/* dezenter Verlaufs-Overlay für Textlesbarkeit */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

/* Text-Block auf dem Bild */
.hero-text-block {
  position: absolute;
  left: clamp(12px, 5vw, 64px);
  bottom: clamp(12px, 5vw, 64px);
  z-index: 2; /* über dem Overlay */
  color: #fff;
  max-width: min(60ch, 92vw);
  backdrop-filter: saturate(120%) blur(4px);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: clamp(10px, 1.8vw, 16px) clamp(12px, 2.2vw, 20px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.hero-text-block h1 {
  margin: 0 0 6px;
  font-size: clamp(20px, 3vw, 36px);
  line-height: 1.15;
}
.hero-text-block p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  opacity: 0.95;
}
.hero-text-block .btn {
  margin-top: 10px;
  display: inline-block;
}

/* Navigation-Pfeile */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3; /* über allem */
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition:
    transform 0.1s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.slider-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}
.slider-btn:active {
  transform: translateY(-50%) scale(0.98);
}
.slider-btn.prev {
  left: 12px;
}
.slider-btn.next {
  right: 12px;
}

/* Dots */
.dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}
.dots button.active {
  width: 22px;
  background: #fff;
  border-color: #fff;
  transition: width 0.25s ease;
}

/* Dark/Light verträgt sich bereits, kein extra Theme nötig */
