/* ───────────────────────────────────────────────────────────────────────────
   Heltec Wireless Paper – Projekt-Schauseite
   Ergänzt ../style.css (nutzt dieselben Farb-Tokens aus :root)
   ─────────────────────────────────────────────────────────────────────────── */

.container-wide { max-width: 920px; }

/* Zurück-Link */
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 4px 0 14px;
}
.backlink:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero-xl { text-align: center; padding: 14px 0 4px; margin-bottom: 14px; }
.hero-xl .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-xl h1 {
  font-size: 2.7rem;
  line-height: 1.06;
  margin: 0 0 14px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-xl .lead { font-size: 1.1rem; max-width: 62ch; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; }
.badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
}
.badge-green { border-color: var(--accent); color: #8fe3a6; }
.badge-blue  { border-color: var(--blue);   color: #9cc7fb; }

/* ── Sektionen ──────────────────────────────────────────────────────────── */
.section { margin: 40px 0; }
.sec-head { margin-bottom: 18px; }
.sec-title { font-size: 1.45rem; margin: 0 0 4px; }
.sec-title .em {
  background: linear-gradient(90deg, var(--accent), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-sub { color: var(--muted); margin: 0; }

/* ── Bild-Platzhalter ("Bilder folgen") ─────────────────────────────────── */
.media-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(45deg, #0c1118, #0c1118 12px, #0e141c 12px, #0e141c 24px);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  min-height: 260px;
  padding: 24px;
  text-align: center;
}
.media-ph .ic { font-size: 2.4rem; opacity: 0.75; }
.media-ph b { color: var(--text); font-weight: 600; }
.media-ph small { font-size: 0.8rem; }

/* ── Galerie ────────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gallery .media-ph { min-height: 160px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 7px; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* ── Highlights ─────────────────────────────────────────────────────────── */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.highlight .ic { font-size: 1.7rem; }
.highlight h3 { margin: 9px 0 6px; font-size: 1.02rem; }
.highlight p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ── Technische Daten ───────────────────────────────────────────────────── */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.spec {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.spec .k { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.spec .v { font-size: 1.06rem; font-weight: 700; margin-top: 4px; }
.spec .v small { font-weight: 400; color: var(--muted); font-size: 0.8rem; }

/* ── Stückliste ─────────────────────────────────────────────────────────── */
.bom-wrap { overflow-x: auto; }
.bom { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.bom th, .bom td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.bom thead th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.bom tbody tr:hover { background: var(--bg-soft); }
.bom td.qty { text-align: center; white-space: nowrap; font-weight: 600; }
.bom td b { color: var(--text); }
.bom .note { color: var(--muted); font-size: 0.85rem; }

/* ── 3D-Druck ───────────────────────────────────────────────────────────── */
.print-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.dl-row .btn { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.tag-soon {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 999px; background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text);
  margin-left: 8px;
}

/* ── Call-to-Action ─────────────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 32px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(46, 164, 79, 0.16), rgba(68, 147, 248, 0.12));
  border: 1px solid var(--border);
}
.cta h2 { font-size: 1.45rem; margin: 0 0 8px; }
.cta p { color: var(--muted); margin: 0 auto 20px; max-width: 50ch; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }

@media (max-width: 520px) {
  .hero-xl h1 { font-size: 2rem; }
  .sec-title { font-size: 1.25rem; }
}

/* ───────────────────────────────────────────────────────────────────────────
   Fotos, Animationen & Interaktion
   ─────────────────────────────────────────────────────────────────────────── */

/* Hero-Foto mit Glow + sanftem Zoom */
.hero-photo {
  position: relative;
  margin: 10px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.hero-photo img { display: block; width: 100%; height: auto; transition: transform 0.7s ease; }
.hero-photo:hover img { transform: scale(1.045); }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 17, 23, 0.55));
  pointer-events: none;
}
.hero-photo .cap {
  position: absolute; left: 16px; bottom: 13px; z-index: 2;
  font-size: 0.86rem; color: #e7eef6; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

/* einfaches Foto (Gehäuse-Sektion) */
.photo {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
}

/* Galerie-Shots: Hover-Zoom, klickbar (Lightbox) */
.gallery .shot {
  position: relative; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--border);
  cursor: zoom-in; aspect-ratio: 3 / 2; background: #0a0e14;
}
.gallery .shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.gallery .shot:hover img { transform: scale(1.09); }
.gallery .shot::after {
  content: "🔍"; position: absolute; top: 8px; right: 9px;
  font-size: 0.85rem; opacity: 0; transition: opacity 0.2s ease;
}
.gallery .shot:hover::after { opacity: 0.85; }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Hover-Lift für Karten/Specs */
.highlight, .spec { transition: transform 0.18s ease, border-color 0.18s ease; }
.highlight:hover { transform: translateY(-3px); border-color: var(--blue); }
.spec:hover { transform: translateY(-2px); border-color: var(--accent); }

/* Austria-Akzent (Rot-Weiß-Rot) */
.at-stripe {
  display: inline-block; width: 30px; height: 11px; border-radius: 3px;
  vertical-align: middle; margin-right: 7px;
  background: linear-gradient(180deg, #c8102e 0 33%, #fff 33% 66%, #c8102e 66% 100%);
  border: 1px solid rgba(255,255,255,0.25);
}

/* subtiler Puls auf grünen Badges */
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 164, 79, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(46, 164, 79, 0.14); }
}
.badge-green { animation: pulse-soft 3.6s ease-in-out infinite; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(1, 4, 9, 0.93);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7); }
.lightbox .lb-close {
  position: absolute; top: 16px; right: 24px;
  font-size: 2.1rem; color: #fff; cursor: pointer; line-height: 1; opacity: 0.85;
}
.lightbox .lb-close:hover { opacity: 1; }

/* Respektiere Bewegungs-Reduktion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-green { animation: none; }
  .hero-photo:hover img, .gallery .shot:hover img { transform: none; }
}
