* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

:root{
  --bg: #081018;
  --panel: #0f1a26;
  --text: #f4f9ff;
  --muted: rgba(244,249,255,.72);
  --line: rgba(244,249,255,.12);

  --accent: #7de3ff;
  --accent-2: #b7f7ff;
  --shadow: 0 12px 34px rgba(0,0,0,.38);

  --radius: 16px;
  --container: 1100px;

  --fs-1: clamp(2rem, 4vw, 3rem);
  --fs-2: clamp(1.4rem, 2.5vw, 2rem);
  --fs-3: 1.1rem;
  --fs-sm: .92rem;

  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 650px at 10% -15%, rgba(125,227,255,.22), transparent 55%),
    radial-gradient(900px 550px at 100% 0%, rgba(183,247,255,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container{
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(8,16,24,.72);
  backdrop-filter: blur(10px);
}
.header-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: 12px 0;
}
.brand{
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.brand-mark{
  width: 42px;
  height: 42px;
  aspect-ratio: 1/1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(135deg, rgba(125,227,255,.95), rgba(125,227,255,.22));
  box-shadow: var(--shadow);
  border: 1px solid rgba(244,249,255,.14);
}
.brand-title{ display:block; font-weight: 900; }
.brand-subtitle{ display:block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }

.nav{
  display: none;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: .95rem;
}
.nav a{
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover{
  background: rgba(244,249,255,.06);
  text-decoration: none;
  color: var(--text);
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: .2px;
  text-decoration: none !important;
}
.btn-primary{ background: var(--accent); color: #071018; }
.btn-primary:hover{ opacity: .92; }
.btn-secondary{
  background: rgba(244,249,255,.08);
  border-color: rgba(244,249,255,.12);
}
.btn-secondary:hover{ background: rgba(244,249,255,.12); }
.btn-ghost{
  background: transparent;
  border-color: rgba(244,249,255,.18);
}
.btn-ghost:hover{ background: rgba(244,249,255,.06); }

/* Sections */
.section{ padding: var(--space-6) 0; }
.section.alt{
  background: linear-gradient(180deg, rgba(244,249,255,.03), rgba(244,249,255,.01));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head{ display: grid; gap: 10px; margin-bottom: var(--space-4); }
.section h2{ font-size: var(--fs-2); margin: 0; }
.muted{ color: var(--muted); }
.small{ font-size: var(--fs-sm); }

/* HERO */
.hero{ padding: var(--space-6) 0 var(--space-5); }
.hero-inner{ display: grid; gap: var(--space-4); }

.hero-media{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(244,249,255,.12);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.hero-media img{
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.kicker{
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin: 0 0 10px;
}
.hero h1{ font-size: var(--fs-1); line-height: 1.08; margin: 0 0 12px; }
.lead{ font-size: var(--fs-3); color: var(--muted); margin: 0 0 var(--space-4); }

.hero-cta{ display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-4); }

.hero-highlights{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.hero-highlights li{
  padding: 14px 14px;
  border-radius: var(--radius);
  background: rgba(244,249,255,.06);
  border: 1px solid rgba(244,249,255,.10);
}
.hero-highlights span{ color: var(--muted); }

/* Strip */
.strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244,249,255,.03);
}
.strip-inner{ display: grid; gap: 14px; padding: 14px 0; }
.strip-item{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(244,249,255,.05);
  border: 1px solid rgba(244,249,255,.08);
}
.strip-label{ color: var(--muted); font-size: .92rem; font-weight: 900; }
.strip-value{ font-weight: 900; }

/* Cards */
.grid{ display: grid; gap: 14px; }
.cards{ grid-template-columns: 1fr; }

.card, .panel{
  background: rgba(244,249,255,.05);
  border: 1px solid rgba(244,249,255,.10);
  border-radius: var(--radius);
  padding: 16px;
}

/* Table: internal horizontal scroll */
.table-card{
  max-width: 100%;
  background: rgba(244,249,255,.04);
  border: 1px solid rgba(244,249,255,.10);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(244,249,255,.08);
  white-space: nowrap;
  text-align: left;
  font-size: .95rem;
}
.table th{
  position: sticky;
  top: 0;
  background: rgba(15,26,38,.92);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-weight: 900;
}

/* Timeline */
.timeline{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.timeline li{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(244,249,255,.05);
  border: 1px solid rgba(244,249,255,.10);
}
.time{ font-weight: 900; }
.what{ color: var(--muted); }

/* Details */
.details-grid{ display: grid; gap: 12px; }
.details{
  border-radius: var(--radius);
  border: 1px solid rgba(244,249,255,.10);
  background: rgba(244,249,255,.05);
  overflow: hidden;
}
.details summary{
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.details summary::-webkit-details-marker{ display: none; }
.details summary::after{ content: "＋"; color: var(--muted); }
.details[open] summary::after{ content: "−"; }
.details-body{ padding: 0 16px 14px 16px; border-top: 1px solid rgba(244,249,255,.08); }

.note{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(244,249,255,.20);
  background: rgba(244,249,255,.03);
}
.cta-card{
  margin-top: var(--space-4);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(125,227,255,.35);
  background: linear-gradient(135deg, rgba(125,227,255,.16), rgba(244,249,255,.04));
  display: grid;
  gap: 14px;
  align-items: center;
}

/* Gallery: bigger tiles */
.gallery{
  display: grid;
  grid-template-columns: 1fr 1fr; /* mobile */
  gap: 12px;
  margin-top: 12px;
}
.zoom{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(244,249,255,.12);
}
.zoom:hover{ text-decoration: none; }
.zoom img{
  width: 100%;
  aspect-ratio: 4 / 3; /* größer wirkend als 1:1 */
  object-fit: cover;
  transition: transform .12s ease, opacity .12s ease;
}
.zoom:hover img{ transform: scale(1.01); opacity: .92; }

/* Lightbox: EVERYTHING closes (including image) */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.lightbox:target{
  display: grid;
  place-items: center;
}
.lightbox-closearea{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.74);
}
.lightbox-content{
  position: relative;
  width: min(1100px, 96vw);
  max-height: 88vh;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15,26,38,.88);
  border: 1px solid rgba(244,249,255,.14);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-decoration: none !important;
}
.lightbox-content img{
  max-width: 100%;
  max-height: 76vh;
  border-radius: 14px;
  border: 1px solid rgba(244,249,255,.12);
}
.lightbox-hint{
  font-size: .9rem;
  color: var(--muted);
}

/* Footer */
.footer{
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

/* Desktop */
@media (min-width: 860px){
  .header-inner{ grid-template-columns: 1fr auto auto; }
  .nav{ display: inline-flex; }
  .strip-inner{ grid-template-columns: 1fr 1fr 1fr; }
  .cards{ grid-template-columns: repeat(3, 1fr); }
  .two-col{ grid-template-columns: 1fr 1fr; }
  .cta-card{ grid-template-columns: 1fr auto; }

  /* Hero: full width image, text below */
  .hero-inner{
    grid-template-columns: 1fr; /* important */
  }
  .hero-media img{
    aspect-ratio: 21/9; /* wirkt auf Desktop schön breit */
  }

  /* Gallery bigger: 3 columns on desktop */
  .gallery{
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* ===== Impressionen Layout Overrides ===== */

/* Mobile: Kontakt + Galerie untereinander (bestehend), aber Galerie 1 Spalte = größer */
#impressionen .gallery{
  grid-template-columns: 1fr;   /* 1 Spalte mobil */
  gap: 14px;
}

#impressionen .zoom img{
  aspect-ratio: 16 / 10;        /* größer/kinematografischer als 4:3 */
}

/* Desktop: 1/3 Kontakt, 2/3 Galerie */
@media (min-width: 860px){
  #impressionen .two-col{
    grid-template-columns: 1fr 2fr; /* 1/3 : 2/3 */
    align-items: start;
  }

  /* Galerie innerhalb der rechten 2/3 Fläche: 3 Spalten */
  #impressionen .gallery{
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  #impressionen .zoom img{
    aspect-ratio: 4 / 3;        /* wirkt in 3 Spalten harmonischer */
  }
}

