.woertlich {
  --wg-blatt: #fbf6ea;
  --wg-pause: rgba(255, 253, 246, .62);
  --wg-pause-rand: rgba(110, 82, 32, .18);
  --wg-blei: #5b5650;
  --wg-tinte: #1b2a44;
  max-width: 1080px; margin: 0 auto; padding: clamp(26px, 5vw, 64px) var(--rand) 96px;
}
:root[data-abend="an"] .woertlich {
  --wg-blatt: #221e18;
  --wg-pause: rgba(236, 224, 198, .06);
  --wg-pause-rand: rgba(208, 174, 105, .2);
  --wg-blei: #b3a68b;
  --wg-tinte: #e9dcc0;
}

.wg-seitenkopf { text-align: center; max-width: 760px; margin: 0 auto clamp(26px, 4vw, 40px); }
.wg-ober { margin: 0 0 .6em; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); }
.wg-seitenkopf h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 3.9rem); line-height: 1.04; }
.wg-untertitel { margin: .25em 0 0; font-family: var(--f-titel); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--grau); }
.wg-schema { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px auto 6px; font-family: var(--f-titel); font-size: 1.02rem; color: var(--grau); }
.wg-schema i { display: block; width: clamp(22px, 6vw, 54px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.wg-schema-w { font-style: italic; color: var(--wg-blei); }
.wg-schema-v { color: var(--wg-tinte); }
.wg-intro { margin: 14px auto 0; color: var(--tinte-2); font-size: 1.06rem; text-wrap: pretty; }
.wg-zahl { margin: 14px 0 0; font-size: .98rem; color: var(--grau); }
.wg-zahl strong { font-weight: 500; color: var(--tinte); font-family: var(--f-titel); font-size: 1.22em; }
.wg-anleitung { margin: 6px auto 0; font-size: .92rem; font-style: italic; color: var(--grau); }

.wg-filter { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: end; justify-content: center; margin: 0 auto 6px; }
.wg-wahl { display: inline-flex; flex-direction: column; gap: 3px; max-width: 100%; }
.wg-wahl-text { font-size: .84rem; letter-spacing: .08em; color: var(--grau); }
.wg-wahl select {
  font: inherit; font-size: .98rem; color: var(--tinte); width: min(380px, 100%); max-width: 100%;
  padding: 7px 34px 7px 14px; min-height: 44px; border: 1px solid var(--linie); border-radius: 99px; cursor: pointer;
  background: var(--papier-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9853f' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 13px center / 11px 8px;
  -webkit-appearance: none; appearance: none;
}
.wg-wahl select:hover { border-color: var(--gold); }
.wg-art { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wg-art .chip { min-height: 44px; padding: 6px 16px; }
.wg-status { min-height: 1.4em; margin: 6px 0 18px; text-align: center; font-size: .9rem; color: var(--grau); }
.wg-hinweis, .wg-leer { text-align: center; font-style: italic; color: var(--grau); }
.wg-treu { max-width: 640px; margin: 40px auto 0; text-align: center; font-size: .88rem; font-style: italic; color: var(--grau); }

.wg-liste { display: grid; gap: clamp(22px, 3.4vw, 36px); }
.wg-karte {
  position: relative; background: var(--wg-blatt); border: 1px solid var(--linie); border-radius: 6px;
  padding: clamp(18px, 3.2vw, 34px) clamp(16px, 3.6vw, 40px) clamp(14px, 2.4vw, 24px);
  box-shadow: var(--schatten); min-width: 0;
}
.wg-karte[hidden] { display: none; }
.wg-karte::before {
  content: ''; position: absolute; left: clamp(8px, 1.6vw, 16px); top: 18px; bottom: 18px; width: 1px;
  background: linear-gradient(var(--gold), transparent); opacity: .45;
}
.wg-rand { background: transparent; box-shadow: none; border-style: dashed; }

.wg-kopf { margin-bottom: 16px; }
.wg-stelle { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 4px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.wg-bez { color: var(--grau); }
.wg-bez::before { content: '·'; margin-right: 12px; color: var(--gold-text); }
.wg-titel { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.wg-titel a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); }
.wg-titel a:hover, .wg-titel a:focus-visible { background-size: 100% 1px; }
.wg-unter { margin: 2px 0 0; font-family: var(--f-titel); font-style: italic; font-size: 1.08rem; color: var(--grau); }
.wg-jahr::before { content: '·'; margin: 0 .5em; font-style: normal; }

.wg-tisch { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.wg-paar .wg-tisch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.wg-orig { margin: 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--gold); min-width: 0; }
.wg-orig figcaption, .wg-solo-l, .wg-notiz-kopf { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); }
.wg-orig figcaption { margin-bottom: 8px; }
.wg-zeilen { margin: 0; font-size: var(--gedicht-groesse); line-height: 1.55; color: var(--tinte); overflow-wrap: break-word; }
.wg-de .wg-zeilen { color: var(--wg-tinte); }

.wg-bank { min-width: 0; }
.wg-schalter { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wg-k {
  font: inherit; font-size: .95rem; min-height: 44px; padding: 6px 14px; border-radius: 99px; cursor: pointer; flex: none;
  border: 1px solid var(--linie); background: transparent; color: var(--tinte-2); transition: background .2s, color .2s, border-color .2s;
}
.wg-k-wort { font-style: italic; }
.wg-k:hover { border-color: var(--gold); }
.wg-k[aria-pressed="true"] { background: var(--gruen); border-color: var(--gruen); color: #f4eddd; }
:root[data-abend="an"] .wg-k[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1b1813; }
.wg-regler { flex: 1 1 auto; min-width: 60px; height: 44px; margin: 0; accent-color: var(--bordeaux); cursor: pointer; background: transparent; }
:root[data-abend="an"] .wg-regler { accent-color: var(--gold); }

.wg-buehne { --m: 0; position: relative; display: grid; padding: 16px 18px; isolation: isolate; }
.wg-buehne::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background: var(--wg-pause); border: 1px solid var(--wg-pause-rand);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 6px 18px -12px rgba(29, 27, 23, .35);
  opacity: calc(1 - var(--m) * .85);
  transform: translateX(calc(var(--m) * 18px)) rotate(calc((1 - var(--m)) * -.5deg));
}
.wg-buehne::after {
  content: ''; position: absolute; inset: 16px 18px; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.6em - 1px), var(--linie) calc(1.6em - 1px), var(--linie) 1.6em);
  font-size: var(--gedicht-groesse); opacity: calc(var(--m) * .35);
}
.wg-schicht { grid-area: 1 / 1; margin: 0; font-size: var(--gedicht-groesse); line-height: 1.6; min-width: 0; }
.wg-l { display: block; }
.wg-w { white-space: nowrap; }
.wg-c { display: inline-block; white-space: pre; --p: clamp(0, calc((var(--m) - var(--t) * .7) / .3), 1); }
.wg-wort { font-style: italic; color: var(--wg-blei); letter-spacing: .005em; }
.wg-wort .wg-c { opacity: calc(1 - var(--p)); transform: translateY(calc(var(--p) * -.32em)); }
.wg-vers { color: var(--wg-tinte); }
.wg-vers .wg-c { opacity: var(--p); transform: translateY(calc((1 - var(--p)) * .32em)); }

.wg-notiz { margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid var(--linie); }
.wg-notiz-kopf { margin: 0 0 6px; }
.wg-nem { text-transform: none; letter-spacing: 0; font-style: italic; }
.wg-notiz-text { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--tinte-2); overflow-wrap: break-word; text-wrap: pretty; }
.wg-mark { background: var(--mark-stark); color: inherit; padding: 0 .12em; border-radius: 2px; }
.wg-zit { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.wg-ausl { color: var(--grau); }
.wg-solo { margin: 0 0 4px; font-size: var(--gedicht-groesse); line-height: 1.55; font-style: italic; color: var(--wg-blei); overflow-wrap: break-word; }
.wg-solo-l { display: block; margin-bottom: 4px; font-style: normal; }
.wg-allg .wg-notiz { border-top: 0; padding-top: 0; margin-top: 4px; }
.wg-weiter { margin: 12px 0 0; text-align: right; font-size: .95rem; }
.wg-weiter a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--bordeaux); text-decoration: none; }
.wg-weiter a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .wg-c { transform: none !important; }
  .wg-buehne::before { transform: none; }
  .wg-titel a { transition: none; }
}
:root[data-ruhig="an"] .wg-c { transform: none !important; }
:root[data-ruhig="an"] .wg-buehne::before { transform: none; }
:root[data-ruhig="an"] .wg-titel a, :root[data-ruhig="an"] .wg-k { transition: none; }

@media (max-width: 760px) {
  .wg-tisch, .wg-paar .wg-tisch { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wg-buehne { padding: 14px 12px; }
  .wg-buehne::after { inset: 14px 12px; }
  .wg-schalter { gap: 6px; }
  .wg-k { padding: 6px 11px; font-size: .9rem; }
  .wg-weiter { text-align: left; }
  .wg-karte::before { display: none; }
}
@media print {
  .wg-filter, .wg-schalter, .wg-status { display: none; }
  .wg-karte { break-inside: avoid; box-shadow: none; }
}
