/* =====================================================================
   Aristokrat Roleplay · gemeinsames Fundament aller Seiten
   Layout: dunkle Bühne, Filigran statt Kästen. Gold ist Struktur, Rauten tragen
   Bedeutung, Schleier statt Flächen. Bewusst nur dunkel, wie HUD, Meldungen und
   Eulenpost im Spiel. Pergament nur für Gegenstände der Welt (Briefe).
   ===================================================================== */

:root {
  color-scheme: dark;

  /* Gründe */
  --bg: #0f0d0b;
  --bg-deep: #090807;
  --panel: #17140f;
  --panel-2: #1e1a14;
  --veil: 8, 6, 4;
  --dark: #1a130a;

  /* Gold */
  --gold: #c9a96a;
  --gold-hi: #f0dcae;
  --gold-rgb: 201, 169, 106;
  --line: rgba(201, 169, 106, .2);
  --rule-soft: rgba(201, 169, 106, .12);
  --rule-hi: rgba(201, 169, 106, .35);
  --frame: rgba(201, 169, 106, .8);

  /* Tinte */
  --ink: #ecdfc3;
  --ink-2: #bfb193;
  --mute: #a39780;
  --ink-3: #8c806a;

  /* Töne: Farbe nur in der Raute */
  --t-success: #a5c48a;
  --t-warning: #e3ae5a;
  --t-error: #d97c64;
  --moon: #a9c4e6;          /* kalter Mondton, nur im Zauberflimmern */

  /* Pergament, Siegel: nur für Briefe und Gegenstände der Welt */
  --paper: #ead9b0;
  --ink-paper: #2b1b0d;
  --paper-lbl: #5c4526;
  --paper-meta: #4a361d;
  --paper-orn: #8a6a3a;
  --wax-hi: #c04a3e;
  --wax: #8c2720;
  --wax-lo: #561510;
  --wax-line: #4a110d;
  --wax-deep: #3a0d0a;

  /* Schrift */
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Spectral", Georgia, "Times New Roman", serif;
  --hand: "IM Fell English", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --rune: "Noto Sans Runic", "Segoe UI Historic", "Segoe UI Symbol", serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Typo-Skala */
  --fs-mega: clamp(50px, 12.6vw, 200px);
  --fs-1: clamp(40px, 6.4vw, 96px);
  --fs-2: clamp(30px, 4.3vw, 58px);
  --fs-3: clamp(21px, 2.1vw, 28px);
  --fs-lede: clamp(18px, 1.45vw, 21px);
  --fs-body: 17px;
  --fs-small: 14.5px;
  --fs-label: 12px;

  /* Bewegung */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --fly: cubic-bezier(.5, 0, .7, .4);

  /* Raster */
  --gut: clamp(16px, 4.2vw, 64px);
  --maxw: 1240px;
  --hd-h: 78px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hd-h) + 24px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "onum";
  animation: page-in .7s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } }

/* Körnung über allem, sehr leise */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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 .9  0 0 0 0 .75  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }
[data-lumos] { --lo: 0; --lx: -999px; --ly: -999px; }

::selection { background: rgba(201, 169, 106, .35); color: var(--gold-hi); }
a { color: inherit; }
img, svg, video, canvas { max-width: 100%; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  color: var(--gold-hi);
  letter-spacing: .04em;
  line-height: 1.08;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; }
strong, b { font-weight: 500; color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--gold); color: var(--dark);
  font: 500 14px var(--display); letter-spacing: .08em; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Seitenrand: einmal pro Band */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gut));
  margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}
.wrap--wide { max-width: calc(1560px + 2 * var(--gut)); }
.wrap--text { max-width: calc(760px + 2 * var(--gut)); }

/* ---------- Typografische Bausteine ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1.2px solid var(--gold);
  transform: rotate(45deg);
}
.eyebrow--plain::before { display: none; }
.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.prose { display: grid; gap: 1em; max-width: 66ch; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .62em;
  width: 7px;
  height: 7px;
  border: 1.2px solid rgba(201, 169, 106, .7);
  transform: rotate(45deg);
}
.hand { font-family: var(--hand); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.kbd {
  display: inline-grid;
  place-items: center;
  position: relative;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  font: 600 11px/1 var(--display);
  color: var(--gold-hi);
  vertical-align: middle;
}
.kbd::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  border: 1.3px solid var(--gold);
  background: rgba(201, 169, 106, .08);
}
.kbd > span { position: relative; }
.kbd--wide::before { width: auto; inset: 4px 0; transform: none; border-radius: 2px; }

/* Zierlinie mit Raute */
.orn-div { display: flex; align-items: center; justify-content: center; gap: 14px; }
.orn-div i { display: block; height: 1px; width: 72px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn-div i:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.orn-div b { width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* Status in Rautenform: Im Spiel / In Prüfung / Geplant */
.st {
  --tone: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tone);
  white-space: nowrap;
}
.st::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; flex: none; }
.st--live { --tone: var(--t-success); }
.st--review { --tone: var(--t-warning); }
.st--plan { --tone: var(--ink-3); }
.st--plan::before { background: transparent; border: 1.2px solid currentColor; }

/* ---------- Schaltflächen ---------- */
/* Filigran-Prompt wie im Spiel: Zierlinie, Raute mit Taste, Beschriftung, Zierlinie, auf Schleier */
.act {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 8px;
  color: var(--ink);
  text-decoration: none;
  font: 500 15px/1.2 var(--display);
  letter-spacing: .08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85);
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.act::before {
  content: "";
  position: absolute;
  inset: -8px -18px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--veil), .8), rgba(var(--veil), .5) 60%, transparent);
}
.act .orn { flex: none; height: 1px; width: 52px; transform: scaleX(.65); transition: transform .5s var(--ease); }
.act .orn.l { background: linear-gradient(90deg, transparent, var(--gold)); margin-right: 10px; transform-origin: right center; }
.act .orn.r { background: linear-gradient(90deg, var(--gold), transparent); margin-left: 12px; transform-origin: left center; }
.act .key { position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; }
.act .key i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold);
  background: rgba(201, 169, 106, .08);
  transform: rotate(45deg);
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.act .key i + i { background: none; opacity: 0; }
.act.beacon .key i + i { animation: beacon 2.8s 1.2s ease-out infinite; }
.act.beacon.is-off .key i + i, .rune.is-off::after { animation-play-state: paused; }
.act .key b { position: relative; font-weight: 600; font-size: 11.5px; color: var(--gold-hi); transition: color .2s; }
.act .t { padding-left: 12px; }
.act:hover .orn, .act:focus-visible .orn { transform: none; }
.act:hover .key i:first-child, .act:focus-visible .key i:first-child, .act.is-pressed .key i:first-child {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(201, 169, 106, .55);
}
.act:hover .key b, .act:focus-visible .key b, .act.is-pressed .key b { color: var(--dark); }
.act:hover, .act:focus-visible { color: var(--gold-hi); }
.act:active { transform: scale(.96); }
.act:focus-visible { outline: none; }
.act:focus-visible .t { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.act--sm { min-height: 42px; font-size: 13px; }
.act--sm .orn { width: 28px; transform: scaleX(.64); }
.act--sm .key { width: 28px; height: 28px; }
.act--sm .key i { width: 17px; height: 17px; }
.act--sm .key b { font-size: 10px; }
.act--sm .t { padding-left: 8px; }

/* Filigran-Knopf ohne Taste, Ornament nur aus CSS */
.btn {
  --tone: var(--gold);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 54px;
  border: 0;
  font: 500 14.5px/1.2 var(--display);
  letter-spacing: .08em;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85);
  background:
    linear-gradient(90deg, transparent, var(--tone)) left center / 28px 1px no-repeat,
    linear-gradient(90deg, var(--tone), transparent) right center / 28px 1px no-repeat;
  transition: background-size .5s var(--ease), color .2s, transform .2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--tone);
  background: rgba(201, 169, 106, .08);
  transform: rotate(45deg);
  transition: background .25s, box-shadow .25s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -4px -6px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--veil), .72), rgba(var(--veil), .35) 60%, transparent);
}
.btn:hover, .btn:focus-visible { color: var(--gold-hi); background-size: 42px 1px, 42px 1px; }
.btn:hover::before, .btn:focus-visible::before { background: var(--tone); box-shadow: 0 0 12px rgba(201, 169, 106, .5); }
.btn:active { transform: scale(.96); }
.btn svg { width: 17px; height: 17px; flex: none; fill: currentColor; }
.btn--icon::before { display: none; }
.btn--sm { min-height: 44px; padding: 0 38px; font-size: 13px; background-size: 18px 1px, 18px 1px; }
.btn--sm::before { width: 11px; height: 11px; }
.btn--sm:hover, .btn--sm:focus-visible { background-size: 28px 1px, 28px 1px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (max-width: 420px) {
  .btn { padding: 0 34px; background-size: 18px 1px, 18px 1px; }
  .btn:hover, .btn:focus-visible { background-size: 26px 1px, 26px 1px; }
}

/* Textlink mit wachsender Zierlinie */
.lnk {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 13px/1.2 var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-decoration: none;
  min-height: 44px;
  padding: 8px 0;
}
.lnk::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width .5s var(--ease);
}
.lnk:hover::after, .lnk:focus-visible::after { width: 54px; }

@keyframes beacon {
  0% { transform: rotate(45deg) scale(1); opacity: .7; }
  70%, 100% { transform: rotate(45deg) scale(1.55); opacity: 0; }
}
@keyframes keyflash { 40% { background: var(--gold); box-shadow: 0 0 18px rgba(240, 220, 174, .7); } }
.act.is-hot .key i:first-child { animation: keyflash .45s ease; }

/* ---------- Kopfzeile ---------- */
body::before {
  /* Band über der Kopfzeile in der Sicherheitszone */
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 61;
  background: var(--bg-deep);
}
.hd {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 60;
  transition: transform .55s var(--ease);
}
.hd::before {
  content: "";
  position: absolute;
  inset: 0 0 -36px;
  pointer-events: none;
  background: linear-gradient(rgba(var(--veil), .92), rgba(var(--veil), .62) 55%, rgba(var(--veil), 0));
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.hd::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .3) 20%, rgba(201, 169, 106, .3) 80%, transparent);
  opacity: 0;
  transform: scaleX(.2);
  transition: opacity .5s var(--ease), transform .9s var(--ease);
}
.hd.is-scrolled::before { opacity: 1; }
.hd.is-scrolled::after { opacity: 1; transform: none; }
.hd.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 4px)); }
.hd__in {
  position: relative;
  height: var(--hd-h);
  max-width: 1680px;
  margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
}
.hd__side { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 40px); min-width: 0; }
.hd__side--r { justify-content: flex-end; }
.hd__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.hd__side--l .hd__nav { margin-left: auto; }
.hd__side--r .hd__nav { margin-right: auto; }

.nav-link {
  position: relative;
  padding: 10px 0;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
  white-space: nowrap;
  transition: color .25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
  transition: width .5s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--gold-hi); }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link[aria-current="page"]::after { width: 120%; }
.nav-link[aria-current="page"] { color: var(--gold-hi); }
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

.discord {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font: 500 12.5px/1 var(--display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
  white-space: nowrap;
}
.discord__ic {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--gold-hi);
}
.discord__ic::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.3px solid rgba(201, 169, 106, .7);
  transform: rotate(45deg);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.discord__ic svg { position: relative; width: 15px; height: 15px; fill: currentColor; transition: color .2s; }
.discord:hover .discord__ic::before, .discord:focus-visible .discord__ic::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(201, 169, 106, .5);
}
.discord:hover .discord__ic, .discord:focus-visible .discord__ic { color: var(--dark); }
.discord:hover, .discord:focus-visible { color: var(--gold-hi); }

/* Wortmarke: Schriftzug ist das Logo */
.wm {
  position: relative;
  min-height: 44px;
  align-content: center;
  display: inline-grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--gold-hi);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
  line-height: 1;
}
.wm__main {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 1.7vw, 23px);
  letter-spacing: .34em;
  padding-left: .34em;
  white-space: nowrap;
}
.wm__sub {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .52em;
  padding-left: .52em;
  text-transform: uppercase;
  color: var(--gold);
}
.wm__sub i { display: block; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); transition: width .6s var(--ease); }
.wm__sub i:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.wm:hover .wm__sub i, .wm:focus-visible .wm__sub i { width: 40px; }

.hd__menu {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--gold-hi);
  cursor: pointer;
}
.hd__menu span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.3px;
  background: currentColor;
  transition: transform .45s var(--ease), opacity .2s, left .45s var(--ease), right .45s var(--ease);
}
.hd__menu span:nth-child(1) { top: 16px; }
.hd__menu span:nth-child(2) { top: 21.5px; left: 17px; }
.hd__menu span:nth-child(3) { top: 27px; }
.hd__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hd__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Ohne JS gibt es kein Menü; die Fußzeile führt dann zu allen Seiten */
html:not(.js) .hd__menu { display: none !important; }
@media (max-width: 1199px) {
  :root { --hd-h: 68px; }
  .hd__nav, .hd__cta { display: none; }
  .hd__menu { display: block; }
  .discord__label { display: none; }
}

/* Menü (mobil) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 34px;
  padding: calc(var(--hd-h) + 24px + env(safe-area-inset-top, 0px)) max(var(--gut), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gut), env(safe-area-inset-left, 0px));
  background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(201, 169, 106, .08), transparent 70%),
    rgba(9, 8, 7, .97);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu__nav { display: grid; justify-items: center; gap: 6px; }
.menu__link {
  font-family: var(--display);
  font-size: clamp(28px, 8vw, 44px);
  letter-spacing: .08em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .7s var(--ease), color .2s;
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: .2s; }
.menu__link[aria-current="page"], .menu__link:hover { color: var(--gold-hi); }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ---------- Zauberflimmern: der magische Ersatz für den Glitch ---------- */
/* Buchstaben werden kurz zu Runen, Geisterbilder in Gold und Mondlicht verrutschen
   in Streifen, Funken lösen sich. Danach setzt sich das Wort wieder zusammen. */
.zf { position: relative; display: inline-block; }
.zf__w { position: relative; display: inline-block; }
.zf__word { white-space: nowrap; }
.zf__c { position: relative; display: inline-block; transition: transform .25s var(--ease); }
.zf__c.is-r { color: transparent !important; -webkit-text-fill-color: transparent; }
.zf__c.is-r::after {
  content: attr(data-r);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--rune);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold-hi);
  -webkit-text-fill-color: var(--gold-hi);
  text-shadow: 0 0 8px rgba(240, 220, 174, .85), 0 0 22px rgba(201, 169, 106, .55);
}
/* Geisterbilder sitzen auf dem inneren Wort-Span, damit ::before/::after des Links
   (Zierlinie, Raute der aktiven Seite) frei bleiben. */
.zf__w[data-zf-text]::before,
.zf__w[data-zf-text]::after {
  content: attr(data-zf-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  white-space: inherit;
  opacity: 0;
  text-shadow: none;
}
.zf__w[data-zf-text]::before { color: var(--moon); -webkit-text-fill-color: var(--moon); mix-blend-mode: screen; }
.zf__w[data-zf-text]::after { color: var(--gold-hi); -webkit-text-fill-color: var(--gold-hi); mix-blend-mode: screen; }
.zf.is-casting .zf__w::before { animation: zf-ghost-a .52s steps(1, end) both; }
.zf.is-casting .zf__w::after { animation: zf-ghost-b .52s steps(1, end) both; }
.zf.is-casting { animation: zf-shiver .52s steps(1, end); }
@keyframes zf-ghost-a {
  0% { opacity: .85; transform: translate(-4px, 0); clip-path: inset(8% 0 64% 0); }
  14% { opacity: .8; transform: translate(5px, -1px); clip-path: inset(56% 0 14% 0); }
  28% { opacity: .7; transform: translate(-2px, 1px); clip-path: inset(30% 0 46% 0); }
  42% { opacity: .75; transform: translate(3px, 0); clip-path: inset(72% 0 4% 0); }
  58% { opacity: .5; transform: translate(-1px, 0); clip-path: inset(18% 0 58% 0); }
  74% { opacity: .3; transform: translate(1px, 0); clip-path: inset(44% 0 30% 0); }
  100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes zf-ghost-b {
  0% { opacity: .7; transform: translate(3px, 1px); clip-path: inset(60% 0 10% 0); }
  16% { opacity: .75; transform: translate(-5px, 0); clip-path: inset(12% 0 70% 0); }
  32% { opacity: .6; transform: translate(4px, -1px); clip-path: inset(40% 0 36% 0); }
  50% { opacity: .55; transform: translate(-2px, 0); clip-path: inset(80% 0 2% 0); }
  66% { opacity: .35; transform: translate(2px, 0); clip-path: inset(24% 0 52% 0); }
  100% { opacity: 0; transform: none; clip-path: inset(0); }
}
@keyframes zf-shiver {
  0% { transform: translateX(0); }
  20% { transform: translateX(-1px) skewX(-2deg); }
  40% { transform: translateX(1px) skewX(1.5deg); }
  60% { transform: translateX(0) skewX(-.6deg); }
  100% { transform: none; }
}
.sparks { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: var(--gold-hi);
  transform: rotate(45deg);
  box-shadow: 0 0 6px 1px rgba(240, 220, 174, .8);
}

/* ---------- Laufband ---------- */
.mq {
  --mq-size: clamp(14px, 1.25vw, 17px);
  position: relative;
  overflow: hidden;
  padding-block: 15px;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(var(--veil), .9), rgba(var(--veil), .55) 20%, rgba(var(--veil), .55) 80%, rgba(var(--veil), .9));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  user-select: none;
}
.mq__track { display: flex; width: max-content; will-change: transform; }
.mq__group { display: flex; align-items: center; flex: none; }
.mq__item {
  flex: none;
  padding-inline: clamp(18px, 2vw, 30px);
  font-family: var(--display);
  font-size: var(--mq-size);
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.mq__item em { font-style: normal; color: var(--gold-hi); }
.mq__sep { flex: none; width: 8px; height: 8px; border: 1.2px solid var(--gold); transform: rotate(45deg); }
.mq__sep--fill { background: var(--gold); }
.mq__rune {
  flex: none;
  padding-inline: clamp(14px, 1.6vw, 24px);
  font-family: var(--rune);
  font-size: calc(var(--mq-size) * 1.1);
  letter-spacing: .3em;
  color: rgba(201, 169, 106, .55);
}
.mq--big { --mq-size: clamp(24px, 3.4vw, 46px); padding-block: 22px; }
.mq--big .mq__item { letter-spacing: .12em; color: var(--gold-hi); }
.mq--quiet { background: none; }

/* ---------- Rahmenwerk: Rahmen, der aus der Raute wächst ---------- */
.frame {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 3vw, 40px) clamp(22px, 3vw, 40px) clamp(22px, 2.6vw, 34px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 106, .08), transparent 60%),
    rgba(var(--veil), .7);
  border: 1.2px solid rgba(201, 169, 106, .55);
}
.frame.is-svg { border-color: transparent; }
.frame > svg.edge {
  position: absolute;
  inset: -1.2px;
  width: calc(100% + 2.4px);
  height: calc(100% + 2.4px);
  overflow: visible;
  pointer-events: none;
}
.frame > svg.edge path {
  fill: none;
  stroke: var(--frame);
  stroke-width: 1.2;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}
.frame.is-svg:not(.is-drawn) > svg.edge path { stroke-dashoffset: 1; }
.frame.is-svg.is-drawn > svg.edge path { animation: draw 1.4s .15s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.legend {
  position: absolute;
  top: -12px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 4px;
}
.frame:not(.is-svg) > .legend { background: var(--bg); padding: 0 10px 0 8px; margin-left: -8px; }
.legend strong {
  font: 500 13px/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85);
}
.rune {
  --tone: var(--gold);
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.rune::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px solid var(--tone);
  background: color-mix(in srgb, var(--tone) 14%, var(--bg));
  transform: rotate(45deg);
}
.rune::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid var(--tone);
  transform: rotate(45deg);
  opacity: 0;
  animation: beacon 2.8s 1s ease-out infinite;
}
.rune svg { position: relative; width: 12px; height: 12px; fill: none; stroke: var(--tone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rune svg .f { fill: var(--tone); stroke: none; }
.rune--success { --tone: var(--t-success); }
.rune--warning { --tone: var(--t-warning); }

/* Karte mit Überschrift in der oberen Linie */
.fcard {
  position: relative;
  padding: 30px 24px 24px;
  border: 1px solid var(--rule-hi);
  border-top: 0;
  background: linear-gradient(rgba(201, 169, 106, .035), transparent 40%);
  min-width: 0;
}
.fcard__h {
  position: absolute;
  left: -1px;
  right: -1px;
  top: -9px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: 500 12.5px/18px var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.fcard__h::before { content: ""; width: 14px; height: 1px; flex: none; background: var(--rule-hi); }
.fcard__h::after { content: ""; flex: 1; height: 1px; background: var(--rule-hi); }

/* ---------- Seitenkopf der Unterseiten ---------- */
.phero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--hd-h) + env(safe-area-inset-top, 0px) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(56px, 8vw, 110px);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(201, 169, 106, .1), transparent 65%),
    var(--bg);
}
.phero--full { min-height: clamp(640px, 88svh, 900px); display: grid; align-content: center; }
.phero__in { display: grid; gap: 22px; justify-items: start; }
.phero__title { font-size: var(--fs-1); letter-spacing: .03em; }
/* Inhaltsnavigation unter dem Seitenkopf */
.pnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  max-width: min(760px, 100%);
}
.pnav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font: 500 12px/1 var(--display);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}
.pnav a span { color: var(--gold); letter-spacing: .08em; }
.pnav a:hover, .pnav a:focus-visible { color: var(--gold-hi); }
/* Abschluss jeder Unterseite: ein F-Knopf plus höchstens ein Filigran-Knopf */
.cta-end { position: relative; overflow: hidden; padding-block: clamp(88px, 10vw, 150px); text-align: center; }
.cta-end > .wrap { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 20px; }
/* Große Raute hinter dem Abschluss; sitzt auf dem Wrap, damit ::before/::after des Abschnitts frei bleiben */
.cta-end > .wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(520px, 78vw);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 169, 106, .12);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
/* overflow:hidden würde die halbe Trenner-Raute abschneiden */
.cta-end.sec--ruled::before { top: 4px; }
.cta-end.sec--ruled::after { top: 0; }
.cta-end .lede { margin-inline: auto; }
.cta-end__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 34px; margin-top: 10px; }
.phero__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Lichtkegel am Zeiger (Lumos) */
.lumos {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: var(--lo, 0);
  transition: opacity .6s var(--ease);
}
.lumos::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 226, 170, .13), rgba(255, 226, 170, .045) 45%, transparent);
  transform: translate3d(var(--lx, -999px), var(--ly, -999px), 0);
  will-change: transform;
}
.lumos-reveal {
  -webkit-mask-image: radial-gradient(220px circle at var(--lx, -999px) var(--ly, -999px), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 72%);
  mask-image: radial-gradient(220px circle at var(--lx, -999px) var(--ly, -999px), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 72%);
}

/* ---------- Abschnitte ---------- */
.sec { position: relative; padding-block: clamp(72px, 8vw, 120px); }
.sec--tight { padding-block: clamp(52px, 6vw, 88px); }
/* Trenner zwischen Abschnitten: Zierlinie mit Raute */
.sec--ruled::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--maxw), calc(100% - 2 * var(--gut)));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.sec--ruled::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border: 1px solid var(--rule-hi);
  background: var(--bg);
  transform: rotate(45deg);
}
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); justify-items: start; }
.sec__head--c { justify-items: center; text-align: center; }
.sec__title { font-size: var(--fs-2); }
.sec__rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }

/* Erscheinen beim Scrollen: nur Elemente unterhalb der ersten Ansicht, nur mit JS */
.rv { opacity: 0; transform: translateY(30px); }
.rv[data-reveal="left"] { transform: translateX(-70px); }
.rv[data-reveal="right"] { transform: translateX(70px); }
.rv[data-reveal="fade"] { transform: none; }
.rv[data-reveal="rise"] { transform: translateY(60px) scale(.98); }
@media (max-width: 899px) {
  .rv[data-reveal="left"], .rv[data-reveal="right"] { transform: translateY(30px); }
}
.rv.rv-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.15s var(--ease) var(--d, 0s);
}

/* Seitenwechsel: Schleier mit Raute */
.pt {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: var(--bg-deep);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pt i { width: 18px; height: 18px; border: 1.5px solid var(--gold); transform: rotate(45deg) scale(.6); opacity: 0; }
html.is-leaving .pt { opacity: 1; visibility: visible; transition: opacity .32s var(--ease); }
html.is-leaving .pt i { opacity: 1; transform: rotate(45deg) scale(1); transition: transform .4s var(--pop) .08s, opacity .2s .08s; }

/* ---------- Fußzeile ---------- */
.ft { position: relative; overflow: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--bg-deep); }
.ft__big {
  text-decoration: none;
  position: relative;
  display: block;
  padding-block: clamp(40px, 7vw, 90px) clamp(10px, 2vw, 24px);
  text-align: center;
  font: 600 clamp(40px, 12.4vw, 210px)/.9 var(--display);
  letter-spacing: .06em;
  padding-left: .06em;
  color: transparent;
  background: linear-gradient(180deg, rgba(240, 220, 174, .13), rgba(201, 169, 106, .035) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
  user-select: none;
}
.ft__big .lumos-reveal {
  position: absolute;
  inset: 0;
  padding: inherit;
  color: rgba(240, 220, 174, .9);
  background: none;
  -webkit-text-fill-color: rgba(240, 220, 174, .9);
  text-shadow: 0 0 30px rgba(201, 169, 106, .4);
}
.ft__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.ft__brand { display: grid; gap: 14px; align-content: start; }
.ft__brand p { color: var(--mute); font-size: var(--fs-small); max-width: 42ch; }
.ft__col { display: grid; gap: 0; align-content: start; }
.ft__col h2 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.ft__col a { color: var(--ink-2); text-decoration: none; font-size: 15.5px; padding: 10px 0; min-height: 44px; width: fit-content; }
.ft__col a:hover, .ft__col a:focus-visible { color: var(--gold-hi); }
.ft__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--rule-soft);
  font-size: 13px;
  color: var(--ink-3);
}
.ft__legal p { max-width: 90ch; }
@media (max-width: 760px) {
  .ft__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ft__brand { grid-column: 1 / -1; }
}

/* ---------- Ruhe bei reduzierter Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .15s !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .zf__w::before, .zf__w::after { display: none; }
}
