/* peak7 – Stylesheet
   Eine Datei, keine Abhängigkeiten. Farben und Abstände oben als Variablen. */

:root {
  --bg: #0d0d0e;
  --surface: #161618;
  --line: #2a2a2d;
  --text: #ececec;
  --muted: #9b9ba1;
  /* Akzentfarbe: Salbeigrün */
  --accent: #8fb59a;
  /* Nur für Platzhalter – verschwindet, wenn alle ersetzt sind */
  --ph: #ff4f9a;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 68rem;
  --gutter: 1.25rem;
  --section: 5rem;
}

@media (min-width: 48rem) {
  :root { --gutter: 2.5rem; --section: 8rem; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

/* „hidden" blendet noch unfertige Teile aus – auch wenn sie sonst ein display haben */
[hidden] { display: none !important; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }

/* ---------- Kopfzeile ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }

.wordmark { display: block; text-decoration: none; transition: opacity .15s; }
.wordmark:hover { opacity: .75; }
.wordmark img { height: 1.6rem; width: auto; }

.nav { display: flex; gap: 1.25rem; font-size: .9375rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* ---------- Abschnitte ---------- */

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

.eyebrow { color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.section-title { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 3rem; max-width: 22ch; }

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

.hero { min-height: calc(85svh - 4rem); display: flex; align-items: center; }
.hero .wrap { width: 100%; }
.hero h1 { font-size: clamp(1.875rem, 9.6vw, 5rem); font-weight: 600; }
.hero h1 span { color: var(--accent); }
.hero__lead { color: var(--muted); font-size: clamp(1.0625rem, 2.5vw, 1.3125rem); max-width: 48ch; margin: 1.75rem 0 0; }
.hero__cta { display: inline-block; margin-top: 2.5rem; padding: .8rem 1.5rem; border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.hero__cta:hover { border-color: var(--accent); }

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

.services { display: grid; gap: 2.75rem; }
@media (min-width: 48rem) { .services { grid-template-columns: 1fr 1fr; gap: 4rem 5rem; } }

.service h3 { font-size: 1.25rem; margin-bottom: .75rem; display: flex; align-items: baseline; gap: .75rem; }
.service h3::before { content: ""; flex: none; width: 1.25rem; height: 2px; background: var(--accent); transform: translateY(-.3em); }
.service p { color: var(--muted); margin: 0; max-width: 46ch; }

.also { margin: 4rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.also strong { color: var(--text); font-weight: 600; }

/* ---------- Arbeiten / Videos ---------- */

.works { display: grid; gap: 3rem; }
@media (min-width: 48rem) { .works { grid-template-columns: 1fr 1fr; gap: 4rem 2.5rem; } }
/* Erstes Video (Showreel) über volle Breite */
@media (min-width: 48rem) { .works .work:first-child { grid-column: 1 / -1; } }

.work { margin: 0; }
.work figcaption { margin-top: 1rem; }
.work figcaption strong { display: block; font-weight: 600; }
.work figcaption span { color: var(--muted); font-size: .9375rem; }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s; }
.video:hover > img { opacity: .4; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video__consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.25rem; text-align: center;
}
.video__consent p { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--text); max-width: 34ch; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

.video__load {
  display: inline-flex; align-items: center; gap: .6rem;
  font: inherit; font-size: .9375rem; font-weight: 500; color: var(--text);
  background: rgba(13,13,14,.75); border: 1px solid var(--text); padding: .7rem 1.25rem;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.video__load::before { content: ""; border-style: solid; border-width: .4em 0 .4em .7em; border-color: transparent transparent transparent currentColor; }
.video__load:hover { border-color: var(--accent); color: var(--accent); }

.video__soon {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
}

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

.contact__mail { display: inline-block; font-size: clamp(1.5rem, 6vw, 3rem); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; color: var(--muted); display: grid; gap: .4rem; }
.contact__list a { text-decoration: none; }

/* ---------- Fußzeile ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .875rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { text-decoration: none; }

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

.legal { padding: 4rem 0 var(--section); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2.75rem 0 .75rem; }
.legal h3 { font-size: 1.0625rem; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: #cfcfd3; }
.legal dl { display: grid; gap: .25rem 1.5rem; margin: 0; }
.legal dt { color: var(--muted); font-size: .875rem; }
.legal dd { margin: 0 0 1rem; }
@media (min-width: 40rem) {
  .legal dl { grid-template-columns: 14rem 1fr; }
  .legal dd { margin: 0 0 .75rem; }
}
.legal .note { border-left: 2px solid var(--ph); padding: .75rem 1rem; background: var(--surface); font-size: .9375rem; }
.back { display: inline-block; margin-bottom: 2rem; color: var(--muted); text-decoration: none; font-size: .9375rem; }

/* ---------- Platzhalter ----------
   Alles mit class="ph" muss noch ersetzt werden.
   Suche im Code nach "ph" oder "PLATZHALTER". */

.ph {
  color: var(--ph);
  outline: 1px dashed var(--ph);
  outline-offset: 2px;
  padding: 0 .2em;
}
.ph-tag {
  display: inline-block; vertical-align: middle;
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ph); border: 1px dashed var(--ph); padding: .05rem .4rem; margin-left: .5rem;
}
