/* izzetarli.com. Punktpapier, Strichfiguren, ruhige Fäden.
   Farben aus der Ameen-Familie: Elfenbein als Grund, Papier für Blätter,
   Tinte für Schrift und Linien. Keine zweite Farbe.
   Zwei Aufbauten: quer (Laptop, die Werke in einer Reihe, der Faden quer
   darunter) und hoch (Handy, untereinander, der Faden links am Rand). */

@font-face { font-family: "Outfit"; font-weight: 300; font-display: swap; src: url("schriften/outfit-300.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("schriften/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("schriften/jetbrains-mono-400.woff2") format("woff2"); }

:root {
  --elfenbein: #e8e6e1;
  --papier: #f4f3ef;
  --tinte: #0f0f0e;
  --neben: #57544e;     /* Nebentext, 6:1 auf Elfenbein */
  --kante: #cdc9c0;

  --schrift: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --dauer-druck: 120ms;
  --dauer: 200ms;
  --aus: cubic-bezier(0.32, 0.72, 0, 1);

  /* Strichfiguren in Elfenbein statt Weiß. plate muss der Grund sein. */
  --hairline-plate: var(--elfenbein);
  --hairline-hi: var(--tinte);
  --hairline-edge: #8f8a80;
  --hairline-mid: #b4afa5;
  --hairline-lo: #d3cfc6;
  --hairline-stroke: 1;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--elfenbein);
  color: var(--tinte);
  font-family: var(--schrift);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible { outline: 2px solid var(--tinte); outline-offset: 3px; border-radius: 4px; }

/* ---------- Punktpapier und Fäden: zwei Leinwände hinter allem ---------- */

#punkte, #faeden {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* ---------- Kopf ---------- */

.oben {
  position: absolute; z-index: 2; left: 24px; right: 24px; top: 24px;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--mono); font-size: 13px;
}
.uhr { margin: 0; font-variant-numeric: tabular-nums; }
.uhr span { color: var(--neben); }

.sprache { display: flex; gap: 4px; }
.sprache a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; margin-top: -14px;
  text-decoration: none; color: var(--neben);
}
.sprache a[aria-current] { color: var(--tinte); }

.kopf h1 {
  margin: 0;
  font-weight: 300; font-size: 64px; line-height: 1.02; letter-spacing: -0.01em;
}
.kopf .intro { margin: 12px 0 0; font-weight: 300; font-size: 22px; color: var(--neben); }
.kopf .mehr {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px;
  font-size: 17px; text-underline-offset: 4px;
}

/* ---------- Werke ---------- */

.figur { width: 100%; cursor: pointer; }

/* Die Unterschrift sitzt auf dem Faden: Knoten links oben, Nummer daneben */
.unterschrift {
  display: block; position: relative; z-index: 1;
  margin-top: 16px; padding: 20px 0 8px;
  text-decoration: none;
  font-family: var(--mono); font-size: 13px; line-height: 1.45;
  /* Rand in Grundfarbe um die Schrift: Fäden laufen darunter durch, ohne zu stören */
  text-shadow: 0 0 2px var(--elfenbein), 0 0 4px var(--elfenbein), 0 0 8px var(--elfenbein);
}
.unterschrift .nr { color: var(--neben); }
.unterschrift b { display: block; font-family: var(--schrift); font-weight: 400; font-size: 18px; }
.unterschrift span:last-child { display: block; color: var(--neben); }
@media (hover: hover) {
  .unterschrift b { background: linear-gradient(var(--tinte), var(--tinte)) 0 100% / 0 1px no-repeat; transition: background-size var(--dauer) var(--aus); }
  .werk:hover .unterschrift b { background-size: 100% 1px; }
}

/* ---------- Dock ---------- */

.dock {
  position: fixed; z-index: 3; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px;
  background: var(--papier);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px var(--kante), 0 8px 24px rgb(15 15 14 / 0.12);
}
.dock a {
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 16px;
  border-radius: 999px;
  font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background var(--dauer) var(--aus), transform var(--dauer-druck) var(--aus);
}
@media (hover: hover) { .dock a:hover { background: var(--elfenbein); } }
.dock a[aria-current] { background: var(--elfenbein); }
.dock a:active { transform: scale(0.98); }

/* ---------- Übergang: ein Blatt Papier wächst aus dem Werk bis über die Seite ---------- */

.uebergang {
  position: fixed; inset: 0; z-index: 10;
  background: var(--papier);
  pointer-events: none;
}

/* ---------- Aufbau quer (Laptop): ein Feld von 1280 × 800, mittig, mitskaliert ---------- */

.start { overflow: hidden; height: 100vh; }

.feld {
  position: absolute; left: 50%; top: 50%;
  width: 1280px; height: 800px;
  margin: -400px 0 0 -640px;
  transform: scale(var(--skala, 1));
}

.kopf  { position: absolute; left: 64px; top: 104px; }
/* Verteilt, aber geordnet: fünf gleiche Spalten, im Wechsel hoch und tief */
.reihe {
  position: absolute; left: 48px; right: 48px; top: 224px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px;
  align-items: start;
}
.reihe .werk:nth-child(even) { margin-top: 112px; }
/* Die Zeichenflächen haben viel Rand: die Figur darf über die Spalte hinaus */
.reihe .figur { width: 136%; margin-left: -18%; }

/* ---------- Aufbau hoch (Handy): untereinander, der Faden links am Rand ---------- */

@media (max-aspect-ratio: 4/5) {
  .start { overflow-x: hidden; overflow-y: auto; height: auto; }
  .oben { left: 16px; right: 16px; top: 16px; }

  .feld {
    position: relative; left: auto; top: auto;
    width: auto; height: auto; margin: 0;
    transform: none;
    padding: 80px 16px 128px;
  }
  .kopf { position: static; margin-bottom: 48px; }
  .kopf h1 { font-size: 48px; }
  .kopf .intro { font-size: 20px; text-wrap: balance; }

  /* Der Faden läuft links am Rand, die Werke im Wechsel links und rechts daneben */
  .reihe { position: static; display: flex; flex-direction: column; gap: 40px; padding-left: 28px; }
  .reihe .werk { width: 84%; }
  .reihe .figur { width: 112%; margin-left: -6%; }
  .reihe .werk:nth-child(even) { margin-top: 0; align-self: flex-end; }
  .unterschrift { margin-top: 8px; }

  .dock { gap: 0; padding: 4px; }
  .dock a { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .unterschrift b { transition: none; }
}

/* ---------- Unterseiten: das aufgeschlagene Blatt ---------- */

.blatt { background: var(--papier); --hairline-plate: var(--papier); }
.blatt .oben { position: absolute; }
.zurueck { color: var(--neben); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; margin-top: -14px; }
@media (hover: hover) { .zurueck:hover { color: var(--tinte); } }

.blatt-inhalt { max-width: 1120px; margin: 0 auto; padding: 120px 32px 160px; }
.blatt-kopf { max-width: 760px; margin-bottom: 64px; }
.blatt h1 { font-weight: 300; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 24px; }
.lead { margin: 0; font-weight: 300; font-size: 22px; line-height: 1.45; color: var(--neben); max-width: 34em; }
.klein { font-family: var(--mono); font-size: 13px; color: var(--neben); }

/* Ein Projekt: Figur und Text nebeneinander, im Wechsel */
.projekt {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px;
  align-items: start;
  padding: 64px 0; border-top: 1px solid var(--kante);
  scroll-margin-top: 24px;
}
.projekt:nth-of-type(even) .projekt-bild { order: 2; }
.projekt-bild .figur { max-width: 420px; cursor: default; }
.projekt .nr { font-family: var(--mono); font-size: 13px; color: var(--neben); margin: 0; }
.projekt h2 { font-weight: 300; font-size: 44px; line-height: 1.05; margin: 8px 0 8px; }
.projekt .zeile { font-size: 19px; line-height: 1.45; margin: 0 0 24px; }
.projekt p { font-size: 17px; line-height: 1.65; max-width: 34em; }
.fakten { list-style: none; padding: 0; margin: 24px 0 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 13px; color: var(--neben); }

.knopf {
  display: inline-flex; align-items: center; height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--tinte); color: var(--papier);
  font-size: 17px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 1px 2px rgb(15 15 14 / 0.3), 0 4px 12px rgb(15 15 14 / 0.12);
  transition: transform var(--dauer-druck) var(--aus), box-shadow var(--dauer) var(--aus);
}
.knopf:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 0 1px rgb(15 15 14 / 0.3); }
.textlink { font-size: 17px; text-underline-offset: 4px; }

/* Fotos sind Platzhalter, bis die neuen da sind */
.foto { position: relative; margin: 32px 0 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px; background: var(--elfenbein); }
.foto.hoch { aspect-ratio: 4 / 5; max-width: 360px; }
.foto img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.foto[data-platzhalter]::after {
  content: "Platzhalter"; position: absolute; left: 12px; top: 12px; padding: 2px 8px;
  background: var(--tinte); color: var(--papier); font-family: var(--mono); font-size: 12px;
}

.projekt.offen .projekt-bild {
  aspect-ratio: 5 / 4; max-width: 420px; border: 1.5px dashed var(--neben); border-radius: 12px;
  display: flex; align-items: flex-end; padding: 24px; font-family: var(--mono); font-size: 13px; color: var(--neben);
}

/* Über: Zeitstrahl mit Punktlinie und Knoten, wie die Fäden auf der Startseite */
.ueber-kopf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: end; margin-bottom: 96px; }
.ueber-kopf .foto { margin: 0; }

.zeitstrahl { list-style: none; margin: 0; padding: 0; max-width: 880px; }
.station {
  position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px;
  padding: 0 0 64px 32px;
}
.station::before {
  content: ""; position: absolute; left: 4px; top: 14px; bottom: -14px; width: 2px;
  background: radial-gradient(circle, var(--tinte) 1px, transparent 1.3px) 0 0 / 2px 7px repeat-y;
}
.station:last-child::before { display: none; }
.station::after { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--tinte); }
.station .jahr { font-weight: 300; font-size: 32px; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.station h3 { font-weight: 400; font-size: 21px; margin: 0 0 8px; }
.station p { font-size: 17px; line-height: 1.65; margin: 0 0 12px; max-width: 36em; }
.station .figur { max-width: 300px; margin-top: 16px; cursor: default; }
.station .foto { max-width: 480px; margin-top: 16px; }

/* Die Wende: die eine Station, die größer steht */
.station.wende { padding-top: 32px; padding-bottom: 96px; }
.station.wende::after { width: 14px; height: 14px; left: -2px; top: 40px; background: var(--papier); box-shadow: inset 0 0 0 2px var(--tinte); }
.station.wende .jahr { padding-top: 30px; }
.station.wende .klein { margin: 0 0 8px; }
.station .wende-satz { font-weight: 300; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 0 0 24px; max-width: 18em; }

.luecke { border: 1.5px dashed var(--neben); border-radius: 12px; padding: 16px 20px; margin: 16px 0; max-width: 36em; }
.luecke b { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--neben); margin-bottom: 4px; }

.abschnitt { border-top: 1px solid var(--kante); padding-top: 64px; margin-top: 32px; max-width: 760px; }
.abschnitt h2 { font-weight: 300; font-size: 40px; margin: 0 0 24px; }
.abschnitt p { font-size: 19px; line-height: 1.6; }

.kontakt-zeile { margin-top: 96px; border-top: 1px solid var(--kante); padding-top: 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.kontakt-zeile h2 { font-weight: 300; font-size: 32px; margin: 0; flex-basis: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .blatt-kopf, .ueber-kopf, .projekt:first-of-type { animation: auftauchen 600ms var(--aus) both; }
  .projekt:first-of-type { animation-delay: 80ms; }
}
@keyframes auftauchen { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 760px) {
  .blatt-inhalt { padding: 96px 16px 140px; }
  .projekt, .ueber-kopf { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .projekt:nth-of-type(even) .projekt-bild { order: 0; }
  .projekt h2 { font-size: 36px; }
  .station { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-left: 28px; }
  .station.wende .jahr { padding-top: 0; }
  .lead { font-size: 19px; }
}

/* ---------- Rechtliches und Fuß ---------- */

.recht { max-width: 720px; }
.recht h1 { margin-bottom: 8px; }
.recht h2 { font-weight: 400; font-size: 21px; margin: 40px 0 8px; }
.recht p, .recht li, .recht dd { font-size: 17px; line-height: 1.65; }
.recht ul { padding-left: 20px; }
.recht dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.recht dt { font-family: var(--mono); font-size: 13px; color: var(--neben); padding-top: 4px; }
.recht dd { margin: 0; }

.rechtliches { display: flex; gap: 16px; font-family: var(--mono); font-size: 12px; }
.rechtliches a { color: var(--neben); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .rechtliches a:hover { color: var(--tinte); } }
.start .rechtliches { position: fixed; z-index: 2; right: 24px; bottom: max(28px, env(safe-area-inset-bottom)); }
.blatt .rechtliches { max-width: 1120px; margin: -96px auto 0; padding: 0 32px 128px; }

@media (max-width: 760px) {
  .recht dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .recht dd { margin-bottom: 12px; }
  .blatt .rechtliches { padding: 0 16px 128px; }
}
@media (max-aspect-ratio: 4/5) {
  .start .rechtliches { position: static; padding: 0 16px 120px 44px; }
}
