.wrapper {
    max-width: 1440px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box; /* wichtig für sauberes Rechnen */
	 overflow-wrap: break-word; /* wichtig für lange Wörter */
	word-break: break-word;    /* zusätzliche Sicherheit */
}

.wrapper .col-md-9 {
    padding-left: 15px;  /* wieder einbauen */
    padding-right: 15px;
}

.wrapper img {
    max-width: 100%;
    height: auto;
}

.wrapper p, 
.wrapper h2, 
.wrapper a {
    overflow-wrap: break-word;
	max-width: 100%;
}

p {
  max-width: 100%;           /* Begrenze die Breite auf den Container */
  overflow-wrap: break-word;
  word-break: break-word;
}

.fill {
  width: 100%;
  min-height: 400px;       /* statt fester Höhe, flexibler */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-sizing: border-box;  /* verhindert Überbreite */
}

/* ====== Kopfzeile ====== */
.topbar {
  background-color: #690A2E; /* helleres Weinrot */
  color: #fff;
  font-size: 14px;
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}
.topbar a {
  color: #fff;
  text-decoration: none;
}
.topbar a:hover,
.topbar a:focus {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .topbar {
    display: none;
  }
}

.subkat-buttons {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;      /* Buttons umbrechen bei kleiner Breite */
	margin-bottom: 2rem;
}

.subkat-button {
    display: inline-block;
    padding: 6px 10px;    /* Innenabstand */
    border-radius: 20px;  /* abgerundete Ecken */
    text-decoration: none;
    font-size: 1.3rem;
    transition: background-color 0.2s;
	border: 1px solid #ccc;  
	margin:0.5rem;
}

.subkat-button:hover {
	background-color: #CCB7BF;
	border: 1px solid #ccc;  
}


/* ====== Logo-Bereich ====== */
.header-logo {
  background: #690A2E; /* abgesetztes Weinrot */
  padding: 1rem;
  text-align: center;
}
.header-logo img {
  max-height: 120px;
  padding-bottom: 20px;
}

/* ====== Navigation ====== */
nav {
  background-color: #50001B; /* dunkler Weinrot-Ton */
}

nav a {
    color: white;
    text-decoration: none; /* optional, je nach Design */
    transition: color 300ms, background-color 300ms;
}

/* Hover */
nav a:hover {
    color: white; /* z. B. etwas helleres Weiß/Grau beim Hover */
}

/* Active (wenn geklickt) */
nav a:active {
    color: #aaa;
}

/* Visited (bereits besuchte Links) */
nav a:visited {
    color: white;
}

/* Focus (Tastaturfokus) */
nav a:focus {
    color: #fff;
    outline: none; /* optional */
}
	
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.menu > li {
  position: relative;
}

/* ====== Hauptkategorien (erste Ebene) ===== */
.menu > li > a,
.menu > li > button {
  display: block;
  padding: 1rem 1.2rem;
  font-size: 20px;    /* größer */
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* Hover / Focus für Hauptkategorien */
.menu > li > a:hover,
.menu > li > button:hover,
.menu > li > a:focus,
.menu > li > button:focus {
  color: #FFD700;
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* ====== Untermenüs / Dropdowns ====== */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background-color: #5C0E2C;
  padding: 0;
  margin: 0;
  min-width: 220px;
  z-index: 1000;
}
.submenu li {
  position: relative;
}

/* Untermenüs kleiner und normal */
.submenu a,
.submenu button {
  display: block;
  padding: 0.8rem 1.2rem;
  font-size: 15px;
  font-weight: normal;
  color: #fff;
  background: none;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

/* Hover / Focus für Untermenüs */
.submenu a:hover,
.submenu a:focus,
.submenu button:hover,
.submenu button:focus {
  background-color: #FFD700;
  color: #000;
}

/* Submenu zweite Ebene (verschachtelte Dropdowns) */
.submenu .submenu {
  top: 0;
  left: 100%;
}

/* Sichtbarkeit bei Hover / Focus */
.menu li:focus-within > .submenu,
.menu li:hover > .submenu {
  display: block;
}

/* ====== Mobile Navigation ====== */
.burger {
  display: none;
  cursor: pointer;
  padding: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    display: none; /* zunächst versteckt */
    background: #560D2B;
    width: 100%;
  }
  .menu.show {
    display: flex; /* sichtbar, wenn aktiv */
  }
  .menu li {
    text-align: center;
  }
  .burger {
    display: block;
    margin-left: auto;
    margin-right: 1rem;
  }
}


/* Grid für alle Produkte */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 430px));
  gap: 1.4rem;
}

/* Einzelne Produktkarte */
.product-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Bildcontainer */
.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1/1; /* macht alle Bilder quadratisch gleich hoch */
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* skaliert Bilder ohne Verzerren */
  background: #f9f9f9;
}

/* Info-Bereich */
.product-info {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Titel */
.product-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  margin-bottom: 0.75rem;
  display: block;
  text-align: center;
}

.product-title:hover {
  color: #7A1A3F; /* deine Akzentfarbe */
}

/* Preis */
.product-price {
  font-size: 1.7rem;
  font-weight: bold;
  color: #111;
  text-align: center;
  margin-top: auto; /* schiebt Preis nach unten */
}

.product-price .price-note {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  color: #666;
  margin-top: 0.2rem;
}


/* Thumb */

/* Grid für alle Produkte */
.product-grid_thumb {
  list-style: none; /* bullets entfernen */
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 215px));
  gap: 0.9rem;
}

/* Einzelne Produktkarte */
.product-card_thumb {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.product-card_thumb:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Bildcontainer */
.product-image_thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1/1; /* macht alle Bilder quadratisch gleich hoch */
  overflow: hidden;
}

.product-image_thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* skaliert Bilder ohne Verzerren */
  background: #f9f9f9;
}

/* Info-Bereich */
.product-info_thumb {
  padding: 0.375rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Titel */
.product-title_thumb {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  margin-bottom: 0.375rem;
  display: block;
  text-align: center;
}

.product-title_thumb a {
  color: inherit;
  text-decoration: none;
}

.product-title_thumb a:hover {
  color: #7A1A3F; /* Akzentfarbe */
}

/* Preis */
.product-price_thumb {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111;
  text-align: center;
  margin-top: auto; /* schiebt Preis nach unten */
}

.product-price_thumb .price-note_thumb {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  color: #666;
  margin-top: 0.1rem;
}




/* Footer */
footer.bb-footer {
  background-color: #690A2E; /* dunkles Bordeaux passend zum Header */
  color: #f5e9e9;           /* dezentes Hellgrau */
  padding: 40px 20px;
  margin-top: 40px;
}

footer.bb-footer h5 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.7rem; /* vorher 1.1rem, jetzt etwas größer */
  font-weight: 600;  /* optional: etwas kräftiger */
}

footer.bb-footer a {
  color: #DDB5B5;  /* warmes Korall/Rot für Links */
  text-decoration: none;
}

footer.bb-footer a:hover {
  text-decoration: underline;
  color: #DDB5B5; /* etwas heller beim Hover */
}

footer.bb-footer p,
footer.bb-footer small {
  line-height: 1.6;
}

footer.bb-footer .list-unstyled li {
  margin-bottom: 8px;
}

.youtube-container {
  float: right; /* rechtsbündig */
  margin: 0 0 10px 20px; /* Abstand: oben 0, rechts 0, unten 10px, links 20px */
  width: 360px; /* Breite des Videos, anpassbar */
  height: 203px; /* 16:9 Verhältnis */
  cursor: pointer;
  background-size: cover;
  background-position: center;
  position: relative;
}

.youtube-container .play-button {
  width: 60px;
  height: 60px;
  background: url('https://upload.wikimedia.org/wikipedia/commons/0/0a/YouTube_full-color_icon_%282017%29.svg') no-repeat center center;
  background-size: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.youtube-caption {
  float: right;
  margin: 0 0 20px 20px; /* etwas Abstand links zum Text */
  font-size: 0.9rem;
  color: #555;
  max-width: 360px;
}

@media (max-width: 768px) {
  .youtube-container,
  .youtube-caption {
    float: none;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
  .youtube-container {
    padding-bottom: 56.25%; /* 16:9 Verhältnis */
    height: 0;
  }
  .youtube-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
  }
}