/* ============ Galactic Pictures ============ */
:root {
  --black: #000000;
  --sage: #b6c5c2;
  --sage-dim: rgba(213, 221, 204, 0.6);
  --font-head: 'Archivo Black', sans-serif;
  --font-main: 'Archivo', sans-serif;
  --font-serif: 'Archivo', sans-serif; /* ehemals Arapey */
  --header-h: 98px;
  --pad-side: 90px;
  --pad-side-lg: clamp(48px, 20vw, 300px); /* grösseres linkes Padding ab Sektion 3 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--sage);
  font-family: var(--font-main);
  overflow-x: hidden;
}

section { scroll-margin-top: var(--header-h); }

a { color: inherit; }

/* ============ Section 00: Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--black);
  display: flex;
  align-items: center;
  z-index: 1000; /* immer zuoberst */
}
.home-btn {
  display: flex;
  align-items: center;
  padding: 20px 50px 20px calc(var(--pad-side) + 8px); /* linkes Padding wie Galactic Pictures, leicht nachjustiert */
}
.home-btn img { width: 58px; height: 58px; display: block; }
.header-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}
.header-nav a {
  font-size: clamp(20px, 2.5vw, 36px);
  color: var(--sage);
  text-decoration: none;
  transition: opacity .2s;
}
.header-nav a:hover { opacity: .6; }

/* ============ Section 01: Hero ============ */
.hero { position: relative; }
.hero-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  overflow: hidden;
  background: var(--black);
}
.hero-video-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;      /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh;  /* cover */
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}
.sound-btn {
  position: absolute;
  top: 152px;
  right: var(--pad-side); /* 90px, bündig mit dem Raster */
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sage-dim);
  font-family: var(--font-main);
  font-size: clamp(20px, 2.2vw, 32px);
  z-index: 5;
  transition: color .2s;
}
.sound-btn:hover { color: var(--sage); }
.sound-btn svg { width: 36px; height: 36px; }
.sound-btn .wave { display: none; }
.sound-btn.on .wave { display: block; }
.sound-btn.on .mute-line { display: none; }
.hero-title-galactic {
  position: absolute;
  left: var(--pad-side); /* wie «Authentisch Witzig Sensibel» */
  bottom: -0.06em;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(60px, 17vw, 250px);
  line-height: 1;
  color: var(--sage);
  z-index: 4;
  pointer-events: none;
}
.hero-title-pictures {
  background: var(--sage);
  display: flex;
  align-items: center;
  padding: 10px 10px 10px var(--pad-side); /* wie «Authentisch Witzig Sensibel» */
  min-height: clamp(90px, 21vw, 305px);
}
.hero-title-pictures span {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(60px, 17vw, 250px);
  line-height: 1;
  color: var(--black);
  white-space: nowrap;
}

/* ============ Section 02: Works / Mediathek ============ */
.works { background: var(--black); }
.works h2 {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 96px);
  color: var(--sage);
  line-height: 1.1;
  padding: 190px var(--pad-side) 190px;
}
.mediathek {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 var(--pad-side) 160px; /* beidseitig 90px */
}
.tile {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  border: none;
  padding: 0;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease;
}
.tile:hover img { transform: scale(1.04); filter: brightness(.45); }
.tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s ease;
  text-align: left;
  pointer-events: none;
}
.tile:hover .tile-label { opacity: 1; }
.tile-label .t {
  font-family: var(--font-head);
  font-size: clamp(16px, 1.6vw, 24px);
  color: var(--sage);
  line-height: 1.2;
}
.tile-label .c {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(13px, 1.2vw, 18px);
  color: var(--sage);
  margin-top: 6px;
}

/* ============ Section 03: Konzept ============ */
.concept {
  background: var(--sage);
  color: var(--black);
  padding: 160px var(--pad-side-lg); /* rechts gleich wie links */
}
.concept h2 {
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 1.15;
  margin-bottom: 60px;
  font-weight: 400;
}
.concept h2 .black { font-family: var(--font-head); }
.concept h2 .regular { font-family: var(--font-main); font-weight: 400; }
.concept p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.35;
  max-width: 1102px;
}

/* ============ Section 04: Team & Kontakt ============ */
.team { background: var(--black); padding-bottom: 60px; }
.team h2 {
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: 1.15;
  color: var(--sage);
  padding: 160px var(--pad-side) 100px var(--pad-side-lg);
  font-weight: 400;
}
.team h2 .black { font-family: var(--font-head); }
.team h2 .regular { font-family: var(--font-main); font-weight: 400; }
.team-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(30px, 6vw, 100px);
  padding: 10px var(--pad-side) 150px var(--pad-side-lg);
}
.team-img { flex: 0 0 clamp(220px, 27vw, 400px); }
.team-img img { width: 100%; display: block; }
.team-text p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.35;
  color: var(--sage);
}
.team-text a { text-decoration: none; }
.team-text a:hover { text-decoration: underline; }

/* ============ Section 05: Side Hustle ============ */
.side-hustle {
  background: var(--sage); /* hellblauer Hintergrund */
  color: var(--black);
}
.sh-video-wrap {
  position: relative;
  width: 100%; /* volle Seitenbreite, randlos */
  aspect-ratio: 16 / 9; /* wird per JS an das echte Videoformat angepasst */
  overflow: hidden;
  background: var(--black);
}
.sh-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: 0;
}
.sh-logo {
  position: absolute;
  inset: 0;
  margin: auto; /* mittig über dem Video */
  width: min(46%, 620px);
  z-index: 2;
  pointer-events: none;
}
.sh-band {
  padding: clamp(80px, 10vw, 160px) var(--pad-side) 60px var(--pad-side); /* links 90px */
}
.sh-band h2 {
  font-size: clamp(40px, 6.6vw, 96px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 60px;
}
.sh-band h2 .black { font-family: var(--font-head); }
.sh-band h2 .regular { font-family: var(--font-main); font-weight: 400; }
.sh-band p {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 40px); /* wie Fliesstext in Sektion 3 */
  line-height: 1.35;
  max-width: 1102px;
}
.sh-band a { color: var(--black); }
.sh-band .copyright {
  margin-top: 120px;
  max-width: none;
  font-size: clamp(16px, 1.8vw, 26px);
}

/* ============ Section 06: Fullframe Mediaplayer ============ */
.player-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 2000; /* über dem Header */
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-stage {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9)); /* 16:9-Fläche des Videos */
  aspect-ratio: 16 / 9;
}
.player-video { position: absolute; inset: 0; cursor: pointer; }
.player-video iframe {
  width: 100%; height: 100%;
  border: 0;
  pointer-events: none; /* Maus-Events gehen an den Player-Overlay, nicht ans iframe */
}
.player-ui {
  position: absolute;
  left: 0; right: 0; bottom: 0; /* sitzt am unteren Rand des Videos (player-stage) */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 40px 24px 60px;
  gap: 12px;
  z-index: 10;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  opacity: 1;
  transition: opacity .4s;
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 26px;
}
.player-overlay.idle .player-ui { opacity: 0; pointer-events: none; }
.player-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 48px);
  color: var(--sage-dim);
  line-height: 1.15;
  margin-bottom: 28px;
}
.player-title small {
  display: block;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 48px);
}
.player-info-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: clamp(18px, 1.8vw, 32px);
  color: var(--sage-dim);
  padding: 0;
  transition: color .2s;
}
.player-info-btn:hover { color: var(--sage); }
.ctrl {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sage-dim);
  display: flex;
  align-items: center;
  transition: color .2s;
}
.ctrl:hover { color: var(--sage); }
.ctrl svg { width: clamp(26px, 2.4vw, 40px); height: clamp(26px, 2.4vw, 40px); }
.ctrl.text-btn {
  font-family: var(--font-main);
  font-size: clamp(18px, 1.8vw, 32px);
}
.progress {
  position: relative;
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.progress::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--sage-dim);
}
.progress-fill {
  position: absolute;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--sage);
}

/* ============ Section 07: Info Modal ============ */
.info-modal[hidden] { display: none; }
.player-overlay[hidden] { display: none; }
.info-modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 20px;
}
.info-box {
  position: relative;
  background: rgba(0, 0, 0, 0.9);
  width: min(1184px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(30px, 5vw, 80px) clamp(24px, 5vw, 100px);
}
.modal-close {
  position: absolute;
  top: 39px;
  right: 41px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sage);
}
.modal-close svg { width: 34px; height: 34px; }
.modal-close:hover { opacity: .6; }
.modal-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(26px, 3.3vw, 48px);
  color: var(--sage);
  line-height: 1.15;
  margin: 40px 0 50px;
}
.modal-title small {
  display: block;
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 48px);
}
.modal-desc {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 32px);
  color: var(--sage);
  line-height: 1.3;
  margin-bottom: 60px;
  max-width: 1010px;
}
.modal-credits { display: flex; gap: clamp(40px, 8vw, 116px); }
.credit-labels {
  font-family: var(--font-main);
  font-weight: 300;
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 40px;
  color: var(--sage);
  white-space: nowrap;
}
.credit-names {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(16px, 1.7vw, 24px);
  line-height: 40px;
  color: var(--sage);
}

/* ============ Responsive ============ */
.only-mobile { display: none; }

/* Touch-Geräte (Handy/Tablet): kein Hover -> Labels dezent permanent einblenden */
@media (hover: none) {
  .tile-label {
    opacity: 1;
    background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.75));
    padding: 16px;
  }
  .header-nav a:hover { opacity: 1; }
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --pad-side: 48px; --header-h: 76px; }
  .home-btn { padding: 14px 28px 14px calc(var(--pad-side) + 6px); }
  .home-btn img { width: 46px; height: 46px; }
  .mediathek { grid-template-columns: repeat(2, 1fr); padding: 0 var(--pad-side) 100px; }
  .works h2 { padding: 120px var(--pad-side); }
  .sound-btn { top: 100px; }
  .team h2, .coming-soon h2 { padding-top: 120px; }
  .concept { padding-top: 120px; padding-bottom: 120px; }
  .player-title { margin-bottom: 18px; }
}

/* Handy */
@media (max-width: 700px) {
  :root { --pad-side: 20px; --header-h: 60px; }

  /* Header */
  .home-btn { padding: 10px 16px 10px calc(var(--pad-side) + 2px); }
  .home-btn img { width: 38px; height: 38px; }
  .header-nav { gap: 18px; }
  .header-nav a { font-size: 17px; }

  /* Hero: Video beginnt unterhalb des Headers, wird nicht verdeckt */
  .hero { padding-top: var(--header-h); background: var(--black); }
  .hero-video-wrap { min-height: 220px; }
  .sound-btn { top: 12px; gap: 8px; font-size: 15px; }
  .sound-btn svg { width: 24px; height: 24px; }

  /* Mediathek */
  .mediathek { grid-template-columns: 1fr; padding: 0 var(--pad-side) 70px; gap: 10px; }
  .works h2 { padding: 80px var(--pad-side); }
  .tile-label {
    opacity: 1; /* statisch sichtbar, kein Hover nötig */
    background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.75));
    padding: 14px;
  }
  .tile-label .t { font-size: 17px; }
  .tile-label .c { font-size: 13px; }

  /* Textsektionen */
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  .title-sep { display: block; font-size: 0; height: 0; } /* " - " wird zum Zeilenumbruch */
  .concept { padding: 80px var(--pad-side); }
  .concept h2 { margin-bottom: 30px; }
  .team h2 { padding: 80px var(--pad-side) 50px; }
  .team-row {
    flex-direction: column;
    gap: 24px;
    padding: 0 var(--pad-side) 70px;
  }
  .team-img { flex: none; width: 100%; max-width: 340px; }
  .sh-band { padding: 70px var(--pad-side) 40px; }
  .sh-band h2 { margin-bottom: 24px; }
  .sh-band .copyright { margin-top: 60px; }

  /* Mediaplayer: Zeitleiste auf eigener Zeile, grössere Touch-Ziele */
  .player-ui { padding: 0 16px 14px; gap: 8px; }
  .player-title { margin-bottom: 6px; }
  .player-bar { flex-wrap: wrap; gap: 6px 18px; }
  .progress { order: -1; flex-basis: 100%; }
  .ctrl { padding: 6px; }
  .ctrl svg { width: 26px; height: 26px; }
  .player-info-btn, .ctrl.text-btn { font-size: 17px; padding: 6px 0; }

  /* Info-Modal */
  .info-modal { padding: 10px; }
  .info-box { max-height: 94vh; padding: 24px 20px; }
  .modal-close { top: 16px; right: 16px; }
  .modal-close svg { width: 26px; height: 26px; }
  .modal-title { margin: 14px 0 24px; }
  .modal-desc { margin-bottom: 30px; }
  .modal-credits { gap: 20px; }
  .credit-labels, .credit-names { line-height: 26px; }
}
