/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dark Mode verhindern - aggressiv für eBay App */
:root {
  color-scheme: light only;
}

html {
  background: #f5f5f5 !important;
  color: #333 !important;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333 !important;
  background: #f5f5f5 !important;
  color-scheme: light only;
}

/* DARK MODE OVERRIDE - Erzwingt helle Farben wenn System im Dark Mode */
@media (prefers-color-scheme: dark) {
  html, body {
    background: #f5f5f5 !important;
    color: #333 !important;
  }

  .wrapper,
  main,
  .tab-pane,
  .content-box:not(.box-dark),
  .color-variants-full,
  .variant-item,
  .download-card,
  .product-info,
  .gallery,
  .features:not(.features-light),
  .description {
    background-color: #fff !important;
    color: #333 !important;
  }

  /* Text-Elemente im Content-Bereich */
  main p, main h1, main h2, main h3, main h4, main span, main li,
  .tab-pane p, .tab-pane h3, .tab-pane h4, .tab-pane span, .tab-pane li,
  .content-box p, .content-box h3, .content-box h4,
  .product-info p, .product-info h2, .product-info span,
  .service-text strong, .service-text span:not(.whatsapp) {
    background-color: transparent !important;
    color: #333 !important;
  }

  .wrapper {
    background: #fff !important;
  }

  a {
    color: inherit !important;
  }

  /* Navigation dunkel halten - aber NICHT das Mega-Menü */
  .nav,
  .nav-container::before,
  .dropdown-label,
  .dropdown-menu:not(.dropdown-menu-mega) {
    background-color: #424242 !important;
    color: #fff !important;
  }

  /* Nur direkte Nav-Links, nicht die im Mega-Menü */
  .nav > a,
  .nav > .dropdown > a,
  .dropdown-menu:not(.dropdown-menu-mega) a {
    color: #fff !important;
  }

  /* Mega-Menü Links dunkel */
  .dropdown-menu-mega a {
    color: #444 !important;
  }

  /* Desktop: Hover weiße Schrift */
  @media (min-width: 769px) {
    .dropdown-menu-mega a:hover {
      color: #fff !important;
    }
  }

  /* Mobile: Hover mit weißer Schrift */
  @media (max-width: 768px) {
    .mega-accordion a:hover {
      background: #ec4205 !important;
      color: #fff !important;
    }
  }

  /* Logo-Links ohne Hover-Hintergrund */
  .dropdown-menu-mega a.mega-brand-desktop:hover,
  .dropdown-menu-mega a.mega-brand-small:hover {
    background: transparent !important;
    color: #444 !important;
  }

  .dropdown-label {
    background: #424242 !important;
    color: #fff !important;
  }

  /* Mobile Mega-Menü - dunkel halten */
  .mega-mobile,
  .mega-accordion,
  .mega-more-brands {
    background-color: #424242 !important;
    color: #fff !important;
  }

  .mega-logo-grid {
    background: #f5f5f5 !important;
  }

  .mega-logo-item {
    background: #fff !important;
    color: #333 !important;
  }

  .mega-accordion a {
    background: #fff !important;
    color: #444 !important;
  }

  .mega-more-brands {
    background: #333 !important;
  }

  .mega-more-title {
    color: #ec4205 !important;
    background: transparent !important;
  }

  .mega-more-grid a {
    background: #fff !important;
  }

  /* Footer-Farben beibehalten */
  .footer {
    background: #2a2a2a !important;
    color: #fff !important;
  }

  .footer-col a {
    color: #ccc !important;
  }

  .footer-col .icon {
    color: #ec4205 !important;
  }

  .footer-col p,
  .footer-col h3 {
    color: #fff !important;
    background: transparent !important;
  }

  .footer-copyright {
    color: #888 !important;
    background: transparent !important;
  }

  .contact-seller-btn {
    background: #ec4205 !important;
    color: #fff !important;
  }

  .product-info h2 {
    color: #ec4205 !important;
  }

  /* Tab-Labels - spezifisch für Dark Mode */
  .tab-nav label {
    background: #f5f5f5 !important;
    color: #666 !important;
  }

  /* Aktiver Tab im Dark Mode */
  #tab1:checked ~ .tab-nav label[for="tab1"],
  #tab2:checked ~ .tab-nav label[for="tab2"],
  #tab3:checked ~ .tab-nav label[for="tab3"] {
    background: #ec4205 !important;
    color: #fff !important;
  }

  .tab-content {
    background: #fff !important;
  }

  .tab-pane h3 {
    color: #ec4205 !important;
    background: transparent !important;
  }

  .article-contact-wrapper {
    background: #f5f5f5 !important;
  }

  img {
    filter: none !important;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Wrapper */
.wrapper {
  max-width: 1300px;
  margin: 0 auto;
  background: #fff;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo img {
  max-height: 120px;
}

.contact-top {
  text-align: right;
  font-size: 14px;
}

.contact-top a {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.contact-top a:hover {
  color: #ec4205;
}

/* Service Info Box */
.service-info {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f5f5f5;
  padding: 18px 25px;
  border-radius: 6px;
  border-left: 4px solid #ec4205;
}

.service-icon {
  font-size: 52px;
  line-height: 1;
  color: #ec4205;
}

.service-text {
  text-align: left;
}

.service-text strong {
  display: block;
  color: #333;
  font-size: 15px;
  margin-bottom: 5px;
}

.service-text > span {
  display: block;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

.service-note {
  color: #888 !important;
  font-size: 11px !important;
  margin-top: 5px;
}

.whatsapp {
  color: #25D366 !important;
  font-weight: bold;
  display: inline;
}

/* Navigation Container */
.nav-container {
  position: relative;
}

/* Hamburger Menu Toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  height: 48px;
  padding: 0 20px;
  align-items: center;
  background: #ec4205;
  z-index: 101;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: #fff;
  height: 3px;
  width: 26px;
  border-radius: 2px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

/* Navigation */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  background: #424242;
  border-top: 4px solid #ec4205;
}

.nav a {
  padding: 12px 18px;
  color: #fff;
  font-weight: normal;
  font-size: 13px;
  border-right: 1px solid #555;
}

.nav > a:first-child {
  border-left: 1px solid #555;
}

.nav a:hover {
  background: #555;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.dropdown > a {
  display: flex;
  align-items: center;
  border-right: 1px solid #555;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #424242;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  border-right: none;
  border-bottom: 1px solid #555;
}

.dropdown-menu a:hover {
  background: #ec4205;
}

/* Mega-Menü Dachfenster */
.dropdown-toggle {
  display: none;
}

.dropdown-label {
  display: none;
}

.dropdown-link-desktop {
  display: flex;
  align-items: center;
}

.dropdown-menu-mega {
  min-width: 820px;
  padding: 0;
  background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
  display: flex;
  gap: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.mega-column {
  flex: 1;
  padding: 0;
  background: #fff;
  margin: 15px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-column:first-child {
  margin-left: 15px;
}

.mega-column:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 66, 5, 0.15);
}

.mega-column:last-child {
  border-right: none;
}

/* Desktop: Label verstecken, Link-Version anzeigen */
.mega-toggle {
  display: none;
}

.mega-brand {
  display: none;
}

.mega-brand-desktop {
  display: block;
  padding: 25px 20px;
  margin: 0;
  background: #fff;
  border-radius: 0;
  text-align: center;
  border: none;
  border-bottom: 3px solid #ec4205;
}

.mega-brand-desktop:hover {
  background: #f9f9f9;
}

.mega-brand-desktop img {
  height: 45px;
  width: auto;
  margin: 0 auto;
  filter: none;
}

.mega-arrow {
  display: none;
}

/* Mobile-Container auf Desktop ausblenden */
.mega-mobile {
  display: none;
}

.mega-radio {
  display: none;
}

.mega-links {
  display: block;
}

.mega-column a,
.mega-links a {
  display: block;
  padding: 10px 15px;
  color: #444;
  font-size: 13px;
  border: none;
  background: none;
  border-radius: 0;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.mega-links a:last-child {
  border-bottom: none;
}

.mega-column a:not(.mega-brand-desktop):hover,
.mega-links a:hover {
  color: #fff;
  background: #ec4205;
  padding-left: 20px;
}

.mega-title {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  padding: 18px 15px;
  background: linear-gradient(135deg, #333 0%, #222 100%);
  border-bottom: none;
}

.mega-brand-small {
  display: block;
  padding: 18px 15px;
  margin: 0;
  background: #fff;
  border-radius: 0;
  text-align: center;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.mega-brand-small:last-child {
  border-bottom: none;
}

.mega-brand-small:hover {
  background: #f5f5f5;
  border-left: 4px solid #ec4205;
}

.mega-brand-small img {
  height: 32px;
  width: auto;
  filter: none;
}

.mega-brand-small:hover img {
  filter: none;
}

.mega-column-brands {
  min-width: 160px;
  flex: 0 0 auto;
  background: #fff;
  margin-right: 15px;
}

.mega-column-brands .mega-title {
  background: linear-gradient(135deg, #333 0%, #222 100%);
}

/* Content */
.content {
  padding: 30px 20px;
}

.product-title {
  text-align: left;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: normal;
}

.product-layout {
  display: flex;
  gap: 40px;
}

/* Bildergalerie */
.gallery {
  flex: 1;
  max-width: 50%;
  min-width: 0;
}

/* Produktinfo */
.product-info {
  flex: 1;
  max-width: 50%;
  min-width: 0;
}

.gallery input[type="radio"] {
  display: none;
}

.main-image {
  border: 1px solid #ddd;
  margin-bottom: 15px;
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.main-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Galerie-Steuerung */
#img1:checked ~ .main-image .img1,
#img2:checked ~ .main-image .img2,
#img3:checked ~ .main-image .img3,
#img4:checked ~ .main-image .img4,
#img5:checked ~ .main-image .img5,
#img6:checked ~ .main-image .img6,
#img7:checked ~ .main-image .img7,
#img8:checked ~ .main-image .img8,
#img9:checked ~ .main-image .img9,
#img10:checked ~ .main-image .img10 {
  opacity: 1;
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.thumbnails label {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnails label:hover {
  border-color: #ec4205;
}

.thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  display: block;
}

/* Bilder ohne src verstecken */
.gallery img[src=""],
.gallery img:not([src]),
.main-image img[src=""],
.main-image img:not([src]) {
  display: none;
}

/* Thumbnails verstecken wenn Bild leer */
.thumbnails label:has(img[src=""]),
.thumbnails label:has(img:not([src])) {
  display: none;
}

#img1:checked ~ .thumbnails label[for="img1"],
#img2:checked ~ .thumbnails label[for="img2"],
#img3:checked ~ .thumbnails label[for="img3"],
#img4:checked ~ .thumbnails label[for="img4"],
#img5:checked ~ .thumbnails label[for="img5"],
#img6:checked ~ .thumbnails label[for="img6"],
#img7:checked ~ .thumbnails label[for="img7"],
#img8:checked ~ .thumbnails label[for="img8"],
#img9:checked ~ .thumbnails label[for="img9"],
#img10:checked ~ .thumbnails label[for="img10"] {
  border-color: #ec4205;
}

/* Lightbox (vereinfacht - nutzt die Hauptbilder) */
.lightbox-toggle {
  display: none;
}

.main-image label {
  cursor: zoom-in;
  display: block;
  width: 100%;
  height: 100%;
}

/* Lightbox Overlay - nur dunkler Hintergrund zum Schließen */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}

.lightbox-toggle:checked ~ .lightbox-overlay {
  opacity: 1;
  visibility: visible;
}

/* Bei aktiver Lightbox: Hauptbild vergrößert anzeigen */
.lightbox-toggle:checked ~ .main-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  z-index: 1000;
  border: none;
  background: transparent;
}

.lightbox-toggle:checked ~ .main-image label {
  cursor: zoom-out;
}

.lightbox-toggle:checked ~ .main-image img {
  object-fit: contain;
}

.product-info h2 {
  color: #ec4205;
  font-size: 20px;
  font-style: italic;
  margin-bottom: 20px;
}

.description {
  margin-bottom: 25px !important;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.features {
  list-style: none;
}

.features li {
  padding: 5px 0;
  padding-left: 25px;
  position: relative;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 12px;
  border: solid #5cb85c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Leere Listeneinträge verstecken (wenn Platzhalter ohne Wert) */
.features li:empty {
  display: none;
}

/* Artikelnummer & Kontakt Wrapper */
.article-contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 25px;
  padding: 12px 15px;
  background: #f5f5f5;
  border-radius: 8px;
  border-left: 4px solid #ec4205;
}

.article-number-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-label {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}

.article-number {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

/* Verkäufer kontaktieren Button */
.contact-seller-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ec4205;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.contact-seller-btn:hover {
  background: #d63a00;
  box-shadow: 0 4px 12px rgba(236, 66, 5, 0.3);
}

/* Farbvarianten */
.color-variants {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.color-variants h4 {
  color: #333;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: normal;
}

.variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

a.variant-item {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  width: 130px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.variant-item:hover {
  border-color: #ec4205;
  box-shadow: 0 4px 12px rgba(236, 66, 5, 0.15);
}

.variant-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 4px;
  display: block;
  margin: 0 auto 10px;
  transition: transform 0.2s ease;
}

.variant-item:hover img {
  transform: scale(1.08);
}

.variant-item span {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
  min-height: 28px;
}

.variant-item:hover span {
  color: #ec4205;
}

/* Farbvarianten volle Breite (im Tab) */
.color-variants-full {
  margin: 0;
  padding: 35px 40px;
  border-top: none;
  background: #f9f9f9;
}

.color-variants-full h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.variant-hint {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.color-variants-full .variant-grid {
  justify-content: flex-start;
}

/* Tabs */
.tabs {
  margin-top: 40px;
  border-top: 1px solid #ddd;
  padding-top: 30px;
}

.tabs input[type="radio"] {
  display: none;
}

.tab-nav {
  display: flex;
  border-bottom: 3px solid #ec4205;
}

.tab-nav label {
  flex: 1;
  padding: 15px 20px;
  text-align: center;
  background: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #666;
  border: 1px solid #ddd;
  border-bottom: none;
  margin-right: 2px;
  transition: all 0.2s;
}

.tab-nav label:last-child {
  margin-right: 0;
}

.tab-nav label:hover {
  background: #eee;
  color: #333;
}

/* Aktiver Tab */
#tab1:checked ~ .tab-nav label[for="tab1"],
#tab2:checked ~ .tab-nav label[for="tab2"],
#tab3:checked ~ .tab-nav label[for="tab3"] {
  background: #ec4205;
  color: #fff;
  border-color: #ec4205;
}

/* Tab Content */
.tab-content {
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
}

.tab-pane {
  display: none;
}

.tab-pane-2,
.tab-pane-3 {
  padding: 30px;
}

.tab-pane h3 {
  color: #ec4205;
  margin-bottom: 20px;
  font-size: 22px;
}

.tab-pane h4 {
  color: #333;
  margin: 25px 0 15px;
  font-size: 16px;
}

.tab-pane p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.tab-pane .features {
  margin-bottom: 20px;
}

/* Download Section */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px 20px;
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.download-card:hover {
  border-color: #ec4205;
  background: linear-gradient(135deg, #fff 0%, #fff5f2 100%);
  box-shadow: 0 8px 25px rgba(236, 66, 5, 0.15);
  transform: translateY(-3px);
}

.download-icon {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.download-card:hover .download-icon {
  transform: scale(1.1);
}

.download-title {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  transition: color 0.2s;
}

.download-card:hover .download-title {
  color: #ec4205;
}

/* Download-Cards ohne href oder mit Platzhalter verstecken */
.download-card[href=""],
.download-card:not([href]),
.download-card[href^="<-"],
.download-card[href$="->"] {
  display: none;
}

/* Tab "Anleitung" ausblenden wenn Platzhalter-Klasse leer ist */
.tab-nav label[for="tab2"][class=""],
.tab-nav label[for="tab2"][class^="<-"],
.tab-nav label[for="tab2"][class$="->"] {
  display: none;
}

/* Tab-Inhalt ausblenden wenn Label versteckt */
.tabs:has(.tab-nav label[for="tab2"][class=""]) .tab-pane-2,
.tabs:has(.tab-nav label[for="tab2"][class^="<-"]) .tab-pane-2,
.tabs:has(.tab-nav label[for="tab2"][class$="->"]) .tab-pane-2 {
  display: none !important;
}

/* Content Boxes */
.content-row {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.content-row:last-child {
  margin-bottom: 0;
}

.content-box {
  flex: 1;
  padding: 35px 40px;
}

.content-box h3 {
  color: #333;
  font-size: 24px;
  font-style: italic;
  font-weight: normal;
  margin-bottom: 20px;
  line-height: 1.3;
}

.content-box h4 {
  color: #333;
  font-size: 18px;
  margin-bottom: 20px;
}

.content-box p {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* ContentBox links/rechts alternierend (Repeat-Block) */
.beschreibung-content-box-left,
.beschreibung-content-box-right {
  width: 50%;
  padding: 35px 40px;
  box-sizing: border-box;
}

.beschreibung-content-box-left {
  float: left;
  clear: both;
}

.beschreibung-content-box-right {
  float: right;
  clear: right;
}

.beschreibung-content-box-title-left,
.beschreibung-content-box-title-right {
  color: #333;
  font-size: 24px;
  font-style: italic;
  font-weight: normal;
  margin-bottom: 20px;
  line-height: 1.3;
}

.beschreibung-content-box-left p,
.beschreibung-content-box-right p {
  color: #555;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Dunkle Box */
.box-dark {
  background: #f0f0f0;
}

.box-dark h4 {
  color: #333;
  font-weight: bold;
}

/* Features in dunkler Box */
.features-light li {
  color: #333;
}

.features-light li::before {
  color: #555;
}

/* Tab-Steuerung */
#tab1:checked ~ .tab-content .tab-pane-1,
#tab2:checked ~ .tab-content .tab-pane-2,
#tab3:checked ~ .tab-content .tab-pane-3 {
  display: block;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  background: #2a2a2a;
  color: #fff;
  padding: 40px 30px;
  border-top: 3px solid #ec4205;
}

.footer-col {
  flex: 1;
  padding: 0 30px;
  border-right: 1px solid #444;
  text-align: left;
}

.footer-col:last-child {
  border-right: none;
}

.footer-col h3 {
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: #aaa;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ec4205;
}

.footer-col .icon {
  color: #ec4205;
  margin-right: 8px;
}

.footer-col p {
  color: #999;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin: 0 10px;
}

.footer-logo img {
  max-height: 80px;
}

.legal-text {
  font-size: 13px !important;
  line-height: 1.8 !important;
}

.footer-copyright {
  width: 100%;
  text-align: center;
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid #444;
  color: #666;
  font-size: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #ec4205;
  color: #ec4205 !important;
  margin-top: 10px;
  font-weight: bold;
  transition: all 0.2s;
}

.btn:hover {
  background: #ec4205;
  color: #fff !important;
}

.btn-filled {
  background: #ec4205;
  color: #fff !important;
}

.btn-filled:hover {
  background: #d63a00;
  border-color: #d63a00;
}

/* Responsive */
@media (max-width: 768px) {
  /* Globale Breitenbegrenzung für eBay App */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Alle min-width Werte überschreiben die Overflow verursachen könnten */
  .dropdown-menu,
  .dropdown-menu-mega,
  .mega-column,
  .mega-column-brands,
  .mega-mobile,
  nav,
  .nav-links {
    min-width: 0 !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  main {
    padding: 15px;
    overflow: hidden;
    max-width: 100%;
  }

  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-top {
    margin-top: 15px;
    text-align: center;
  }

  .service-info {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 10px 15px;
  }

  .service-icon {
    font-size: 32px;
  }

  .service-text {
    text-align: left;
  }

  .service-text strong {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .service-text > span {
    font-size: 11px;
    line-height: 1.4;
  }

  /* Hamburger Menu */
  .nav-container {
    position: relative;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-top: none;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 100vh;
  }

  /* Nav Header Bar */
  .nav-container::before {
    content: 'MENÜ';
    display: block;
    background: #424242;
    border-top: 4px solid #ec4205;
    color: #fff;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
  }

  /* Hamburger Animation */
  .nav-toggle:checked ~ .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .nav > a,
  .nav > .dropdown {
    width: 100%;
    border-right: none;
    border-left: none;
  }

  .nav a {
    padding: 14px 20px;
    font-size: 14px;
    border-right: none;
    border-bottom: 1px solid #555;
    text-align: left;
  }

  .nav > a:first-child {
    border-left: none;
  }

  .dropdown {
    position: relative;
    width: 100%;
    flex-direction: column;
  }

  .dropdown > a {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
    background: #333;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    max-height: 500px;
  }

  .dropdown-menu a {
    padding-left: 40px;
    background: #333;
    border-bottom: 1px solid #444;
  }

  .dropdown-menu a:last-child {
    border-bottom: 1px solid #555;
  }

  /* Mega-Menü mobil */
  .dropdown-link-desktop {
    display: none !important;
  }

  .dropdown-label {
    display: block;
    padding: 14px 20px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #555;
  }

  .dropdown-mega .dropdown-menu-mega {
    position: static;
    max-height: 0;
    padding: 0 !important;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .dropdown-mega:hover .dropdown-menu-mega {
    max-height: 0;
    padding: 0 !important;
    opacity: 0;
  }

  .dropdown-toggle:checked ~ .dropdown-menu-mega {
    max-height: 3000px;
    padding: 0 !important;
    opacity: 1;
  }

  .dropdown-menu-mega {
    min-width: 100%;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 3px solid #ec4205;
    border-radius: 0;
    box-shadow: none;
  }

  /* Desktop-Spalten auf Mobile ausblenden */
  .mega-column {
    display: none !important;
  }

  /* Mobile Container anzeigen */
  .mega-mobile {
    display: block !important;
    width: 100%;
  }

  /* Logo-Grid: 3 nebeneinander */
  .mega-logo-grid {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f5f5f5;
  }

  /* Wrapper für übereinanderliegende Labels */
  .mega-logo-wrapper {
    flex: 1;
    position: relative;
  }

  .mega-logo-item {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
  }

  .mega-logo-item:hover {
    border-color: #ec4205;
  }

  .mega-logo-item img {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  /* Radio-Buttons verstecken */
  .mega-radio {
    display: none;
  }

  /* Deselect-Label versteckt, absolut positioniert */
  .mega-logo-deselect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
  }

  /* Bei aktivem Radio: Select ausblenden, Deselect einblenden mit oranger Border */
  #mega-radio-velux:checked ~ .mega-logo-grid .mega-logo-wrapper-velux .mega-logo-select,
  #mega-radio-roto:checked ~ .mega-logo-grid .mega-logo-wrapper-roto .mega-logo-select,
  #mega-radio-fakro:checked ~ .mega-logo-grid .mega-logo-wrapper-fakro .mega-logo-select {
    opacity: 0;
    pointer-events: none;
  }

  #mega-radio-velux:checked ~ .mega-logo-grid .mega-logo-wrapper-velux .mega-logo-deselect,
  #mega-radio-roto:checked ~ .mega-logo-grid .mega-logo-wrapper-roto .mega-logo-deselect,
  #mega-radio-fakro:checked ~ .mega-logo-grid .mega-logo-wrapper-fakro .mega-logo-deselect {
    opacity: 1;
    pointer-events: auto;
    border-color: #ec4205;
    border-width: 3px;
    background: #fff;
  }

  /* Accordion versteckt - mit smooth Animation */
  .mega-accordion {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.3s ease-out;
  }

  /* Accordion bei aktivem Radio anzeigen */
  #mega-radio-velux:checked ~ .mega-accordion-velux,
  #mega-radio-roto:checked ~ .mega-accordion-roto,
  #mega-radio-fakro:checked ~ .mega-accordion-fakro {
    max-height: 500px;
    transition: max-height 0.4s ease-in;
  }

  .mega-accordion a {
    display: block;
    padding: 12px 20px;
    color: #444;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    background: #fff;
  }

  .mega-accordion a:hover {
    background: #ec4205;
    color: #fff;
  }

  /* Weitere Marken - Mobile */
  .mega-more-brands {
    background: #333;
    padding: 20px;
  }

  .mega-more-title {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #ec4205;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
  }

  .mega-more-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mega-more-grid a {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 80px;
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    border: none;
  }

  .mega-more-grid a:hover {
    background: #f5f5f5;
  }

  .mega-more-grid img {
    height: 35px;
    width: auto;
    max-width: 100%;
  }

  /* Desktop-Elemente ausblenden */
  .mega-brand-desktop,
  .mega-links,
  .mega-column-brands {
    display: none !important;
  }

  .product-layout {
    flex-direction: column;
  }

  .gallery {
    flex: none;
    max-width: 100%;
  }

  .product-info {
    flex: none;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .product-title {
    font-size: 20px;
    margin-bottom: 20px;
    word-wrap: break-word;
  }

  .main-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }

  /* Lightbox auf Mobile deaktivieren - verhindert Overflow in eBay App */
  .lightbox-toggle:checked ~ .main-image {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    z-index: auto !important;
  }

  .lightbox-toggle:checked ~ .lightbox-overlay {
    display: none !important;
  }

  .main-image label {
    cursor: default !important;
  }

  /* Galerie Overflow-Fix */
  .gallery {
    overflow: hidden !important;
  }

  .thumbnails {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .thumbnails img {
    width: 60px !important;
    height: 60px !important;
  }

  .article-contact-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
    padding: 12px;
  }

  .article-number-box {
    justify-content: center;
  }

  .contact-seller-btn {
    justify-content: center;
    padding: 10px 15px;
  }

  /* Farbvarianten Mobile - 2 nebeneinander mit Overflow-Fix */
  .color-variants-full {
    padding: 20px 15px;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .color-variants-full h4 {
    font-size: 16px;
    margin-bottom: 8px;
    word-wrap: break-word;
  }

  .variant-hint {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .variant-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .variant-item {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 8px;
    overflow: hidden;
  }

  .variant-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
  }

  .variant-item span {
    font-size: 10px;
    min-height: 26px;
    margin-top: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .tab-nav {
    flex-direction: column;
  }

  .tab-nav label {
    margin-right: 0;
    margin-bottom: 2px;
    border: 1px solid #ddd;
  }

  .tab-pane-2,
  .tab-pane-3 {
    padding: 20px;
  }

  .download-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .download-card {
    padding: 15px 10px;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .download-icon {
    width: 45px;
    margin-bottom: 10px;
  }

  .download-title {
    font-size: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .content-row {
    flex-direction: column;
  }

  .content-box {
    padding: 25px 20px;
  }

  .content-box h3 {
    font-size: 20px;
  }

  .beschreibung-content-box-left,
  .beschreibung-content-box-right {
    width: 100%;
    float: none;
    clear: both;
    padding: 25px 20px;
  }

  .beschreibung-content-box-title-left,
  .beschreibung-content-box-title-right {
    font-size: 20px;
  }

  .footer {
    flex-direction: column;
    gap: 30px;
  }

  .footer-col {
    border-right: none;
    border-bottom: 1px solid #444;
    padding-bottom: 25px;
    text-align: left;
  }

  .footer-col h3 {
    text-align: left;
  }

  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
