/* ==========================================================
   BILDMONTEURE – Single Page
   Weiß · Akzente Dunkelviolett #370046 · Signal Knallgrün #21E50C
   (Dunkle Variante liegt in backup-dunkel/)
   ========================================================== */

:root {
  /* Markenfarben */
  --violet: #370046;
  --green: #21E50C;
  --marker: rgba(33, 229, 12, .38);   /* Textmarker */

  /* Flächen und Text */
  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --fg: #141414;
  --fg-rgb: 20, 20, 20;
  --surface: #f5f4f2;
  --grey: #6f6c73;
  --hair: rgba(var(--fg-rgb), .12);
  --glow: rgba(55, 0, 70, .07);

  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 60px;
  --label-col: minmax(80px, .6fr);
  --content-col: minmax(0, 3fr);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.caps { text-transform: uppercase; letter-spacing: .04em; }

::selection { background: var(--violet); color: #fff; }

a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--fg); color: var(--bg); padding: .5em 1em;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 var(--gutter);
  background: rgba(var(--bg-rgb), .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
}
.brand svg { width: 26px; height: 26px; fill: var(--green); }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: .85rem;
  color: var(--grey);
  transition: color .2s;
}
.nav a:hover { color: var(--fg); }

/* Timecode: weiße Ziffern auf Schwarz, nur der Punkt grün */
.tc {
  font-family: var(--mono);
  font-size: .75rem;
  color: #fff;
  background: #000;
  display: inline-flex; align-items: center; gap: .6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  padding: .42em .75em;
  border-radius: 2px;
}
.tc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .15; } }

/* Fortschritt als Timeline mit Playhead */
.scrub {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--hair);
}
.scrub i {
  position: absolute; inset: 0;
  background: var(--violet);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Start ---------- */

.hero {
  padding: calc(var(--header-h) + clamp(48px, 12vh, 140px)) var(--gutter) clamp(48px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, var(--glow), transparent 70%);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.8rem, 10.6vw, 13.5rem); /* wird per JS exakt auf Breite gesetzt */
  line-height: .9;
  font-weight: 600;
  letter-spacing: -.035em;
  white-space: nowrap;
  align-self: flex-start;
  width: max-content;
}

.hero-meta {
  margin: clamp(28px, 5vh, 56px) 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 2rem;
}
.hero-meta dt {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey);
  margin-bottom: .3rem;
}
.hero-meta dd { margin: 0; font-size: clamp(.95rem, 1.3vw, 1.1rem); font-weight: 300; }

/* ---------- Raster-Sektionen ---------- */

.row {
  display: grid;
  grid-template-columns: var(--label-col) var(--content-col);
  gap: 2rem;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  border-top: 1px solid var(--hair);
  max-width: 1600px;
  margin: 0 auto;
}

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}
.label span {
  display: inline-block;
  min-width: 2.4em;
  color: var(--fg);
}
.label::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  background: var(--violet);
  margin-bottom: 1rem;
}

.content { min-width: 0; }

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);   /* Standard, gleich groß wie die Leistungs-Liste */
  line-height: 1.32;
  font-weight: 300;
  letter-spacing: -.012em;
  max-width: 30em;
  margin: 0;
  text-wrap: pretty;
}
.lead + .lead { margin-top: 1.2em; }
/* "Wir" größer: am Desktop 2.2rem, auf schmalen Bildschirmen kleiner */
#wir .lead { font-size: clamp(1.35rem, 2.6vw, 2.2rem); }
.lead .caps { letter-spacing: .03em; }

/* ---------- Scroll-Highlight: Textmarker ---------- */

mark.hl {
  color: inherit;
  background: linear-gradient(100deg, var(--marker), var(--marker)) no-repeat 0 60% / 0% 78%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .1em;
  margin: 0 -.05em;
  border-radius: .12em;
  transition: background-size 1.1s cubic-bezier(.2, .7, .1, 1);
}
mark.hl.on { background-size: 100% 78%; }

@supports (animation-timeline: view()) {
  mark.hl {
    transition: none;
    animation: highlight linear both;
    animation-timeline: view();
    /* erst markieren, wenn der Text im oberen Bilddrittel angekommen ist */
    animation-range: cover 42% cover 62%;
  }
}
@keyframes highlight {
  from { background-size: 0% 78%; }
  to   { background-size: 100% 78%; }
}

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Leistungen: Fernseher zappt durch die Kanäle ---------- */

/* Kein Festhalten beim Scrollen: der Fernseher schaltet um, während der
   Block ganz normal durchs Bild läuft – dadurch kein Leerraum danach. */
.services {
  display: grid;
  grid-template-columns: minmax(90px, 150px) 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 7vh, 80px);
}

.tv { display: block; width: 100%; height: auto; }
.tv-body { fill: var(--green); }

.ch { display: none; }
.ch.on { display: inline; }

.ch-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  fill: #fff;
  letter-spacing: .5px;
  paint-order: stroke;
  stroke: #000;
  stroke-width: 3px;
}

.tv-static { display: none; }
.tv.zap .tv-static { display: inline; }

/* Kanal 3: Zeichensalat */
.ch-chars text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .5px;
}

/* Kanal 4: durchlaufende Balken */
.ch-roll { animation: roll 1.8s linear infinite; }
.ch-roll-2 { animation-duration: 1.1s; animation-direction: reverse; }
@keyframes roll { from { transform: translateY(-10px); } to { transform: translateY(115px); } }
/* Leistungen als fließende Zeile: Ingest · Projektmanagement · Schnitt · … */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 34em;
}
.services-list li {
  display: inline;
  white-space: nowrap;      /* Begriffe nie in sich umbrechen (z. B. Remote-Workflow) */
  font-size: clamp(1.15rem, 1.7vw, 1.6rem);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.45;
}
.services-list li:not(:last-child)::after {
  content: "\00a0·";        /* geschütztes Leerzeichen + Mittelpunkt; umbrochen wird danach */
  color: var(--grey);
}


/* ---------- Team ---------- */

.team {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team li { padding: .4rem 0; }
.team h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -.01em;
}
/* Telefonnummer wächst beim Überfahren – zum schnellen Abtippen */
.team .tel {
  display: inline-block;
  font-family: var(--mono);
  font-size: .85rem;
  text-decoration: none;
  /* grüner Textmarker wie bei den Links in den Credits */
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 88% / 100% .42em;
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.2, .7, .1, 1), background-size .25s;
}
.team .tel:hover, .team .tel:focus-visible { transform: scale(1.9); background-size: 100% 100%; }

/* LinkedIn und BFS als kleine schwarz-weiße Logos unter der Nummer */
.team-links {
  display: flex; align-items: center; gap: 1.6rem;
  margin: 1rem 0 0;
}
.team-links a { display: block; line-height: 0; opacity: .75; transition: opacity .2s; }
.team-links a:hover, .team-links a:focus-visible { opacity: 1; }
.team-links img { display: block; height: 18px; width: auto; }

/* ---------- Projekte / Render ---------- */

.render {
  max-width: 640px;
  padding: 1.3rem 1.4rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: .8rem;
}
.render-file { margin: 0 0 1rem; overflow-wrap: anywhere; }
.render-bar { height: 6px; background: rgba(var(--fg-rgb), .08); }
.render-bar i {
  display: block; height: 100%;
  width: calc(var(--pct, 0) * 1%);
  background: var(--violet);
  transition: width .2s linear;
}
.render.reset .render-bar i { transition: none; }
.render.stuck .render-bar i { background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.render-status {
  margin: .8rem 0 0;
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}
.render.stuck .render-status { color: var(--violet); }
.note { margin: 1.4rem 0 0; color: var(--grey); font-weight: 300; }

/* ---------- Kontakt ---------- */

.write { margin-top: clamp(40px, 7vh, 80px); }
.write-intro {
  margin: 0 0 .35em;
  font-size: clamp(1.2rem, 1.9vw, 1.8rem);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -.012em;
}
/* E-Mail mit grünem Textmarker – wie die Links in den Credits */
.mail {
  display: inline-block;
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-decoration: none;
  color: var(--fg);
  overflow-wrap: anywhere;
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 88% / 100% .42em;
  transition: background-size .25s;
}
.mail:hover, .mail:focus-visible { background-size: 100% 100%; }

.contact-grid {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem;
  margin-top: clamp(40px, 7vh, 80px);
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
}
address { font-style: normal; font-size: 1.1rem; font-weight: 300; line-height: 1.55; }
.route {
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none;
  border: 1px solid var(--violet);
  padding: .9em 1.3em;
  transition: background .2s, color .2s, border-color .2s;
}
.route:hover { background: var(--violet); border-color: var(--violet); color: var(--green); }

/* ---------- Footer ---------- */

.band {
  height: clamp(28px, 3.4vw, 44px);
  background: url("../assets/streifen-violett.svg") repeat-x 0 0 / auto 100%;
}
@supports (animation-timeline: scroll()) {
  .band {
    animation: stripes-scroll linear both;
    animation-timeline: scroll(root);
  }
  @keyframes stripes-scroll { to { background-position-x: -1600px; } }
}

.foot-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.6rem var(--gutter) 2.2rem;
  font-family: var(--mono); font-size: .75rem; color: var(--grey);
}
.foot a { text-decoration: none; }
.foot a:hover, .imprint summary:hover { color: var(--fg); }
.imprint summary { cursor: pointer; }
.imprint p { margin: .8rem 0 0; line-height: 1.6; max-width: 34em; }

/* ---------- Projekte: Raster (Inhalt aus projects/) ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 14px);
}
.projects[hidden] { display: none; }

.tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-decoration: none;
}
/* harte Schnitte: nur das aktive Bild ist sichtbar, keine Blende */
.tile-media > *, .stage > img, .stage > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  visibility: hidden;
}
.tile-media > .on, .stage > .on { visibility: visible; }

.tile-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: .7rem .7rem .75rem;
}
/* Typ oben rechts */
.tile-type {
  position: absolute; top: .7rem; right: .7rem; z-index: 1;
  padding: .28em .55em;
  font-family: var(--mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: #000;
  color: #fff;
  transition: background .2s, color .2s;
}
/* Titel groß und fett; das Bild bleibt hell, abgedunkelt wird nur hinter der Schrift */
.tile-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.75vw, 1.7rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.015em;
}
.tile-title span {
  background: rgba(0, 0, 0, .72);
  padding: .04em .32em .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.tile:hover .tile-type, .tile:focus-visible .tile-type { background: var(--green); color: #000; }
.tile:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- Projektseite ---------- */

.nav a[aria-current] { color: var(--fg); }

.project {
  max-width: 1600px;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(20px, 4vh, 40px)) var(--gutter) clamp(80px, 12vh, 140px);
}
.project-back {
  margin: 0 0 1.2rem;
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.project-back a { color: var(--grey); text-decoration: none; transition: color .2s; }
.project-back a:hover { color: var(--fg); }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.stage.clickable { cursor: pointer; }
.stage-count {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 1;
  padding: .42em .75em;
  font-family: var(--mono);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  background: #000;
  color: #fff;
  border-radius: 2px;
}

/* Fließtext und Credits haben dieselbe Breite (48rem) */
.project-text { max-width: 48rem; margin-top: clamp(32px, 6vh, 64px); }
.project-type {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey);
}
.project-type::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  background: var(--violet);
  margin-bottom: 1rem;
}
.project-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.project-subtitle {
  margin: .6em 0 0;
  font-size: clamp(1.2rem, 1.9vw, 1.8rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.012em;
  text-wrap: pretty;
}
.project-body {
  margin-top: clamp(28px, 5vh, 48px);
  font-size: clamp(1rem, 1.4vw, 1.25rem);   /* 20 px am Desktop */
  font-weight: 300;
  line-height: 1.65;
}
.project-body p, .project-body ul, .project-body ol, .project-body blockquote { margin: 0 0 1.1em; }
.project-body strong { font-weight: 500; }
.project-body h3, .project-body h4, .project-body h5, .project-body h6 {
  margin: 1.8em 0 .5em; font-size: 1.1em; font-weight: 500;
}
.project-body blockquote { padding-left: 1.2em; border-left: 3px solid var(--violet); }
/* Links im Fließtext: halber grüner Textmarker wie in den Credits und beim Kontakt */
.project-body a, .credits a {
  text-decoration: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.project-body a {
  color: var(--fg);
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 88% / 100% .42em;
  transition: background-size .25s;
}
.project-body a:hover, .project-body a:focus-visible { background-size: 100% 100%; }

.project-link {
  display: inline-block;
  margin-top: .6rem;
  font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none;
  border: 1px solid var(--violet);
  padding: .9em 1.3em;
  transition: background .2s, color .2s;
}
.project-link:hover { background: var(--violet); color: var(--green); }

/* Credits wie der Block unten auf dem Filmplakat: Versalien, schmal, hellgrau,
   kleine Rollen, große Namen, alles in einem Fluss, linksbündig */
.credits {
  max-width: 48rem;
  margin: clamp(72px, 12vh, 140px) auto 0;
  margin-left: 0;
  font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  font-stretch: condensed;
  text-transform: uppercase;
  color: #a9a6ad;
  line-height: 1.12;
}
.credit { display: inline; margin: 0; }
.credit + .credit::before { content: ""; display: inline-block; width: .7em; }
.credit-role {
  font-size: clamp(.68rem, .85vw, .8rem);
  font-weight: 400;
  letter-spacing: .1em;
  vertical-align: .12em;
}
.credit-names {
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 300;
  letter-spacing: .03em;
}
/* Links in den Credits: grüner Textmarker (Knallgrün als Schrift wäre auf Weiß kaum lesbar) */
.credits a {
  color: #7d7a82;
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 88% / 100% .42em;
  transition: background-size .25s, color .2s;
}
.credits a:hover { color: var(--fg); background-size: 100% 100%; }

.project-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(72px, 12vh, 140px);
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
}
.project-pager a {
  text-decoration: none;
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.3;
}
.project-pager a + a { text-align: right; }
.project-pager span {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--grey);
}
.project-pager a:hover { color: var(--violet); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 1.5rem; }
  .label { position: static; }
  .team { grid-template-columns: 1fr; }
  .team li, .team li + li { padding: 1.4rem 0; border-left: 0; }
  .services { grid-template-columns: minmax(70px, 22%) 1fr; gap: 1.2rem; }
  .projects { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 54px; }
  .nav { display: none; }
  .tc { margin-left: auto; font-size: .72rem; }
  .brand span { display: none; }
  .hero-meta { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project-pager { grid-template-columns: 1fr; }
  .project-pager a + a { text-align: left; }
}

/* ---------- Weniger Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  mark.hl { background-size: 100% 78%; }
}
