/* ===== Variables ===== */
:root {
  --bg: #0c0c0c;
  --text: #ddd8ce;
  --text-muted: #8a8682;
  --text-secondary: rgba(221, 216, 206, 0.75);
  --accent: #c8a86b;
  --divider: rgba(221, 216, 206, 0.08);
  --overlay-bg: rgba(12, 12, 12, 0.92);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Overpass', Helvetica, Arial, sans-serif;
  --font-mono: 'Overpass Mono', 'Courier New', monospace;
  --max-width: 860px;
  color-scheme: dark;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  opacity: 0;
  animation: body-in 0.9s ease forwards;
}

@keyframes body-in { to { opacity: 1; } }

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

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.65; }

/* ===== Header ===== */
.site-header {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(50%) brightness(0.28);
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.logo-link { display: inline-block; }

.site-logo {
  max-height: 76px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ===== Main ===== */
#main { min-height: 60vh; }

/* ===== Film List ===== */
.film-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* ===== Film Entry ===== */
.film-entry {
  position: relative;
  padding: 64px 0;
  border-top: 1px solid var(--divider);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.film-entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.film-entry:first-child {
  border-top: none;
  padding-top: 0;
}

.film-index {
  display: block;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.film-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.film-subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ===== Video ===== */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  margin-bottom: 28px;
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===== Film Meta ===== */
.film-roles {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.film-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 16px;
}

.festival-list {
  list-style: none;
  margin-bottom: 16px;
}

.festival-list li {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  padding: 3px 0;
}

.festival-list li::before {
  content: '— ';
  opacity: 0.35;
}

.festival-list a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.festival-list a:hover { color: var(--text); opacity: 1; }

.film-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
}

.film-links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.film-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.film-links a:hover { color: var(--text); opacity: 1; }
.film-links a:hover::after { width: 100%; }

/* ===== Single Pages ===== */
.content-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

.page-content {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.85;
}

.page-content p { margin-bottom: 1.2em; }

.page-content h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 2.5em 0 0.8em;
}

.page-content h3 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 2em 0 0.5em;
}

.page-content a { color: var(--accent); }
.page-content strong { font-weight: 600; color: var(--text); }

/* ===== PGP Page ===== */
.pgp-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.pgp-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

.pgp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.pgp-card {
  border: 1px solid var(--divider);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s;
}

.pgp-card:hover {
  border-color: rgba(200, 168, 107, 0.3);
}

.pgp-email {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.pgp-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pgp-fingerprint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  cursor: pointer;
  position: relative;
  transition: opacity 0.15s;
}

.pgp-fingerprint:hover { opacity: 0.75; }

.pgp-fingerprint span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.06em;
}

.pgp-copied {
  position: absolute;
  inset: -6px -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--overlay-bg);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.pgp-fingerprint.is-copied .pgp-copied { opacity: 1; }
.pgp-fingerprint.is-copied span { opacity: 0; }

.pgp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--divider);
  transition: color 0.2s;
}

.pgp-link:hover {
  color: var(--accent);
  opacity: 1;
}

/* ===== Impressum Page ===== */
.imprint-card {
  border: 1px solid var(--divider);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 50%;
  margin: 0 auto;
  transition: border-color 0.2s;
}

.imprint-card:hover {
  border-color: rgba(200, 168, 107, 0.3);
}

.imprint-law {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.imprint-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.imprint-address {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.imprint-address span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
}

.imprint-email {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
  transition: color 0.2s;
}

.imprint-email:hover {
  color: var(--accent);
  opacity: 1;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 32px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); opacity: 1; }

/* ===== Light Mode ===== */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2efe9;
    --text: #1c1a17;
    --text-muted: #6b6660;
    --text-secondary: rgba(28, 26, 23, 0.7);
    --accent: #7c5c00;
    --divider: rgba(26, 24, 21, 0.1);
    --overlay-bg: rgba(242, 239, 233, 0.95);
    color-scheme: light;
  }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .site-header { height: 180px; }
  .site-logo { max-height: 58px; }
  .film-list { padding: 48px 16px 80px; }
  .film-entry { padding: 48px 0; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}
