/* Selbst gehostete Schriften (SIL Open Font License) - keine Anfragen an Google */
@font-face {
  font-family: 'Saira';
  src: url('fonts/saira-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --paper-2: #e9e8e3;
  --ink: #121213;
  --ink-2: #5b5b60;
  --rule: #d6d5cf;
  --night: #0c0c0e;
  --night-2: #151518;
  --night-rule: #27272c;
  --night-fg: #ecebe8;
  --night-sub: #8a8a91;
  --red: #e8001a;
  --green: #1fae55;
  --sans: 'Saira', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { padding-inline: clamp(16px, 4vw, 64px); }
.inner { max-width: 1320px; margin-inline: auto; }
.mono { font-family: var(--mono); }

/* ───────── HERO (hell) ───────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  overflow-x: clip;
}
.hero .inner { width: 100%; flex: 1; display: flex; flex-direction: column; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 26px;
}
.mark { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.mark .sq {
  width: 30px; height: 30px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.mark .sub { color: var(--ink-2); font-weight: 400; }
header nav { display: flex; gap: 6px; }
header nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
header nav a:hover { border-color: var(--ink); }
header nav a[aria-current="page"] { border-color: var(--rule); }

.meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 10px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.meta b { color: var(--ink); font-weight: 500; }

.stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 6vh, 72px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kicker::before { content: ''; width: 10px; height: 10px; background: var(--red); }

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 13vw, 12rem);
  font-weight: 800;
  font-variation-settings: "wdth" 62;
  font-stretch: 62%;
  line-height: .84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
h1 .dot { color: var(--red); }

.lede {
  margin: 26px 0 30px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
}
.lede strong { color: var(--ink); font-weight: 600; }

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 32px;
  border-top: 1px solid var(--ink);
  max-width: 680px;
}
.specs div { padding: 12px 16px 0 0; }
.specs div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.specs dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.specs dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(31,174,85,.5)} 70%{box-shadow:0 0 0 7px rgba(31,174,85,0)} 100%{box-shadow:0 0 0 0 rgba(31,174,85,0)} }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s;
}
.btn:hover { background: var(--red); }
.btn svg { width: 14px; height: 14px; }
.textlink { font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.textlink:hover { color: var(--red); border-color: var(--red); }

/* Portrait als „Abbildung" */
.figure { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  background: var(--paper-2);
  overflow: hidden;
}
.frame img, .frame svg.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s ease, transform .6s ease; }
.frame:hover img, .frame:hover svg.ph { filter: grayscale(0) contrast(1); transform: scale(1.02); }
.crop { position: absolute; width: 18px; height: 18px; border-color: var(--ink); border-style: solid; z-index: 2; }
.crop.tl { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; }
.crop.tr { top: 10px; right: 10px; border-width: 1.5px 1.5px 0 0; }
.crop.bl { bottom: 10px; left: 10px; border-width: 0 0 1.5px 1.5px; border-color: var(--paper); }
.crop.br { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; border-color: var(--paper); }
.tag {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  color: var(--ink-2);
}
figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  margin-top: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  letter-spacing: .04em;
}
figcaption b { color: var(--ink); font-weight: 500; }

/* ───────── KONTAKT (dunkel) ───────── */
.contact {
  background: var(--night);
  color: var(--night-fg);
  padding-block: clamp(64px, 9vw, 120px) 36px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
}
.eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; color: var(--night-sub); }
.eyebrow b { color: var(--red); font-weight: 500; }
.contact h2 {
  margin: 0 0 20px;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 62;
  font-stretch: 62%;
  line-height: .88;
  text-transform: uppercase;
  text-wrap: balance;
}
.contact h2 .dot { color: var(--red); }
.contact .lead { color: var(--night-sub); max-width: 40ch; margin: 0 0 28px; }

.terminal {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--night-sub);
  background: var(--night-2);
  border: 1px solid var(--night-rule);
  padding: 16px 18px;
  overflow-x: auto;
  white-space: pre-wrap;
  max-width: 480px;
}
.terminal .p { color: var(--green); }
.terminal .c { color: var(--night-fg); }
.caret { display: inline-block; width: 8px; height: 14px; background: var(--night-fg); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-fg); }
.row {
  display: grid;
  grid-template-columns: 34px 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--night-rule);
}
.row .n { font-family: var(--mono); font-size: 11px; color: var(--red); }
.row .k { font-family: var(--mono); font-size: 11.5px; color: var(--night-sub); text-transform: uppercase; letter-spacing: .08em; }
.row .v {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row a.v:hover, .row .v a:hover { color: var(--red); }

.copy {
  font: 600 11.5px var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--night-fg);
  background: transparent;
  border: 1px solid var(--night-rule);
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
}
.copy:hover { border-color: var(--night-fg); }
.copy.reveal { border-color: var(--night-fg); }
.copy.reveal:hover { background: var(--night-fg); color: var(--night); }
.row .v.masked { color: var(--night-sub); letter-spacing: .08em; user-select: none; }
.copy.done { background: var(--green); border-color: var(--green); color: #04240f; }

footer {
  margin-top: clamp(64px, 8vw, 100px);
  padding-top: 22px;
  border-top: 1px solid var(--night-rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--night-sub);
}
footer .links { display: flex; gap: 20px; }
footer a:hover { color: var(--night-fg); }

/* entrance */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.copytext > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.copytext > *:nth-child(2) { animation-delay: .08s; }
.copytext > *:nth-child(3) { animation-delay: .16s; }
.copytext > *:nth-child(4) { animation-delay: .24s; }
.copytext > *:nth-child(5) { animation-delay: .32s; }
.figure { animation: rise 1s .2s cubic-bezier(.2,.7,.2,1) both; }

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .hero { min-height: auto; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px 56px; align-items: start; align-content: start; }
  /* Foto wird zum kompakten Ausweis-Kopf über dem Namen */
  .figure {
    order: -1;
    justify-self: stretch;
    max-width: none;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    align-items: end;
  }
  .frame { width: 116px; }
  .tag { display: none; }
  .crop { width: 12px; height: 12px; }
  .crop.tl, .crop.tr { top: 6px; } .crop.bl, .crop.br { bottom: 6px; }
  .crop.tl, .crop.bl { left: 6px; } .crop.tr, .crop.br { right: 6px; }
  figcaption {
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    margin: 0;
    padding: 8px 0 0;
  }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .mark .sub { display: none; }
  header nav a { padding: 7px 10px; font-size: 13px; }
  .meta .hide-sm { display: none; }
  h1 { font-size: 27vw; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .row .n { display: none; }
  .row .k { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── Rechtstexte (Impressum, Datenschutz) ───────── */
.legal {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.legal > .inner { width: 100%; flex: 1; display: flex; flex-direction: column; }
.legal-main { padding-block: clamp(40px, 7vw, 88px); max-width: 72ch; }
.legal-main h1 { font-size: clamp(3rem, 9vw, 6.5rem); margin-bottom: 14px; }
.legal-main .stand { margin: 0 0 32px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.draft {
  margin: 0 0 40px;
  padding: 14px 18px;
  border: 1px solid var(--red);
  border-left-width: 4px;
  font-size: 15px;
  color: var(--ink);
}
.draft strong { color: var(--red); }
.legal-main h2 {
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
.legal-main h3 { margin: 24px 0 6px; font-size: 1.05rem; font-weight: 700; }
.legal-main p, .legal-main li { color: var(--ink-2); }
.legal-main p { margin: 0 0 14px; }
.legal-main ul { margin: 0 0 14px; padding-left: 20px; }
.legal-main li + li { margin-top: 4px; }
.legal-main strong { color: var(--ink); font-weight: 600; }
.legal-main address { margin: 0 0 14px; font-style: normal; line-height: 1.7; color: var(--ink); }
.legal-main a { border-bottom: 1px solid currentColor; transition: color .2s; }
.legal-main a:hover { color: var(--red); }
.fill {
  padding: 1px 6px;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .86em;
  overflow-wrap: anywhere;
}
footer.legal-foot {
  margin-top: auto;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.legal-foot a:hover { color: var(--red); }
.legal-foot a[aria-current="page"] { color: var(--ink); }
.legal-main .toc { margin: 0 0 8px; }
.legal-main .toc h2 { margin-top: 0; }
.legal-main .toc ol { margin: 0; padding-left: 22px; font-variant-numeric: tabular-nums; }
.legal-main .toc li { color: var(--ink); }
.legal-main ul.m-elements li, .legal-main ul.glossary li { margin-top: 8px; }
.legal-main .credit { margin-top: 48px; font-size: 13px; }
/* Lange deutsche Komposita („Datenschutzaufsichtsbehörde“) am Handy umbrechen */
.legal-main { overflow-wrap: break-word; hyphens: auto; }
.legal-main h1 { hyphens: manual; }
