/* ============================================================
   AIGELSREITER|WORKS — Main Stylesheet
   DSGVO-konform: Keine externen Ressourcen.
   Fonts: Lokal eingebunden via @font-face.
   
   FONT-SETUP (einmalig):
   Laden Sie Montserrat + Karla als WOFF2 herunter, z.B. via
   https://gwfh.mranftl.com/fonts/montserrat
   https://gwfh.mranftl.com/fonts/karla
   und legen Sie die Dateien in /style/fonts/ ab.
   ============================================================ */

/* --- Local Fonts ------------------------------------------ */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-v33-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-v33-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-v33-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variables -------------------------------------------- */
:root {
  --color-bg:       #111111;
  --color-surface:  #1a1a1a;
  --color-border:   #2e2e2e;
  --color-text:     #d4d4d4;
  --color-muted:    #888888;
  --color-accent:   #c8a96e;
  --color-white:    #f0ede8;
  --font-heading:   'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:      'Karla', Georgia, serif;
  --nav-h:          64px;
  --max-w:          1100px;
  --radius:         3px;
  --transition:     0.25s ease;
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-white); }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   DOM:     input | brand | spacer | nav-links | lang-switcher | hamburger
   Desktop: Brand ── spacer ── [Links] [DE|EN]  (hamburger hidden)
   Mobile:  Brand ── spacer ── [☰] [DE|EN]      (links in dropdown)
   DE|EN is always the rightmost visible element.
   On mobile, hamburger moves left of DE|EN via order.
   ============================================================ */

.nav-toggle { display: none; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,17,17,0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: var(--nav-h);
  min-height: var(--nav-h);
  padding: 0 2rem;
  overflow: hidden;             /* clip links that don't fit — breakpoint handles the rest */
}

.navbar-brand {
  flex-shrink: 0;
}
.navbar-brand a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--color-white);
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}
.navbar-brand a:hover { color: var(--color-accent); }
.navbar-brand .brand-light { font-weight: 400; opacity: 0.65; }

/* Spacer pushes everything right of it to the right edge */
.navbar-spacer { flex: 1; }

.navbar-nav {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.navbar-nav li a {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0 0.75rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color var(--transition), box-shadow var(--transition);
}
.navbar-nav li a:hover,
.navbar-nav li.current a {
  color: var(--color-white);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.lang-switcher {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  margin-left: 1rem;
}
.lang-btn {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: transparent;
  border: none;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.lang-btn:hover { color: var(--color-white); }
.lang-btn.lang-active { color: var(--color-bg); background: var(--color-accent); }
.lang-divider { width: 1px; height: 14px; background: var(--color-border); flex-shrink: 0; }

/* Hamburger — hidden on desktop */
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 6px 4px;
}
.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
}

/* ============================================================
   MOBILE (<= 1020px)
   Top row:  [Brand ─ flex:1 ─] [☰ order:1] [DE|EN order:2]
   Dropdown: [full-width links]
   ============================================================ */
@media (max-width: 1020px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 0;
    align-items: center;        /* center all items vertically */
  }

  /* Brand: flex:1 fills space, but never wraps */
  .navbar-brand {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    min-height: 52px;
  }
  .navbar-brand a {
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  /* Spacer gone on mobile */
  .navbar-spacer { display: none; }

  /* Hamburger: visible, ORDER 1 = left of DE|EN */
  .nav-toggle-label {
    display: flex;
    order: 1;
    align-self: stretch;
    margin-left: 0;
    padding: 0 1rem;
    border-left: 1px solid var(--color-border);
    flex-shrink: 0;
  }

  /* DE|EN: ORDER 2 = always rightmost */
  .lang-switcher {
    order: 2;
    flex-shrink: 0;
    align-self: stretch;
    margin-left: 0;
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--color-border);
    padding: 0 0.75rem;
  }

  /* Nav links: dropdown below top row, hidden until toggle */
  .navbar-nav {
    order: 3;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    flex-shrink: 0;
    border-top: 1px solid var(--color-border);
  }
  .nav-toggle:checked ~ .navbar-nav { display: flex; }

  .navbar-nav li a {
    height: auto;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
  }
  .navbar-nav li a:hover,
  .navbar-nav li.current a {
    box-shadow: none;
    color: var(--color-white);
    border-left: 2px solid var(--color-accent);
    padding-left: calc(1rem - 2px);
  }
}

/* --- Hero / Parallax Banner -------------------------------- */
.hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}
.hero-content {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
}
.hero-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.hero-content p {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* --- Page Container --------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.inner {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* --- Works Section wrapper -------------------------------- */
.works-section {
  background: var(--color-bg);
  padding: 3rem 0 4rem;
}

/* --- Works Grid ------------------------------------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
}

/* --- CSS-only Lightbox ------------------------------------ */
/*
  Technique: Each thumbnail is a <a href="#lb-id"> that shows
  a :target overlay. Close via <a href="#"> inside the overlay.
  No JavaScript needed.
*/
.work-item {
  display: flex;
  flex-direction: column;
}
.work-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
  opacity: 1;
}
.work-thumb:hover img {
  transform: scale(1.04);
  opacity: 0.82;
}
.work-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-icon {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.25s ease, transform 0.25s ease;
  background: rgba(0,0,0,0.25);
}
.play-icon svg { fill: rgba(255,255,255,0.95); margin-left: 4px; }
.work-thumb:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

/* Info box below thumb — centred, dark background */
.work-info {
  padding: 1rem 0.5rem 0.5rem;
  text-align: center;
  flex: 1;
}
.work-info h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.45rem;
}
.work-info p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}
.lightbox:target {
  display: flex;
  animation: lb-in 0.2s ease;
}
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-inner {
  position: relative;
  max-width: 860px;
  width: 92vw;
}
.lightbox video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--color-border);
}
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--color-white); }
.lightbox-bg-close {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.lightbox-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  text-transform: uppercase;
}
/* YouTube notice inside lightbox */
.lightbox-yt {
  text-align: center;
  padding: 2rem;
}
.lightbox-yt p {
  color: var(--color-muted);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}
.btn-yt {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.btn-yt:hover { background: var(--color-white); color: var(--color-bg); }

/* --- Screenings / Filmography / Text pages ---------------- */
.text-section {
  max-width: 780px;
}
.text-section h3 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 2.5rem 0 0.8rem;
  padding-top: 0;
  border-top: none;
}
.text-section h3:first-child { margin-top: 0; }
.text-section p { margin-bottom: 0.5rem; color: var(--color-text); }
.text-section strong { color: var(--color-white); font-weight: 700; }
.text-section a { color: var(--color-accent); }
.text-section a:hover { color: var(--color-white); }

/* Screenings list */
.screening-list { margin: 0; padding: 0; }
.screening-list li {
  display: flex;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.88rem;
}
.screening-year {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  width: 3rem;
  padding-top: 0.05rem;
}

/* Filmography list */
.filmography-list { padding: 0; }
.filmography-item {
  padding: 0.9rem 0;
}
.filmography-item h3 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}
.filmography-item p {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* --- About ------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-img img {
  width: 100%;
  border: 1px solid var(--color-border);
  filter: grayscale(20%);
}
.about-text blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-accent);
  border-left: 3px solid var(--color-accent);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.about-text p { margin-bottom: 1rem; }

/* --- Press ------------------------------------------------
   Layout: 2-column grid, each row = thumbnail left + text right
   (like the original aigelsreiter.at)
---------------------------------------------------------- */
.press-section {
  background: var(--color-bg);
  padding: 3.5rem 0 4rem;
}
.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
/* Each press-item spans full width of its column, row = thumb+text */
.press-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  padding: 1.6rem 1rem 1.6rem 0;
}
.press-row:nth-child(odd)  { padding-right: 2rem; }
.press-row:nth-child(even) { padding-left: 2rem; }

.press-thumb {
  flex-shrink: 0;
  width: 110px;
}
.press-thumb a {
  display: block;
}
.press-thumb img {
  width: 110px;
  height: auto;
  display: block;
  border: 1px solid var(--color-border);
  transition: opacity var(--transition), box-shadow var(--transition);
}
.press-thumb a:hover img {
  opacity: 0.85;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.press-info {
  padding-left: 1.1rem;
  flex: 1;
}
.press-info h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-white);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.press-info p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.6;
}
.press-info strong { color: var(--color-text); }

/* Zoom hint */
.zoom-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--color-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}
.zoom-hint:hover { color: var(--color-white); }
.zoom-hint svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }

/* Press image lightbox — scrollable so full image is readable */
.press-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  overflow-y: auto;          /* KEY: scroll to read full image */
  -webkit-overflow-scrolling: touch;
}
.press-lightbox:target {
  display: block;
  animation: lb-in 0.2s ease;
}
/* Close link covers the entire backdrop */
.press-lightbox-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.press-lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 3rem;
  min-height: 100vh;
}
.press-lightbox-inner a.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(0,0,0,0.4);
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: color var(--transition), background var(--transition);
  z-index: 2;
}
.press-lightbox-inner a.lightbox-close:hover {
  color: #fff;
  background: rgba(0,0,0,0.7);
}
/* The image: show at natural size, centred, scrollable */
.press-lightbox-inner img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  margin-top: 1rem;
}
.press-lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 680px) {
  .press-grid { grid-template-columns: 1fr; }
  .press-row:nth-child(odd)  { padding-right: 0; }
  .press-row:nth-child(even) { padding-left: 0; }
}

/* --- Impressum -------------------------------------------- */
.impressum-block {
  max-width: 720px;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.8;
}
.impressum-block h3 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 2.5rem 0 0.8rem;
  padding-top: 0;
  border-top: none;
}
.impressum-block h3:first-child { margin-top: 0; }
.impressum-block p { margin-bottom: 0.8rem; }
.impressum-block a { color: var(--color-accent); }

/* --- Footer ----------------------------------------------- */
.sub-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
}
.sub-footer a { color: var(--color-muted); }
.sub-footer a:hover { color: var(--color-accent); }

/* --- Page headline (non-hero pages) ----------------------- */
.page-headline {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}
.page-headline h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.page-headline p {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img { max-width: 320px; }
  .press-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; gap: 24px; }
}
