/* ============================================
   PRODUCTS PAGE - CLEAN STYLING
   Nach dem Muster der Services-Seite
   Nahtlose Gradient-Übergänge
   ============================================ */

:root {
  --bg: #0f0f0f;
  --panel: #1a1a1a;
  --panel-2: #2a2a2a;
  --border: rgba(255, 255, 255, 0.08);
  --muted: #b8bcc6;
  --text: #f5f7fa;
  --accent: #E31E24;
  --accent-soft: rgba(227, 30, 36, 0.18);
  --red: #E31E24;
}

/* ============================================
   BASE STYLES
   ============================================ */

body { 
  background: #2a2a2a !important; 
}

.page-shell { 
  max-width: 100%; 
  margin: 0 auto; 
  padding: 0; 
}

/* ============================================
   HERO SECTION
   Startet bei #2a2a2a, endet bei #2d2d2d
   ============================================ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 6rem) 5%;
  min-height: 50vh;
  background: linear-gradient(180deg, #2a2a2a 0%, #2c2c2c 50%, #2d2d2d 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 { 
  color: var(--text); 
  margin: 0.4rem 0 1rem; 
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.hero .eyebrow { 
  color: var(--muted); 
  letter-spacing: 0.15em; 
  text-transform: uppercase; 
  font-size: 0.8rem; 
  margin: 0;
  font-weight: 600;
}

.hero .lead { 
  color: rgba(255, 255, 255, 0.75); 
  line-height: 1.7; 
  margin: 0 0 1.5rem; 
  max-width: 540px;
  font-size: 1.05rem;
}

.hero-actions { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
}

.hero-visual { 
  position: relative;
  border-radius: 16px; 
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.hero-visual img { 
  width: 100%; 
  max-height: 420px; 
  object-fit: cover;
  display: block;
}

.hero-visual .glow { 
  display: none; 
}

/* ============================================
   PACKAGES SECTION
   Schließt an Hero an: #2d2d2d -> #282828
   ============================================ */

#packages {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background: linear-gradient(180deg, #2d2d2d 0%, #2a2a2a 50%, #282828 100%);
  position: relative;
}

.section-header { 
  display: flex; 
  align-items: flex-start; 
  justify-content: space-between; 
  gap: 2rem; 
  flex-wrap: wrap; 
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem); 
}

.section h2 { 
  color: var(--text); 
  margin: 0.3rem 0 0; 
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.eyebrow { 
  color: var(--muted); 
  text-transform: uppercase; 
  letter-spacing: 0.15em; 
  font-size: 0.75rem; 
  margin: 0;
  font-weight: 600;
}

.hint { 
  color: rgba(255, 255, 255, 0.6); 
  margin: 0;
  font-size: 0.95rem;
}

/* Package Grid */
.package-carousel {
  width: 100%;
}

.package-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* ============================================
   PRODUCTS SECTION
   Schließt an Packages an: #282828 -> #242424
   ============================================ */

#products {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background: linear-gradient(180deg, #282828 0%, #262626 50%, #242424 100%);
  position: relative;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

/* ============================================
   CTA SECTION
   Schließt an Products an: #242424 -> #1a1a1a
   ============================================ */

.cta-section {
  padding: clamp(5rem, 10vw, 7rem) 5% !important;
  background: linear-gradient(180deg, #242424 0%, #202020 50%, #1a1a1a 100%) !important;
  text-align: center;
  border-top: none !important;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ============================================
   CARDS - Unified Styling
   ============================================ */

.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 30, 36, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(227, 30, 36, 0.1);
}

.card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.25), transparent);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-img.fallback { 
  display: grid; 
  place-items: center; 
  color: var(--muted);
  font-size: 0.9rem;
}

.card-body { 
  padding: 1.2rem 1.3rem 1.4rem; 
  display: flex; 
  flex-direction: column; 
  gap: 0.7rem; 
  background: transparent;
}

.card-meta { 
  display: flex; 
  gap: 0.5rem; 
  flex-wrap: wrap; 
}

.card h3 { 
  margin: 0; 
  color: var(--text); 
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.card:hover h3 {
  color: var(--red);
}

.card-text { 
  color: var(--muted); 
  margin: 0; 
  line-height: 1.6;
  font-size: 0.95rem;
}

.card.product { 
  cursor: pointer; 
}

/* Link look for product cards */
.link-look {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.card:hover .link-look {
  color: var(--red);
}

/* Package items list */
.pkg-items { 
  margin: 0; 
  padding: 0; 
  list-style: none; 
  color: var(--muted); 
  font-size: 0.9rem; 
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pkg-items li { margin: 0; }
.pkg-items .more { color: var(--text); font-weight: 600; }

/* ============================================
   PILLS & BUTTONS
   ============================================ */

.pill { 
  padding: 0.35rem 0.75rem; 
  border-radius: 999px; 
  font-size: 0.75rem; 
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff; 
  background: rgba(227, 30, 36, 0.15);
  border: 1px solid rgba(227, 30, 36, 0.3);
}

.pill.ghost { 
  background: rgba(255, 255, 255, 0.05); 
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.btn { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent; 
  border-radius: 999px; 
  padding: 0.75rem 1.4rem; 
  font-weight: 600; 
  font-size: 0.95rem;
  cursor: pointer; 
  text-decoration: none; 
  transition: all 0.3s ease; 
  color: #fff; 
}

.btn.primary, 
.btn.accent { 
  background: var(--accent); 
  color: #fff;
  box-shadow: 0 15px 40px rgba(227, 30, 36, 0.25);
}

.btn.primary:hover, 
.btn.accent:hover { 
  box-shadow: 0 20px 50px rgba(227, 30, 36, 0.35); 
  transform: translateY(-2px); 
}

.btn.secondary { 
  background: rgba(255, 255, 255, 0.08); 
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn.ghost { 
  border-color: rgba(255, 255, 255, 0.15); 
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn:hover { 
  transform: translateY(-2px); 
}

.placeholder { 
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox { 
  position: fixed; 
  inset: 0; 
  z-index: 120; 
  display: grid; 
  place-items: center; 
  padding: 1rem; 
}

.lightbox-backdrop { 
  position: absolute; 
  inset: 0; 
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(8px);
}

.lightbox-content { 
  position: relative; 
  background: linear-gradient(165deg, rgba(40, 40, 40, 1), rgba(30, 30, 30, 1));
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 20px; 
  max-width: 1000px; 
  width: 100%; 
  overflow: hidden; 
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.close-btn { 
  position: absolute; 
  top: 16px; 
  right: 16px; 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  background: rgba(255, 255, 255, 0.08); 
  color: #fff; 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  cursor: pointer; 
  z-index: 10;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(227, 30, 36, 0.2);
  border-color: rgba(227, 30, 36, 0.4);
}

.lightbox-body { 
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.lightbox-media { 
  position: relative;
}

.lightbox-img { 
  width: 100%; 
  border-radius: 12px; 
  object-fit: contain; 
  background: rgba(0, 0, 0, 0.3); 
  max-height: 480px;
}

.nav { 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  border: none; 
  background: rgba(255, 255, 255, 0.1); 
  color: #fff; 
  padding: 0.5rem 0.8rem; 
  border-radius: 12px; 
  cursor: pointer; 
  font-size: 2rem;
  transition: all 0.3s ease;
}

.nav:hover {
  background: rgba(227, 30, 36, 0.3);
}

.nav.left { left: 12px; }
.nav.right { right: 12px; }

.thumbs { 
  display: flex; 
  gap: 0.5rem; 
  margin-top: 0.8rem; 
  overflow-x: auto; 
  padding-bottom: 0.4rem; 
}

.thumb { 
  border: 2px solid transparent; 
  border-radius: 10px; 
  overflow: hidden; 
  background: rgba(0, 0, 0, 0.3); 
  padding: 2px; 
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumb img { 
  width: 68px; 
  height: 52px; 
  object-fit: cover; 
  display: block;
  border-radius: 6px;
}

.thumb.active,
.thumb:hover { 
  border-color: var(--accent); 
}

.lightbox-text { 
  padding: 0.5rem 0.3rem;
  color: var(--muted);
}

.lightbox-text h3 { 
  color: var(--text); 
  margin: 0 0 1rem;
  font-size: 1.6rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-text .eyebrow:first-child {
  display: none;
}

.lightbox-text .card-text {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Package items in lightbox */
.package-items-section {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 1rem;
}

.package-items-section .eyebrow {
  display: block !important;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.1em;
}

.lightbox-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lightbox-items li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.2rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 768px) {
  .lightbox-body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  
  .lightbox-text h3 {
    flex-basis: 100%;
    margin-bottom: 1.5rem;
  }
  
  .lightbox-media {
    flex: 0 0 55%;
  }
  
  .lightbox-text {
    flex: 1;
    padding-left: 1rem;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .hero { 
    padding: clamp(3rem, 6vw, 4rem) 5%; 
  }
  
  #packages,
  #products {
    padding: clamp(3rem, 6vw, 4rem) 5%;
  }
  
  .card-img { 
    aspect-ratio: 16 / 10; 
  }
  
  /* Lightbox Mobile - kleiner und scrollbar */
  .lightbox {
    padding: 0.5rem;
    align-items: flex-start;
    overflow-y: auto;
  }
  
  .lightbox-content {
    max-height: none;
    margin: 0.5rem 0;
    border-radius: 16px;
  }
  
  .lightbox-body { 
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .lightbox-img {
    max-height: 200px;
    border-radius: 10px;
  }
  
  .lightbox-media,
  .lightbox-text {
    flex: none;
    width: 100%;
  }
  
  .lightbox-text h3 {
    font-size: 1.3rem;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .lightbox-text .card-text {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  
  .thumbs {
    margin-top: 0.5rem;
  }
  
  .thumb img {
    width: 50px;
    height: 38px;
  }
  
  .close-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  
  .package-items-section {
    padding: 0.8rem 1rem;
  }
  
  .lightbox-items li {
    font-size: 1rem;
  }
  
  .package-track,
  .product-grid { 
    grid-template-columns: 1fr; 
  }
  
  /* Mobile: Pfeile ausblenden */
  .nav { 
    display: none; 
  }
  
  .section-header {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* Package card sizing */
.card.package { 
  max-width: 100%; 
}

.card.package .card-img { 
  aspect-ratio: 4 / 3; 
  max-height: 200px; 
}

.card.package .card-body { 
  padding: 1rem 1.2rem 1.2rem; 
  gap: 0.5rem; 
}

.card.package h3 { 
  font-size: 1.05rem; 
}

/* CTA Buttons container */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
