/* ============================================================
   Praxis Melanie Gelhausen — Netphen
   System: „Angesprochen, wie Sie sind"
   Warmes Papierweiß · Near-Black · Oxblood · Cinzel / Source Sans 3
   Gestapelte Papierbögen (framed-Variante), Kapitelmarken mit
   Serif-Ziffern, LGBTQ+-sensible Therapie als Kern (1q, queermed)
   ============================================================ */

:root {
  --paper: #f6f1e7;
  --paper-2: #ece4d3;
  --black: #1d1b18;
  --black-2: #302d28;
  --oxblood: #6e2126;
  --oxblood-2: #8d3438;
  --grey-p: #6d675e;
  --hair-p: rgba(29, 27, 24, .17);
  --ox-hair: rgba(110, 33, 38, .35);
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
  --luft: clamp(5rem, 10.5vw, 9.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--black);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--oxblood); color: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='148' height='148'%3E%3Cfilter id='p4'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' seed='59'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p4)'/%3E%3C/svg%3E");
}

/* ---------- Kopf ---------- */
.sheet-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--pad);
  background: rgba(246, 241, 231, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair-p);
}
.sheet-head .rm {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.02rem;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.sheet-head .rm b { color: var(--oxblood); font-weight: 600; }
.sheet-head nav { display: flex; gap: 1.6rem; }
.sheet-head nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--grey-p);
  text-decoration: none;
  transition: color .2s;
}
.sheet-head nav a:hover, .sheet-head nav a[aria-current="page"] { color: var(--black); }
.sheet-head .call {
  font-weight: 600;
  font-size: .9rem;
  color: var(--paper);
  background: var(--oxblood);
  text-decoration: none;
  padding: .5rem 1.05rem;
  white-space: nowrap;
  transition: background .2s;
}
.sheet-head .call:hover { background: var(--black); }

/* ---------- Gestapelte Papierbögen (framed-Variante) ---------- */
.sheets {
  padding: clamp(8rem, 16vw, 11.5rem) var(--pad) var(--luft);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.sheets .s-kick {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--oxblood);
}
.sheets h1 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 4.3rem);
  line-height: 1.16;
  letter-spacing: .02em;
  max-width: 15ch;
  margin-top: clamp(1rem, 2.5vw, 1.7rem);
}
.sheets .s-sub {
  margin-top: clamp(1.2rem, 3vw, 1.9rem);
  max-width: 50ch;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--grey-p);
}
.sheets .s-acts { margin-top: clamp(1.7rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: .9rem; }
.pbtn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: .97rem;
  padding: .95rem 1.55rem;
  transition: background .2s, color .2s, border-color .2s;
}
.pbtn.ox { background: var(--oxblood); color: var(--paper); }
.pbtn.ox:hover { background: var(--black); }
.pbtn.rim { border: 1.5px solid var(--hair-p); color: var(--black); }
.pbtn.rim:hover { border-color: var(--oxblood); color: var(--oxblood); }

/* gestapelte Bögen: zwei versetzte Rahmen um das Bild */
.sheets .pile { position: relative; padding: 0 1.6rem 1.6rem 0; }
.sheets .pile::before {
  content: "";
  position: absolute;
  inset: 1.6rem 0 0 1.6rem;
  background: var(--paper-2);
  border: 1px solid var(--hair-p);
}
.sheets .pile::after {
  content: "";
  position: absolute;
  inset: .8rem .8rem .8rem .8rem;
  background: var(--paper);
  border: 1px solid var(--hair-p);
}
.sheets .pile img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border: 1px solid var(--hair-p);
}
.sheets .pile figcaption {
  position: relative;
  z-index: 2;
  font-size: .85rem;
  color: var(--grey-p);
  padding: .8rem 0 0 1.7rem;
}

/* ---------- Kapitelmarken mit Serif-Ziffern ---------- */
.chapter-p {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.4rem);
}
.chapter-p .cno {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  color: var(--oxblood);
}
.chapter-p h2 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.45rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: .02em;
  max-width: 20ch;
}

/* ---------- Standard ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); }
.sec { padding-block: var(--luft); }
.sec.mid { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.zone-ink { background: var(--black); color: var(--paper); }
.zone-ink .stand, .zone-ink p { color: rgba(246, 241, 231, .78); }
.zone-ink h2, .zone-ink .h-cin { color: var(--paper); }
.zone-ink .chapter-p .cno { color: var(--oxblood-2); }

.h-cin {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: .02em;
  max-width: 22ch;
}
.stand { margin-top: 1rem; font-size: 1.08rem; color: var(--grey-p); max-width: 54ch; }
.prose { max-width: 58ch; }
.prose p + p { margin-top: 1.05rem; }

/* Papierzeilen */
.p-rows { border-top: 2px solid var(--black); }
.zone-ink .p-rows { border-color: rgba(246, 241, 231, .5); }
.p-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: .35rem clamp(1.4rem, 4vw, 3.5rem);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hair-p);
  align-items: baseline;
}
.zone-ink .p-rows > div { border-color: rgba(246, 241, 231, .22); }
.p-rows dt {
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--oxblood);
}
.zone-ink .p-rows dt { color: var(--oxblood-2); }
.p-rows dd { font-weight: 500; }
.zone-ink .p-rows dd { color: var(--paper); }

/* Oxblood-Karte (Verfahren) */
.oxcard {
  background: var(--oxblood);
  color: var(--paper);
  padding: clamp(1.7rem, 4vw, 2.7rem);
}
.oxcard h3 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  margin-bottom: .6rem;
  max-width: 26ch;
}
.oxcard p { color: rgba(246, 241, 231, .85); max-width: 56ch; }

/* Offen-Karte */
.p-open {
  border: 2px dashed var(--oxblood);
  padding: clamp(1.7rem, 4vw, 2.7rem);
}
.p-open .lbl {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--paper);
  background: var(--oxblood);
  padding: .35rem .8rem;
  margin-bottom: 1rem;
}
.p-open h3 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  margin-bottom: .6rem;
  max-width: 26ch;
}
.p-open p { color: var(--grey-p); max-width: 58ch; }

/* Krise */
.p-crisis {
  background: var(--black);
  color: var(--paper);
  padding: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(2.8rem, 6vw, 4.4rem);
}
.p-crisis h2 { font-family: "Cinzel", Georgia, serif; font-weight: 400; font-size: 1.3rem; margin-bottom: .8rem; }
.p-crisis p { color: rgba(246, 241, 231, .8); font-size: .97rem; }
.p-crisis strong { color: #fff; }
.p-crisis a { color: var(--oxblood-2); font-weight: 600; text-decoration: none; }
.p-crisis a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.k-foot {
  background: var(--black-2);
  padding: var(--luft) var(--pad) clamp(2.5rem, 6vw, 4rem);
}
.k-foot .kick { color: var(--oxblood-2); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .26em; }
.k-foot .huge {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.8rem, 4.8vw, 3.7rem);
  line-height: 1.22;
  letter-spacing: .02em;
  max-width: 21ch;
  color: var(--paper);
  margin-top: 1rem;
}
.k-foot .huge a {
  color: var(--oxblood-2);
  text-decoration: none;
  border-bottom: 2px solid var(--ox-hair);
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.k-foot .huge a:hover { color: var(--paper); border-color: var(--paper); }

.k-baseline {
  background: var(--black-2);
  color: rgba(246, 241, 231, .62);
  padding: 0 var(--pad) 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2.2rem;
  justify-content: space-between;
  font-size: .88rem;
}
.k-baseline nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.k-baseline a { color: rgba(246, 241, 231, .62); text-decoration: none; }
.k-baseline a:hover { color: var(--paper); }

.fnote { font-size: .85rem; color: var(--grey-p); padding: 1.3rem 0; max-width: 70ch; }
.zone-ink .fnote, .k-foot .fnote { color: rgba(246, 241, 231, .62); }
sup.star { color: var(--oxblood); font-weight: 600; }
.zone-ink sup.star, .k-foot sup.star { color: var(--oxblood-2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .sheets { grid-template-columns: 1fr; }
  .p-rows > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 700px) {
  .sheet-head nav { display: none; }
}
/* wrap+prose-Kollision */
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 60ch; }
