:root {
  --color-bg: #05060a;
  --color-bg-alt: #0b0c12;
  --color-primary: #00a8e2;
  --color-primary-soft: rgba(0, 168, 226, 0.32);
  --color-text: #f5f5f5;
  --color-muted: #9ca3af;
  --color-border: rgba(255, 255, 255, 0.06);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 25px rgba(0, 168, 226, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #111827 0, transparent 60%),
    radial-gradient(circle at bottom right, #020617 0, transparent 55%),
    #000000;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* Utility */

.section {
  padding-block: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #38bdf8);
  color: #020617;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.75);
}

.btn-outline {
  border-color: var(--color-primary-soft);
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--color-muted);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.logo img {
  height: 44px;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.main-nav a {
  position: relative;
  color: var(--color-muted);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), #38bdf8);
  transition: width 0.18s ease;
}

.main-nav a:hover {
  color: var(--color-text);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Header-Actions etwas kompakter */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

/* Ticketshop-Button mit Icon */
.header-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 1rem 1.1rem;
  white-space: nowrap;
}

.header-ticket-icon {
  font-size: 1.05rem;
}

/* Runde Icon-Buttons für Socials */
.icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.icon-circle:hover {
  border-color: var(--color-primary);
  background: rgba(15, 23, 42, 1);
  box-shadow: 0 0 14px rgba(0, 168, 226, 0.5);
  transform: translateY(-1px);
  color: var(--color-text);
}

.icon-circle svg {
  width: 16px;
  height: 16px;
}

/* Sehr kleine Screens: Ticketshop-Text ausblenden, damit alles in eine Zeile passt */
@media (max-width: 400px) {
  .header-ticket-label {
    display: none;
  }

  .header-ticket-btn {
    padding-inline: 0.7rem;
  }
}


/* Mobile-Optimierung: bei ganz schmalen Screens Ticketshop-Text ausblenden,
   damit garantiert alles in eine Zeile passt */
@media (max-width: 400px) {
  .header-ticket-label {
    display: none;
  }

  .header-ticket-btn {
    padding-inline: 0.7rem;
  }
}


.icon-link {
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  color: var(--color-muted);
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-link:hover {
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
}

/* Hero */

.hero {
  position: relative;
  padding-block: 4.5rem 5rem;
  overflow: hidden;
}

.hero-bg-blur {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at top right, rgba(0, 168, 226, 0.24), transparent 60%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.2), transparent 55%);
  opacity: 0.75;
  filter: blur(12px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(2.7rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  max-width: 36rem;
  font-size: 0.98rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Hero event cards */

.hero-events {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-event-card {
  position: relative;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-event-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(0, 168, 226, 0.23), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hero-event-card:hover::before {
  opacity: 1;
}

.hero-event-header h2 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.hero-event-date {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.hero-event-text {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Hero-Event-Flyer im Hero-Bereich */

.hero-events {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-event-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.97),
    rgba(15, 23, 42, 0.9)
  );
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-event-image {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
}

.hero-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.hero-event-card:hover .hero-event-image img {
  transform: scale(1.06);
  opacity: 0.96;
}

.hero-event-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-event-header h2 {
  font-size: 1rem;
  margin: 0 0 0.1rem;
}

.hero-event-date {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Mobile-Optimierung: etwas kompaktere Karten */
@media (max-width: 640px) {
  .hero-events {
    gap: 0.9rem;
  }

  .hero-event-card {
    padding: 0.8rem;
  }

  .hero-event-header h2 {
    font-size: 0.95rem;
  }

  .hero-event-date {
    font-size: 0.78rem;
  }
}


/* Events */

.events {
  position: relative;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.event-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 168, 226, 0.24), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.event-card:hover::before {
  opacity: 1;
}

.event-card-inner {
  position: relative;
  padding: 1.8rem 1.7rem 1.5rem;
  z-index: 1;
}

.event-header h3 {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.3rem;
}

.event-date {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.event-cta-row {
  margin: 0.6rem 0 0.9rem;
}

.event-tagline {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.event-details {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.event-details li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.event-details span {
  color: var(--color-text);
  font-weight: 500;
  min-width: 4rem;
}

/* Aftermovie */

.aftermovie {
  position: relative;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.video-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.85));
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.video-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.video-card p {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.video-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.7);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.85));
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.gallery-item figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.7rem;
  right: 0.85rem;
  font-size: 0.8rem;
  color: var(--color-text);
}

/* Newsletter */

.newsletter {
  padding-block: 4rem 4.5rem;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 2.1fr);
  gap: 2rem;
  align-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 1.8rem 1.8rem 1.7rem;
}

.newsletter-text h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.newsletter-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  background: rgba(15, 23, 42, 0.98);
}

.newsletter-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.94));
  padding-block: 2.2rem 1.5rem;
  margin-top: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.8rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 22rem;
}

.footer-links h4,
.footer-legal h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(148, 163, 184, 0.9);
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.3rem;
}

.footer-links a,
.footer-legal a {
  color: var(--color-muted);
  transition: color 0.16s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-primary);
}

.footer-sponsor {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.footer-sponsor img {
  max-width: 160px;
}

.footer-bottom {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding-top: 0.9rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
}

/* Screenreader text */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none; /* Wenn du willst, kannst du hier später ein Burger-Menü ergänzen */
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    text-align: left;
  }

  .hero-events {
    order: -1;
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding-block: 3.2rem 4rem;
  }

  .event-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- MOBILE-FIRST EXTRAS --- */

/* Platz für die fixe Ticketbar auf kleinen Screens */
@media (max-width: 767px) {
  body {
    padding-bottom: 4.5rem; /* damit nichts hinter der Ticketbar verschwindet */
  }
}

/* Sticky Ticket-Bar nur auf Mobile anzeigen */
.mobile-ticket-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.9)
  );
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

/* Button in der Leiste schön breit */
.mobile-ticket-bar .btn {
  width: 100%;
  max-width: 480px;
  justify-content: center;
}

@media (min-width: 768px) {
  .mobile-ticket-bar {
    display: none; /* auf Tablet/Desktop ausgeblendet */
  }
}

/* Feintuning für Smartphones (einspaltig, grosse Tap-Ziele, weniger Rand) */
@media (max-width: 640px) {
  .container {
    width: min(1120px, 100% - 1.5rem); /* etwas weniger horizontaler Rand */
  }

  .hero {
    padding-block: 3rem 3.6rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* Events einspaltig mit kompakterem Padding */
  .event-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-card-inner {
    padding: 1.4rem 1.3rem 1.3rem;
  }

  /* Videos untereinander */
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Galerie 2 Spalten für bessere Übersicht */
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Newsletter-Blase einspaltig */
  .newsletter-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Footer einspaltig untereinander */
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* HERO LAYOUT NEU: Text oben, Flyer darunter */

/* Grundlayout: alles untereinander, Mobile-first */
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  align-items: stretch;
  z-index: 1;
}

/* Text mittig begrenzen, damit es nicht zu breit wird */
.hero-text {
  max-width: 720px;
  margin-inline: auto;
}

/* Flyer-Bereich */
.hero-events {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* mobile: einspaltig */
  gap: 1.1rem;
}

/* Sicherstellen, dass evtl. altes order:-1 überschrieben wird */
.hero-events {
  order: 0;
}

/* Desktop/Tablet: Flyer nebeneinander in einer Reihe */
@media (min-width: 900px) {
  .hero-events {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

/* Optional: Feintuning für ganz kleine Screens */
@media (max-width: 640px) {
  .hero-content {
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.3rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* LIGHTBOX STYLES */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none; /* via .is-open aktivieren */
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(0, 0, 0, 0.96));
  backdrop-filter: blur(6px);
  padding: 1.5rem;
}

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

.lightbox-inner {
  position: relative;
  max-width: 1080px;
  width: 100%;
}

.lightbox-figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-image {
  width: 100%;
  max-height: min(80vh, 720px);
  object-fit: contain;
  display: block;
  background: #020617;
}

.lightbox-caption {
  padding: 0.7rem 1rem 0.8rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.94));
}

/* Close-Button */
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: -0.4rem;
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-muted);
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.lightbox-close:hover {
  background: var(--color-primary);
  color: #020617;
  box-shadow: 0 0 18px rgba(0, 168, 226, 0.7);
  transform: translateY(-1px);
}

/* Mobile-Feintuning */
@media (max-width: 640px) {
  .lightbox {
    padding: 1rem;
  }

  .lightbox-image {
    max-height: 70vh;
  }

  .lightbox-close {
    top: -2.1rem;
    right: 0;
  }
}

/* MOBILE: Gallery-Bilder grösser darstellen */
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr); /* 1 Spalte statt 2 */
    gap: 1rem;
  }

  .gallery-item {
    min-height: 220px;          /* sorgt dafür, dass die Kacheln höher werden */
  }
}
