/* Lieder des Lebens – Liederbuch der Al-Hayat-Kirche
   Richtung: modernes Gesangbuch. Papier, gruene Tinte, Gold. Dunkel = Beamer-Gruen. */

:root {
  --papier: #f4eee1;
  --papier-2: #ebe2cf;
  --karte: #fbf8f1;
  --tinte: #13291f;
  --tinte-2: #4d5f55;
  --gruen: #1d5a40;
  --gruen-hell: #2f7a57;
  --blatt: #6f9e3a;
  --gold: #9a6f1c;
  --gold-hell: #c9a04a;
  --linie: rgba(19, 41, 31, .13);
  --markiert: rgba(201, 160, 74, .32);
  --schatten: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 30px -18px rgba(19, 41, 31, .45);
  --wz-deckung: .07;

  --f-ar: 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  --f-ar-titel: 'Reem Kufi', 'Noto Naskh Arabic', sans-serif;
  --f-titel: 'Fraunces', Georgia, serif;
  --f-text: 'Newsreader', Georgia, serif;

  --text-skala: 1;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #0b1d15; --papier-2: #10281d; --karte: #122c20; --tinte: #efe8d8; --tinte-2: #a9b8ad;
    --gruen: #a6d98f; --gruen-hell: #c3e8a8; --blatt: #9ccf6a; --gold: #e6c574; --gold-hell: #f0d693;
    --linie: rgba(239, 232, 216, .12); --markiert: rgba(230, 197, 116, .25);
    --schatten: 0 12px 30px -18px rgba(0,0,0,.8); --wz-deckung: .05; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papier: #0b1d15; --papier-2: #10281d; --karte: #122c20; --tinte: #efe8d8; --tinte-2: #a9b8ad;
  --gruen: #a6d98f; --gruen-hell: #c3e8a8; --blatt: #9ccf6a; --gold: #e6c574; --gold-hell: #f0d693;
  --linie: rgba(239, 232, 216, .12); --markiert: rgba(230, 197, 116, .25);
  --schatten: 0 12px 30px -18px rgba(0,0,0,.8); --wz-deckung: .05; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--papier); color: var(--tinte);
  font: 400 1.0625rem/1.55 var(--f-text);
  /* Papierkorn */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[dir="rtl"] body, body[dir="rtl"] { font-family: var(--f-ar); }
a { color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 2px; border-radius: 4px; }
.ar { font-family: var(--f-ar); direction: rtl; unicode-bidi: isolate; }
.lat { font-family: var(--f-text); direction: ltr; unicode-bidi: isolate; }

.wasserzeichen {
  position: fixed; inset: auto -8vmin -14vmin auto; width: 62vmin; height: 68vmin; pointer-events: none; z-index: 0;
  background: var(--gruen); opacity: var(--wz-deckung);
  -webkit-mask: url(bilder/symbol-weiss.svg) center / contain no-repeat; mask: url(bilder/symbol-weiss.svg) center / contain no-repeat;
}
[dir="rtl"] .wasserzeichen { inset: auto auto -14vmin -8vmin; transform: scaleX(-1); }

/* ---------- Kopf ---------- */
@media (max-width: 860px) {
  .kopf { flex-wrap: wrap; row-gap: .4rem; }
  .navi { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .kopf-schalter { margin-inline-start: auto; }
}
.kopf {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem); padding-top: max(.7rem, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--linie);
}
.marke { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tinte); }
.marke-symbol { width: 2.3rem; height: 2.5rem; }
.marke-text { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.marke-ar { font: 600 1.15rem/1.15 var(--f-ar-titel); color: var(--gruen); }
.marke-de { font: 500 .82rem/1.2 var(--f-titel); letter-spacing: .04em; color: var(--tinte-2); font-variant: small-caps; }
.navi { display: flex; gap: .3rem; margin-inline-start: auto; }
.navi a {
  text-decoration: none; color: var(--tinte-2); padding: .35rem .7rem; border-radius: 99px;
  font: 500 .95rem var(--f-titel); white-space: nowrap;
}
[dir="rtl"] .navi a { font-family: var(--f-ar-titel); }
.navi a[aria-current="page"] { color: var(--papier); background: var(--gruen); }
.zaehler { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; margin-inline-start: .15rem;
  border-radius: 99px; background: var(--gold); color: var(--papier); font: 700 .7rem var(--f-text); }
.kopf-schalter { display: flex; gap: .3rem; }
.knopf-klein {
  border: 1px solid var(--linie); background: var(--karte); border-radius: 99px; padding: .3rem .7rem; cursor: pointer;
  font-size: .9rem; min-width: 2.4rem;
}
.knopf-klein:hover { border-color: var(--gold-hell); }

main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem); outline: none; }

/* ---------- Suche ---------- */
.held { display: grid; gap: .9rem; margin: clamp(.5rem, 4vh, 2.5rem) 0 1.6rem; }
.held h1 { margin: 0; font: 600 clamp(2.1rem, 6vw, 3.6rem)/1.02 var(--f-titel); letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
[dir="ltr"] .held h1 .ar { text-align: left; }
.held h1 .ar { display: block; font: 700 clamp(1.8rem, 5vw, 3rem)/1.25 var(--f-ar-titel); color: var(--gruen); }
[dir="rtl"] .held h1 .lat { font-size: .6em; color: var(--tinte-2); }
.held p { margin: 0; color: var(--tinte-2); max-width: 46rem; }
.suchfeld { position: relative; }
.suchfeld input {
  width: 100%; border: 0; border-bottom: 2px solid var(--tinte); background: transparent; color: var(--tinte);
  font: 400 clamp(1.3rem, 3.5vw, 1.9rem)/1.3 var(--f-text); padding: .5rem 2.6rem .5rem .1rem; border-radius: 0;
}
[dir="rtl"] .suchfeld input { font-family: var(--f-ar); padding: .5rem .1rem .5rem 2.6rem; }
.suchfeld input::placeholder { color: var(--tinte-2); opacity: .6; font-style: italic; }
.suchfeld input:focus { outline: none; border-bottom-color: var(--gold); }
.suchfeld input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.suchfeld .x { position: absolute; inset-inline-end: 0; top: 50%; translate: 0 -50%; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--tinte-2); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  border: 1px solid var(--linie); background: var(--karte); border-radius: 99px; padding: .22rem .75rem; cursor: pointer;
  font: 500 .88rem var(--f-titel); color: var(--tinte-2); display: inline-flex; gap: .4rem; align-items: baseline;
}
[dir="rtl"] .chip { font-family: var(--f-ar); }
.chip small { font-family: var(--f-ar); opacity: .75; }
[dir="rtl"] .chip small { font-family: var(--f-titel); }
.chip[aria-pressed="true"] { background: var(--gruen); border-color: var(--gruen); color: var(--papier); }
.chip-zahl { font: 600 .72rem var(--f-text); opacity: .6; }
.leiste { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1.2rem 0 .6rem; color: var(--tinte-2); font-size: .95rem; }
.leiste .rechts { margin-inline-start: auto; display: flex; gap: .4rem; }
.segment { display: inline-flex; border: 1px solid var(--linie); border-radius: 99px; overflow: hidden; }
.segment button { border: 0; background: var(--karte); padding: .25rem .7rem; cursor: pointer; font-size: .88rem; }
.segment button[aria-pressed="true"] { background: var(--tinte); color: var(--papier); }

.liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: .8rem; }
.karte-lied {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; align-items: start;
  padding: 1rem 1.1rem 1rem .9rem; border-radius: 14px; background: var(--karte); border: 1px solid var(--linie);
  box-shadow: var(--schatten); text-decoration: none; color: var(--tinte);
  transition: transform .18s ease, border-color .18s ease;
  animation: auftauchen .45s ease both; animation-delay: calc(var(--i, 0) * 22ms);
}
.karte-lied:hover { transform: translateY(-2px); border-color: var(--gold-hell); }
.karte-nr { grid-row: span 4; font: 600 .78rem/1 var(--f-titel); color: var(--gold); letter-spacing: .06em; padding-top: .35rem; min-width: 2.2rem; font-variant-numeric: oldstyle-nums; }
.karte-ar { font: 600 1.28rem/1.5 var(--f-ar-titel); color: var(--gruen); direction: rtl; text-align: start; }
[dir="ltr"] .karte-ar { text-align: right; }
.karte-de { font: 500 1.02rem/1.3 var(--f-titel); }
.karte-tr { font: italic 400 .92rem/1.3 var(--f-text); color: var(--tinte-2); direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .karte-tr, [dir="rtl"] .karte-de { text-align: right; }
.karte-treffer { margin-top: .45rem; padding: .35rem .6rem; border-inline-start: 2px solid var(--gold-hell); background: color-mix(in srgb, var(--papier-2) 70%, transparent); border-radius: 0 8px 8px 0; font-size: .95rem; }
[dir="rtl"] .karte-treffer { border-radius: 8px 0 0 8px; }
.karte-treffer mark { background: var(--markiert); color: inherit; border-radius: 3px; padding: 0 .1em; }
.karte-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.tag { text-decoration: none; font: 500 .72rem var(--f-titel); color: var(--tinte-2); border: 1px solid var(--linie); padding: .05rem .5rem; border-radius: 99px; }
[dir="rtl"] .tag { font-family: var(--f-ar); }
.tag-entwurf { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.leer { text-align: center; padding: 3rem 1rem; color: var(--tinte-2); }
.leer b { display: block; font: 600 1.4rem var(--f-titel); color: var(--tinte); margin-bottom: .3rem; }

@keyframes auftauchen { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Liedansicht ---------- */
.lied-kopf { display: grid; gap: .3rem; margin: .5rem 0 1rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--linie); }
.zurueck { font: 500 .9rem var(--f-titel); text-decoration: none; color: var(--tinte-2); }
.lied-nr { font: 600 .85rem var(--f-titel); letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.lied-titel-ar { margin: 0; font: 700 clamp(1.9rem, 5vw, 3rem)/1.35 var(--f-ar-titel); color: var(--gruen); direction: rtl; }
[dir="ltr"] .lied-titel-ar { text-align: right; }
.lied-titel-de { margin: 0; font: 600 clamp(1.4rem, 3.4vw, 2.1rem)/1.15 var(--f-titel); letter-spacing: -.01em; }
.lied-titel-tr { margin: 0; font: italic 400 1.1rem var(--f-text); color: var(--tinte-2); direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .lied-titel-tr, [dir="rtl"] .lied-titel-de { text-align: right; }
.lied-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.notiz { margin: .6rem 0 0; padding: .6rem .9rem; border-radius: 10px; background: var(--papier-2); font-size: .95rem; color: var(--tinte-2); }

.werkzeuge {
  position: sticky; top: 4.1rem; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .55rem 0; margin-bottom: .8rem; background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.knopf {
  display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--linie); background: var(--karte);
  border-radius: 99px; padding: .4rem .9rem; cursor: pointer; font: 500 .92rem var(--f-titel); color: var(--tinte); text-decoration: none;
}
[dir="rtl"] .knopf { font-family: var(--f-ar); }
.knopf:hover { border-color: var(--gold-hell); }
.knopf-haupt { background: var(--gruen); border-color: var(--gruen); color: var(--papier); }
.knopf-haupt:hover { background: var(--gruen-hell); }
.knopf[aria-pressed="true"] { background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.knopf[disabled] { opacity: .45; cursor: default; }
.werkzeuge .luecke { flex: 1; }
.aufklapp { position: relative; }
.aufklapp-menue {
  position: absolute; inset-inline-end: 0; top: calc(100% + .3rem); min-width: 15rem; padding: .35rem; border-radius: 12px;
  background: var(--karte); border: 1px solid var(--linie); box-shadow: 0 18px 40px -20px rgba(0,0,0,.5); display: grid; z-index: 30;
}
.aufklapp-menue a, .aufklapp-menue button { text-align: start; border: 0; background: none; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--tinte); cursor: pointer; font-size: .95rem; }
.aufklapp-menue a:hover, .aufklapp-menue button:hover { background: var(--papier-2); }
.aufklapp-menue small { display: block; color: var(--tinte-2); font-size: .78rem; }

.ablauf-pfad { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: 0 0 1.4rem; font: 500 .85rem var(--f-titel); color: var(--tinte-2); }
.ablauf-pfad a { text-decoration: none; padding: .1rem .5rem; border-radius: 6px; background: var(--papier-2); color: var(--tinte); }
.ablauf-pfad .pfeil { opacity: .5; }

.abschnitt { margin: 0 0 2.2rem; scroll-margin-top: 8rem; }
.abschnitt-name { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .6rem; font: 600 .8rem var(--f-titel); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.abschnitt-name .ar { letter-spacing: 0; font-size: 1rem; text-transform: none; }
.abschnitt-name::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.abschnitt-refrain { padding: 1rem 1.2rem; border-radius: 14px; background: color-mix(in srgb, var(--papier-2) 75%, transparent); border-inline-start: 3px solid var(--blatt); }
.abschnitt-flag { font: 500 .72rem var(--f-titel); text-transform: none; letter-spacing: 0; color: var(--gold); border: 1px solid currentColor; border-radius: 99px; padding: 0 .45rem; }

.zeilen { display: grid; gap: .55rem calc(2rem * var(--text-skala)); }
.zeile { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 2.2rem; align-items: baseline; }
.zeile .gesungen { grid-column: 2; grid-row: 1; font-size: calc(1.45rem * var(--text-skala)); line-height: 1.7; }
.zeile .gesungen.ar { font-weight: 600; text-align: right; }
.zeile .gesungen.lat { grid-column: 1; font: 500 calc(1.3rem * var(--text-skala))/1.45 var(--f-text); }
.zeile .umschrift { grid-column: 2; grid-row: 2; font: italic 400 calc(1.02rem * var(--text-skala))/1.35 var(--f-text); color: var(--gruen-hell); text-align: right; direction: ltr; }
.zeile .uebersetzung { grid-column: 1; grid-row: 1 / span 2; font-size: calc(1.08rem * var(--text-skala)); line-height: 1.5; color: var(--tinte-2); align-self: center; }
.zeile .uebersetzung.ar { grid-column: 2; font-size: calc(1.2rem * var(--text-skala)); text-align: right; }
.zeile-de .gesungen.lat { grid-column: 1; }
.zeile-de .uebersetzung.ar { grid-column: 2; grid-row: 1; }
[dir="rtl"] .zeile { direction: ltr; }
.ohne-tr .umschrift, .ohne-ue .uebersetzung, .ohne-ar .gesungen.ar, .ohne-ar .uebersetzung.ar { display: none; }
.ohne-ue .zeile, .ohne-ar .zeile { grid-template-columns: 1fr; }
.ohne-ue .zeile > *, .ohne-ar .zeile > * { grid-column: 1 !important; grid-row: auto !important; text-align: center !important; }
@media (max-width: 760px) {
  .zeile { grid-template-columns: 1fr; gap: .05rem; }
  .zeile > * { grid-column: 1 !important; grid-row: auto !important; }
  .zeile .gesungen.ar, .zeile .umschrift, .zeile .uebersetzung.ar { text-align: right; }
  .zeile .uebersetzung { margin-bottom: .45rem; }
  .werkzeuge { top: 3.8rem; }
}

/* ---------- Ablauf ---------- */
.seitenkopf { margin: .5rem 0 1.5rem; }
.seitenkopf h1 { margin: 0 0 .3rem; font: 600 clamp(1.8rem, 4.5vw, 2.8rem)/1.1 var(--f-titel); }
[dir="rtl"] .seitenkopf h1 { font-family: var(--f-ar-titel); }
.seitenkopf p { margin: 0; color: var(--tinte-2); }
.ablauf-name { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.ablauf-name input { flex: 1; min-width: 12rem; border: 1px solid var(--linie); background: var(--karte); border-radius: 10px; padding: .5rem .8rem; font: inherit; color: inherit; }
.ablauf-liste { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; counter-reset: pos; }
.ablauf-eintrag {
  display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem .9rem;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; box-shadow: var(--schatten);
}
.ablauf-eintrag.zieht { opacity: .4; }
.ablauf-eintrag.ziel { border-color: var(--gold); }
.ablauf-pos { counter-increment: pos; font: 600 1.3rem var(--f-titel); color: var(--gold); width: 1.8rem; text-align: center; cursor: grab; }
.ablauf-pos::before { content: counter(pos); }
.ablauf-titel a { text-decoration: none; color: var(--tinte); }
.ablauf-titel .ar { display: block; font: 600 1.1rem var(--f-ar-titel); color: var(--gruen); }
.ablauf-titel .lat { font: 500 .95rem var(--f-titel); color: var(--tinte-2); }
.ablauf-aktion { display: flex; gap: .25rem; }
.ablauf-aktion button { border: 1px solid var(--linie); background: none; border-radius: 8px; width: 2rem; height: 2rem; cursor: pointer; }
.ablauf-aktion button:hover { border-color: var(--gold-hell); }
.hinweis { padding: .8rem 1rem; border-radius: 12px; background: var(--papier-2); color: var(--tinte-2); font-size: .95rem; margin: 1rem 0; }

/* ---------- Statistik ---------- */
.stat-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.stat-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: var(--schatten); }
.stat-karte h2 { margin: 0 0 .7rem; font: 600 1.15rem var(--f-titel); }
[dir="rtl"] .stat-karte h2 { font-family: var(--f-ar-titel); }
.stat-zahlen { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat-zahl b { display: block; font: 600 2.4rem/1 var(--f-titel); color: var(--gruen); font-variant-numeric: tabular-nums; }
.stat-zahl span { font-size: .85rem; color: var(--tinte-2); }
.stat-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.stat-liste li { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; font-size: .95rem; }
.stat-liste a { text-decoration: none; color: var(--tinte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-balken { height: 6px; border-radius: 3px; background: var(--blatt); margin-top: .15rem; }
.stat-wert { font: 600 .85rem var(--f-text); color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.verlauf-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.verlauf-liste li { border-inline-start: 2px solid var(--gold-hell); padding-inline-start: .7rem; font-size: .92rem; color: var(--tinte-2); }
.verlauf-liste b { color: var(--tinte); font-family: var(--f-titel); }

/* ---------- Hilfe ---------- */
.hilfe { max-width: 52rem; }
.hilfe h2 { font: 600 1.3rem var(--f-titel); margin: 2rem 0 .5rem; }
[dir="rtl"] .hilfe h2 { font-family: var(--f-ar-titel); }
.hilfe kbd { font: 600 .82rem var(--f-text); padding: .05rem .4rem; border: 1px solid var(--linie); border-bottom-width: 2px; border-radius: 5px; background: var(--karte); }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle td, .tabelle th { padding: .35rem .5rem; border-bottom: 1px solid var(--linie); text-align: start; }

/* ---------- Fuss ---------- */
.fuss { position: relative; z-index: 1; text-align: center; padding: 2.5rem 1rem calc(2rem + env(safe-area-inset-bottom)); color: var(--tinte-2); font-size: .88rem; border-top: 1px solid var(--linie); margin-top: 3rem; }
.fuss-logo { height: 2.6rem; margin-bottom: .6rem; }
:root[data-theme="dark"] .fuss-logo { filter: brightness(0) invert(.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fuss-logo { filter: brightness(0) invert(.92); } }
.fuss p { margin: .2rem 0; }
.fuss-klein { font-size: .78rem; opacity: .7; }

.toast {
  position: fixed; bottom: calc(1.2rem + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; z-index: 60;
  background: var(--tinte); color: var(--papier); padding: .6rem 1.1rem; border-radius: 99px; font-size: .95rem;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); animation: auftauchen .25s ease;
}

/* ---------- Beamer ---------- */
.beamer {
  position: fixed; inset: 0; z-index: 100; overflow: hidden; color: #fff; cursor: none;
  background: radial-gradient(120% 90% at 50% -10%, #1a4533 0%, #0f2c21 45%, #081c15 100%);
  font-family: 'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif;
}
.beamer.maus { cursor: default; }
.beamer-wz {
  position: absolute; width: 58vh; height: 63vh; right: -2vh; bottom: -24vh; background: #fff; opacity: .045;
  -webkit-mask: url(bilder/symbol-weiss.svg) center / contain no-repeat; mask: url(bilder/symbol-weiss.svg) center / contain no-repeat;
}
.beamer-logo { position: absolute; left: 2.2vh; bottom: 2.2vh; height: 4.6vh; opacity: .55; }
.beamer-buehne { position: absolute; inset: 5vh 4.5vw 10vh; display: grid; place-items: center; }
.folie { width: 100%; text-align: center; animation: folie-ein .28s ease; }
@keyframes folie-ein { from { opacity: 0; } }
.folie-haupt { display: grid; gap: calc(var(--fs) * .2); }
.folie .fz-ar { font: 700 var(--fs)/1.38 'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif; direction: rtl; }
.folie .fz-de { font: 700 var(--fs)/1.22 'Noto Sans', 'Newsreader', sans-serif; }
.folie .fz-tr { font: italic 400 calc(var(--fs) * .6)/1.25 'Noto Sans', 'Newsreader', sans-serif; color: #a9d98b; margin-top: calc(var(--fs) * -.12); }
.folie .fz-ue { font: 400 calc(var(--fs) * .7)/1.25 'Noto Sans', 'Newsreader', sans-serif; color: #f2d98d; }
.folie .fz-ue.ar { font-family: 'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif; direction: rtl; line-height: 1.4; }
.folie-linie { width: 18vh; height: 1px; background: #8fb5a3; margin: calc(var(--fs) * .38) auto; opacity: .8; }
.folie-titel .ft-logo { height: 11vh; opacity: .9; margin-bottom: 7vh; }
.folie-titel .ft-haupt { font: 700 calc(var(--fs) * 1.2)/1.3 'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif; }
.folie-titel .ft-haupt.lat { font-family: 'Noto Sans', 'Newsreader', sans-serif; }
.folie-titel .ft-tr { font: italic 400 calc(var(--fs) * .6) 'Noto Sans', 'Newsreader', sans-serif; color: #a9d98b; margin-top: 1.5vh; }
.folie-titel .ft-ue { font: 400 calc(var(--fs) * .7) 'Noto Sans', 'Newsreader', sans-serif; color: #f2d98d; margin-top: 1.2vh; }
.folie-titel .ft-nr { font: 600 2.2vh 'Noto Sans', sans-serif; letter-spacing: .3em; color: #8fb5a3; margin-top: 5vh; }
.beamer.ohne-tr .fz-tr, .beamer.ohne-tr .ft-tr { display: none; }
.beamer-schwarz { position: absolute; inset: 0; background: #000; z-index: 5; }
.beamer-leiste {
  position: absolute; right: 2vh; bottom: 2vh; z-index: 6; display: flex; align-items: center; gap: .4rem;
  font: 400 15px 'Noto Sans', sans-serif; color: #8fb5a3; opacity: 0; transition: opacity .3s;
}
.beamer.maus .beamer-leiste, .beamer-leiste:focus-within { opacity: 1; }
.beamer-leiste button { border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: #dfe9e2; border-radius: 8px; min-width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.beamer-leiste button[aria-pressed="false"] { opacity: .5; }
.beamer-trenner { width: 1px; height: 22px; background: rgba(255,255,255,.2); margin: 0 .2rem; }
#beamer-info { min-width: 12rem; text-align: center; }
.beamer-uebersicht {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; gap: 6px; padding: 10px; overflow-x: auto;
  background: linear-gradient(rgba(0,0,0,.55), transparent); opacity: 0; transition: opacity .3s; pointer-events: none;
}
.beamer.maus .beamer-uebersicht { opacity: 1; pointer-events: auto; }
.beamer-uebersicht button {
  flex: none; border: 1px solid rgba(255,255,255,.2); background: rgba(8,28,21,.8); color: #cfe0d6; border-radius: 6px;
  padding: 4px 8px; font: 13px 'Noto Sans', 'Noto Sans Arabic', sans-serif; cursor: pointer; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.beamer-uebersicht button.aktiv { background: #e6c574; color: #10281d; border-color: #e6c574; }
.beamer-uebersicht button.liedstart { margin-left: 10px; border-color: #e6c574; }
.beamer-mess { position: absolute; left: -9999px; top: 0; visibility: hidden; }

/* ---------- Logo-Zwischenfolie ---------- */
.beamer-logofolie { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% -10%, #1a4533 0%, #0f2c21 45%, #081c15 100%); }
.beamer-logofolie img { width: min(46vw, 82vh * 2.8); opacity: .92; }

/* ---------- Moderator-Ansicht (eigenes Fenster auf dem eigenen Bildschirm) ---------- */
body.moderator-modus .kopf, body.moderator-modus .fuss, body.moderator-modus .wasserzeichen { display: none; }
body.moderator-modus main { max-width: none; padding: 1rem 1.2rem; }
body.moderator-modus { background: #0b1a14; color: #e8efe9; }
.mod { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: .8rem; height: calc(100vh - 2rem); }
.mod-haupt > section { min-height: 0; }
.mod-kopf { display: flex; align-items: baseline; gap: 1.2rem; font: 600 1.15rem 'Noto Sans', 'Noto Sans Arabic', sans-serif; }
.mod-kopf #mod-pos { color: #a9c7b6; font-weight: 400; }
.mod-uhr { margin-inline-start: auto; font-variant-numeric: tabular-nums; font-size: 1.6rem; color: #e6c574; }
.mod-haupt { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.2rem; min-height: 0; }
.mod h2 { margin: 0 0 .4rem; font: 600 .78rem 'Noto Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8fb5a3; }
.mod-seite { display: flex; flex-direction: column; min-height: 0; gap: .4rem; }
.mod-seite h2:not(:first-child) { margin-top: .8rem; }
.mod-rahmen { position: relative; width: 100%; overflow: hidden; border-radius: 10px; outline: 2px solid #2b4a3c; background: #081c15; }
section > .mod-rahmen { outline: 3px solid #e6c574; }
.mod-rahmen.ist-schwarz::after, .mod-rahmen.ist-logo::after {
  position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 6px; font: 700 14px 'Noto Sans', sans-serif; z-index: 3; }
.mod-rahmen.ist-schwarz::after { content: 'SCHWARZ'; background: #000; color: #fff; outline: 1px solid #fff; }
.mod-rahmen.ist-logo::after { content: 'LOGO'; background: #e6c574; color: #10281d; }
.mod-rahmen.ist-schwarz .mod-folie { filter: brightness(.25); }
.mod-folie { position: absolute; left: 0; top: 0; transform-origin: 0 0; color: #fff;
  background: radial-gradient(120% 90% at 50% -10%, #1a4533 0%, #0f2c21 45%, #081c15 100%);
  font-family: 'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif; }
.mod-buehne { position: absolute; top: calc(var(--sh) * .05); bottom: calc(var(--sh) * .10); left: calc(var(--sw) * .045); right: calc(var(--sw) * .045);
  display: grid; place-items: center; }
.mod-folie .folie { animation: none; }
.mod-folie .folie-linie { width: calc(var(--sh) * .18); }
.mod-folie .folie-titel .ft-logo { height: calc(var(--sh) * .11); margin-bottom: calc(var(--sh) * .07); }
.mod-folie .folie-titel .ft-tr { margin-top: calc(var(--sh) * .015); }
.mod-folie .folie-titel .ft-ue { margin-top: calc(var(--sh) * .012); }
.mod-liste { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 8rem; display: grid; align-content: start; gap: 2px; }
.mod-liste button { width: 100%; text-align: start; border: 0; background: #12291f; color: #cfe0d6; padding: .45rem .7rem; border-radius: 6px; cursor: pointer;
  font: 15px 'Noto Sans', 'Noto Sans Arabic', sans-serif; }
.mod-liste .mod-titel button { background: #1c3a2d; color: #e6c574; font-weight: 600; margin-top: .4rem; }
.mod-liste .aktiv button { background: #e6c574; color: #10281d; }
.mod-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.mod-knoepfe button { border: 1px solid #2f5242; background: #142e23; color: #e8efe9; border-radius: 10px; padding: .8rem 1.1rem; cursor: pointer;
  font: 600 1rem 'Noto Sans', 'Noto Sans Arabic', sans-serif; display: inline-flex; gap: .5rem; align-items: center; }
.mod-knoepfe button:hover { border-color: #e6c574; }
.mod-knoepfe button[aria-pressed="true"] { background: #e6c574; color: #10281d; }
.mod-knoepfe .mod-gross { background: #2f7a57; border-color: #2f7a57; padding-inline: 2.2rem; font-size: 1.15rem; }
.mod-knoepfe .mod-ende { margin-inline-start: auto; border-color: #7a3a32; }
.mod-knoepfe kbd { font: 600 .72rem 'Noto Sans', sans-serif; padding: 0 .35rem; border: 1px solid currentColor; border-radius: 4px; opacity: .7; }
.mod-hilfe { margin: 0; color: #8fb5a3; font-size: .85rem; }
@media (max-width: 800px), (max-height: 560px) { .mod { height: auto; } .mod-haupt { grid-template-columns: 1fr; } .mod-liste { max-height: 40vh; } }

/* Beamer-Einrichtung in der Hilfe */
.einrichten { padding: 1rem 1.2rem; border-radius: 14px; background: var(--karte); border: 1px solid var(--linie); box-shadow: var(--schatten); margin-bottom: 1.5rem; }
.einrichten h2 { margin-top: 0 !important; }
#einr-box { margin-top: .8rem; }
.chip[disabled] { opacity: .5; cursor: default; }

/* ---------- Teilen-Fenster ---------- */
dialog.teilen { width: min(30rem, calc(100vw - 2rem)); border: 1px solid var(--linie); border-radius: 18px; padding: 1.2rem 1.4rem 1.4rem;
  background: var(--karte); color: var(--tinte); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
dialog.teilen::backdrop { background: rgba(10, 25, 18, .45); backdrop-filter: blur(3px); }
.teilen-kopf { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.teilen-kopf h2 { margin: 0; font: 600 1.35rem var(--f-titel); }
[dir="rtl"] .teilen-kopf h2 { font-family: var(--f-ar-titel); }
.teilen-text { color: var(--tinte-2); font-size: .95rem; margin: .5rem 0 1rem; }
.teilen-link { display: flex; gap: .5rem; }
.teilen-link input { flex: 1; min-width: 0; border: 1px solid var(--linie); border-radius: 10px; padding: .55rem .7rem; background: var(--papier); color: var(--tinte);
  font: 600 .95rem ui-monospace, Consolas, monospace; }
.teilen-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.teilen-qr { width: 12rem; margin: 1.2rem auto .3rem; padding: .5rem; background: #fff; border-radius: 12px; }
.teilen-qr svg { display: block; width: 100%; height: auto; }
.teilen-klein { text-align: center; color: var(--tinte-2); font-size: .85rem; margin: 0; }

/* ---------- Lied vorschlagen ---------- */
.vorschlag { display: grid; gap: 1rem; max-width: 46rem; }
.vorschlag label { display: grid; gap: .3rem; align-content: start; font: 600 .95rem var(--f-titel); }
[dir="rtl"] .vorschlag label { font-family: var(--f-ar); }
.vorschlag input, .vorschlag textarea { font: 400 1rem var(--f-text); color: var(--tinte); background: var(--karte); border: 1px solid var(--linie);
  border-radius: 10px; padding: .6rem .75rem; width: 100%; }
.vorschlag textarea { font-family: var(--f-ar), var(--f-text); line-height: 1.6; resize: vertical; }
.vorschlag input:focus, .vorschlag textarea:focus { outline: 2px solid var(--gold-hell); outline-offset: 1px; }
.vorschlag small { font: 400 .82rem var(--f-text); color: var(--tinte-2); }
.vorschlag-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem 1.2rem; align-items: start; }
.vorschlag input { height: 2.75rem; }
.vorschlag-schon { padding: .7rem 1rem; border-radius: 12px; background: color-mix(in srgb, var(--gold-hell) 18%, var(--karte)); border: 1px solid var(--gold-hell); }
.vorschlag-schon p { margin: 0 0 .3rem; font-weight: 600; }
.vorschlag-schon ul { margin: 0; padding-inline-start: 1.2rem; }
.vorschlag-falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vorschlag-meldung { margin: 0; padding: .6rem .9rem; border-radius: 10px; background: #fbe9e6; color: #8a2b1d; }
.vorschlag button[type=submit] { justify-self: start; padding: .7rem 1.6rem; font-size: 1.02rem; }
