/* ==================================================================
   Julian Aul – Portfolio
   Aufbau dieser Datei:
   1. Farben, Schrift, Abstände (hier kannst du das Design zentral ändern)
   2. Grundlagen
   3. Kopfzeile & Navigation
   4. Hero mit Showreel
   5. Bereiche der Startseite
   6. Fußzeile
   7. Showreel-Fenster
   8. Animationen
   9. Projektseiten
   10. Lightbox (große Fotoansicht)
   11. About-Seite
   12. Kontaktseite
   13. Rechtstexte (Impressum, Datenschutz)
   Mobile-first: Grundregeln gelten fürs Handy, @media (min-width …) ergänzt größere Bildschirme.
   ================================================================== */

/* ---------- 1. Farben, Schrift, Abstände ---------- */
:root {
  --bg: #0d0d0d;          /* Hintergrund, fast schwarz */
  --surface: #161616;     /* etwas hellere Flächen */
  --text: #f2efed;        /* Haupttext, warmes Weiß */
  --muted: #a29d9a;       /* Nebentext, Grau (Kontrast 7:1) */
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ffa6bf;      /* Julians Lieblingsfarbe */
  --accent-ink: #1a0a10;  /* dunkle Schrift auf rosa Buttons */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);       /* Seitenrand: wächst mit dem Bildschirm */
  --section-space: clamp(5rem, 12vw, 10rem);
  --max-width: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* sanftes Abbremsen für alle Animationen */
}

/* Inter wird lokal geladen, sobald die Datei in fonts/ liegt. Bis dahin: Systemschrift. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- 2. Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Sichtbarer Fokus-Rahmen für Tastatur-Nutzer */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Text nur für Screenreader (unsichtbar, aber vorgelesen) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter); top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.accent { color: var(--accent); }

.section {
  padding: var(--section-space) var(--gutter) 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Überschriften: fett, Großbuchstaben, eng – passend zum Logo */
.hero__title,
.section__title,
.cta__title {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.section__title { font-size: clamp(1.75rem, 5vw, 3.5rem); }
.section__note { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;              /* gut mit dem Finger zu treffen */
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--text); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--text); background: rgba(0, 0, 0, 0.15); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.link-arrow {
  display: inline-flex;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.2rem;
  transition: color 0.3s var(--ease);
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- 3. Kopfzeile & Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  transition: background-color 0.4s var(--ease), padding 0.4s var(--ease);
}
/* Sobald gescrollt wird, bekommt die Kopfzeile einen dunklen Hintergrund (Klasse kommt aus main.js) */
.site-header.is-scrolled {
  background: rgba(13, 13, 13, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding-block: 0.85rem;
}

.site-header__logo { position: relative; z-index: 2; }
.site-header__logo img { width: clamp(120px, 14vw, 170px); }

/* Handy: Menü-Knopf mit zwei Strichen */
.nav-toggle {
  position: relative;
  z-index: 2;
  width: 48px; height: 48px;
  margin-right: -12px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bars { position: absolute; left: 12px; top: 23px; width: 24px; height: 2px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle__bars::before { top: -4px; }
.nav-toggle__bars::after  { top: 4px; }
/* Geöffnet: aus den zwei Strichen wird ein X */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* Handy: Menü als Vollbild-Ebene */
.site-nav {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  padding: var(--gutter);
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.site-nav.is-open { opacity: 1; visibility: visible; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 0.3rem 0;
  font-size: clamp(2.5rem, 12vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.site-nav a:hover { color: var(--accent); }

/* Ab Tablet: normale Navigation nebeneinander */
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav ul { display: flex; gap: 2.25rem; }
  .site-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
  }
}

/* ---------- 4. Hero mit Showreel ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000;
}

.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

/* Das Showreel ist im Kinoformat (2.39:1). Damit es den ganzen Bildschirm füllt,
   wird es so groß gemacht, dass Breite UND Höhe mindestens den Bildschirm abdecken. */
.hero__video {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100%, 100svh * 2.39);
  height: max(100%, 100vw / 2.39);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__video.is-playing { opacity: 1; }
.hero__video iframe {
  width: 100%; height: 100%;
  border: 0;
  pointer-events: none; /* Video ist nur Hintergrund, nicht anklickbar */
}

/* Verlauf von unten, damit die Schrift immer gut lesbar ist */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.35) 45%, rgba(13, 13, 13, 0.1) 70%, rgba(13, 13, 13, 0.45) 100%);
}

.hero__content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 8vh, 6rem);
}

.hero__title {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  max-width: 14ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.hero__pause {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 8vh, 6rem);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.hero__pause:hover { border-color: var(--accent); color: var(--accent); }
.hero__pause .icon-play { display: none; }
.hero__pause[aria-pressed="true"] .icon-play { display: block; }
.hero__pause[aria-pressed="true"] .icon-pause { display: none; }

/* Auf dem Handy liegt der Pause-Knopf oben rechts, damit er nicht die Buttons verdeckt */
@media (max-width: 799px) {
  .hero__pause { top: 5.5rem; bottom: auto; }
}

/* ---------- 5. Bereiche der Startseite ---------- */

/* Vorstellung: Handy untereinander, ab Tablet Foto links und Text rechts */
.intro {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
/* Handy: Foto mittig im 16:9-Format mit runden Ecken.
   Desktop: klein und im Originalformat neben dem Text. */
.intro__photo {
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
}
.intro__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%; /* Ausschnitt: Kopf im oberen Drittel, Kamera im Bild */
}
@media (min-width: 800px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); }
  .intro__photo { margin: 0; max-width: 320px; aspect-ratio: auto; border-radius: 0; }
  .intro__photo img { height: auto; }
}

.intro__lead {
  max-width: 34ch;
  margin: 0 0 2rem;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Projekt-Kacheln im Filmformat 16:9: Handy 1 Spalte, ab Tablet 2 Spalten */
.project-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
}

.project-card a { display: block; text-decoration: none; }

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
}
.project-card a:hover .project-card__media img,
.project-card a:focus-visible .project-card__media img { transform: scale(1.04); }

.badge {
  position: absolute;
  left: 1rem; top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__title {
  margin: 1.1rem 0 0.25rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.3s var(--ease);
}
.project-card a:hover .project-card__title { color: var(--accent); }
.project-card__meta { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Leistungen: große Wörter in einer Liste */
.services__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) {
  .services__list { grid-template-columns: 1fr 1fr; column-gap: clamp(1rem, 3vw, 2.5rem); }
}
.services__list li { border-bottom: 1px solid var(--line); }
/* Jede Kategorie ist ein Link: Name links, Hinweis („View work →“) rechts */
.services__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.services__list a:hover,
.services__list a:focus-visible { color: var(--accent); padding-left: 0.5rem; }

/* Kleiner Hinweis neben der Kategorie: auf dem Handy immer sichtbar, am Desktop erst beim Hovern */
.services__hint {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), color 0.3s var(--ease);
}
a:hover .services__hint, a:focus-visible .services__hint { color: var(--accent); }
@media (hover: hover) and (min-width: 800px) {
  .services__hint { opacity: 0; transform: translateX(-8px); }
  a:hover .services__hint, a:focus-visible .services__hint { opacity: 1; transform: none; }
}

/* Filter über „Selected work“ */
.work-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.work-filter button {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.work-filter button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.4); }
.work-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Kontakt-Aufforderung */
.cta {
  padding-bottom: var(--section-space);
  text-align: center;
}
.cta__title { font-size: clamp(3rem, 12vw, 9rem); }
.cta__mail {
  display: inline-block;
  margin-top: clamp(2rem, 5vw, 3rem);
  font-size: clamp(1.25rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.2rem;
  overflow-wrap: anywhere;
  transition: color 0.3s var(--ease);
}
.cta__mail:hover { color: var(--text); }
.cta__social { margin: 1.5rem 0 0; color: var(--muted); }
.cta__social a { color: var(--text); text-underline-offset: 0.2em; }
.cta__social a:hover { color: var(--accent); }

/* ---------- 6. Fußzeile ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { text-decoration: none; transition: color 0.3s var(--ease); }
.site-footer a:hover { color: var(--accent); }

/* ---------- 7. Showreel-Fenster ---------- */
.reel-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: var(--gutter);
  border: 0;
  background: rgba(0, 0, 0, 0.95);
  color: var(--text);
}
.reel-dialog[open] { display: grid; place-items: center; animation: fade-in 0.4s var(--ease); }
.reel-dialog::backdrop { background: rgba(0, 0, 0, 0.8); }
.reel-dialog__frame {
  width: min(100%, (100svh - 8rem) * 2.39);
  aspect-ratio: 2.39 / 1;
  background: #000;
}
.reel-dialog__frame iframe { width: 100%; height: 100%; border: 0; }
.reel-dialog__close {
  position: absolute;
  top: 1rem; right: 1rem;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.reel-dialog__close:hover { color: var(--accent); transform: rotate(90deg); }

/* ---------- 8. Animationen ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Elemente mit .reveal blenden beim Scrollen sanft ein.
   Nur wenn JavaScript läuft (Klasse .js) – sonst bleibt alles sichtbar. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero-Text beim Laden einblenden */
.hero__content > * { animation: rise 1.2s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: 0.1s; }
.hero__content > :nth-child(3) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* Wer in den Systemeinstellungen "Bewegung reduzieren" aktiviert hat, bekommt keine Animationen */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==================================================================
   9. Projektseiten (projects/*.html)
   ================================================================== */

/* Kopf der Projektseite: Zurück-Link, Titel, Kunde/Kategorie */
.project-hero {
  padding-top: clamp(7rem, 14vw, 10rem);
}
.back-link {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.back-link:hover { color: var(--accent); }

.project-hero__title {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Kunde / Kategorie / Umfang als kleine Info-Zeile */
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem clamp(2rem, 5vw, 4rem);
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.project-facts dt {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-facts dd { margin: 0; font-weight: 600; }

/* Video oben auf der Projektseite */
.project-video {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.video-frame {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}
/* Kinoformat 2.39:1 (z. B. Mercedes) */
.video-frame--cinema { aspect-ratio: 2.39 / 1; }
/* Breitbild 16:9 (z. B. YouTube-Video bei NO TIME TO DIE) */
.video-frame--wide { aspect-ratio: 16 / 9; }
/* Hochformat 9:16 (z. B. Navy): nie höher als der Bildschirm */
.video-frame--vertical {
  aspect-ratio: 9 / 16;
  width: min(100%, (100svh - 8rem) * 9 / 16);
}
/* Video mit Fotos links und rechts (Navy). Handy: nur das Video.
   Desktop: drei gleich große 9:16-Felder über die volle Breite – bündig mit der Galerie darunter
   (gleicher Abstand wie zwischen den Galerie-Fotos), alle exakt gleich hoch. */
.video-trio__side { display: none; }
@media (min-width: 800px) {
  .video-trio {
    --trio-gap: clamp(0.75rem, 2vw, 1.5rem);
    --trio-w: calc((100% - 2 * var(--trio-gap)) / 3);
    display: flex;
    justify-content: center;
    gap: var(--trio-gap);
  }
  .video-trio > * { flex: 0 0 var(--trio-w); width: var(--trio-w); aspect-ratio: 9 / 16; margin: 0; }
  .video-trio__side {
    display: block;
    overflow: hidden;
    background: var(--surface);
    cursor: zoom-in;
  }
  .video-trio__side img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
  }
  .video-trio__side:hover img,
  .video-trio__side:focus-visible img { transform: scale(1.03); }
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Vorschaubild mit Play-Knopf, bevor das Video geladen wird */
.video-facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.video-facade img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.video-facade:hover img { opacity: 0.85; transform: scale(1.02); }
.video-facade__play {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform 0.4s var(--ease);
}
.video-facade:hover .video-facade__play { transform: scale(1.08); }
.video-facade__note {
  position: absolute;
  left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.7);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* Foto-Galerie: Bilder in ihrem Originalformat, in Spalten wie ein Mauerwerk.
   Handy 1 Spalte, ab Tablet 2 Spalten. */
.gallery-section { padding-top: clamp(2.5rem, 6vw, 4rem); }
.gallery {
  columns: 1;
  column-gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) { .gallery { columns: 2; } }
.gallery li {
  break-inside: avoid;
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}
.gallery a {
  display: block;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  transition: transform 1.2s var(--ease), opacity 0.4s var(--ease);
}
.gallery a:hover img,
.gallery a:focus-visible img { transform: scale(1.03); }

/* Link zum nächsten Projekt */
.next-project {
  padding-top: var(--section-space);
}
.next-project a {
  display: block;
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.next-project__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.next-project__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: color 0.3s var(--ease);
}
.next-project__title span { transition: transform 0.4s var(--ease); }
.next-project a:hover .next-project__title { color: var(--accent); }
.next-project a:hover .next-project__title span { transform: translateX(8px); }

/* ==================================================================
   10. Lightbox (große Fotoansicht, gebaut von js/lightbox.js)
   Gleiches Layout auf Handy und Desktop:
   oben ✕, in der Mitte das Foto (bildschirmfüllend), unten ← 3 / 10 →
   ================================================================== */
.lightbox {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #080808;
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: contain;
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
  animation: fade-in 0.3s var(--ease);
}
.lightbox::backdrop { background: #080808; }

/* Bühne für das Foto: nimmt den ganzen Platz zwischen ✕ und der unteren Leiste ein */
.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 4rem 0.5rem 0;
  overflow: hidden;
  touch-action: none; /* Wischen/Ziehen übernimmt lightbox.js */
}
/* Foto mittig, so groß wie möglich, ohne über die Bühne hinauszuragen */
.lightbox__img {
  position: absolute;
  inset: 4rem 0.5rem 0;
  margin: auto;
  max-width: calc(100% - 1rem);
  max-height: calc(100% - 4rem);
  width: auto; height: auto;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.lightbox__img.is-loaded { opacity: 1; }
/* Gezoomt: Foto wird vergrößert, der Ausschnitt folgt Maus/Finger (transform-origin) */
.lightbox__img.is-zoomed {
  transform: scale(var(--zoom, 2.5));
  cursor: zoom-out;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), transform-origin 0.1s linear;
}

/* Untere Leiste: Pfeil links – Nummer – Pfeil rechts */
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.75rem 1rem 1.25rem;
}
.lightbox__counter {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.14); color: var(--accent); }
.lightbox__close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; }

/* ==================================================================
   11. About-Seite (about.html)
   ================================================================== */

/* Aktuelle Seite im Menü in Rosa markieren */
.site-nav a[aria-current="page"] { color: var(--accent); }

/* Vorstellung: Handy Foto oben, Desktop Foto links + Text rechts */
.about-hero {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-top: clamp(6rem, 12vw, 9rem);
}
@media (min-width: 800px) {
  .about-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
}

/* Handy: 16:9 mit runden Ecken (wie auf der Startseite) */
.about-hero__photo {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
}
.about-hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%; /* Kopf im oberen Drittel */
}
/* Desktop: Foto im Originalformat, nicht beschnitten */
@media (min-width: 800px) {
  .about-hero__photo { aspect-ratio: auto; border-radius: 0; }
  .about-hero__photo img { height: auto; }
}

.about-hero__title {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.about-hero__bio p {
  max-width: 52ch;
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

/* Leistungen mit kurzer Beschreibung: Name links, Text rechts */
.service-rows { margin: 0; padding: 0; list-style: none; }
.service-rows li { border-bottom: 1px solid var(--line); }
.service-rows a {
  display: grid;
  gap: 0.4rem 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  text-decoration: none;
}
@media (min-width: 800px) {
  .service-rows a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: baseline; }
}
.service-rows h3 {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: color 0.3s var(--ease);
}
.service-rows a:hover h3, .service-rows a:focus-visible h3 { color: var(--accent); }
.service-rows p { margin: 0; color: var(--muted); max-width: 46ch; }

/* Kunden-Liste: Name links, Projekt rechts, ganze Zeile klickbar */
.client-rows { margin: 0; padding: 0; list-style: none; }
.client-rows a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.client-rows__name {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  transition: color 0.3s var(--ease);
}
.client-rows__project { color: var(--muted); font-size: 0.95rem; }
.client-rows__project span { display: inline-block; transition: transform 0.4s var(--ease); }
.client-rows a:hover .client-rows__name { color: var(--accent); }
.client-rows a:hover .client-rows__project span { transform: translateX(4px); }

/* ==================================================================
   12. Kontaktseite (contact.html)
   ================================================================== */
.contact-hero { padding-top: clamp(7rem, 14vw, 10rem); }
.contact-hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.contact-hero__lead {
  max-width: 44ch;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* Große E-Mail-Adresse + Kopieren-Knopf */
.contact-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.contact-mail__link {
  font-size: clamp(1.6rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  line-height: 1.15;
  overflow-wrap: anywhere;
  transition: color 0.3s var(--ease);
}
.contact-mail__link:hover { color: var(--text); }
.contact-mail__copy.is-copied { border-color: var(--accent); color: var(--accent); }

/* Zeilen: Instagram, Vimeo, Ort */
.contact-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-rows a,
.contact-rows div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding: clamp(1.1rem, 2.5vw, 1.5rem) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.contact-rows__label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-rows__value {
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  font-weight: 700;
  transition: color 0.3s var(--ease);
}
.contact-rows__value span { display: inline-block; transition: transform 0.4s var(--ease); }
.contact-rows a:hover .contact-rows__value { color: var(--accent); }
.contact-rows a:hover .contact-rows__value span { transform: translate(3px, -3px); }

/* „Good to know“: nummerierte Liste */
.contact-brief { padding-bottom: var(--section-space); }
.contact-brief__intro { margin: 0 0 1.5rem; color: var(--muted); }
.contact-brief__list {
  display: grid;
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) { .contact-brief__list { grid-template-columns: 1fr 1fr; } }
.contact-brief__list li {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.contact-brief__num {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Kontaktseite: Foto rechts neben dem Text (nur Desktop) */
.contact-hero__photo { display: none; margin: 0; }
@media (min-width: 800px) {
  .contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
  }
  .contact-hero__photo {
    display: block;
    justify-self: end;
    width: 100%;
    max-width: 420px;
    background: var(--surface);
  }
  .contact-hero__photo img { width: 100%; }
}

/* ==================================================================
   13. Rechtstexte (imprint.html, privacy.html)
   Schmale Textspalte – lange Zeilen sind schwer zu lesen.
   ================================================================== */
.legal {
  max-width: 760px;
  margin-left: 0;
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: var(--section-space);
}
@media (min-width: 1536px) {
  .legal { margin-left: calc((100% - var(--max-width)) / 2); }
}
.legal__title {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  hyphens: manual;
}
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.legal p, .legal li { color: var(--text); }
.legal p { margin: 0 0 1rem; }
.legal a { color: var(--accent); text-underline-offset: 0.2em; }
.legal code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface);
  font-size: 0.9em;
}

/* Graue Kästen: Fakten für den Datenschutz-Generator (werden später ersetzt) */
.legal__facts {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  font-size: 0.95rem;
}
.legal__facts p { margin: 0 0 0.5rem; }
.legal__facts ul { margin: 0; padding-left: 1.1rem; }
.legal__facts li { margin-bottom: 0.4rem; color: var(--muted); }
.legal__facts li strong { color: var(--text); }

.legal__note { margin-top: 2.5rem; color: var(--muted); font-size: 0.85rem; }

/* Aktuelle Seite in der Fußzeile markieren */
.site-footer a[aria-current="page"] { color: var(--accent); }

/* Platzhalter, solange ein Projekt noch kein Titel-/Vorschaubild hat:
   der Projekttitel groß als Schrift auf dunklem Grund (Kachel und Video-Vorschau) */
.project-card__media--text,
.video-facade:has(.video-facade__title) {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 166, 191, 0.18), transparent 60%),
    var(--surface);
}
.project-card__placeholder,
.video-facade__title {
  padding: 1rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  color: rgba(242, 239, 237, 0.85);
}
.video-facade__title { position: absolute; top: 12%; left: 0; right: 0; }
.legal h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
