/* frank.kaiser.de – Profilseite
   Richtung: „The dark room“ (Taste Skill, Seed 1268025114)
   Work Sans 300 Text 400/500 · ein dunkler Grund, darin beleuchtete Dinge
   Ein Akzent (Hellgrün) nur für die Handlung. Keine Rahmen, keine Verläufe. */

@font-face {
  font-family: "Work Sans";
  src: url("assets/fonts/work-sans-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f0f0f;
  --surface: #171717;
  --surface-2: #141414;
  --ink: #e9e8e3;
  --muted: #a4a29c;
  --accent: #dafa9c;
  --accent-ink: #101010;

  --fs-xs: 14px;
  --fs-s: 14px;
  --fs-body: clamp(16px, 0.35vw + 15px, 18px);
  --fs-h3: clamp(19px, 0.4vw + 17px, 22px);
  --fs-lead: clamp(20px, 0.8vw + 17px, 26px);
  --fs-h2: clamp(30px, 2.2vw + 16px, 44px);
  --fs-statement: var(--fs-h2);
  --fs-h1: clamp(38px, 6vw + 12px, 98px);
  --fs-name: clamp(52px, 12.5vw, 180px);

  --gap: clamp(72px, 5.5vw, 100px);
  --pad: clamp(20px, 3vw, 44px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, figure, ol, table { margin: 0; }

h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }

a { color: inherit; }

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

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

.wrap {
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -60px;
  z-index: 20;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  font-size: var(--fs-s);
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px 0;
}

.wordmark {
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.topnav {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  font-size: var(--fs-s);
  color: var(--muted);
}
.topnav a { text-decoration: none; }
.topnav a:hover { color: var(--ink); }

/* ---------- Erster Bildschirm ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 62px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  min-height: calc(100svh - 62px);
  padding-bottom: clamp(28px, 4vh, 52px);
}

.hero__title {
  align-self: end;
  font-size: var(--fs-h1);
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 14ch;
}

.hero__lead {
  margin-top: clamp(28px, 4vh, 44px);
  font-size: var(--fs-lead);
  line-height: 1.35;
  max-width: 34ch;
  color: var(--ink);
}

.hero__action { margin-top: clamp(24px, 3.5vh, 36px); }

.hero__facts {
  margin-top: clamp(28px, 4vh, 44px);
  font-size: var(--fs-s);
  color: var(--muted);
}

.hero__portrait {
  position: absolute;
  right: clamp(0px, 2vw, 32px);
  bottom: 0;
  z-index: 0;
  width: clamp(260px, 42vw, 680px);
  height: min(90svh, 920px);
  pointer-events: none;
  overflow: hidden;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  animation: portrait-drift 28s ease-in-out infinite alternate;
}
.hero__portrait picture { display: block; height: 100%; }

@keyframes portrait-drift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.03) translateY(-6px); }
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 17px 28px;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.btn:hover { background: #e9ffbb; }
.btn:active { transform: translateY(1px); }

.btn--quiet {
  background: none;
  color: var(--ink);
  padding: 0;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.btn--quiet:hover { background: none; color: var(--accent); }

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

.about { padding-block: var(--gap) 0; }

.about__panel {
  margin-inline: clamp(10px, 1.2vw, 20px);
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 88px);
  padding: clamp(28px, 3.4vw, 52px);
  min-height: 58svh;
}

.about__left {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}

.statement {
  font-size: var(--fs-statement);
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 20ch;
}

.about__photo { margin-top: auto; }

.about__photo img {
  width: min(100%, 560px);
  height: clamp(240px, 42svh, 420px);
  object-fit: cover;
  clip-path: polygon(0 0, 84% 0, 100% 16%, 100% 100%, 0 100%);
  filter: saturate(0.55) contrast(1.12) brightness(1.5);
}

.about__photo figcaption {
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--muted);
}

.about__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(32px, 4vw, 56px);
  padding-top: clamp(0px, 2vw, 24px);
}

.block { max-width: 340px; }

.block h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.block p {
  margin-top: 14px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
}

.about__action { margin-top: clamp(4px, 1vw, 12px); }

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

.services { padding-block: var(--gap); }

.services h2 {
  font-size: var(--fs-h2);
  max-width: 18ch;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.rows {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-h3);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.rows thead th {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--muted);
  text-align: left;
  padding: 0 20px 18px 0;
}
.rows thead th:last-child { padding-right: 0; }

.rows th:first-child { width: 24%; }
.rows th:nth-child(2) { width: 33%; }
.rows th:nth-child(3) { width: 29%; }

.rows tbody th,
.rows tbody td {
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  padding: 18px 20px 18px 0;
}
.rows tbody th:last-child,
.rows tbody td:last-child { padding-right: 0; }

"

.rows tbody th { color: var(--ink); }
.rows tbody td { color: var(--ink); }

.services__tools {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: var(--fs-body);
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Arbeit ---------- */

.work {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(48px, 6vw, 96px);
  padding-inline: var(--pad);
  padding-block: var(--gap);
}

.work__head {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  align-self: start;
  position: sticky;
  top: 12vh;
}

.work__head h2 {
  font-size: var(--fs-h2);
  max-width: 12ch;
}

.work__note {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--muted);
  max-width: 36ch;
}

.case { min-width: 0; }
.case--a { grid-column: 5 / 13; grid-row: 1; }
.case--b { grid-column: 5 / 10; grid-row: 2; }
.case--c { grid-column: 10 / 13; grid-row: 2; align-self: end; }

.case img {
  width: 100%;
  object-fit: cover;
  margin: 12px 0 18px;
  filter: saturate(0.6) contrast(1.06) brightness(0.98);
}
.case--a img { aspect-ratio: 3 / 2; }
.case--b img { aspect-ratio: 4 / 5; }
.case--c img { aspect-ratio: 1 / 1; }

.case__meta {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.case h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

.case p {
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.6;
  max-width: 48ch;
}

/* ---------- Engpass (Live-Element, ohne JavaScript) ---------- */

.check {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 4vw, 72px);
  padding-inline: var(--pad);
  padding-block: var(--gap);
}

.check__intro h2 { font-size: var(--fs-h2); }

.check__intro p {
  margin-top: 20px;
  font-size: var(--fs-body);
  color: var(--muted);
  max-width: 28ch;
}

.checker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.checker input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.checker label {
  display: block;
  background: var(--surface);
  padding: 18px 22px;
  font-size: var(--fs-body);
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.checker label:hover { background: #202020; }

.checker input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

#lage-1:checked + label,
#lage-2:checked + label,
#lage-3:checked + label,
#lage-4:checked + label {
  background: var(--accent);
  color: var(--accent-ink);
}

.panels {
  grid-column: 1 / -1;
  margin-top: clamp(16px, 2vw, 28px);
}

.panel { display: none; }

#lage-1:checked ~ .panels .p-1,
#lage-2:checked ~ .panels .p-2,
#lage-3:checked ~ .panels .p-3,
#lage-4:checked ~ .panels .p-4 { display: block; }

.panel__lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.3;
  max-width: 42ch;
}

.panel ol {
  margin-top: clamp(20px, 2.4vw, 30px);
  padding-left: 1.4em;
  display: grid;
  gap: 14px;
  max-width: 58ch;
}
.panel li { font-size: var(--fs-body); line-height: 1.55; }
.panel li::marker { color: var(--muted); }

/* ---------- Herkunft ---------- */

.proof {
  background: var(--surface);
  padding-block: clamp(88px, 9vw, 140px);
  margin-top: var(--gap);
}

.proof h2 {
  font-size: var(--fs-h2);
  max-width: 20ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.proof__sentence {
  font-size: clamp(24px, 1.4vw + 16px, 36px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 1040px;
  color: var(--muted);
}

.proof__sentence span { transition: color 420ms ease; }
.proof__sentence span.is-lit { color: var(--ink); }

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

.contact { position: relative; overflow: hidden; }

.contact__video {
  width: 100%;
  height: 100svh;
  display: block;
  object-fit: cover;
  filter: saturate(0.38) contrast(1.06) brightness(0.74);
}

.contact__still {
  display: none;
  width: 100%;
  height: 100svh;
  object-fit: cover;
  filter: saturate(0.38) contrast(1.06) brightness(0.74);
}

.contact__caption {
  position: absolute;
  left: var(--pad);
  bottom: clamp(20px, 4vh, 44px);
  font-size: var(--fs-xs);
  color: var(--ink);
  opacity: 0.85;
}

.contact__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start end;
}

@media (prefers-reduced-motion: reduce) {
  .contact__video { display: none; }
  .contact__still { display: block; }
}

@keyframes bg-drift {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.card {
  position: absolute;
  top: clamp(24px, 7vh, 72px);
  right: var(--pad);
  width: min(392px, calc(100% - 2 * var(--pad)));
  background: var(--ink);
  color: var(--accent-ink);
  padding: clamp(24px, 2.4vw, 32px);
}

.card h2 {
  font-size: var(--fs-lead);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card__mail { margin-top: 20px; font-size: var(--fs-body); }
.card__mail a { color: inherit; text-decoration: underline; text-underline-offset: 5px; }

.card__facts {
  margin-top: 14px;
  font-size: var(--fs-s);
  line-height: 1.6;
  color: #4a4a46;
}

.card__action { margin-top: 24px; }
.card .btn { display: block; text-align: center; padding-inline: 20px; }

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

.footer { padding-block: clamp(64px, 8vw, 120px) clamp(28px, 4vw, 48px); }

.footer__name {
  font-size: var(--fs-name);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(28px, 4vw, 44px);
  font-size: var(--fs-s);
  color: var(--muted);
}
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--ink); }

.footer__credits {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: var(--muted);
  max-width: 64ch;
}

/* ---------- Rechtliche Seiten ---------- */

.legal__main { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); max-width: 900px; }

.legal__main h1 {
  font-size: clamp(34px, 4vw + 10px, 64px);
  letter-spacing: -0.03em;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.legal__main h2 {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: clamp(32px, 3.5vw, 44px);
  margin-bottom: 12px;
}

.legal__main p {
  font-size: var(--fs-body);
  line-height: 1.65;
  max-width: 68ch;
  margin-bottom: 12px;
  color: var(--ink);
}

.legal__main a { color: var(--ink); text-underline-offset: 5px; }
.legal__main a:hover { color: var(--accent); }

.legal__lead {
  font-size: var(--fs-lead) !important;
  font-weight: 300;
  line-height: 1.4;
  max-width: 46ch;
}

.legal__stand {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: var(--fs-s);
  color: var(--muted);
}

/* ---------- Bewegung ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__portrait img,
  .contact__video,
  .contact__still { animation: none; }
  .btn, .checker label, .proof__sentence span { transition: none; }
}

/* ---------- Schmal ---------- */

@media (max-width: 1100px) {
  .hero__portrait { height: min(66svh, 620px); right: 0; }
  .hero__lead { max-width: 30ch; }
  .about__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .hero__portrait { height: min(56svh, 480px); opacity: 0.9; }
  .hero__title { font-size: clamp(38px, 9vw, 64px); }
  .work__head { position: static; }
  .check { grid-template-columns: 1fr; }
  .checker { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .work__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
  }
  .work__head h2 { grid-column: 1; }
  .work__note { grid-column: 2; margin-top: 0; max-width: none; }
}

@media (max-width: 900px) {
  :root {
    --fs-body: 18px;
    --fs-h3: 22px;
    --fs-lead: 22px;
    --fs-h2: 30px;
    --fs-h1: clamp(38px, 7vw, 56px);
    --fs-name: 84px;
  }
  .proof__sentence { font-size: 30px; }

  .topbar { padding-block: 18px 0; gap: 12px; }
  .wordmark { font-size: 15px; }
  .topnav { font-size: var(--fs-xs); gap: 11px; }

  .hero { min-height: 0; }
  .hero__inner { min-height: 0; grid-template-rows: auto auto auto auto; padding-bottom: 0; }
  .hero__title { margin-top: clamp(32px, 9vh, 72px); }
  .hero__lead { margin-top: 24px; max-width: 32ch; }
  .hero__action { margin-top: 26px; }
  .hero__action .btn { display: block; text-align: center; }
  .hero__portrait {
    position: static;
    width: 100%;
    height: min(62svh, 560px);
    margin-top: clamp(28px, 6vw, 40px);
    opacity: 1;
  }
  .hero__portrait img { object-position: 50% 6%; }

  .about__panel { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
  .about__left { gap: 32px; }
  .about__photo img { width: 100%; height: 240px; }
  .about__right { gap: 32px; padding-top: 0; }

  .rows { font-size: 18px; }
  .rows thead { display: none; }
  .rows, .rows tbody, .rows tr, .rows th, .rows td { display: block; width: auto; }
  .rows th:first-child,
  .rows th:nth-child(2),
  .rows th:nth-child(3),
  .rows tbody th,
  .rows tbody td { width: auto; }
  .rows tbody th,
  .rows tbody td { overflow-wrap: break-word; }
  .rows tbody tr { padding: 20px 0; }
  .rows tbody tr:nth-child(even) > *:first-child { padding-left: 0; }
  .rows tbody th { font-size: 19px; padding: 0 0 8px; }
  .rows tbody td { padding: 0 0 6px; color: var(--muted); }

  .work { grid-template-columns: 1fr; row-gap: 64px; }
  .work__head, .case--a, .case--b, .case--c { grid-column: 1 / -1; grid-row: auto; }
  .case--b { margin-top: 0; width: 74%; margin-left: auto; }
  .case--c { width: 100%; }
  .case--a img { aspect-ratio: 3 / 2; }
  .case--b img { aspect-ratio: 4 / 5; }

  .contact__video,
  .contact__still { height: 62svh; }

  .contact__caption {
    position: static;
    margin: 12px var(--pad) 0;
    color: var(--muted);
  }
  .card {
    position: static;
    width: auto;
    margin: -72px var(--pad) 0;
  }

  .footer__name { letter-spacing: -0.04em; }
  .footer { padding-top: clamp(124px, 12vw, 168px); }
}

/* ---------- Telefon ---------- */

@media (max-width: 640px) {
  :root {
    --fs-xs: 14px;
    --fs-s: 14px;
    --fs-body: 17px;
    --fs-h3: 20px;
    --fs-lead: 20px;
    --fs-h2: 30px;
    --fs-h1: 38px;
    --fs-name: 64px;
  }
  .hero__lead { font-size: 18px; }
  .panel__lead { font-size: 20px; }
  .proof__sentence { font-size: 30px; }
  .wordmark { font-size: 17px; }
  .topnav { font-size: 14px; }
  .topbar { flex-wrap: wrap; row-gap: 10px; }
  .topnav { width: 100%; justify-content: space-between; gap: 0; }
}

