/* =====================================================================
   Weltenschmiede – eigenes Design der Akten (Akzentfarbe, Banner,
   Stile, Schrift), Videos, Profilbilder
   ===================================================================== */

.wst-akte .wst-akte__zitat { border-left-color: var(--akzent); }
.wst-akte .wst-pergament__abschnitt h2::before { background: var(--akzent); }
.wst-akte .wst-chronik::before { background: linear-gradient(var(--akzent), var(--pergament-linie)); }
.wst-akte .wst-chronik li::before { border-color: var(--akzent); }
.wst-akte .wst-chronik__zeit { color: var(--akzent); filter: brightness(0.8); }
.wst-akte .wst-steckbrief__bild {
  border-color: rgba(var(--akzent-rgb), 0.55);
  box-shadow: var(--schatten), 0 0 0 1px rgba(var(--akzent-rgb), 0.25), 0 20px 60px -30px rgba(var(--akzent-rgb), 0.8);
}
.wst-akte .wst-steckbrief .ws-knopf:not(.ws-knopf--leise) {
  background: var(--akzent);
  box-shadow: 0 10px 28px -12px rgba(var(--akzent-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ---------- Banner ---------- */
.wst-akte--banner { padding-top: 24px; }
.wst-akte__banner {
  height: clamp(190px, 30vw, 380px);
  border-radius: var(--radius);
  background-size: cover;
  background-color: var(--nacht-3);
  position: relative;
  box-shadow: var(--schatten);
  border: 1px solid var(--linie);
}
.wst-akte__banner::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 14, 12, 0.55) 70%, rgba(17, 14, 12, 0.95));
}
.wst-akte--banner .wst-akte__kopf {
  position: relative; z-index: 1;
  margin-top: clamp(-150px, -9vw, -90px);
  padding: 0 32px;
}
.wst-akte--banner .wst-akte__name { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7); }
@media (max-width: 640px) {
  .wst-akte--banner .wst-akte__kopf { padding: 0 8px; margin-top: -70px; }
}

/* ---------- Schrift „modern“ ---------- */
.wst-schrift--modern .wst-akte__name,
.wst-schrift--modern .wst-akte__beiname,
.wst-schrift--modern .wst-pergament__abschnitt h2,
.wst-schrift--modern .wst-chronik__zeit {
  font-family: var(--schrift);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.wst-schrift--modern .wst-akte__beiname { font-weight: 600; letter-spacing: 0; }

/* ---------- Stil „Reispapier“ ---------- */
.wst-stil--reispapier .wst-pergament {
  color: #1c1c1c;
  background-color: #f6f5f1;
  background-image:
    radial-gradient(120% 80% at 0% 0%, #ffffff, transparent 60%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.018) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.012) 0 1px, transparent 1px 7px);
  box-shadow: var(--schatten), inset 0 0 0 1px rgba(0, 0, 0, 0.08), inset 0 0 50px rgba(0, 0, 0, 0.05);
}
.wst-stil--reispapier .wst-pergament::before,
.wst-stil--reispapier .wst-pergament::after { background: linear-gradient(180deg, #2b2b2b, #0d0d0d); }
.wst-stil--reispapier .wst-pergament__abschnitt h2,
.wst-stil--reispapier .wst-fliesstext,
.wst-stil--reispapier .wst-chronik__text { color: #1c1c1c; }
.wst-stil--reispapier .wst-pergament__abschnitt + .wst-pergament__abschnitt,
.wst-stil--reispapier .wst-pergament__fuss { border-color: #dcdad3; }
.wst-stil--reispapier .wst-chronik li::before { background: #f6f5f1; }

/* ---------- Stile „Nachtrolle“ und „Blutsiegel“ (dunkel) ---------- */
.wst-stil--nacht .wst-pergament,
.wst-stil--blut .wst-pergament {
  color: var(--text);
  background-color: #1c1713;
  background-image:
    radial-gradient(120% 80% at 0% 0%, rgba(var(--akzent-rgb), 0.12), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(201, 162, 94, 0.08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 4px);
  box-shadow: var(--schatten), inset 0 0 0 1px rgba(239, 222, 196, 0.1), inset 0 0 70px rgba(0, 0, 0, 0.45);
}
.wst-stil--blut .wst-pergament {
  background-color: #2a0f0d;
  background-image:
    radial-gradient(120% 80% at 0% 0%, rgba(220, 60, 50, 0.18), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(0, 0, 0, 0.45), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 4px);
}
.wst-stil--nacht .wst-pergament::before,
.wst-stil--nacht .wst-pergament::after { background: linear-gradient(180deg, #3a2f26, #17120e); }
.wst-stil--blut .wst-pergament::before,
.wst-stil--blut .wst-pergament::after { background: linear-gradient(180deg, #1a0606, #000); }

.wst-stil--nacht .wst-pergament__abschnitt h2,
.wst-stil--blut .wst-pergament__abschnitt h2 { color: var(--text); }
.wst-stil--nacht .wst-pergament .wst-fliesstext,
.wst-stil--blut .wst-pergament .wst-fliesstext,
.wst-stil--nacht .wst-chronik__text,
.wst-stil--blut .wst-chronik__text { color: #e6dccd; }
.wst-stil--nacht .wst-pergament .wst-fliesstext a,
.wst-stil--blut .wst-pergament .wst-fliesstext a { color: var(--glut-hell); }
.wst-stil--nacht .wst-pergament__abschnitt + .wst-pergament__abschnitt,
.wst-stil--blut .wst-pergament__abschnitt + .wst-pergament__abschnitt,
.wst-stil--nacht .wst-pergament__fuss,
.wst-stil--blut .wst-pergament__fuss { border-color: rgba(239, 222, 196, 0.14); }
.wst-stil--nacht .wst-pergament__fuss,
.wst-stil--blut .wst-pergament__fuss,
.wst-stil--nacht .wst-pergament__leer,
.wst-stil--blut .wst-pergament__leer { color: var(--text-3); }
.wst-stil--nacht .wst-chronik li::before { background: #1c1713; }
.wst-stil--blut .wst-chronik li::before { background: #2a0f0d; }
.wst-stil--nacht .wst-chronik__zeit,
.wst-stil--blut .wst-chronik__zeit { filter: brightness(1.5); }
.wst-stil--nacht .wst-chronik::before,
.wst-stil--blut .wst-chronik::before { background: linear-gradient(var(--akzent), rgba(239, 222, 196, 0.12)); }

/* ---------- Videos ---------- */
.wst-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.wst-video { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wst-video figcaption { font-size: 0.82rem; opacity: 0.75; }
.wst-video__start,
.wst-video__rahmen,
.wst-video--link {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 0;
}
.wst-video__start {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  cursor: pointer;
  color: #f5ece0;
  background:
    radial-gradient(circle at 50% 40%, rgba(var(--akzent-rgb), 0.45), transparent 65%),
    linear-gradient(160deg, #2a221c, #0f0c0a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 30px -18px rgba(0, 0, 0, 0.8);
  font: inherit;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.wst-video__start:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), 0.6), 0 18px 34px -18px rgba(var(--akzent-rgb), 0.7);
}
.wst-video__play {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--akzent);
  box-shadow: 0 8px 24px -6px rgba(var(--akzent-rgb), 0.9);
}
.wst-video__play::after {
  content: "";
  position: absolute; left: 23px; top: 18px;
  border-style: solid; border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent #fff;
}
.wst-video__titel { font-weight: 600; font-size: 0.98rem; }
.wst-video__hinweis { font-size: 0.74rem; opacity: 0.6; }
.wst-video__rahmen { display: block; background: #000; }
.wst-video--link {
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(var(--akzent-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--akzent-rgb), 0.35);
  color: inherit !important; text-decoration: none !important; text-align: center;
}

/* ---------- Formular: Design-Block ---------- */
.ws-banner-vorschau {
  height: 150px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: var(--radius-klein);
  border: 1px dashed var(--pergament-linie);
  background-color: var(--pergament-2);
  background-size: cover;
  display: grid; place-items: center;
  color: var(--tinte-2); font-size: 0.86rem; text-align: center;
}
.ws-aktionen--eng { gap: 14px; }
.ws-aktionen--eng .ws-haken { margin-top: 0; }
.ws-feld--inline { flex-direction: row; align-items: center; gap: 10px; }
.ws-feld--inline select { width: auto; }
.ws-design .ws-raster { margin-top: 22px; }
.ws-feld-gruppe { display: flex; flex-direction: column; gap: 16px; }
.ws-farbwahl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ws-farbpunkt {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--farbe);
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
}
.ws-farbpunkt input[type="radio"] { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ws-farbpunkt:has(input:checked) { outline: 3px solid var(--tinte); outline-offset: 2px; }
.ws-farbpunkt:has(input:focus-visible) { outline: 3px solid var(--glut); outline-offset: 2px; }
.ws-farbpunkt--eigen {
  overflow: hidden;
  background: conic-gradient(#e8692b, #c9a25e, #4f7a3a, #2f7d6d, #3a6ea5, #6b4fa0, #b3261e, #e8692b);
}
.ws-farbpunkt--eigen input[type="color"] {
  position: absolute; inset: -6px; width: 46px; height: 46px;
  border: 0; padding: 0; opacity: 0; cursor: pointer;
}

/* ---------- Profilbilder („Mein Bereich“ und Spielerseite) ---------- */
.ws-profilbilder__banner {
  position: relative;
  height: 96px;
  margin-bottom: 30px;
  border-radius: var(--radius-klein);
  background: linear-gradient(135deg, var(--nacht-4), var(--nacht-3));
  background-size: cover; background-position: center;
}
.ws-profilbilder__avatar,
.ws-spielerkarte__initial,
.wst-spielerkopf__initial { background-size: cover; background-position: center; }
.ws-profilbilder__avatar {
  position: absolute; left: 14px; bottom: -24px;
  width: 58px; height: 58px; border-radius: 14px;
  display: grid; place-items: center;
  background-color: var(--siegel); color: #fff4e3;
  font: 800 1.5rem/1 var(--schrift-titel);
  border: 3px solid var(--nacht-2);
}
.ws-formular--schmal input[type="file"] { font-size: 0.84rem; color: var(--text-2); }

.wst-spielerbanner {
  height: clamp(160px, 24vw, 300px);
  margin-bottom: -48px;
  border-radius: var(--radius);
  border: 1px solid var(--linie);
  background-size: cover; background-position: center;
  box-shadow: var(--schatten);
}
.wst-seitenkopf--banner { padding-top: 24px; }
.wst-seitenkopf--banner .wst-spielerkopf { position: relative; align-items: flex-end; padding-left: 40px; }
.wst-seitenkopf--banner .wst-spielerkopf__initial {
  width: 112px; height: 112px; border-radius: 22px;
  border: 4px solid var(--nacht);
  box-shadow: var(--schatten);
}
@media (max-width: 640px) {
  .wst-seitenkopf--banner .wst-spielerkopf { padding-left: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Hintergrundbild der Akte ---------- */
body.wst-hat-hintergrund {
  background-color: var(--nacht);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (max-width: 900px), (hover: none) {
  body.wst-hat-hintergrund { background-attachment: scroll; }
}
body.wst-hat-hintergrund .wst-steckbrief__liste,
body.wst-hat-hintergrund .wst-inhaltsliste { background: rgba(25, 20, 15, 0.82); backdrop-filter: blur(6px); }
body.wst-hat-hintergrund .wst-fuss { background: rgba(10, 8, 7, 0.85); }

/* ---------- Reiter (Akte + Unterseiten) ---------- */
.wst-reiter {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: -8px 0 28px;
  padding: 6px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: rgba(25, 20, 15, 0.8);
  backdrop-filter: blur(8px);
  width: fit-content; max-width: 100%;
}
.wst-reiter a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500; font-size: 0.94rem;
  white-space: nowrap;
}
.wst-reiter a:hover { color: var(--text); background: rgba(239, 222, 196, 0.06); }
.wst-reiter a[aria-current="page"] {
  color: #fff;
  background: var(--akzent);
  box-shadow: 0 6px 18px -8px rgba(var(--akzent-rgb), 0.9);
}
@media (max-width: 640px) {
  .wst-reiter { border-radius: var(--radius); flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
}

/* ---------- Unterseite ---------- */
.wst-unterseite { max-width: 940px; margin: 0 auto; }
.wst-akte--unterseite .wst-akte__kopf { margin-bottom: 20px; }
.wst-akte--unterseite .wst-akte__name { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.wst-unterseite__titel { font-size: clamp(1.9rem, 4vw, 2.6rem); color: inherit; margin-bottom: 20px; }
.wst-stil--nacht .wst-unterseite__titel,
.wst-stil--blut .wst-unterseite__titel { color: var(--text); }
.wst-unterseite__bild { margin: 0 0 28px; border-radius: 8px; overflow: hidden; box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.7); }
.wst-unterseite__bild img { width: 100%; max-height: 520px; object-fit: cover; }
.wst-unterseite .wst-fliesstext + .wst-pergament__abschnitt,
.wst-unterseite .wst-unterseite__bild + .wst-pergament__abschnitt { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--pergament-linie); }
.wst-fliesstext h3 { font-size: 1.35rem; margin: 1.4em 0 0.5em; }
.wst-fliesstext h4 { font-size: 1.1rem; margin: 1.2em 0 0.4em; }
.wst-fliesstext hr { border: 0; height: 1px; background: currentColor; opacity: 0.2; margin: 2em 0; }
.wst-unterseite__fuss { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Galerie ---------- */
.wst-galerie { columns: 3 200px; column-gap: 14px; }
.wst-galerie__bild { margin: 0 0 14px; break-inside: avoid; }
.wst-galerie__bild a {
  display: block; overflow: hidden; border-radius: 8px;
  box-shadow: 0 10px 26px -16px rgba(0, 0, 0, 0.75);
  cursor: zoom-in;
}
.wst-galerie__bild img { width: 100%; transition: transform .35s; }
.wst-galerie__bild a:hover img { transform: scale(1.04); }
.wst-galerie__bild figcaption { font-size: 0.84rem; opacity: 0.75; margin-top: 6px; }

.wst-lichtkasten {
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: transparent;
}
.wst-lichtkasten::backdrop { background: rgba(8, 6, 5, 0.92); }
.wst-lichtkasten[open] { display: grid; place-items: center; }
.wst-lichtkasten figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 72px; }
.wst-lichtkasten img { max-width: min(1400px, calc(100vw - 150px)); max-height: calc(100vh - 140px); width: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.wst-lichtkasten figcaption { color: var(--text-2); text-align: center; max-width: 70ch; }
.wst-lichtkasten button {
  position: fixed;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--linie-stark);
  background: rgba(25, 20, 15, 0.85); color: var(--text);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.wst-lichtkasten button:hover { background: var(--glut); border-color: var(--glut); }
.wst-lichtkasten__zu { top: 18px; right: 18px; }
.wst-lichtkasten__zurueck { left: 18px; top: 50%; transform: translateY(-50%); }
.wst-lichtkasten__weiter { right: 18px; top: 50%; transform: translateY(-50%); }
.wst-lichtkasten--einzeln .wst-lichtkasten__zurueck,
.wst-lichtkasten--einzeln .wst-lichtkasten__weiter { display: none; }
@media (max-width: 640px) {
  .wst-lichtkasten figure { padding: 64px 12px; }
  .wst-lichtkasten img { max-width: calc(100vw - 24px); }
  .wst-lichtkasten__zurueck, .wst-lichtkasten__weiter { top: auto; bottom: 18px; transform: none; }
}

/* ---------- Formular: Hintergrund, Galerie, Unterseiten ---------- */
.ws-feld--abstand { margin-top: 22px; }
.ws-hintergrund-vorschau {
  position: relative;
  height: 150px; margin-bottom: 12px;
  border-radius: var(--radius-klein);
  border: 1px dashed var(--pergament-linie);
  background-color: var(--pergament-2);
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  color: var(--tinte-2); font-size: 0.86rem;
  overflow: hidden;
}
.ws-hintergrund-vorschau[style*="url"]::after {
  content: "So wirkt es hinter der Akte";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(17, 14, 12, var(--dunkel, 0.55));
  color: #efe6d8; font-weight: 600; font-size: 0.9rem;
}
.ws-zahl { width: 80px !important; }
.ws-galerie-liste { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ws-galerie-liste li {
  display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start;
  padding: 10px; border: 1px solid var(--pergament-linie); border-radius: var(--radius-klein); background: #fffaf0;
}
.ws-galerie-liste img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; }
.ws-galerie-liste__felder { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws-galerie-liste__zeile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.86rem; color: var(--tinte-2); }
.ws-galerie-liste__zeile .ws-haken { margin: 0; }
.ws-galerie-liste input[type="number"] { padding: 6px 8px; }
.ws-bildwahl__vorschau--quer { width: 260px; aspect-ratio: 16 / 9; }

.ws-unterseiten-verwaltung {
  margin-top: 40px; padding: 26px 28px;
  border: 1px solid var(--linie); border-radius: var(--radius);
  background: var(--nacht-2);
}
.ws-unterseiten-verwaltung h2 { font-size: 1.45rem; margin: 0 0 4px; }
.ws-unterseiten-verwaltung .ws-hinweis { margin: 0; max-width: 60ch; }
.ws-liste__eintrag--schmal { grid-template-columns: 1fr auto; padding: 12px 18px; }
.ws-brotkrumen { margin: 0 0 16px; color: var(--text-3); }
.ws-brotkrumen a { color: var(--text-2); }

/* Auf Unterseiten steht der Name als <p> (die Überschrift ist der Seitentitel) */
.wst-akte__name { font-family: var(--schrift-titel); font-weight: 800; line-height: 1.15; }
.wst-schrift--modern .wst-unterseite__titel { font-family: var(--schrift); letter-spacing: -0.015em; }
