/* Gallery — Futures-Ausbildung dark theme */

.gal-hero {
  padding: 100px 0 50px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-soft) 100%);
}
.gal-hero .eyebrow { margin-bottom: 18px; }
.gal-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 0 0 20px;
}
.gal-hero h1 em {
  font-style: italic;
  color: var(--text-2);
}
.gal-hero .sub {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: var(--read);
  margin: 0;
}
.gal-hero .sub strong {
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.gal-section {
  background: var(--bg-deep);
  padding: 40px 0 80px;
}

.gal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.gal-filter {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--accent-line);
  color: var(--text-2);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.gal-filter:hover {
  border-color: var(--accent);
  color: var(--text-1);
}
.gal-filter.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-1);
}
.gal-filter .count {
  margin-left: 8px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.gal-filter.active .count { color: var(--text-2); }

.gal-stats {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gal-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 200ms ease, transform 200ms ease;
  display: flex;
  flex-direction: column;
}
.gal-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.gal-tile-img {
  background: #050810;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gal-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-tile-meta {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--accent-line);
}
.gal-tile-lesson {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gal-tile-cat {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

/* Lightbox */
.gal-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 16, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.gal-lb[hidden] { display: none; }
.gal-lb-fig {
  max-width: min(1400px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.gal-lb-fig img {
  max-width: 100%;
  max-height: calc(90vh - 70px);
  object-fit: contain;
  border: 1px solid var(--accent-line);
}
.gal-lb-cap {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-align: center;
}
.gal-lb-cap .cat {
  color: var(--text-3);
  text-transform: uppercase;
  margin-left: 14px;
}
.gal-lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--accent-line);
  color: var(--text-1);
  font-family: var(--mono);
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 180ms ease, background 180ms ease;
}
.gal-lb-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.gal-lb-close {
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
}
.gal-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 26px;
  line-height: 1;
}
.gal-lb-prev { left: 24px; }
.gal-lb-next { right: 24px; }

@media (max-width: 700px) {
  .gal-lb { padding: 14px; }
  .gal-lb-nav { width: 40px; height: 40px; font-size: 22px; }
  .gal-lb-prev { left: 8px; }
  .gal-lb-next { right: 8px; }
}

/* ==================================================================
   HIGHLIGHTS — Auto-Carousel auf der Startseite (index.html #highlights)
   ================================================================== */
.hl-section {
  background: var(--bg-deep);
  padding: 90px 0 100px;
  border-top: 1px solid var(--accent-line);
}
.hl-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 0 0 16px;
}
.hl-section .sub {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: var(--read);
  margin: 0 0 36px;
}
.hl-section .sub strong { color: var(--text-1); }

.hl-pill-row {
  margin: 28px 0 0;
}
.hl-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text-1);
  border-radius: 2px;
}
.hl-pill strong {
  font-variant-numeric: tabular-nums;
  margin: 0 2px;
}

.hl-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.hl-marquee.hl-marquee--bare{
  margin-top: 36px;
  margin-bottom: 8px;
}
.hl-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: hl-scroll 180s linear infinite;
}
.hl-marquee:hover .hl-track { animation-play-state: paused; }

@keyframes hl-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hl-card {
  flex: 0 0 auto;
  width: 280px;
  height: 175px;
  background: var(--bg-card);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 200ms ease, transform 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hl-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.hl-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #050810;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Highlights-Lightbox (eigenständig, nutzt nicht gallery.js) */
.hl-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 16, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hl-lb[hidden] { display: none; }
.hl-lb-fig {
  max-width: min(1400px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hl-lb-fig img {
  max-width: 100%;
  max-height: calc(90vh - 70px);
  object-fit: contain;
  border: 1px solid var(--accent-line);
}
.hl-lb-cap {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-align: center;
}
.hl-lb-cap .cat {
  color: var(--text-3);
  text-transform: uppercase;
  margin-left: 14px;
}
.hl-lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--accent-line);
  color: var(--text-1);
  font-family: var(--mono);
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 180ms ease, background 180ms ease;
}
.hl-lb-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.hl-lb-close {
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  font-size: 22px; line-height: 1;
}
.hl-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 26px; line-height: 1;
}
.hl-lb-prev { left: 24px; }
.hl-lb-next { right: 24px; }

@media (max-width: 700px) {
  .hl-section { padding: 60px 0 70px; }
  .hl-card { width: 220px; height: 138px; }
  .hl-track { animation-duration: 140s; }
  .hl-lb { padding: 14px; }
  .hl-lb-nav { width: 40px; height: 40px; font-size: 22px; }
  .hl-lb-prev { left: 8px; }
  .hl-lb-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hl-track { animation: none; }
  .hl-marquee { overflow-x: auto; }
}
