/* Basis */
body {
  background: #1F2D3D;
  color: #EEF2F7;
  font-family: 'Inter', sans-serif;
  margin: 0; padding: 0;
}
header, .nav {
  justify-content: center;
  background: #223049;
  padding: 1rem; display: flex; gap: 2rem;
}
.nav a { color: #E07A5F; text-decoration: none; font-weight: 500; }

/* Container */
.container {
  max-width: 1200px; margin: 0 auto; padding: 1rem;
}

/* Willkommen */
.welcome-box {
  max-width: 700px; margin: 2rem auto;
  background: #223049; padding: 2rem 2.5rem;
  border-radius: 16px; text-align: center;
}
.elara-tabs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.elara-tabs button {
  background: #2a3952;
  color: #e07a5f;
  border: none;
  padding: .7rem 1.5rem;
  border-radius: 9px 9px 0 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  font-weight: 600;
  transition: background .2s;
}
.elara-tabs button.active,
.elara-tabs button:hover {
  background: #e07a5f;
  color: #fff;
}

.elara-tab-content {
  display: none;
  background: #223049;
  border-radius: 0 0 14px 14px;
  padding: 2rem;
  color: #EEF2F7;
  font-size: 1.12rem;
  box-shadow: 0 2px 8px #0002;
}
.elara-tab-content.active {
  display: block;
}

/* Mobil: Akkordeon */
@media (max-width: 700px) {
  .elara-tabs { display: none; }
  .elara-accordion {
    background: #2a3952;
    color: #e07a5f;
    cursor: pointer;
    padding: 1rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    margin-bottom: 1px;
    border-radius: 9px;
    font-weight: 600;
  }
  .elara-panel {
    display: none;
    padding: 1.5rem;
    background: #223049;
    border-radius: 0 0 9px 9px;
    margin-bottom: 1rem;
    color: #EEF2F7;
  }
}
/* Hinweis */
.hinweis {
  margin: 3rem auto 2rem; max-width: 900px;
  padding: 1.2em 1.3em; background: #292e36;
  color: #f2cc8f; border-left: 6px solid #e07a5f; border-right: 6px solid #e07a5f;
  border-right: 6px solid #e07a5f;
  border-radius: 0.7em; box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  font-size: 1.08rem;
}
.hinweis a {
  color: #e07a5f; text-decoration: underline dotted;
  font-weight: 500;
}

/* Geräte-Grid */
.device-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .device-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .device-grid { grid-template-columns: repeat(3,1fr); }
}

/* Gerät-Kachel */
.device-card {
  background: #223049; border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
}
.device-card img {
  width: 100%; height: auto; object-fit: cover;
}
.card-content {
  padding: 1rem; flex: 1;
}
.card-excerpt {
  font-size: 0.9rem; margin: .5rem 0; color: #CDD6E0;
}
.card-meta {
  list-style: none; padding: 0; margin: 0 0 1rem;
}
.card-meta li { font-size: 0.9rem; margin-bottom: .3rem; }
.card-price {
  font-weight: 600; margin-bottom: 1rem;
}
.card-button {
  background: #E07A5F; color: #fff; text-decoration: none;
  padding: .6rem 1.2rem; border-radius: 8px;
  text-align: center; display: inline-block; margin-top: auto;
}
.card-button:hover { opacity: .9; }

/* Detail-Seite */
.device-detail .breadcrumbs {
  margin: 1rem 0; font-size: .9rem;
}
.device-detail .breadcrumbs a {
  color: #E07A5F; text-decoration: none;
}
.details {
  display: flex; flex-wrap: wrap; gap: 2rem;
}
.detail-sidebar {
  flex: 1 1 200px; background: #223049;
  padding: 1rem; border-radius: 12px;
  position: sticky; top: 2rem; height: max-content;
}
.detail-sidebar .price {
  font-size: 1.5rem; font-weight: bold; margin-bottom: 1rem;
}
.buy-button {
  background: #E07A5F; color: #fff; text-decoration: none;
  padding: .7rem 1.4rem; border-radius: 8px; display: block;
  text-align: center;
}
.detail-content {
  flex: 2 1 600px;
}

/* Tabs & Akkordeon */
.tabs {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.tabs button {
  background: #2A3952; color: #E07A5F; border: none;
  padding: .7rem 1.2rem; cursor: pointer; border-radius: 9px 9px 0 0;
}
.tabs button.active {
  background: #E07A5F; color: #fff;
}
.tab-content {
  display: none; background: #223049;
  border-radius: 0 0 14px 14px; padding: 1.5rem; margin-bottom: 2rem;
}
.tab-content.active { display: block; }

/* Mobile Akkordeon */
@media (max-width: 700px) {
  .tabs { display: none; }
  .tab-content {
    padding: .5rem; margin-bottom: 1rem;
  }
  .device-detail .detail-content h3 {
    margin: 0; background: #2A3952; padding: .8rem;
    cursor: pointer; border-radius: 9px;
  }
}

/* Related Slider */
.related-slider { margin-top: 3rem; }
.related-slider h2 { margin-bottom: 1rem; }
.slider-main-small .card-small {
  min-width: 150px; margin-right: 1rem;
  background: #223049; border-radius: 8px;
  padding: .5rem; text-align: center;
}
/* Footer-Styling */
footer {
  background: #223049;
  color: #EEF2F7;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}
footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
/* --- Lightbox-CSS --- */

.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.2s ease;
  opacity: 0;
}
.lightbox-overlay.open {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
#lb-close {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}
#lb-controls {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
}
#lb-controls button {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}
/* 1) Hauptbild max. 400px breit */
.slider-main .slide {
  max-width: 400px;
  width: 100%;
  margin: 0 auto 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.slider-main .slide:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* 2) Thumbnails immer sichtbar unter dem Bild */
.slider-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.slider-thumbs .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.slider-thumbs .thumb.active {
  opacity: 1;
  border-color: #E07A5F;
}