/* zeitY v4 – "C2 Produkt auf der Bühne": editorial serif + product on stage. Instrument Serif + Manrope, self-hosted. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0f0e13;
  --text: #edeae4;
  --muted: #9e998f;
  --line: #26242d;
  --bronze: #c9a97a;
  --tag: #cfc6ff;
  --tag-line: #3b3566;
  --pill-line: #3a3744;
  --frame: #2e2c36;
  --frame-bar: #1c1b22;
  --frame-bg: #16151b;
  --grad: linear-gradient(90deg, #9c86ff, #5fb9e8 55%, #7de0d0);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 80rem;
  --section: clamp(4.5rem, 10vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #9c86ff; color: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; text-decoration-color: var(--pill-line); }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--tag); outline-offset: 4px; border-radius: 4px; }
[id] { scroll-margin-top: 1.5rem; }

.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 20; padding: 0.6rem 1rem; background: var(--text); color: var(--bg); border-radius: 99px; text-decoration: none; }
.skip-link:focus { top: 0.75rem; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); position: relative; }

.serif { font-family: var(--serif); font-weight: 400; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: 0.06em; }
.kicker { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); font-weight: 500; }
.muted { color: var(--muted); }

/* Pills and tags */
.pill { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--pill-line); border-radius: 99px; padding: 0.7rem 1.3rem; font-size: 0.95rem; font-weight: 500; color: var(--text); text-decoration: none; transition: border-color 0.2s ease, background-color 0.2s ease; }
.pill:hover { border-color: var(--muted); }
.pill.solid { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.pill.solid:hover { background: #ffffff; border-color: #ffffff; }
.tag { display: inline-block; font-size: 0.82rem; color: var(--tag); border: 1px solid var(--tag-line); border-radius: 99px; padding: 0.3rem 0.85rem; }

/* Soft light from the logo gradient */
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(24px); z-index: 0; }

/* Browser frame */
.browser { border: 1px solid var(--frame); border-radius: 14px; overflow: hidden; background: var(--frame-bg); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.browser .bar { height: 26px; background: var(--frame-bar); display: flex; gap: 7px; align-items: center; padding: 0 12px; }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3842; display: block; }
.browser picture, .browser img { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.6rem; }
.brand img { width: 96px; }
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.2rem); list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.nav a:not(.pill) { color: var(--muted); text-decoration: none; }
.nav a:not(.pill):hover { color: var(--text); }
.nav .pill { padding: 0.5rem 1.05rem; font-size: 0.9rem; }
@media (max-width: 52rem) { .nav .optional { display: none; } }

/* ---------- Hero: product on stage ---------- */
.hero { position: relative; text-align: center; padding-top: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero .glow { width: min(78rem, 140vw); height: 46rem; left: 50%; transform: translateX(-50%); top: clamp(18rem, 34vw, 26rem); background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.58), rgba(46, 180, 220, 0.28) 45%, transparent 70%); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.9rem, 1.1rem + 6.6vw, 7rem); line-height: 1; letter-spacing: -0.012em; margin-top: 1.5rem; text-wrap: balance; }
.hero h1 .line { display: block; }
.hero .sub { color: var(--muted); font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.6; max-width: 36rem; margin: 1.6rem auto 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2.2rem; }
.stage { position: relative; z-index: 1; width: min(68rem, calc(100% - 2 * var(--gutter))); margin: clamp(3rem, 6vw, 4.5rem) auto 0; }
.stage .browser { border-bottom: 0; border-radius: 14px 14px 0 0; }
.stage .shot { aspect-ratio: 16 / 6.6; overflow: hidden; position: relative; }
.stage .shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(0deg, var(--bg), rgba(15, 14, 19, 0)); pointer-events: none; }
.stage .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 40rem) {
  .hero h1 .line { display: inline; }
  .stage .shot { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: no-preference) {
  .stage { animation: rise 1.4s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(2.5rem); } to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); border-top: 1px solid var(--line); overflow: hidden; }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); line-height: 1.06; letter-spacing: -0.01em; margin-top: 0.9rem; text-wrap: balance; }
.hero + .section { border-top: 1px solid var(--line); }

/* Thesis: three chapters, read in order */
.thesis h2 { max-width: 18ch; }
.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.chapters > div { padding: 1.8rem 2rem 0.5rem 0; }
.chapters > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.chapters .n { font-family: var(--serif); font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; color: var(--bronze); }
.chapters h3 { font-size: 1.1rem; font-weight: 600; margin-top: 0.9rem; }
.chapters p { color: var(--muted); font-size: 1rem; line-height: 1.65; margin-top: 0.6rem; max-width: 34ch; }
@media (max-width: 52rem) {
  .chapters { grid-template-columns: 1fr; }
  .chapters > div, .chapters > div + div { padding: 1.6rem 0; border-left: 0; }
  .chapters > div + div { border-top: 1px solid var(--line); }
}

/* Core holding */
.holding .glow { width: 52rem; height: 38rem; right: -16rem; top: 4rem; background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.32), rgba(46, 180, 220, 0.14) 45%, transparent 70%); }
.holding .grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.holding .mark { margin-top: 1.4rem; }
.holding .mark img { width: clamp(15rem, 10rem + 14vw, 24rem); }
.holding .copy p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; margin-top: 1.5rem; max-width: 34rem; }
.holding .meta { margin-top: 1.8rem; }
@media (max-width: 56rem) { .holding .grid { grid-template-columns: 1fr; } }

/* Company */
.company .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.company h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); max-width: 22ch; }
.company .grid p { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 34rem; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.facts > div { padding: 1.3rem 1.25rem 0 0; }
.facts dt { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.facts dd { font-family: var(--serif); font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.2; margin-top: 0.45rem; }
.facts dd a { text-decoration: none; }
.facts dd a:hover { color: var(--tag); }
@media (max-width: 56rem) {
  .company .grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
}

/* Contact invitation */
.contact { text-align: center; }
.contact .glow { width: 50rem; height: 26rem; left: 50%; transform: translateX(-50%); top: 3rem; background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.28), transparent 70%); }
.contact .inner { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); }
.contact .lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; margin-top: 1.6rem; color: var(--muted); font-size: 1.05rem; }
.contact .lines a { text-decoration-color: var(--pill-line); }
.contact .lines a:hover { color: var(--text); }
.contact .actions { margin-top: 2.2rem; display: flex; justify-content: center; }

/* Legal pages */
.legal-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); }
.legal-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 1.6rem + 4.6vw, 5.6rem); line-height: 1; letter-spacing: -0.01em; }
.legal { max-width: 44rem; padding-bottom: var(--section); }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.1; margin: 3.5rem 0 1rem; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin: 2.2rem 0 0.5rem; }
.legal p { color: var(--muted); font-size: 1rem; }
.legal p + p { margin-top: 1em; }
.legal address { font-style: normal; color: var(--text); margin: 0.6rem 0 1.1rem; }
.note { border: 1px dashed var(--tag-line); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 2.75rem; }
.note .k { display: block; color: var(--tag); font-size: 0.85rem; margin-bottom: 0.4rem; }
.note .t { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; }
.note .d { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }
.inline-note { display: block; border: 1px dashed var(--tag-line); border-radius: 10px; padding: 0.75rem 1rem; color: var(--muted); font-size: 0.95rem; }
.inline-note strong { color: var(--tag); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.8rem 2.2rem; color: var(--muted); font-size: 0.9rem; }
.site-footer ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.notfound { min-height: calc(100svh - 12rem); display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.notfound .glow { width: 44rem; height: 26rem; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.28), transparent 70%); }
.notfound .inner { position: relative; z-index: 1; }
.notfound h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5.2rem); line-height: 1.02; }
.notfound p { color: var(--muted); margin-top: 1rem; }
.notfound .actions { margin-top: 2rem; display: flex; justify-content: center; }
