/* ============================================================
   Variablen & Grundlagen
   ============================================================ */
:root {
  
  --paper: #FBFCFB;
  --paper-2: #EDF1ED;
  --ink: #18211B;
  --muted: #79827B;
  --accent: #73CC80;
  --accent-deep: #237A41;   /* dunkleres Grün für lesbaren Text auf hellem Grund */
  --accent-soft: #E6F4E8;
  --line: rgba(24, 33, 27, 0.12);
  --line-strong: rgba(24, 33, 27, 0.28);

  /* --paper: #FBFBF9;
  --paper-2: #F2F0EA;
  --ink: #1C1813;
  --muted: #847F75;
  --accent: #77612A;
  --accent-soft: #EDE8DA;
  --line: rgba(28, 24, 19, 0.12);
  --line-strong: rgba(28, 24, 19, 0.28); */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

#about {
  background-color: var(--paper-2);

}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* kleines Monospace-Label — das „Metadaten"-Signature-Element */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.nav-links a { color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 620px) {
  .nav-links { gap: 18px; font-size: 12px; }
  .nav-links .nav-hide { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: clamp(64px, 14vh, 140px);
  padding-bottom: clamp(48px, 9vh, 96px);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.rotator {
  display: inline-block;
  color: var(--accent);
  min-width: 1ch;
}
.rotator .word {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .rotator .word { transition: none; }
}
.hero p.lede {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
}
.hero .lede strong { color: var(--ink); font-weight: 500; }
.scroll-cue {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.scroll-cue .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
@media (prefers-reduced-motion: reduce) { .scroll-cue .dot { animation: none; } }

/* ============================================================
   Abschnitts-Grundgerüst
   ============================================================ */
.section { padding-block: clamp(64px, 11vh, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4.5vw, 40px);
  letter-spacing: -0.02em;
  margin-top: 16px;
}

/* ============================================================
   Über mich
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
}
.about-text p { font-size: 18px; }
.about-text p + p { margin-top: 18px; }
.skills {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink);
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; }
}

/* ============================================================
   Arbeiten
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}
.project {
  background: var(--paper);
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: background 0.25s ease;
}
.project:hover { background: var(--accent-soft); }
.project .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper-2);
  border-radius: 3px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 22px;
  transition: color 0.25s ease;
}
.project:hover .thumb { color: var(--accent); }
.project .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.project h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.project p {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 6px;
}
.project .more {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.project .more .arrow { transition: transform 0.2s ease; }
.project:hover .more .arrow { transform: translateX(4px); }

/* Audio-Player in einer Projektkarte */
.project audio {
  width: 100%;
  margin-top: 4px;
}

/* ============================================================
   Kontakt
   ============================================================ */
.contact { text-align: center; }
.contact .mailto {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: -0.02em;
  display: inline-block;
  margin-top: 18px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact .mailto:hover { color: var(--accent); border-color: var(--accent); }
.socials {
  margin-top: 36px;
  display: flex;
  gap: 26px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
}
.socials a { color: var(--muted); transition: color 0.2s ease; }
.socials a:hover { color: var(--ink); }

/* ============================================================
   Fusszeile
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Einblenden beim Scrollen
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Projekt-Detailseiten (Film etc.)
   Eigenständige Unterseiten wie ueber-wolke-7.html.
   Nutzt dieselben Variablen wie der Rest — passt sich also
   automatisch ans aktive Theme an.
   ============================================================ */

/* --- Hero mit Standbild aus dem Video --- */
/* Das Standbild wird pro Seite gesetzt:
   <section class="detail-hero" style="--detail-hero-image:url('images/wolke7-still.jpg')"> */
.detail-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(96px, 16vh, 160px) clamp(40px, 8vh, 80px);
  overflow: hidden;
}
.detail-hero::before {            /* Standbild */
  content: "";
  position: absolute; inset: 0;
  background: var(--detail-hero-image, var(--paper-2)) center / cover no-repeat;
  z-index: -2;
}
.detail-hero::after {             /* Abdunkeln für lesbaren Text */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
              rgba(12,16,13,.88) 0%,
              rgba(12,16,13,.45) 50%,
              rgba(12,16,13,.22) 100%);
  z-index: -1;
}
.detail-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--paper);
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 18px;
  max-width: 16ch;
}
.detail-hero .lede {
  margin-top: 24px;
  max-width: 50ch;
  font-size: clamp(17px, 2.4vw, 21px);
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}
.detail-hero .lede strong { color: var(--paper); font-weight: 500; }
/* Scroll-Hinweis wiederverwendet (.scroll-cue), nur heller auf dem Bild */
.detail-hero .scroll-cue {
  margin-top: 40px;
  color: color-mix(in srgb, var(--paper) 85%, transparent);
}

/* --- Textfeld: Idee / Vorgehen --- */
.detail-text { max-width: 64ch;
  h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 4vw, 32px);
    letter-spacing: -0.02em;
    margin-top: 32px;
    margin-bottom: 48px;
  }
}
.detail-text p { font-size: 18px; }
.detail-text p + p { margin-top: 18px; }
.detail-text strong { color: var(--ink); font-weight: 500; }
.detail-text-hidden {
  summary {font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; cursor: pointer; }
  margin-top: 32px;
  background-color: var(--paper-2);
  padding: 16px;
  border-radius: 6px;
 }

/* --- Video --- */
.detail-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.detail-video__frame video {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
/* Klick-zum-Abspielen-Overlay über dem Standbild */
.detail-video__overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  cursor: pointer; border: 0;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  transition: opacity .4s ease, background .25s ease;
}
.detail-video__overlay:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.detail-video__overlay.is-hidden { opacity: 0; pointer-events: none; }
.detail-video__play {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border: 1px solid var(--line-strong);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.detail-video__overlay:hover .detail-video__play {
  transform: scale(1.06);
  background: var(--accent);
  color: var(--paper);
}
.detail-video__play svg { margin-left: 4px; }
.detail-video figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* --- Zurück-Link --- */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: color .2s ease;
}
.detail-back:hover { color: var(--ink); }
.detail-back .arrow { transition: transform .2s ease; }
.detail-back:hover .arrow { transform: translateX(-4px); }

/* --- Mitwirkende (Credits) ---
   Horizontal angeordnete Karten, die auf schmalen Screens umbrechen. */
.credits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(20px, 3.5vw, 36px);
}
.credit { margin: 0; }
.credit__photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
}
.credit__caption { margin-top: 14px; }
.credit__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.credit__role {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
/* ============================================================
   Journalismus-Beitrag (Artikel-Detailseiten)
   Eigenständige Unterseite wie waldbraende.html.
   Nutzt dieselben Variablen wie der Rest — passt sich also
   automatisch ans aktive Theme an.
   ============================================================ */

/* --- Lese-Fortschrittsbalken (nur auf Artikelseiten aktiv) --- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) { .read-progress { transition: none; } }

/* --- Grundgerüst: eine ruhige Lesespalte --- */
.article {
  padding-block: clamp(40px, 8vh, 88px) clamp(64px, 11vh, 128px);
}
.article-inner {
  max-width: 70ch;          /* angenehme Lesebreite */
  margin-inline: auto;
}

/* --- Kopf: Oberzeile, Titel, Lead, Autor:innen --- */
.content-header { margin-bottom: clamp(32px, 6vh, 56px); }

/* Oberzeile — wie das Eyebrow-Signature-Element */
.preheadline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.preheadline::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent-deep);
  display: inline-block;
}

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 20px;
}

.lead {
  margin-top: 24px;
  max-width: 58ch;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.5;
  color: var(--muted);
}
.lead strong { color: var(--ink); font-weight: 500; }

.author-line {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.author-line .author-name { color: var(--ink); }
.author-line time { color: var(--ink); }

/* --- Bild + Bildlegende --- */
.article figure.content-block { margin-block: clamp(32px, 5vh, 56px); }
.figure-image {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
}
.figure-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.figure-caption strong { color: var(--ink); font-weight: 500; }
.figure-caption a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-strong);
}
.figure-caption a:hover { color: var(--ink); }

/* --- Textblöcke: Zwischentitel + Fliesstext --- */
.text-block { margin-block: clamp(28px, 4.5vh, 48px); }
.subheadline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.text-block p { font-size: 18px; line-height: 1.7; }
.text-block p + p { margin-top: 18px; }
.text-block strong { color: var(--ink); font-weight: 500; }

/* Aufzählung im Fliesstext */
.article-list {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-list li {
  position: relative;
  padding-left: 22px;
  font-size: 18px;
}
.article-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 10px; height: 1px;
  background: var(--accent-deep);
}

/* --- Audio-Karte (das wiederkehrende Akzent-Element) --- */
.audio-card {
  margin-block: clamp(24px, 4vh, 40px);
  padding: 20px 22px;
  background: var(--paper-2);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
/* Audio-Karte, die in einem Textblock eingebettet ist: etwas enger */
.text-block .audio-card { margin-block: 24px; }
.audio-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
audio.audio {
  width: 100%;
  display: block;
}

/* --- Ausklapp-Element: Kurzbio / Transkription --- */
.text-toggle {
  margin-block: 20px;
  background: var(--paper-2);
  border-radius: 6px;
  padding: 16px 18px;
}
.audio-card .text-toggle {
  margin-top: 16px;
  margin-bottom: 0;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.text-toggle summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.text-toggle summary::-webkit-details-marker { display: none; }
.text-toggle summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent-deep);
  line-height: 1;
}
.text-toggle[open] summary::before { content: "–"; }
.text-toggle summary:hover { color: var(--accent-deep); }
.text-toggle p { font-size: 16px; line-height: 1.65; margin-top: 14px; }
.text-toggle p + p { margin-top: 12px; }
.about-person p { color: var(--muted); }
.about-person p i { font-style: italic; }

/* --- Fusszeile des Artikels --- */
.article-footer {
  margin-top: clamp(48px, 8vh, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* --- Zurück-Link (wie auf der Filmseite) --- */
.article .detail-back { margin-top: 40px; }