/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d0d;
  --surface:   #161616;
  --surface2:  #1e1e1e;
  --gold:      #c9a227;
  --gold-dim:  #a07e18;
  --text:      #e8e8e8;
  --text-muted:#9a9a9a;
  --border:    #2a2a2a;
  --radius:    6px;
  --nav-h:     68px;

  /* Per-card gradient palette (6 variants) */
  --g1: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --g2: linear-gradient(135deg, #2d1b1b 0%, #4a2020 50%, #7a2e2e 100%);
  --g3: linear-gradient(135deg, #1b2d1b 0%, #204a20 50%, #2e6e2e 100%);
  --g4: linear-gradient(135deg, #2d2b1b 0%, #4a4220 50%, #6e5e2e 100%);
  --g5: linear-gradient(135deg, #1b1b2d 0%, #20204a 50%, #2e2e7a 100%);
  --g6: linear-gradient(135deg, #2d1b2d 0%, #4a204a 50%, #7a2e6e 100%);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  line-height: 1.25;
}

/* ── Utility ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-dim); border-color: var(--gold-dim); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #000; }

.btn-full { width: 100%; text-align: center; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(13,13,13,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}
.nav-logo {
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 55px;
  width: auto;
  display: block;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin-left: auto;
}
.nav-menu a {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--gold); }

/* Social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}
.nav-social a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nav-social a:hover { color: var(--gold); }
.social-icon {
  width: 18px;
  height: 18px;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  margin-left: 1rem;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}

/* Hamburger */
#nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0.25rem;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.8) 100%),
    radial-gradient(ellipse at 30% 40%, #1a0a00 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, #00001a 0%, transparent 60%),
    var(--bg);
  padding: var(--nav-h) 1.5rem 4rem;
}
.hero-content { max-width: 700px; }
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.hero-dates {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Impact", sans-serif;
  font-style: normal;
  font-weight: 400;
  color: #fff;
  font-size: 2.2rem;
  transition: color 0.2s;
  margin-bottom: 0.6rem;
}
.hero-venue-address {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.hero-venue-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-venue-address:hover { color: var(--gold); }
.hero-map-icon {
  width: 2em;
  height: 2em;
  flex-shrink: 0;
}

/* ── Film strip decoration ── */
.filmstrip {
  display: flex;
  gap: 0;
  margin: 3rem 0 1rem;
  overflow: hidden;
  opacity: 0.25;
}
.filmstrip-hole {
  width: 18px; height: 12px;
  border: 2px solid var(--text-muted);
  border-radius: 2px;
  flex-shrink: 0;
  margin: 0 4px;
}

/* ── Sections ── */
section { padding: 5rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* ── Schedule / Grid ── */
#schedule { background: var(--surface); }

#movies-grid {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  align-items: center;
}

.movie-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  width: min(100%, 560px);
}
.movie-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}
.card-link {
  display: flex;
  flex-direction: row;
  width: 100%;
}

/* Poster */
.card-poster {
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  align-self: stretch;
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; }

/* Per-card gradient placeholder using nth-child */
.poster-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.movie-card:nth-child(6n+1) .poster-placeholder { background: var(--g1); }
.movie-card:nth-child(6n+2) .poster-placeholder { background: var(--g2); }
.movie-card:nth-child(6n+3) .poster-placeholder { background: var(--g3); }
.movie-card:nth-child(6n+4) .poster-placeholder { background: var(--g4); }
.movie-card:nth-child(6n+5) .poster-placeholder { background: var(--g5); }
.movie-card:nth-child(6n+0) .poster-placeholder { background: var(--g6); }

/* Card icon */
.poster-placeholder::after {
  content: "🎬";
  font-size: 1.4rem;
  opacity: 0.3;
}

.card-body {
  padding: 0.75rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 0.2rem;
}
.card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.2rem 0;
}
.card-director {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin: 0;
}
.card-meta {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0;
}
.card-date {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}
.card-date--spaced {
  margin-top: 0.75rem;
}
.card-time {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}
.card-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

/* ── About ── */
#about { background: var(--bg); }

.about-page-title {
  text-align: center;
  margin-bottom: 2rem;
}

.about-section {
  margin-bottom: 3.5rem;
  text-align: center;
}
.about-section:last-child { margin-bottom: 1rem; }

.about-subheading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
}
.about-inner p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-contact {
  margin-top: 2rem;
}
.about-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.about-link svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}
.about-link:hover { color: var(--gold); }

.support-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.support-logo-link img {
  height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.support-logo-link:hover img { opacity: 1; }

.support-list {
  list-style: none;
  margin: 1rem auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.support-list li {
  color: var(--text-muted);
  font-size: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.sponsors-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0.5rem auto 0;
  max-width: 960px;
}
.sponsors-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.sponsors-grid li img {
  max-width: 100%;
  height: 55px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.sponsors-grid li img:hover { opacity: 1; }

@media (max-width: 700px) {
  .sponsors-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Film strip decoration */
.filmstrip-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 3rem 0;
  opacity: 0.15;
}
.filmstrip-row span {
  display: block;
  width: 28px;
  height: 18px;
  border: 2px solid var(--gold);
  border-radius: 2px;
}

/* ── Home page compact layout ── */
.home .hero {
  min-height: unset;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 0;
}
.home .hero-eyebrow { margin-bottom: 0.5rem; }
.home .hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
}
.home .hero-tagline { margin-bottom: 4.5rem; }
.home .hero-dates { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.hero-dates:hover { color: var(--gold); }
.hero-cinema-icon { width: 0.9em; height: 0.9em; flex-shrink: 0; opacity: 0.85; }
.home .hero-venue-address { margin-bottom: 1.5rem; }

.home #info { padding: 0 0 2rem; }
.home .info-grid { display: flex; justify-content: center; }
.home .info-card { padding: 1.25rem 1.5rem; }
.home .info-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.home .info-card h3 { margin-bottom: 0.5rem; }
.home .info-card p { font-size: 0.9rem; line-height: 1.6; }
.home .info-list { gap: 0.4rem; }
.home .info-list li { font-size: 0.9rem; }


.home footer { padding: 1.25rem 0; }

/* ── Info cards ── */
#info { background: var(--bg); }

.info-grid {
  display: flex;
  justify-content: center;
}

.info-tagline {
  font-family: "Playfair Display", serif;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.info-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.info-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  text-align: center;
}
.info-card p + .info-list {
  margin-top: 1rem;
}
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.info-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.hero-cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
}
.info-cta {
  text-align: center;
  margin-top: 4.5rem;
}
.hero-venue-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .info-card { width: 90%; }
}

/* ── Past Editions ── */
.past-page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.past-edition {
  margin-bottom: 3.5rem;
}
.past-edition:last-child { margin-bottom: 0; }

.past-year {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.past-films-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.past-film-card {
  width: 160px;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
}
a.past-film-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
a.past-film-card:hover .past-poster img,
a.past-film-card:hover .past-poster-placeholder {
  transform: scale(1.05);
}

.past-poster {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
}
.past-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.past-poster-placeholder {
  width: 100%; height: 100%;
  background: var(--g1);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s;
}
.past-film-card:nth-child(4n+1) .past-poster-placeholder { background: var(--g1); }
.past-film-card:nth-child(4n+2) .past-poster-placeholder { background: var(--g2); }
.past-film-card:nth-child(4n+3) .past-poster-placeholder { background: var(--g3); }
.past-film-card:nth-child(4n+0) .past-poster-placeholder { background: var(--g4); }
.past-poster-placeholder::after { content: "🎬"; font-size: 2rem; opacity: 0.3; }

.past-film-title {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  color: #fff;
  padding: 0.75rem 0.85rem 0.2rem;
  line-height: 1.35;
}
.past-film-director {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0 0.85rem 0.75rem;
}
.past-special-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  margin: 0 0.85rem 0.75rem;
}

/* ── Impressum ── */
#impressum {
  margin: 3.5rem 0 3rem;
  padding: 2.5rem 0;
}

#impressum .section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.impressum-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.impressum-block h3 {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.impressum-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.impressum-block a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.impressum-block a:hover { color: var(--gold-dim); }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
}
.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.footer-impressum a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.85rem;
}
.footer-impressum a:hover { color: var(--gold); }

/* ── Movie Detail Page ── */
.detail-page {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 5.5rem;
  min-height: 100vh;
}
.detail-back {
  display: inline-block;
  padding: 1.5rem 0 0.5rem;
  color: var(--gold);
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.detail-back:hover { opacity: 0.75; }

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  padding: 2rem 0 4rem;
}

.detail-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.detail-poster {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2/3;
  background: var(--surface2);
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-placeholder--large {
  width: 100%; height: 100%;
  background: var(--g1);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  opacity: 0.5;
}
.poster-placeholder--large::after { content: "🎬"; }

.meta-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.meta-table th, .meta-table td {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.meta-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 45%;
  padding-right: 0.5rem;
}
.meta-table td { color: var(--text); }

.detail-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 0.5rem;
}
.detail-alt-title {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.section-label {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.detail-synopsis {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.trailer-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface2);
}
.trailer-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.trailer-placeholder {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.not-found {
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 220px 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .impressum-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .nav-logo-img { height: 38px; }

  .nav-inner { gap: 0; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(13,13,13,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
    margin-left: 0;
  }
  .nav-menu.open { display: flex; }

  .nav-menu a { font-size: 1rem; }
  .lang-switcher { margin-left: 0; }
  .nav-social { margin-left: 0; }

  .card-poster { width: 90px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { max-width: 280px; margin: 0 auto; }
}
