/* === Imports & Root Variables === */
@import url('https://fonts.googleapis.com/css?family=Titillium+Web:200,200italic,300,300italic,regular,italic,600,600italic,700,700italic,900&subset=latin,latin-ext&display=swap');

:root {
  --primary-color: #009fe3;
  --secondary-color: #007c57;
  --highlight-color: #fec904;
  --highlight-hover: #e6b800;
  --text-color: #fff;
  --bg-color: #000;
  --card-bg: #fff;
  --card-text: #000;
  --border-color: #ccc;
}

/* === Farben-Felder === */
.farben-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.farben-label {
  font-weight: 500;
  margin-right: 8px;
  color: var(--card-text);
}

.farben-box {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background-color: var(--color);
  border: 1px solid #999;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.farben-box:hover {
  transform: scale(1.8);
  z-index: 2;
}

.farben-vorschau {
  margin-left: auto;
  min-width: 120px;
  height: 30px;
  border-radius: 5px;
  background-color: transparent;
  color: #000;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  padding: 0 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
}

/* === Global Styles === */
body {
  font-family: 'Titillium Web', Helvetica, Arial, Lucida, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

b {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

/* === Layout === */
header, footer, section {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: auto;
}

header, footer {
  max-width: 100%;
}

header {
  background: var(--card-bg);
  color: var(--primary-color);
  text-align: center;
  padding: 4rem 1rem;
  border-bottom: 4px solid var(--primary-color);
}

header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer a {
  color: #ccc;
}

/* === Typografie === */
section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-left: 2px solid var(--primary-color);
  padding-left: 0.5rem;
}

ul {
  padding-left: 1.25rem;
}

/* === Buttons === */
.cta-button,
.minileiste-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 400;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button {
  background-color: var(--primary-color);
  color: var(--text-color);
  margin-top: 1rem;
}

.cta-button:hover {
  background-color: var(--secondary-color);
}

.minileiste-button {
  background-color: var(--highlight-color);
  color: var(--card-text);
  margin-top: 15px;
}

.minileiste-button:hover {
  background-color: var(--highlight-hover);
  color: var(--card-text);
}

/* === Produktkarten === */
.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255,255,255,0.05);
  padding: 1rem;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h3,
.product-card p {
  margin-top: 0;
  color: var(--card-text);
}

.product-card .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-card .gallery img {
  flex: 1 1 48%;
  max-width: 48%;
  border-radius: 6px;
  object-fit: cover;
}

.product-card ul {
  padding-left: 20px;
  margin: 0px 0;
  list-style-type: disc;
}

.product-card ul li {
  margin-bottom: 6px;
  font-size: 15px;
  color: #555;
}

.product-card p:last-of-type {
  margin-top: auto;
}

/* === Vorteile-Boxen === */
.vorteile-reihe {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.vorteils-box {
  background-color: var(--card-bg);
  color: var(--card-text);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  width: calc(20% - 16px);
  min-width: 200px;
}

.vorteils-box h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.vorteil-header  {
  margin-top: 0 ! important;
  font-size: 1.1rem;
  font-weight:600;
}


.vorteils-box p {
  margin: 10px 0 0;
}

/* === LED Galerie === */
.led-gallery {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.led-gallery img {
  max-width: 100%;
  width: calc(50% - 1rem);
  height: auto;
  border-radius: 8px;
}

/* === Referenzbilder === */
.referenzen {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.referenzen img {
  width: calc(25% - 1rem);
  min-width: 180px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* === FAQ-Bereich === */
.faq-section {
  margin-top: 2rem;
  border-top: 2px solid #333;
  padding-top: 1rem;
}

.faq-section details {
  background: #111;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #333;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-section summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 400;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-section summary::after {
  content: "➤";
  position: absolute;
  right: 1rem;
  transition: transform 0.3s ease;
}

.faq-section details[open] summary::after {
  transform: rotate(90deg);
}

.faq-section details p {
  padding: 0 1rem 1rem;
  margin: 0;
  color: #ccc;
}

/* === Video/Media === */
iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  margin-top: 1rem;
}

.section-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* === Lightbox === */
#lightbox-overlay {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  z-index: 9999;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 10000;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  font-size: 2.5rem;
  padding: 0 15px;
  user-select: none;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

body.lightbox-open {
  overflow: hidden;
}

/* === Responsive Breakpoints === */
@media (max-width: 1024px) {
  .vorteils-box {
    width: calc(33.33% - 16px);
  }
  .referenzen img {
    width: calc(33.33% - 1rem);
  }
}

@media (max-width: 768px) {
  .vorteils-box {
    width: calc(50% - 16px);
  }
  .referenzen img {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .led-gallery img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .vorteils-box,
  .referenzen img {
    width: 100%;
  }
}
