/* Markus Uhrig Architektur – Index v1
   Zwei Welten: Papier (Sätze) und Nacht (Zeichnungen). */
@font-face {
  font-family: "Melodrama";
  src: url("../fonts/Melodrama-Variable.woff2?v=u1-20260930g") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: block;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Variable.woff2?v=u1-20260930g") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
:root {
  --papier: #efeeea;
  --tinte: #141414;
  --graphit: #5c5d60;
  --nacht: #0d0d0d;
  --kreide: #f4f1e8;
  --kreide-2: rgba(244, 241, 232, .6);
  --stahl: #cfe6ef;
  --kalk: #f8f5ee;   /* dritte Fläche, nur Werk: Weiss mit einem Hauch Beige (Philip, 28.09.2026) */
  --haar: rgba(20, 20, 20, .18);
  --haar-n: rgba(244, 241, 232, .18);
  --titel: "Melodrama", Georgia, "Times New Roman", serif;
  --text: "Nunito", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(16px, 5vw, 80px);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--papier); color: var(--tinte);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.nur-vorleser {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rahmen { padding-inline: var(--rand); }
.etikett { font: 700 11px/1.35 var(--text); letter-spacing: .28em; text-transform: uppercase; }
.nacht { background: var(--nacht); color: var(--kreide); }
.papier { background: var(--papier); color: var(--tinte); }
.spur { position: relative; }
.buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- Einstieg ---------- */
.einstieg .buehne { background: var(--papier); }
.einstieg .fenster { position: absolute; inset: 0; background: var(--nacht); }
.einstieg .strasse { position: absolute; inset: 0; width: 100%; height: 100%; }
.einstieg .strasse path {
  fill: none; stroke: var(--kreide); stroke-width: var(--sw, 2); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.einstieg .wort {
  position: absolute; top: 50%; left: 0; z-index: 3; white-space: nowrap;
  font: 500 100px/.82 var(--titel); letter-spacing: -.01em; color: var(--tinte);
}
.marke {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center;
  gap: clamp(14px, 2vh, 22px); color: var(--kreide); opacity: 0; pointer-events: none; text-align: center;
}
.zeichen { display: flex; align-items: stretch; font: 500 clamp(64px, 9vw, 132px)/.8 var(--titel); }
.zeichen .strich { width: 1px; background: currentColor; margin-inline: .22em; }
.wortmarke { font: 700 clamp(11px, 1.05vw, 14px)/1 var(--text); letter-spacing: .34em; text-transform: uppercase; padding-left: .34em; }
.scroll-hinweis {
  position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  font: 700 10px/1 var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--graphit); z-index: 2;
}

/* ---------- Haltung ---------- */
.haltung .buehne { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
.haltung blockquote { margin: 0; max-width: 1180px; }
.haltung .satz { margin: 0; font: 500 clamp(34px, 5.4vw, 86px)/1.04 var(--titel); letter-spacing: -.01em; text-wrap: balance; }
.haltung .satz span { opacity: .12; }
.haltung footer { margin-top: clamp(24px, 4vh, 44px); display: flex; gap: 16px; align-items: center; color: var(--graphit); }
.haltung footer::before { content: ""; width: 48px; height: 1px; background: currentColor; }

/* ---------- Kapitel mit Zeichnung (Karte) ---------- */
.kapitel .buehne {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  align-items: center; gap: 12px; padding-block: 20px;
}
@media (min-width: 900px) {
  .kapitel .buehne { grid-template-columns: minmax(300px, 4fr) 7fr; grid-template-rows: 1fr; gap: clamp(24px, 4vw, 64px); padding-block: 0; }
}
.kapitel .text { display: grid; gap: 20px; align-content: center; order: 2; }
@media (min-width: 900px) { .kapitel .text { order: 0; } }
.kapitel .text .etikett { color: var(--kreide-2); }
.kapitel h2 { margin: 0; font: 500 clamp(28px, 3.6vw, 56px)/1.02 var(--titel); }
/* Grosse Marke statt Nummernliste (Philip, 28.09.2026): ein Wort, das mit der Zeichnung wechselt.
   Stärke nach der Regel der Seite: 18. JH. leicht · CA. 300 M in Stahl · 1988 kräftig */
.marke-k { display: grid; gap: 14px; }
.mk-wort { display: grid; font-family: var(--titel); font-size: clamp(46px, 5vw, 96px); line-height: .95; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.mk-wort span { grid-area: 1 / 1; opacity: 0; transition: opacity .45s ease; }
.mk-wort span:nth-child(1) { font-weight: 300; }
.mk-wort span:nth-child(2) { font-weight: 480; color: var(--stahl); }
.mk-wort span:nth-child(3) { font-weight: 700; }
.mk-wort span.an { opacity: 1; }
.mk-saetze { list-style: none; margin: 0; padding: 0; display: grid; max-width: 36ch; }
.mk-saetze li { grid-area: 1 / 1; opacity: 0; transition: opacity .45s ease; font-size: 16px; line-height: 1.45; color: var(--kreide); }
.mk-saetze li.an { opacity: 1; }
.mk-takt { display: flex; gap: 8px; }
.mk-takt i { width: 36px; height: 2px; background: var(--haar-n); transition: background .3s ease; }
.mk-takt i.an { background: var(--kreide); }
.kapitel .quelle { font: 400 12px/1.45 var(--text); color: var(--kreide-2); }
.zeichnung { position: relative; width: 100%; height: 100%; min-height: 0; }
.zeichnung svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zeichnung path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.z-parzellen path { stroke: var(--kreide); stroke-width: 1.1; }
.z-mauer path { stroke: var(--stahl); stroke-width: 2.6; }
.z-plan { opacity: 0; }
.z-plan path { stroke: var(--kreide); stroke-width: 1; }
.z-plan .mauer1988 { stroke: var(--stahl); stroke-width: 2.2; }
@media (max-width: 899px) {
  .kapitel .buehne { grid-template-rows: minmax(0, 1fr) auto; }
  .kapitel .text { gap: 10px; padding-bottom: 8px; }
  .kapitel h2 { font-size: 26px; }
  .mk-wort { font-size: clamp(40px, 11vw, 60px); }
  .mk-saetze li { font-size: 15px; }
}

/* ---------- Stadtmauer: Zitat und Zahlen ---------- */
.mauer { padding-block: clamp(90px, 14vh, 170px) 40px; display: grid; gap: clamp(28px, 5vh, 56px); max-width: 1240px; }
.mauer .etikett, .werk .etikett { color: var(--graphit); }
.zitat { margin: 0; font: 500 clamp(26px, 3.4vw, 50px)/1.12 var(--titel); max-width: 30ch; text-wrap: pretty; }
.zitat cite { display: block; margin-top: 18px; font: 700 11px/1.35 var(--text); letter-spacing: .28em; text-transform: uppercase; color: var(--graphit); font-style: normal; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--haar); }
.zahlen div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--haar); display: grid; gap: 8px; align-content: start; }
@media (min-width: 760px) { .zahlen div + div { border-left: 1px solid var(--haar); padding-left: 24px; } }
.zahlen b { font: 500 clamp(44px, 5.6vw, 84px)/.9 var(--titel); font-variant-numeric: tabular-nums; }
.zahlen span { color: var(--graphit); font-size: 15px; max-width: 34ch; }

/* ---------- Bildlauf ---------- */
.lauf .buehne { display: grid; align-items: center; }
.lauf .reihe { display: flex; gap: clamp(16px, 3vw, 40px); padding-inline: var(--rand); width: max-content; will-change: transform; }
.lauf figure { margin: 0; display: grid; gap: 10px; }
.lauf img { height: min(66vh, 60vw); width: auto; }
@media (max-width: 699px) {
  /* Telefon: jedes Bild als Hochformat-Zuschnitt, gross statt schmaler Streifen im Weissraum */
  .lauf .reihe { gap: 14px; }
  .lauf img { height: min(64svh, 150vw); width: 84vw; object-fit: cover; object-position: var(--fokus, 50%) 50%; }
}
.lauf figcaption { font: 400 13px/1.4 var(--text); color: var(--graphit); display: flex; justify-content: space-between; gap: 24px; }

/* ---------- Auszeichnung ---------- */
.auszeichnung .buehne { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
.auszeichnung .innen { max-width: 1180px; display: grid; gap: clamp(20px, 3.5vh, 36px); position: relative; padding-left: clamp(20px, 3vw, 44px); }
.auszeichnung .linie { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--stahl); transform-origin: 50% 0; transform: scaleY(0); }
.auszeichnung .etikett { color: var(--kreide-2); }
.jury { margin: 0; max-width: 64ch; font: 350 clamp(17px, 1.7vw, 26px)/1.5 var(--text); letter-spacing: .005em; }   /* Nunito: Melodrama war im Fliesstext zu schwer lesbar (Philip, 30.09.2026) */
@media (max-height: 760px) and (min-width: 900px) { .jury { font-size: clamp(16px, 1.5vw, 22px); } }
.jury span { opacity: .16; }
.jury-zaehler { display: none; color: var(--stahl); }
@media (max-width: 699px) {
  /* Telefon: ein Satz nach dem anderen, gross und kräftiger — Melodramas Haarlinien tragen unter 20 px nicht */
  .jury { display: grid; font-size: clamp(18px, 5.2vw, 21px); font-weight: 400; line-height: 1.5; }
  .jury span { grid-area: 1 / 1; opacity: 0; transition: opacity .45s ease; }
  .jury span.an { opacity: 1; }
  .jury-zaehler { display: block; }
  .ruhig .jury { display: block; }
  .ruhig .jury span { opacity: 1; }
  .ruhig .jury span + span { display: block; margin-top: .8em; }
  .ruhig .jury-zaehler { display: none; }
}
.auszeichnung .klein { margin: 0; font-size: 14px; color: var(--kreide-2); max-width: 70ch; }

/* ---------- Werk ---------- */
.werk { background: var(--kalk); padding-block: clamp(90px, 14vh, 160px) clamp(90px, 14vh, 160px); }
.werk .kopfzeile { display: grid; gap: 14px; margin-bottom: clamp(28px, 5vh, 56px); max-width: 1240px; }
.werk h2 { margin: 0; font: 500 clamp(40px, 6vw, 96px)/.95 var(--titel); }
.werk .raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 900px) { .werk .raster { grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); } }
.werk .bildrahmen { position: sticky; top: 0; height: 40vh; height: 40svh; z-index: 2; background: var(--kalk); padding-block: 12px; order: -1; }
@media (min-width: 900px) { .werk .bildrahmen { order: 2; top: 12vh; height: 72vh; height: 72svh; padding: 0; } }
.werk .bildrahmen figure { margin: 0; position: absolute; inset: 12px 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; opacity: 0; transition: opacity .45s ease; }
@media (min-width: 900px) { .werk .bildrahmen figure { inset: 0; } }
.werk .bildrahmen figure.an { opacity: 1; }
.werk .bildrahmen img { width: 100%; height: 100%; object-fit: cover; }
.werk .bildrahmen figcaption { font: 400 13px/1.4 var(--text); color: var(--graphit); }
.werk .gruppe { margin: 0 0 clamp(28px, 5vh, 48px); }
.werk .gruppe > .etikett { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--haar); }
.werk .gruppe ul { list-style: none; margin: 0; padding: 0; }
.werk .gruppe li {
  border-bottom: 1px solid var(--haar);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px;
  padding-block: clamp(12px, 1.8vh, 18px);
  font: 500 clamp(24px, 2.6vw, 40px)/1.1 var(--titel); color: var(--graphit); transition: color .3s ease;
}
.werk .gruppe li .nr { font: 700 11px/1 var(--text); letter-spacing: .2em; color: var(--graphit); }
.werk .gruppe li { color: #85847f; }
.werk .gruppe li .name { display: flex; align-items: center; min-width: 0; }
.werk .gruppe li .name::before { content: ""; flex: none; width: 0; height: 1px; margin-right: 0; background: currentColor; transition: width .35s ease, margin-right .35s ease; }
.werk .gruppe li.an { color: var(--tinte); }
.werk .gruppe li.an .name::before { width: .9em; margin-right: .32em; }
.werk .gruppe li.an .nr { color: var(--tinte); }
@media (max-width: 899px) { .werk .bildrahmen figcaption { display: none; } .werk .bildrahmen figure { grid-template-rows: minmax(0, 1fr); } }

/* ---------- Tal: morgen · heute · gestern ---------- */
.tal .buehne { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(16px, 3.4vh, 44px); }
.tal .etikett { color: var(--kreide-2); margin: 0; }
.tal .rolle { height: 1.4em; overflow: hidden; font: 500 clamp(80px, min(19vw, 30vh), 290px)/1.4 var(--titel); letter-spacing: -.02em; margin-block: -.3em -.25em; }
.tal .band { display: grid; will-change: transform; }
.tal .band span { height: 1.4em; display: block; }
.tal .leiste { display: flex; gap: 22px; }
.tal .leiste span { transition: color .3s ease; }
.tal .leiste span.an { color: var(--stahl); }
.tal .saetze { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 44ch; }
.tal .satz { grid-area: 1 / 1; margin: 0; font: 500 clamp(20px, 2.1vw, 32px)/1.28 var(--titel); color: var(--kreide); opacity: 0; transition: opacity .45s ease; }
.tal .satz.an { opacity: 1; }
.tal .satz cite { display: block; margin-top: 12px; font: 700 11px/1.35 var(--text); letter-spacing: .28em; text-transform: uppercase; color: var(--kreide-2); font-style: normal; }
.tal .klein { margin: 0; font-size: 14px; color: var(--kreide-2); max-width: 62ch; }
.tal .klein a { color: var(--kreide); }

/* ---------- Stapel: ein Kapitel legt sich über das stehende ---------- */
[data-stapel] { position: relative; z-index: 3; box-shadow: 0 -24px 60px rgba(0, 0, 0, .22); }
.gedeckt { transform-origin: 50% 0; transform: scale(calc(1 - .06 * var(--deck, 0))); }
.gedeckt::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(.55 * var(--deck, 0)); pointer-events: none; z-index: 9; }

/* ---------- Kontakt ---------- */
.kontakt { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding-block: clamp(80px, 12vh, 140px); }
.kontakt h2 { margin: 0 0 clamp(28px, 5vh, 56px); font: 500 clamp(44px, 7vw, 110px)/.92 var(--titel); }
.kontakt .bueros { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--haar); max-width: 1240px; }
.kontakt .buero { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--haar); display: grid; gap: 10px; align-content: start; }
@media (min-width: 760px) { .kontakt .buero + .buero { border-left: 1px solid var(--haar); padding-left: 24px; } }
.kontakt .buero h3 { margin: 0; font: 500 clamp(28px, 3vw, 44px)/1 var(--titel); }
.kontakt address { font-style: normal; color: var(--graphit); }
.kontakt .zeile { font-variant-numeric: tabular-nums; }
.kontakt .zeile a { text-decoration: none; border-bottom: 1px solid var(--haar); }
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--haar); color: var(--graphit); font-size: 13px; }
.fuss .klein-marke { font: 500 22px/1 var(--titel); color: var(--tinte); display: flex; align-items: center; gap: 10px; }
.fuss .klein-marke i { width: 1px; height: 18px; background: currentColor; }

/* ---------- Reduzierte Bewegung ---------- */
.ruhig .spur { height: auto !important; }
.ruhig .buehne { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
.ruhig .lauf .reihe { flex-wrap: wrap; width: auto; }
.ruhig .lauf img { height: auto; width: min(100%, 720px); }
.ruhig [data-stapel] { margin-top: 0 !important; box-shadow: none; }
.ruhig .gedeckt { transform: none; }
.ruhig .gedeckt::after { display: none; }
.ruhig .tal .rolle { display: none; }
.ruhig .tal .leiste { display: none; }
.ruhig .tal .saetze { gap: 28px; }
.ruhig .tal .satz { grid-area: auto; opacity: 1; }

/* ---------- Versalien und Stärke (Philip, 28.09.2026) ----------
   Regel: leicht = Bestand, Gestern · mittel = seine Sätze · kräftig = das Neue, Stahl, Morgen.
   Stärke ändert sich nur bei einzelnen Wörtern, nie in ganzen Sätzen (Zeilen würden springen). */
.einstieg .wort { text-transform: uppercase; letter-spacing: .05em; font-weight: 300; }
.stst { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .45em;
  font: 300 clamp(44px, 7.4vw, 118px)/.95 var(--titel); text-transform: uppercase; letter-spacing: .05em; }
.stst .stahl { font-weight: 700; }
.stst .und { font: 700 max(11px, .3em)/1 var(--text); letter-spacing: .26em; color: var(--graphit); }
.kapitel h2, .werk h2 { text-transform: uppercase; font-weight: 300; letter-spacing: .08em; }
.tal .rolle { font-size: clamp(46px, min(12.4vw, 22vh), 200px); text-transform: uppercase; letter-spacing: .04em; }
.tal .band span:nth-child(1) { font-weight: 300; }
.tal .band span:nth-child(2) { font-weight: 480; }
.tal .band span:nth-child(3) { font-weight: 700; }
.kontakt h2 { text-transform: uppercase; font-weight: 300; letter-spacing: .06em; }
.kontakt .buero h3 { text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.ruhig .mk-wort span, .ruhig .mk-saetze li { grid-area: auto; opacity: 1; }
.ruhig .mk-takt { display: none; }
/* ---------- Mennige-Rot als Akzent (Philip 30.09.2026: „perfekt so") (nur Linien und Marken, nie Text, nicht im Logo) ---------- */
:root { --mennige: #c4472b; }
.haltung footer::before { background: var(--mennige); height: 2px; }
.mk-takt i.an { background: var(--mennige); }
.werk .gruppe li.an .name::before { background: var(--mennige); height: 2px; }
.tal .leiste span { position: relative; }
.tal .leiste span::after { content: ""; position: absolute; left: 0; right: .26em; bottom: -8px; height: 2px; background: var(--mennige); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
.tal .leiste span.an::after { transform: scaleX(1); }

/* ---------- Tür im Einstieg: Haustür mit zwei Füllungen und Knauf (Philip, 30.09.2026) ---------- */
.einstieg .tor { position: absolute; left: 0; top: 0; pointer-events: none; }
.einstieg .fluegel { position: absolute; inset: 0; background: var(--nacht); transform-origin: 0 50%; backface-visibility: hidden; will-change: transform; }
.einstieg .fluegel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.einstieg .fluegel path { fill: none; stroke: var(--kreide); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; opacity: .92; }
.ruhig .einstieg .tor { display: none; }
.einstieg .knauf { position: absolute; left: 84%; top: 52%; width: 7%; height: 0; padding-bottom: 7%; box-sizing: content-box; border: 1px solid var(--kreide); border-radius: 50%; transform: translate(-50%, -50%); opacity: .92; }
.einstieg .schwelle { position: absolute; left: 0; top: 0; height: 1px; background: var(--tinte); z-index: 3; pointer-events: none; display: none; }
.ruhig .einstieg .schwelle { display: none !important; }
