/* vwincenzo.com
   Schwarz, weiß, Haarlinien. Eine bewusste Festlegung auf eine visuelle Welt —
   deshalb kein Light Mode, auch nicht über prefers-color-scheme. */

/* ---------- Schriften ---------- */

@font-face {
  font-family: "Righteous";
  src: url("/assets/fonts/righteous-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --black:   #000;
  --white:   #FFF;
  --line:    #2A2A2A;   /* Haarlinien */
  --line-2:  #444;      /* betonte Linie */
  --dim:     #8C8C8C;   /* Sekundärtext — 6,25:1 auf Schwarz, AA erfüllt */
  --dim-2:   #7A7A7A;   /* Kleintext wie Kicker und Metazeilen — 4,89:1, AA erfüllt.
                           Vorher #5A5A5A mit 3,04:1: bei 11,5px durchgefallen. */

  --f-display: "Righteous", "Trebuchet MS", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --rail: 64px;                      /* linke Spalte mit Nummer und Label */
  --gut: max(20px, env(safe-area-inset-left));
  --gut-r: max(20px, env(safe-area-inset-right));
  --measure: 62ch;
}

@media (min-width: 720px) {
  :root { --rail: 92px; --gut: max(40px, env(safe-area-inset-left)); --gut-r: max(40px, env(safe-area-inset-right)); }
}

/* ---------- Seitenwechsel ---------- */

@view-transition { navigation: auto; }

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;          /* damit Anker nicht unter der Pille landen */
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p, ul, ol { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .5em; }
li::marker { color: var(--dim-2); }
strong { font-weight: 500; color: var(--white); }

a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--white); }

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

::selection { background: var(--white); color: var(--black); }

/* ---------- Menüpille ---------- */

.pill {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(28,28,28,.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  max-width: calc(100vw - 20px);
  view-transition-name: pill;        /* wandert beim Seitenwechsel mit */
}

.pill .mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  padding-bottom: 2px;
}
/* Sichtbarer Kreis bleibt 36px, die Trefferfläche wächst auf 44px. */
.pill .mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
}
.pill .mark:hover { background: var(--dim); }

.pill a:not(.mark) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
}
.pill a:not(.mark):hover { color: var(--white); }
.pill a[aria-current] { color: var(--white); }

@media (max-width: 460px) {
  .pill { gap: 0; padding: 3px 4px 3px 3px; }
  .pill .mark { width: 32px; height: 32px; font-size: 17px; }
  .pill .mark::after { inset: -6px; }   /* 32 + 12 = 44px Trefferfläche */
  .pill a:not(.mark) { padding: 0 8px; font-size: 10.5px; letter-spacing: .06em; }
}

/* ---------- Raster ---------- */

.grid {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  margin: 0 var(--gut-r) 0 var(--gut);
}

.sec {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  border-bottom: 1px solid var(--line);
  min-height: 72vh;
}
.sec:last-child { border-bottom: none; }

.rail {
  border-right: 1px solid var(--line);
  padding: 22px 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.rail .num {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.rail .lbl {
  writing-mode: vertical-rl;
  transform: rotate(180deg);        /* liest von unten nach oben */
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: auto;
}

.body { padding: 22px clamp(18px, 4vw, 48px) 56px; min-width: 0; }

/* Der erste Abschnitt beginnt unterhalb der schwebenden Pille. */
#intro .body { padding-top: clamp(84px, 12vh, 132px); }
#intro .rail { padding-top: clamp(84px, 12vh, 132px); }

.prose { max-width: var(--measure); color: var(--dim); }
.prose strong { color: var(--white); }

/* ---------- Typografie ---------- */

h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 6.6vw, 78px);
  line-height: 1.06;
  letter-spacing: -.005em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 .ln { display: block; }

h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 46px);
  line-height: 1.12;
  margin: 0 0 .7em;
  text-wrap: balance;
}

h3 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 2.6em 0 1em;
  color: var(--white);
}

.kicker {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin: 0 0 26px;
}
.kicker a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
  text-decoration: none;
}
.kicker a::before { content: "← "; }
.kicker a:hover { color: var(--white); }

.lede { font-size: clamp(15px, 1.9vw, 17px); color: var(--dim); max-width: 54ch; margin: 0 0 30px; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  cursor: pointer;
  border-radius: 999px;
}
.btn:hover { background: transparent; color: var(--white); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--white); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Stationen ---------- */

.cv { border-top: 1px solid var(--line); margin-top: 12px; }
.cv .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .cv .row { grid-template-columns: 148px 1fr; } }
.cv .when { color: var(--dim-2); font-size: 12.5px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.cv .what { color: var(--white); }
.cv .who { color: var(--dim); font-size: 14px; }

/* ---------- Prompt-Anreißer auf der Startseite ---------- */

.teaser { border-top: 1px solid var(--line); margin-top: 12px; }
.teaser a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  min-height: 44px;
}
.teaser a:hover .t { color: var(--dim); }
.teaser .t { font-family: var(--f-display); font-size: clamp(20px, 3.4vw, 30px); line-height: 1.15; }
.teaser .n { font-size: 12px; color: var(--dim-2); letter-spacing: .08em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.teaser .d { grid-column: 1 / -1; color: var(--dim); font-size: 14px; max-width: 52ch; }

/* ---------- Prompt-Liste auf der Unterseite ---------- */

.plist { border-top: 1px solid var(--line); }
.pitem { border-bottom: 1px solid var(--line); padding: 26px 0; }

.pitem .t {
  font-family: var(--f-display);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 10px;
  /* Bewusst Versalien: Der Prompt-Titel ist eine Beschriftung, keine
     Abschnittsüberschrift — so unterscheidet er sich von den h2. */
  text-transform: uppercase;
}
.pitem .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin: 0 0 20px;
}
.pitem .meta span + span::before {
  content: "·";
  margin-right: 10px;
  color: var(--line-2);
}
.pitem .row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

.reveal { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.reveal summary {
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  list-style: none;
}
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::after { content: " ↓"; }
.reveal[open] summary::after { content: " ↑"; }
.reveal summary:hover { color: var(--white); }

.reveal pre {
  margin: 16px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: #0A0A0A;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--dim);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  /* Kein max-height: der Prompt bleibt vollständig markierbar, wenn das
     Kopieren im In-App-Browser scheitert. */
}

.copy-hint { display: none; margin: 12px 0 0; font-size: 13px; color: var(--dim); }
.pitem.failed .copy-hint { display: block; }

/* ---------- Hinweisblock ---------- */

.note {
  border-left: 2px solid var(--line-2);
  padding: 14px 0 14px 18px;
  margin: 24px 0 0;
  max-width: var(--measure);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dim);
}
.note p { margin: 0; }
.note p + p { margin-top: .7em; }
.note strong { color: var(--white); }

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

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

.mailto {
  font-family: var(--f-display);
  font-size: clamp(22px, 5vw, 46px);
  line-height: 1.15;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  overflow-wrap: break-word;
}
.mailto:hover { border-bottom-color: var(--white); }

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

.foot {
  margin: 0 var(--gut-r) 0 var(--gut);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 22px clamp(18px, 4vw, 48px) calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim-2);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.foot a {
  color: var(--dim);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
}
.foot a:hover { color: var(--white); }
.foot .c { padding: 12px 0; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: var(--measure); color: var(--dim); font-size: 14.5px; }
.legal h2 { font-size: clamp(19px, 3vw, 24px); margin: 2.2em 0 .6em; color: var(--white); }
.legal h2:first-of-type { margin-top: 0; }
.legal strong { color: var(--white); }

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

/* Startzustände setzt app.js, nicht das CSS. Sonst bliebe die Seite ohne
   JavaScript leer. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}
