/* ========== Feature Detail Page ========== */

/* Single video wrapper on detail pages (constrains width since .videos-grid is 2-col) */
.feature-video-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* Back link above hero */
.feature-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  text-decoration: none;
  margin-bottom: var(--space-md);
  transition: color var(--transition-fast);
}

.feature-back:hover {
  color: var(--accent-cyan);
}

.feature-back::before {
  content: "←";
  font-size: var(--font-size-base);
}

/* Hero image (large, prominent, glow border) */
.feature-hero-image {
  margin: var(--space-xl) auto var(--space-2xl);
  max-width: 1100px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 30px rgba(37, 202, 216, 0.15),
    0 8px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-accent);
}

.feature-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Intro paragraph below hero */
.feature-intro {
  max-width: 760px;
  margin: 0 auto var(--space-2xl);
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-base);
  text-align: center;
}

/* Section blocks */
.feature-section {
  margin-bottom: var(--space-3xl);
}

.feature-section:last-child {
  margin-bottom: 0;
}

.feature-section h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-heading);
}

.feature-section h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background: var(--accent-cyan);
  margin-right: var(--space-sm);
  vertical-align: -2px;
  box-shadow: var(--glow-cyan);
}

.feature-section-text {
  max-width: 760px;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-xl);
}

.feature-section-text p {
  margin-bottom: var(--space-md);
}

.feature-section-text p:last-child {
  margin-bottom: 0;
}

.feature-section-text ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.feature-section-text ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature-section-text ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* WIP / Hinweis-Box */
.feature-wip-note {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 160, 0, 0.06);
  border-left: 3px solid #ffa000;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  border-radius: var(--border-radius);
}

/* Gallery — 1 or 2 columns depending on image count */
.feature-gallery {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.feature-gallery--two {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .feature-gallery--two {
    grid-template-columns: 1fr;
  }
}

.feature-shot {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all var(--transition-base);
  cursor: zoom-in;
}

.feature-shot:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card-hover), var(--glow-cyan);
  transform: translateY(-2px);
}

.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-shot-caption {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  border-top: 1px solid var(--border-subtle);
}

/* Image fallback — shown if image fails to load */
.feature-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-card),
      var(--bg-card) 10px,
      var(--bg-secondary) 10px,
      var(--bg-secondary) 20px
    );
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-sm);
  text-align: center;
  padding: var(--space-lg);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--border-radius);
}

.feature-hero-image .feature-img-fallback {
  min-height: 320px;
  font-size: var(--font-size-base);
}

/* ========== Lightbox ========== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 16, 20, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--space-xl);
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 0 40px rgba(37, 202, 216, 0.2);
  border: 1px solid var(--border-accent);
}

.lightbox-caption {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 16, 20, 0.85);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  max-width: 80vw;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  background: rgba(13, 16, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: var(--font-size-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(13, 16, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: var(--font-size-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox-prev { left: var(--space-lg); }
.lightbox-next { right: var(--space-lg); }

.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
  }
  .feature-section h2 { font-size: var(--font-size-xl); }
  .feature-intro { font-size: var(--font-size-base); }
}

/* ========== Cards as links (features.html) ========== */
a.card,
a.card:hover {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ========== Funktionen-Kacheln: minimal wie die Value-Props ==========
   Keine schweren Karten-Boxen — die Tiles sitzen als ruhiges Grid auf dem
   Sektions-Hintergrund (wie Schneiden/Reparieren/Verbinden auf der Startseite),
   zentriert, mit dezentem Cyan-Unterstrich bei Hover. Das umrandete Technik-
   Modul-Icon bleibt. „Weniger" = ruhiger, hochwertiger. Rein CSS. */
.features-grid .card {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: border-color var(--transition-base);
}

.features-grid .card:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
  border-bottom-color: var(--accent-cyan);
}

.features-grid .card-icon {
  width: 52px;
  height: 52px;
  padding: 11px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.features-grid .card:hover .card-icon {
  border-color: var(--border-accent);
  background: var(--bg-primary);
}
