/* KameraTeam Bayern – Stylesheet
   Layout-Idee: nachtblaue Bühne, Bilder randlos wie Filmstills,
   Überschriften im Stil eines Abspanns (breit, Versalien), Metadaten wie Klappen-Beschriftung (Mono).
   Alle Schriften liegen lokal auf dem eigenen Server (keine Google-Fonts-Verbindung). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Farben */
  --night: #0e1215;      /* Seitenhintergrund */
  --slate: #161c20;      /* Flächen, Karten */
  --slate-2: #1e262b;    /* Hover / Rahmen */
  --snow: #eef1f2;       /* Text */
  --mist: #9ba7ae;       /* Nebentext */
  --ice: #b7dbeb;        /* Akzent (Gletscherblau) */
  --line: rgba(238, 241, 242, 0.13);
  --shade: rgba(8, 11, 13, 0.62);

  /* Schrift */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Maße */
  --wrap: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 3px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 300; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: 0.03em; }
p { margin: 0; max-width: 64ch; }

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.label--ice { color: var(--ice); }

/* ---------- Kopfzeile ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--night);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(14, 18, 21, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}
.brand small {
  font-family: var(--mono);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-transform: uppercase;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  color: var(--mist);
  border-radius: var(--radius);
}
.nav a:hover { color: var(--snow); background: var(--slate-2); }
.nav a.nav-cta { color: var(--night); background: var(--ice); font-weight: 600; }
.nav a.nav-cta:hover { background: var(--snow); color: var(--night); }

.menu-toggle { display: none; }
@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--line);
    color: var(--snow);
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter-l);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; font-size: 0.95rem; }
  .nav a.nav-cta { text-align: center; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, 82vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,18,21,0.15) 0%, rgba(14,18,21,0) 35%, rgba(14,18,21,0.55) 70%, var(--night) 100%);
}
.hero .wrap { width: 100%; padding-block: 56px; display: grid; gap: 22px; }
.hero h1 {
  font-size: clamp(2rem, 9.4vw, 7.4rem);
  font-weight: 250;
  letter-spacing: -0.005em;
  line-height: 0.95;
}
.hero h1 b { font-weight: 700; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--snow); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--snow);
  color: var(--snow);
  background: transparent;
  cursor: pointer;
  font-family: var(--body);
}
.btn:hover { background: var(--snow); color: var(--night); }
.btn--solid { background: var(--ice); border-color: var(--ice); color: var(--night); }
.btn--solid:hover { background: var(--snow); border-color: var(--snow); }
.btn--small { padding: 9px 14px; font-size: 0.75rem; }

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Profil */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.profile-text { display: grid; gap: 22px; min-width: 0; }
.profile-text .lead { font-size: 1.25rem; line-height: 1.5; }
.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.genres li {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.creds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.cred {
  display: grid;
  grid-template-rows: 64px auto;
  align-content: start;
  gap: 12px;
  padding: 16px;
  background: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}
.cred:hover { border-color: var(--ice); }
.cred-logo { display: flex; align-items: center; }
.cred-logo img { height: 60px; width: auto; max-width: 100%; object-fit: contain; background: #fff; border-radius: 2px; }
.cred-badge {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ice);
}
.cred span { font-size: 0.92rem; color: var(--mist); }
.cred strong { display: block; color: var(--snow); font-weight: 600; }

.profile-photo { position: relative; min-width: 0; }
.profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

figcaption, .credit {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin-top: 8px;
}

/* Bildband (Filmstreifen) */
.strip {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 6px;
}
.strip figure { margin: 0; min-width: 0; }
.strip img { width: 100%; height: clamp(180px, 28vw, 380px); object-fit: cover; }

/* Team & Equipment */
.team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.team > figure { margin: 0; min-width: 0; }
.team > figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.team-text { display: grid; gap: 20px; min-width: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checklist li .label { padding-top: 3px; }

/* Filme */
.films {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px 24px;
}
.film { display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
.film-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--slate);
  border-radius: var(--radius);
  overflow: hidden;
}
.film-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.film-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  border: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,11,13,.88));
  color: var(--snow);
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  text-align: left;
}
.film-trigger .play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.film-trigger .play::before {
  content: "";
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--snow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%230e1215'/%3E%3C/svg%3E") center / 18px no-repeat;
  flex: none;
}
.film-trigger--ext .play::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1215' stroke-width='2.2'%3E%3Cpath d='M9 7h8v8M17 7 7 17'/%3E%3C/svg%3E");
}
.film:hover .film-media > img { transform: scale(1.035); }
.film-consent {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  background: rgba(14,18,21,.94);
  font-size: 0.85rem;
  line-height: 1.45;
}
.film-consent p { max-width: 44ch; }
.film-consent a { color: var(--ice); }
.film-consent .actions { gap: 8px; }

.film-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.film-body h3 { font-size: 1.05rem; }
.film-body p { color: var(--mist); font-size: 0.95rem; }
.film-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
}
.film-credits .role { color: var(--ice); }
.film--featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 28px; }
.film--featured .film-body h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 300; }
.emmy { display: flex; gap: 14px; align-items: center; }
.emmy img { width: 76px; height: 76px; object-fit: cover; border-radius: 50%; }

/* Referenzen im Abspann-Stil */
.credits-roll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.credits-roll h3 { font-family: var(--mono); font-stretch: 100%; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.16em; color: var(--ice); margin-bottom: 18px; }
.credits-roll ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.credits-roll li {
  font-family: var(--display);
  font-stretch: 112%;
  font-size: 1.15rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ref-note { margin-top: 36px; color: var(--mist); }

/* Bild mit Zitat */
.wide { position: relative; }
.wide img { width: 100%; height: clamp(260px, 46vw, 620px); object-fit: cover; }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.contact-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { margin: 0; }
.contact-list dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--ice); }
.contact-list a:hover { color: var(--ice); }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.85rem; color: var(--mist); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--snow); }

/* Rechtstexte */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal .wrap { max-width: 820px; }
.legal p, .legal li, .legal address { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) { .legal h2 { font-stretch: 100%; } }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 300; margin-bottom: 36px; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: 40px 0 12px; letter-spacing: 0.04em; }
.legal h3 { font-size: 0.95rem; font-stretch: 100%; text-transform: none; letter-spacing: 0; margin: 24px 0 8px; }
.legal p, .legal li { color: #d6dcdf; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--ice); }
.legal address { font-style: normal; }
.todo {
  background: #3a2f12;
  color: #ffe6a6;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.85em;
}

/* Zertifikat */
.cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cert img { width: 100%; border-radius: var(--radius); }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .profile, .team, .contact, .cert { grid-template-columns: minmax(0, 1fr); }
  .film--featured { grid-template-columns: minmax(0, 1fr); }
  .credits-roll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .credits-roll { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .creds { grid-template-columns: minmax(0, 1fr); }
  .checklist li, .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .film-media > img { transition: none; }
  .film:hover .film-media > img { transform: none; }
}

/* ---------- Animationen ---------- */
.hero .genres li { border-color: rgba(238,241,242,.35); background: rgba(14,18,21,.35); backdrop-filter: blur(4px); }
.strip figure, .wide { overflow: hidden; }
.parallax img { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.14); }
.wide.parallax img { transform: translate3d(0, var(--py, 0px), 0) scale(1.2); }

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero img { animation: heroZoom 9s cubic-bezier(.2,.6,.2,1) both; }
.hero .wrap > * { animation: riseIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > :nth-child(2) { animation-delay: .12s; }
.hero .wrap > :nth-child(3) { animation-delay: .24s; }
.hero .wrap > :nth-child(4) { animation-delay: .34s; }
.hero .wrap > :nth-child(5) { animation-delay: .44s; }

/* Einblenden beim Scrollen: nur Elemente, die beim Laden unterhalb des Bildschirms liegen */
.is-pending.reveal { opacity: 0; transform: translateY(36px); }
.is-pending.zoom-in img { transform: translate3d(0, var(--py, 0px), 0) scale(1.35); opacity: .2; }
.reveal { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.zoom-in img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 1.1s ease; }
.strip .zoom-in:nth-child(2) img { transition-delay: .12s; }
.strip .zoom-in:nth-child(3) img { transition-delay: .24s; }
.strip .zoom-in:nth-child(4) img { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .hero img, .hero .wrap > * { animation: none; }
  .parallax img, .wide.parallax img { transform: none; }
  .is-pending.reveal, .is-pending.zoom-in img { opacity: 1; transform: none; }
}

/* Einblendung auf dem Vorschaubild, z. B. „BR Story“ */
.film-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--snow);
  color: var(--night);
  border-radius: 2px;
  pointer-events: none;
}
