/* ==========================================================================
   David Pflanz – Mediengestalter Bild und Ton
   Statisches Stylesheet, keine externen Ressourcen.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Farben (OKLCH), neutral leicht zum Akzent getönt */
  --bg: oklch(0.155 0.006 70);
  --bg-raised: oklch(0.19 0.007 70);
  --line: oklch(0.3 0.008 70);
  --line-strong: oklch(0.42 0.01 70);
  --ink: oklch(0.94 0.006 80);
  --ink-muted: oklch(0.74 0.008 80);
  --accent: oklch(0.79 0.145 72);
  --accent-ink: oklch(0.2 0.03 70);

  /* Typografie */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 5vw, 5.5rem);

  /* Abstände */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section: clamp(5rem, 3.5rem + 7vw, 9.5rem);
  --max: 72rem;
  --radius: 6px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Ebenen */
  --z-header: 10;
  --z-skip: 20;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  font-stretch: 115%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
  color: var(--accent-ink);
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: oklch(0.85 0.13 75);
  border-color: oklch(0.85 0.13 75);
  color: var(--accent-ink);
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-size: var(--step--1);
}

.btn svg {
  width: 1em;
  height: 1em;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover svg {
  transform: translateX(3px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: oklch(0.155 0.006 70 / 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: oklch(0.155 0.006 70 / 0.78);
    backdrop-filter: blur(12px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 650;
  font-stretch: 118%;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
}

.site-nav a:not(.btn):hover {
  color: var(--ink);
}

@media (max-width: 47.99rem) {
  .site-nav .nav-link {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2rem, 4vw, 3.5rem) var(--section);
}

.frame {
  position: relative;
  display: grid;
  align-content: end;
  min-height: min(82svh, 46rem);
  padding: clamp(1.75rem, 5vw, 4.5rem);
  isolation: isolate;
}

/* Sucherecken wie im Kameramonitor */
.frame-corner {
  position: absolute;
  width: clamp(1.25rem, 3vw, 2.25rem);
  height: clamp(1.25rem, 3vw, 2.25rem);
  border-color: var(--line-strong);
  border-style: solid;
  border-width: 0;
}

.frame-corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame-corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame-corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame-corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.frame-meta {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2rem);
  left: clamp(1.75rem, 5vw, 4.5rem);
  right: clamp(1.75rem, 5vw, 4.5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.rec::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.timecode {
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: var(--step-4);
  font-stretch: 122%;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.hero-role {
  margin-top: 0.9rem;
  font-size: var(--step-2);
  font-weight: 400;
  font-stretch: 100%;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero-lead {
  max-width: 38rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-muted);
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-title,
  .hero-role,
  .hero-lead,
  .hero-actions {
    animation: rise 0.9s var(--ease-out) both;
  }
  .hero-role { animation-delay: 0.08s; }
  .hero-lead { animation-delay: 0.16s; }
  .hero-actions { animation-delay: 0.24s; }

  .frame-corner {
    animation: focus-in 1.1s var(--ease-out) both;
  }

  .rec::before {
    animation: blink 2s steps(1) infinite;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes focus-in {
  from { opacity: 0; scale: 1.25; }
  to { opacity: 1; scale: 1; }
}

@keyframes blink {
  50% { opacity: 0.2; }
}

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

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: var(--step-3);
}

.section-head p {
  color: var(--ink-muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* ---------- Leistungen ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service {
  grid-column: span 2;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
  transition: background-color 0.3s var(--ease-out);
}

.service:nth-child(4),
.service:nth-child(5) {
  grid-column: span 3;
}

.service:hover {
  background: var(--bg-raised);
}

.service h3 {
  font-size: var(--step-1);
  font-stretch: 112%;
  line-height: 1.2;
}

.service p {
  color: var(--ink-muted);
}

.service-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-size: var(--step--1);
  color: var(--ink);
}

.service-note::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@media (max-width: 63.99rem) {
  .service,
  .service:nth-child(4),
  .service:nth-child(5) {
    grid-column: span 3;
  }
  .service:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 39.99rem) {
  .service,
  .service:nth-child(4),
  .service:nth-child(5) {
    grid-column: span 6;
  }
}

.services-audience {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 44rem;
  color: var(--ink-muted);
}

.services-audience strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Portfolio (vorbereitet, aktuell nicht eingebunden) ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work figure {
  margin: 0;
}

.work-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.work-media img,
.work-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work figcaption {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.9rem;
}

.work figcaption strong {
  font-weight: 600;
}

.work figcaption span {
  color: var(--ink-muted);
  font-size: var(--step--1);
}

/* ---------- Über mich ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about .section-head {
  margin-bottom: 1.75rem;
}

.prose {
  display: grid;
  gap: 1.15rem;
  max-width: 38rem;
}

.prose p {
  color: var(--ink-muted);
  line-height: 1.75;
}

.prose p:first-child {
  color: var(--ink);
  font-size: var(--step-1);
  line-height: 1.55;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  gap: 0.15rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

@media (max-width: 55.99rem) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* ---------- Ablauf ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: var(--step-3);
  font-weight: 300;
  font-stretch: 122%;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: var(--step-1);
  font-stretch: 112%;
  line-height: 1.25;
}

.step p {
  color: var(--ink-muted);
}

@media (max-width: 47.99rem) {
  .steps {
    grid-template-columns: 1fr;
  }
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}

.contact .section-head {
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-list li {
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.15rem 1rem;
  padding-block: 1.25rem;
  text-decoration: none;
}

.contact-label {
  grid-column: 1;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.contact-value {
  grid-column: 1;
  font-size: var(--step-1);
  font-weight: 600;
  font-stretch: 108%;
  overflow-wrap: anywhere;
}

.contact-list svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-muted);
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.contact-list a:hover svg {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.contact-note {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

@media (max-width: 55.99rem) {
  .contact {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

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

.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */

.legal {
  padding-block: clamp(3rem, 6vw, 5rem) var(--section);
}

.legal-inner {
  max-width: 44rem;
}

.legal h1 {
  font-size: var(--step-3);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.legal h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  font-size: var(--step-1);
  font-stretch: 110%;
  line-height: 1.3;
}

.legal h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: var(--step-0);
  font-stretch: 105%;
  font-weight: 600;
}

.legal p,
.legal ul,
.legal address {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-style: normal;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a {
  color: var(--ink);
}

.legal a:hover {
  color: var(--accent);
}

.legal-meta {
  margin-top: 3rem;
  font-size: var(--step--1);
}

/* Prüfhinweise in der Datenschutzerklärung: vor Veröffentlichung entfernen */
.review {
  display: block;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: var(--step--1);
}

.back-link {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--ink-muted);
  font-size: var(--step--1);
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

/* ---------- 404 ---------- */

.error-page {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  min-height: 60svh;
  padding-block: var(--section);
}

.error-page h1 {
  font-size: var(--step-3);
}

.error-page p {
  color: var(--ink-muted);
  max-width: 34rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Lange Wörter und Adressen in Rechtstexten auf schmalen Displays umbrechen */
.legal-inner {
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 29.99rem) {
  .legal h1 {
    font-size: 1.75rem;
    font-stretch: 100%;
  }
}
