body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
}
.background-container {
  position: relative;
  width: 100%;
  max-width: 512px;
  margin: 0 auto;
  aspect-ratio: 512 / 768;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  background-image: url('E46AEA1E-E66A-4DF6-9B1D-6038D139D8DB.png'); /* wird per JS ersetzt */
}
.home-video-wrapper {
  position: absolute;
  top: 216px;
  left: 9.2%;
  width: 81.5%;
  z-index: 10;
}
.home-video {
  width: 100%;
  height: 259px;
  border-radius: 4px;
  object-fit: cover;
}
.container {
  position: relative;
  width: 100%;
  height: 100%;
}
.flag-icon {
  width: 24px;
  height: auto;
  margin-left: 2px;
  margin-top: -14px; /* Hebt das Icon an */
  position: relative;
  top: -12px;
  vertical-align: middle;
}
.navigation {
  position: absolute;
  top: 170px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 100;  
}
.nav-button {
  color: white;
  text-decoration: none;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.product-overview {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 40px;
  padding: 20px;
  align-items: start;
}
.category-box {
  width: 192px;
}
.category-box h3 {
  font-size: 0.85rem; /* oder z. B. 0.75rem für noch kleiner */
  margin-bottom: 6px; /* optional für engeres Layout */
}
.category-title {
  font-size: 1rem;       /* kleiner als Standard h3 */
  margin-bottom: 0.4em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.product-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.product-list li {
  padding: 1px 0;
  font-size: 0.80rem;
  color: black;
  cursor: pointer;
}
.product-detail {
  background-color: transparent;
  color: black;
  padding: 0;
  margin-top: 20px;
  font-size: 0.95rem;
  box-shadow: none;
}
.product-video {
  width: 280px;
  height: 180px;
  margin-left: 4px;
  margin-top: 20px;
  border-radius: 8px;
}
.flexbox {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0px;
  align-items: flex-start;
}
.price-table {
  background-color: #111;
  color: #fff;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  width: 240px; 
}
.price-table table {
  width: 110%;
  border-collapse: collapse;
}
.price-table td {
  padding: 4px 12px;
  font-family: monospace;
}
.price-table td:first-child {
  text-align: right;
  color: #ccc;
}
.price-table td:last-child {
  text-align: left;
  color: #fff;
}
.shift-left {
  margin-left: 40px;
  margin-top: -10px;
  display: inline-block;
}
.contact-bubble {
  position: relative; /* <- Das ist neu oder geändert! */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.contact-bubble a {
  color: black;
  text-decoration: none;
  font-weight: bold;
}
.socials-bubble {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 512px;
  margin: 0 auto;
  z-index: 30;
}
.socials-bubble a {
  display: block;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.01); /* Unsichtbar, aber klickbar */
  z-index: 40;
}
#sale-notice {
  text-align: center;
  font-weight: bold;
  color: #ff1a1a;                  /* Knallrot für Text */
  background-color: #2f2f2f;       /* Granitgrau */
  border-radius: 8px;
  padding: 14px 24px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  margin: 0 auto;  font-size: 1.2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 90%;
  display: none;
}
#products-content {
  background-color: white;
  color: black;
  padding: 20px;
  border-radius: 10px;
  margin: 205px auto 0 auto;
  width: 100%;
  max-width: 520px;
  min-height: 480px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  box-sizing: border-box;
  z-index: 1;
  position: relative;
}
#contact-content {
  position: relative;
  width: 100%;
  max-width: 512px;
  margin: 0 auto;
  z-index: 30;
}
#contact-content a {
  display: block;
  background-color: rgba(255, 255, 255, 0.01); 
  z-index: 40;
}
.hidden {
  display: none !important;
}

@media (max-width: 440px) {
  .navigation {
    position: absolute;
    top: 125px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 100;

    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 10px;
  }
  .home-video-wrapper {
    top: 177px; /* weiter nach oben schieben für kleinere Geräte */
  }
  .home-video {
    height: 230px; /* etwas flacher, passt zur mobilen Leinwand */
  }
  .nav-button {
    font-size: 0.75rem;
    padding: 5px 8px;
    margin: 2px;
    white-space: nowrap;
  }
  .flexbox {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: space-between;
    align-items: flex-start;
  }
  .product-video {
    width: 50%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    margin-left: 0px;
    border-radius: 6px;
    display: block;
    vertical-align: top;
  }
  .price-table {
    width: 46%;
    font-size: 0.65rem;
    padding: 4px;
  }
  .price-table td {
    padding: 1px 3px;
    font-size: 0.65rem;
    white-space: nowrap;
    letter-spacing: -0.2px;
  }
  .price-table table {
    width: 100%;
    table-layout: fixed;
  }

  .shift-left {
    margin-left: 0;
    margin-top: 0;
  }
  .product-detail {
    font-size: 0.85rem;
  }
  #products-content {
    margin: 155.5px auto 0 auto !important;
    height: auto;
    padding-bottom: 20px;
    font-size: 0.9rem;
    overflow: visible;
  }

  .product-detail h3 {
    font-size: 1rem;
  }
  .product-list li {
    font-size: 0.85em; /* vorher evtl. 1em oder 1rem */
    line-height: 1.4em;
  }
  .product-overview {
    display: grid;
    font-size: 0.80rem;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 30px;
    padding: 10px;
    overflow: visible !important;
    white-space: nowrap !important; /* Kein Umbruch */
  }
  .category-box {
    width: 100%; /* Entfernt feste Breite */
  }
}
/* Samsung Galaxy S20 / S21 / OnePlus 11 / Xiaomi (412px) */
@media (max-width: 412px) {
  .home-video-wrapper {
    top: 163px;
  }
  .home-video {
    height: 220px;
  }
  .product-list li {
    font-size: 0.85em; /* vorher evtl. 1em oder 1rem */
    line-height: 1.4em;
  }
  .product-overview {
    display: grid;
    font-size: 0.80rem;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 40px;
    padding: 10px;
    overflow: visible !important;
    white-space: nowrap !important; /* Kein Umbruch */
  }
  .category-box h3 {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  .navigation {
    position: absolute;
    top: 122px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 100;

    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 10px;
  }
}
/* iPhone 14 Pro / Pixel XL / Samsung Galaxy S22–S24 (393px) */
@media (max-width: 393px) {
  .home-video-wrapper {
    top: 160px;
  }
  .home-video {
    height: 210px;
  }
  .navigation {
    position: absolute;
    top: 118px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 100;

    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 10px;
  }
  .product-list li {
    font-size: 0.85em; /* vorher evtl. 1em oder 1rem */
    line-height: 1.4em;
  }
  .product-overview {
    display: grid;
    font-size: 0.80rem;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 35px;
    padding: 10px;
    overflow: visible !important;
    white-space: nowrap !important; /* Kein Umbruch */
  }
}

/* iPhone 13 / 14 / Google Pixel 6–8 (390px) */
@media (max-width: 390px) {
  .home-video-wrapper {
    top: 158px;
  }
  .home-video {
    height: 200px;
  }
  .product-list li {
    font-size: 0.85em; /* vorher evtl. 1em oder 1rem */
    line-height: 1.4em;
  }
  .product-overview {
    display: grid;
    font-size: 0.80rem;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 25px;
    padding: 10px;
    overflow: visible !important;
    white-space: nowrap !important; /* Kein Umbruch */
  }
}
/* iPhone 8 / XR / 11 / 12 mini (375px) */
@media (max-width: 375px) {
  .home-video-wrapper {
    top: 155px;
  }
  .home-video {
    height: 190px;
  }
  .navigation {
    position: absolute;
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 100;

    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 10px;
  }
}

/* Galaxy A3 / kleine Android-Geräte (360px) */
@media (max-width: 360px) {
  .home-video-wrapper {
    top: 150px;
  }
  .home-video {
    height: 180px;
  }
  .category-box h3 {
    font-size: 0.65rem !important;
    line-height: 1.2;
  }
  .product-overview {
    display: grid;
    font-size: 0.70rem;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 35px;
    padding: 10px;
    overflow: visible !important;
    white-space: nowrap !important; /* Kein Umbruch */
  }
  #products-content {
    margin: 140.5px auto 0 auto !important;
    height: auto;
    padding-bottom: 20px;
    font-size: 0.9rem;
    overflow: visible;
  }
  .navigation {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 100;

    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 10px;
  }
}
/* iPhone SE (350px) */
@media (max-width: 350px) {
  .home-video-wrapper {
    top: 142px;
  }
  .home-video {
    height: 175px;
  }
  .navigation {
    position: absolute;
    top: 104px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 100;

    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 8px;
  }
  #sale-notice {
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    padding: 10px 14px;
    font-size: 0.75em; /* Optional, bei kleinen Geräten evtl. leicht kleiner */
  }
  #products-content {
    margin: 135.5px auto 0 auto !important;
    height: auto;
    padding-bottom: 20px;
    font-size: 0.9rem;
    overflow: visible;
  }
  .category-box h3 {
    font-size: 0.65rem !important;
    line-height: 1.2;
  }
  .product-overview {
    display: grid;
    font-size: 0.70rem;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 35px;
    padding: 10px;
    overflow: visible !important;
    white-space: nowrap !important; /* Kein Umbruch */
  }
}
/* iPhone SE (330px) */
@media (max-width: 330px) {
  .home-video-wrapper {
    top: 138px;
  }
  .home-video {
    height: 162px;
  }
  .product-list li {
    font-size: 0.65em; /* vorher evtl. 1em oder 1rem */
    line-height: 1.4em;
  }
  .product-overview {
    display: grid;
    font-size: 0.70rem;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 25px;
    padding: 10px;
    overflow: visible !important;
    white-space: nowrap !important; /* Kein Umbruch */
  }
  .navigation {
    position: absolute;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 100;

    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 10px;
  }
  .category-box h3 {
    font-size: 0.65rem !important;
    line-height: 1.2;
  }
}

/* iPhone SE (320px) */
@media (max-width: 320px) {
  .home-video-wrapper {
    top: 134px;
  }
  .home-video {
    height: 162px;
  }
  .navigation {
    position: absolute;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
    z-index: 100;

    background: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 10px;
  }
}
