/* Ritter Production – Gestaltung
   Farben: nur Schwarz, Grau, Blau, Weiß. */

@font-face { font-family: "Plex"; src: url(fonts/ibm-plex-sans-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex"; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Plex Mono"; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #05070c;        /* Nachtschwarz */
  --surface: #10141c;   /* Graphit */
  --line: #1c2330;      /* Linie */
  --muted: #8b95a7;     /* Stahlgrau */
  --blue: #2f6bff;      /* Signalblau */
  --fg: #f2f5fa;        /* Weiß */
  --paper: #eef1f5;     /* helle Abschnitte */
  --paper-2: #dfe4ec;   /* hellgraue Abschnitte */
  --ink: #0b1220;       /* dunkle Schrift auf Hell */
  --ink-2: #3a4456;     /* Fließtext auf Hell */
  --line-light: #c9d1dd;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --sans: "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--blue); text-underline-offset: .2em; }
a:hover { color: #fff; text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
mark { background: var(--blue); color: #fff; padding: 0 .2em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* Gitter im Hintergrund – dezent, mit leichtem Lichtkegel an der Mausposition */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(120, 150, 255, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 150, 255, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 40%, transparent 100%);
}
.grid-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), rgba(47, 107, 255, .09), transparent 70%);
}

/* Marke vor Abschnitten: kleines blaues Quadrat + Mono-Text */
.label { font: 500 clamp(17px, 1.5vw, 20px)/1.4 var(--mono); color: #c3cad6; letter-spacing: .01em; margin: 0 0 22px; display: block; width: fit-content; }
.label::before { content: ""; display: inline-block; width: .55em; height: .55em; background: var(--blue); margin-right: .6em; vertical-align: .02em; }
.contact__line .label { display: inline; margin: 0 12px 0 0; }

/* Kopfzeile */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(5, 7, 12, .92); border-color: var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 32px; }
.logo img { height: 64px; width: auto; }
.site-nav { display: flex; gap: 40px; font-size: 19px; font-weight: 500; letter-spacing: -.005em; }
@media (max-width: 1080px) { .site-nav { gap: 26px; font-size: 17px; } .logo img { height: 54px; } }
.site-nav a { text-decoration: none; color: #c9d0dc; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: #fff; border-color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); font: 400 14px var(--mono); padding: 8px 14px; cursor: pointer; }

/* Banner: Bild/Video über die volle Breite, Text darauf */
.banner { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.banner--hero { min-height: 100vh; min-height: 100svh; border-top: 0; }
.banner__media { position: absolute; inset: 0; z-index: -2; background: var(--surface); }
.banner__bg { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55) brightness(.62) contrast(1.06); }
.banner::before { /* Abdunklung + kühler Blauton für einheitliche Banner */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, rgba(5, 7, 12, .25) 35%, rgba(5, 7, 12, .92) 100%),
    linear-gradient(90deg, rgba(5, 7, 12, .7) 0%, rgba(5, 7, 12, 0) 70%),
    rgba(18, 40, 96, .28);
}
.banner::after { /* Gitter + Passermarken an den Ecken */
  content: ""; position: absolute; inset: 24px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--blue), var(--blue)) left top / 18px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) left top / 1px 18px no-repeat,
    linear-gradient(var(--blue), var(--blue)) right top / 18px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) right top / 1px 18px no-repeat,
    linear-gradient(var(--blue), var(--blue)) left bottom / 18px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) left bottom / 1px 18px no-repeat,
    linear-gradient(var(--blue), var(--blue)) right bottom / 18px 1px no-repeat,
    linear-gradient(var(--blue), var(--blue)) right bottom / 1px 18px no-repeat,
    linear-gradient(to right, rgba(160, 185, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(160, 185, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px;
}
.banner__inner { padding-top: 140px; padding-bottom: clamp(56px, 9vh, 104px); }
.banner__title { font-size: clamp(36px, 5.4vw, 72px); font-weight: 400; max-width: 16ch; margin-bottom: 24px; width: fit-content; }
.banner__text { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: #d5dbe6; max-width: 46ch; }
.hero__claim { font-size: clamp(46px, 8.2vw, 124px); font-weight: 300; letter-spacing: -.035em; line-height: 1; max-width: 13ch; margin-bottom: 32px; width: fit-content; }
.banner--hero .banner__text { max-width: 56ch; }

/* Einleitung */
.intro { padding: clamp(96px, 13vw, 184px) 0 clamp(64px, 8vw, 112px); }
.intro__text { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.18; font-weight: 300; max-width: 26ch; margin: 0; letter-spacing: -.02em; }
.intro__index { list-style: none; margin: clamp(64px, 8vw, 112px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 820px; border-top: 1px solid var(--ink); }
.intro__index li { padding: 20px 24px 0 0; }
.intro__index a { font-weight: 500; font-size: 20px; text-decoration: none; display: inline-block; }
.intro__index a:hover { color: var(--blue); }
.intro__index span { display: block; color: var(--ink-2); font-size: 16px; margin-top: 6px; }

/* Text unter den Bannern */
.section-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 96px); padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(80px, 10vw, 144px); }
.section-body > * { grid-column: 1 / -1; }
.section-body > .prose { grid-column: 1; }
.section-body > .list-block { grid-column: 2; grid-row: 1; align-self: start; }
.prose { max-width: 64ch; color: #d9dee7; }
.prose strong { color: #fff; font-weight: 500; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 17px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 1px; background: var(--blue); }
.section-wrap { position: relative; }
.section-cta { margin: 0; }
.subtopics { margin-top: clamp(48px, 6vw, 80px); }
/* Consulting: drei Spalten mit blauer Oberkante, ohne Kästen */
.subtopics--columns .subtopics__grid { border: 0; gap: clamp(24px, 4vw, 56px); }
.subtopics--columns .subtopic { background: none; border: 0; border-top: 2px solid var(--blue); padding: 22px 0 0; }
.subtopics--columns .subtopic h4 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; }
/* Wissensmanagement: Zeilen – Titel links, Text rechts */
.subtopics--rows .subtopics__grid, .subtopics--rows .subtopics__grid:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; border: 0; border-top: 1px solid var(--line); }
.subtopics--rows .subtopic { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); background: none; border: 0; border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 48px) 0; }
.subtopics--rows .subtopic h4 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 300; margin: 0; }
.subtopics--rows .subtopic p { font-size: 17px; }
/* Filmproduktion: ein hervorgehobener Block */
.subtopics--feature .subtopics__grid { border: 0; }
.subtopics--feature .subtopic { background: var(--surface); border: 0; border-left: 2px solid var(--blue); padding: clamp(28px, 4vw, 48px); max-width: 860px; }
.subtopics--feature .subtopic h4 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; }
.subtopics--feature .subtopic p { font-size: 18px; color: #c9d0dc; }
.subtopics__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.subtopics__grid:has(> :nth-child(4):last-child), .subtopics__grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subtopics__grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.subtopic { background: rgba(5, 7, 12, .85); padding: clamp(24px, 3vw, 36px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subtopic h3, .subtopic h4 { font-size: 22px; font-weight: 500; margin-bottom: 14px; width: fit-content; }
.subtopic p { font-size: 16px; color: #b9c1cf; }
.subtopic p:last-child { margin: 0; }
.quote-band { padding: clamp(80px, 11vw, 160px) 0; }
.quote { margin: 0; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.12; font-weight: 300; letter-spacing: -.02em; max-width: 24ch; }
.btn { display: inline-block; margin-top: 32px; padding: 16px 26px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; border: 1px solid var(--blue); transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: #fff; }

/* Mandate */
.mandates { padding: clamp(80px, 10vw, 144px) 0; }
.mandates__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mandates__list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.mandates__list strong { font-weight: 500; }
.mandates__list span { color: #b9c1cf; }

/* Über uns */
.about { padding: clamp(80px, 10vw, 144px) 0; }
.about__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__inner:not(:has(.about__photo)) { grid-template-columns: 1fr; }
.about__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 8px; }
.about__role { color: var(--muted); }
.about p { max-width: 58ch; }

/* Startbereich: Zeile über dem Leitsatz */
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: clamp(13px, 1.1vw, 16px); color: #d5dbe6; margin-bottom: 28px; }

/* Film als schmaler Teaser: eine Zeile + Link, kein eigener Bereich */
.film-teaser { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.film-teaser .banner__media { position: absolute; inset: 0; z-index: -2; }
.film-teaser::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 7, 12, .92) 0%, rgba(5, 7, 12, .75) 55%, rgba(5, 7, 12, .55) 100%), rgba(18, 40, 96, .25); }
.film-teaser__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: clamp(44px, 5vw, 64px); padding-bottom: clamp(44px, 5vw, 64px); }
.film-teaser .label { margin-bottom: 12px; }
.film-teaser__line { font-size: clamp(24px, 2.6vw, 36px); font-weight: 300; letter-spacing: -.015em; max-width: 30ch; width: fit-content; }
.film-teaser__cta { margin: 0; }
.film-teaser__cta .btn { margin: 0; }
.btn--ghost { background: transparent; border-color: rgba(242, 245, 250, .45); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue); }

/* Logo-Laufband: ruhig, einfarbig, endlos */
.logo-band { padding: 8px 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.logo-band__track { display: flex; width: max-content; animation: logo-scroll 70s linear infinite; mix-blend-mode: multiply; }
.logo-band:hover .logo-band__track { animation-play-state: paused; }
.logo-band__row { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); list-style: none; margin: 0; padding: 0 clamp(20px, 2.5vw, 36px); }
.logo-band__row img { height: clamp(34px, 3.4vw, 46px); width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .7; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-band__track { animation: none; width: auto; }
  .logo-band__row[aria-hidden] { display: none; }
  .logo-band__row { flex-wrap: wrap; justify-content: center; row-gap: 32px; }
}

/* Töne: helle, hellgraue und blaue Abschnitte für den Wechsel beim Scrollen */
.tone-light, .tone-paper { color: var(--ink); background-color: var(--paper);
  /* feines Punktraster statt Gitter: 1,2-px-Punkte im 24-px-Raster, 8 % Deckkraft */
  background-image: radial-gradient(circle at center, rgba(11, 18, 32, .08) 1.2px, transparent 1.6px);
  background-size: 24px 24px; background-position: 12px 12px; }
.tone-paper { background-color: var(--paper-2); }
.tone-light a, .tone-paper a { text-decoration-color: var(--blue); }
.tone-light a:hover, .tone-paper a:hover { color: var(--blue); }
.tone-light .btn:hover, .tone-paper .btn:hover { background: transparent; color: var(--blue); }
.tone-light .label, .tone-paper .label { color: var(--ink-2); }
.tone-light .prose, .tone-light .about p, .tone-light p { color: var(--ink-2); }
.tone-light .prose strong { color: var(--ink); }
.tone-light .ticks, .tone-light .ticks li, .tone-paper .mandates__list, .tone-paper .mandates__list li { border-color: var(--line-light); }
.tone-paper .mandates__list span, .tone-light .about__role { color: var(--ink-2); }
.tone-light .subtopic p { color: var(--ink-2); }
.tone-light .subtopics--rows .subtopics__grid, .tone-light .subtopics--rows .subtopics__grid:has(> :nth-child(4):last-child), .tone-light .subtopics--rows .subtopic { border-color: var(--line-light); }
.tone-dark { background: transparent; }
.tone-blue { background: var(--blue); color: #fff; --box: var(--bg); }

/* Kontakt */
.contact { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(96px, 12vw, 176px) 0; }
.contact h2 { font-size: clamp(36px, 5.4vw, 72px); max-width: 18ch; margin-bottom: 20px; width: fit-content; }
.contact .lead { color: #c9d0dc; font-size: 20px; }
.contact__line { margin: 12px 0 0; font-size: 18px; }
.contact .btn { margin: 24px 0 40px; }

/* Filmseite */
.videos, .formats { padding-top: clamp(80px, 10vw, 144px); }
.formats:last-of-type { padding-bottom: clamp(80px, 10vw, 144px); }
.formats h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 32px; width: fit-content; }
.videos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 32px; }
.video { margin: 0; }
.video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); border: 1px solid var(--line); }
.video figcaption { margin-top: 12px; font-size: 16px; width: fit-content; }
.video figcaption span { display: block; color: var(--muted); font-size: 15px; }

/* Rechtsseiten */
.legal { padding-top: 160px; padding-bottom: 120px; max-width: calc(800px + 2 * var(--gut)); }
.legal h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 40px; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 40px 0 12px; }
.legal h3 { font-size: 18px; font-weight: 500; margin: 28px 0 8px; }
.legal p, .legal li { color: #c9d0dc; font-size: 17px; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Text-Aufbau: Pro Zeile wischt eine blaue Box herein, der Text der Zeile erscheint, die Box zieht sich zurück.
   Sichtbar wird der Text per JavaScript-Klasse (.on / .rv-done), NICHT über eine CSS-Animation:
   läuft in einem Browser keine Animation, erscheint der Text trotzdem – nur ohne Wisch-Effekt.
   Verborgen wird nur über opacity der Wörter: Text bleibt für Tastatur, Screenreader, Suche und Druck erreichbar. */
.js .reveal { position: relative; }
.js .reveal:not(.rv-ready):not(.rv-done) { opacity: 0; }          /* kurz vor dem Zerlegen, verhindert Aufblitzen */
.js .rv-ready .w { opacity: 0; }
.js .rv-ready .w.on, .js .rv-done .w { opacity: 1; }
.js .reveal.btn.rv-ready:not(.rv-done):not(.rv-bg) { background-color: transparent; border-color: transparent; }
.js .reveal:focus-within .w, .js .reveal:focus .w { opacity: 1; }
.reveal-all .reveal, .reveal-all .w { opacity: 1 !important; }
.reveal-all .rv-line { display: none; }
.rv-line { position: absolute; z-index: 1; background: var(--box, var(--blue)); pointer-events: none; transform: scaleX(0); transform-origin: left center; animation: rv-box .3s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes rv-box {
  0% { transform: scaleX(0); transform-origin: left center; }
  50% { transform: scaleX(1); transform-origin: left center; }
  50.01% { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}

/* Mobil */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .site-header__inner { min-height: 80px; }
  .site-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(5, 7, 12, .97); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-header.menu-open { background: rgba(5, 7, 12, .97); }
  .logo img { height: 46px; }
  .section-body { grid-template-columns: 1fr; }
  .subtopics__grid, .subtopics__grid:has(> :nth-child(4):last-child), .subtopics__grid:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; }
  .section-body > .list-block { grid-column: 1; grid-row: auto; margin-top: 40px; }
  .mandates__list li { grid-template-columns: 1fr; gap: 8px; }
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .intro__index { grid-template-columns: 1fr; }
  .intro__index li { padding: 18px 0; border-bottom: 1px solid var(--line-light); }
  .subtopics--rows .subtopic { grid-template-columns: 1fr; gap: 12px; }
  .banner { min-height: 72vh; }
  .banner::after { inset: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-header { transition: none; }
}
