/* ------------------------------------------------------------
   A quiet page · Eine stille Seite
   Concept: from night to morning. No cookies, no tracking.
   ------------------------------------------------------------ */

@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal;  font-display: swap; src: url("../fonts/cormorant-300.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: italic;  font-display: swap; src: url("../fonts/cormorant-300i.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal;  font-display: swap; src: url("../fonts/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }

:root {
  --bg: #070a17;
  --ink: rgb(239, 231, 216);
  --ink-soft: rgba(239, 231, 216, .66);
  --ink-faint: rgba(239, 231, 216, .18);
  --gold: rgb(232, 196, 138);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5.5vw, 84px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

/* language visibility */
[data-lang="en"] [lang="de"],
[data-lang="de"] [lang="en"] { display: none !important; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(60vmax 40vmax at 50% 42%, rgba(232, 196, 138, .14), transparent 70%),
    linear-gradient(180deg, #070a17 0%, #0d0c1f 55%, #1b1430 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(232, 196, 138, .35); color: inherit; }

a { color: inherit; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.no-webgl #scene { display: none; }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(9) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- header ---------- */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(18px, env(safe-area-inset-top)) var(--pad) 18px;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  opacity: .85;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: var(--ink);
}
.mark svg { width: 26px; height: 26px; overflow: visible; }
.mark svg circle { fill: var(--gold); }
.mark svg .ring { fill: none; stroke: var(--gold); stroke-opacity: .45; stroke-width: 1; transform-origin: 16px 16px; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.85); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }

.lang {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lang button {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: 500 .72rem/1 var(--sans);
  letter-spacing: .16em;
  padding: .62rem .9rem .58rem 1.02rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color .5s var(--ease);
}
.lang button[aria-pressed="true"] { color: var(--bg); }
.lang button:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.lang-ind {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--gold);
  transition: transform .7s var(--ease), background-color .6s;
}
[data-lang="de"] .lang-ind { transform: translateX(100%); }

/* ---------- chapter rail ---------- */
.rail {
  position: fixed;
  right: calc(var(--pad) * .45);
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  gap: 14px;
  align-items: stretch;
  font-family: var(--serif);
  font-size: .95rem;
}
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; text-align: right; }
.rail li { color: var(--ink-faint); transition: color .6s, transform .6s var(--ease); line-height: 1; }
.rail li.is-active { color: var(--gold); transform: translateX(-4px); }
.rail-line { position: relative; width: 1px; background: var(--ink-faint); order: 2; }
.rail-line i { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--gold); transform-origin: top; transform: scaleY(0); }

/* ---------- sections ---------- */
main { position: relative; z-index: 2; }

.s {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 18vh;
  padding-inline: var(--pad);
}
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; }
.center { text-align: center; }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .07em .12em; margin: 0 -.07em -.12em; }
.split .wi { display: inline-block; will-change: transform; }

.num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.num::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .5; }
.center .num { justify-content: center; }
.center .num::before { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .5; }

.title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0;
  max-width: 17em;
  text-wrap: balance;
}

/* hero */
.hero {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 2.2rem;
  padding-block: 16vh 12vh;
}
.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.eyebrow .host { letter-spacing: .12em; text-transform: none; font-size: .8rem; color: var(--gold); }

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 8.6vw, 9rem);
  line-height: .98;
  letter-spacing: -.025em;
}
.display .line { display: block; }
.it { font-style: italic; color: var(--gold); }

.lede {
  margin: 0;
  max-width: 34em;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: balance;
}

.cue {
  margin-top: 3vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cue i { position: relative; width: 1px; height: 64px; background: var(--ink-faint); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2.6s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* domains */
.domain-list {
  list-style: none;
  margin: 8vh 0 0;
  padding: 0;
  border-top: 1px solid var(--ink-faint);
}
.domain-list li {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(14px, 2.1vw, 26px) 0;
  border-bottom: 1px solid var(--ink-faint);
}
.domain-list li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  transform: scaleX(0);
  transition: transform 1.2s var(--ease);
}
.domain-list li:hover::after,
.domain-list li.is-here::after { transform: scaleX(1); }
.idx { font-size: .72rem; letter-spacing: .2em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  transition: letter-spacing 1s var(--ease), color .6s;
  white-space: nowrap;
}
.name .c { display: inline-block; will-change: transform; }
.domain-list li:hover .name { letter-spacing: .025em; color: var(--gold); }
.domain-list li.is-here .name { font-style: italic; color: var(--gold); }
.here {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .6s;
}
.domain-list li:not(.is-here) .here { display: none; }
.domain-list li.is-here .here { color: var(--gold); }
.domain-list li.is-here .here::before { content: ""; display: inline-block; vertical-align: middle; margin: -.15em .65rem 0 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px 3px rgba(232, 196, 138, .6); }
.domains .note { margin-top: 4vh; }

/* nothing */
.frame {
  position: relative;
  margin: 8vh 0 0;
  aspect-ratio: 16 / 6.5;
  max-width: 100%;
  display: grid;
  place-items: center;
}
.frame-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.frame-line rect {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.frame figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  color: var(--ink-soft);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(232, 196, 138, .5); animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 196, 138, .45); } 100% { box-shadow: 0 0 0 26px rgba(232, 196, 138, 0); } }

.pills { list-style: none; padding: 0; margin: 4.5vh 0 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.pills li {
  padding: .6rem 1.1rem .56rem;
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pills li::before { content: "∅"; margin-right: .6rem; color: var(--gold); letter-spacing: 0; }
.note {
  margin: 3.5vh 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--ink-soft);
}

/* values */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: 9vh;
}
.value {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-faint);
}
.value svg { width: 58px; height: 58px; overflow: visible; }
.value svg path, .value svg circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.value h3 {
  margin: 1.6rem 0 .6rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  line-height: 1;
}
.value p { margin: 0; color: var(--ink-soft); max-width: 22em; font-size: .98rem; }
.ref {
  margin: 6vh 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  opacity: .85;
}

/* closing */
.closing { flex-direction: column; justify-content: center; padding-bottom: 0; }
.closing .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.still {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4.2rem, 15vw, 14rem);
  line-height: .95;
  letter-spacing: -.03em;
}
.closing .ref { margin-top: 2.4vh; }
.blessing {
  margin: 5vh 0 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  max-width: 26em;
  text-wrap: balance;
}
.hint {
  margin: 5vh 0 0;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 2;
  color: var(--ink-soft);
}

.foot {
  width: 100%;
  max-width: 1180px;
  margin: 10vh auto 0;
  padding: 26px 0 max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 2rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.foot-links { display: inline-flex; flex-wrap: wrap; gap: .8rem 2rem; }
.foot a { text-decoration: none; transition: color .4s; }
.foot a:hover, .foot a:focus-visible { color: var(--gold); }

/* ---------- imprint & privacy ---------- */
.legal-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 82% -6%, rgba(232, 196, 138, .22), transparent 70%),
    radial-gradient(50vmax 30vmax at 10% 110%, rgba(120, 70, 90, .28), transparent 70%);
}
.legal {
  position: relative;
  z-index: 2;
  padding: calc(110px + 5vh) var(--pad) 0;
  animation: rise 1.4s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.legal-wrap { max-width: 860px; margin-inline: auto; }
.back {
  display: inline-block;
  margin-bottom: 6vh;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .4s;
}
.back:hover, .back:focus-visible { color: var(--gold); }
.legal-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.legal-title em { color: var(--gold); }
.legal-lede {
  margin: 2.2rem 0 0;
  max-width: 32em;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-soft);
}
.legal-toc { display: flex; flex-wrap: wrap; gap: .7rem; margin: 5vh 0 0; }
.legal-toc a {
  padding: .6rem 1.1rem .56rem;
  border: 1px solid var(--ink-faint);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .4s, border-color .4s;
}
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--gold); border-color: var(--gold); }
.legal-block { padding-top: 12vh; scroll-margin-top: 60px; }
.legal-block h2 {
  margin: 0 0 2.4rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
}
.legal-block h3 {
  margin: 3rem 0 .8rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.legal-block p { margin: 0 0 1rem; max-width: 42em; color: var(--ink-soft); }
.legal-block code { font-size: .88em; color: var(--ink); }
.address-card {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--ink-faint);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(232, 196, 138, .07), rgba(255, 255, 255, .01));
}
.address-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.address-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: 1.2rem !important; }
.address-card address {
  font-style: normal;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  color: var(--ink);
}
.address-mail { margin: 1.2rem 0 0 !important; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--ink) !important; }
.legal-summary {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink) !important;
  padding-left: 1.4rem;
  border-left: 1px solid var(--gold);
}
.authority { font-family: var(--serif); font-size: 1.2rem; color: var(--ink) !important; }
.legal .foot { margin-top: 14vh; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .rail { display: none; }
  .value-grid { grid-template-columns: 1fr; gap: 44px; }
  .frame { aspect-ratio: 4 / 3.4; }
  .domain-list li { grid-template-columns: 2.4rem 1fr; }
  .here { grid-column: 2; margin-top: -.1rem; white-space: normal; }
  .mark { font-size: 1.02rem; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .cue i::after, .pulse, .mark svg .ring, .legal { animation: none; }
}
