/* Bibel · الكتاب المقدس – Al-Hayat-Kirche
   Gleiche Gestaltung wie die Lieder-App: 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; }

/* ---------- 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; }


/* ======================================================================== Bibel */
.laden { display: flex; align-items: center; justify-content: center; gap: .7rem; padding: 3rem 1rem; color: var(--tinte-2); }
.laden-punkt { width: .8rem; height: .8rem; border-radius: 50%; background: var(--gold-hell); animation: puls 1s ease-in-out infinite alternate; }
@keyframes puls { from { opacity: .25; transform: scale(.7); } }
sup { font: 600 .62em var(--f-text); color: var(--gold); margin-inline-end: .3em; vertical-align: .55em; }
.ar sup { font-family: var(--f-ar); }

/* Reem Kufi hat ein sehr schmales Leerzeichen – bei Stellenangaben („يوحنا ٣: ١٦“) etwas Luft geben */
.lese-titel .ar, .stellen-kopf .ar, .auswahl-stelle .ar, .treffer-stelle .ar, .buch-karte-titel .ar, .ablauf-titel .ar, .thema-karte h3 .ar { word-spacing: .2em; }

/* ---------- Suche ---------- */
.held-bibel h1 .ar { font-size: clamp(2rem, 5.5vw, 3.3rem); }
.such-optionen { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; color: var(--tinte-2); font-size: .92rem; }
.schalter { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.schalter input { accent-color: var(--gruen); width: 1rem; height: 1rem; }
.ue-wahl { display: inline-flex; gap: .35rem; margin-inline-start: auto; }
.ue-wahl select, .eintrag-ue select {
  border: 1px solid var(--linie); background: var(--karte); color: var(--tinte); border-radius: 99px; padding: .25rem .6rem; font: 500 .88rem var(--f-titel); cursor: pointer; }
.ue-wahl select[dir="rtl"], .eintrag-ue select[dir="rtl"] { font-family: var(--f-ar); }
.erg-block { margin: 1.6rem 0; }
.erg-block > h2, .erg-kopf h2 { margin: 0 0 .7rem; font: 600 .8rem var(--f-titel); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: .6rem; }
[dir="rtl"] .erg-block > h2, [dir="rtl"] .erg-kopf h2 { font-family: var(--f-ar-titel); letter-spacing: 0; font-size: 1rem; }
.erg-block > h2::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
.erg-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.2rem; }
.meintest { margin: 0 0 .7rem; color: var(--tinte-2); }
.link-knopf { border: 0; background: none; padding: 0; color: var(--gruen); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 600; }
.chip-trenner { width: 1px; align-self: stretch; background: var(--linie); margin: 0 .2rem; }
.chip-buch { font-size: .82rem; }
.chip-gold { border-color: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold); }
a.chip { text-decoration: none; }
.filter-chips { margin-bottom: .9rem; }

.stellen-karte { padding: 1.1rem 1.25rem 1rem; border-radius: 16px; background: var(--karte); border: 1px solid var(--linie); box-shadow: var(--schatten); margin-bottom: .8rem; animation: auftauchen .35s ease both; }
.stellen-karte.kompakt { padding: .8rem 1rem .7rem; box-shadow: none; }
.stellen-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; text-decoration: none; margin-bottom: .5rem; direction: ltr; }
.stellen-kopf .ar { font: 700 1.3rem var(--f-ar-titel); color: var(--gruen); order: 2; }
.stellen-kopf .lat { font: 600 1.15rem var(--f-titel); color: var(--tinte); order: 1; }
.vorschau-vers { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 2rem; margin: .35rem 0; direction: ltr; }
.vorschau-vers p { margin: 0; }
.vorschau-vers .ar { grid-column: 2; font-size: 1.22rem; line-height: 1.85; text-align: right; }
.vorschau-vers .lat { grid-column: 1; grid-row: 1; font-size: 1.05rem; color: var(--tinte-2); }
.vorschau-vers:has(> p:only-child) { grid-template-columns: 1fr; }
.vorschau-vers > p:only-child { grid-column: 1; }
.vorschau-mehr { margin: .2rem 0 0; color: var(--tinte-2); font-size: .9rem; font-style: italic; }
.karte-aktionen { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.thema-karte { margin-bottom: 1rem; }
.thema-karte h3 { margin: 0 0 .6rem; font: 600 1.2rem var(--f-titel); }
.thema-karte h3 .ar { font-family: var(--f-ar-titel); color: var(--gruen); }
.thema-karte .stellen-karte .karte-aktionen { margin-top: .4rem; }
.thema-karte .stellen-karte .karte-aktionen .knopf { padding: .25rem .7rem; font-size: .85rem; }
.buch-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .8rem; }
.buch-karte { padding: 1rem 1.1rem; border-radius: 16px; background: var(--karte); border: 1px solid var(--linie); box-shadow: var(--schatten); }
.buch-karte-titel { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; margin-bottom: .6rem; }
.buch-karte-titel .ar { font: 700 1.3rem var(--f-ar-titel); color: var(--gruen); }
.buch-karte-titel .lat { font: 600 1.15rem var(--f-titel); color: var(--tinte); }
.kap-raster { display: flex; flex-wrap: wrap; gap: .3rem; }
.kap-raster a { display: inline-grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding: 0 .3rem; border-radius: 9px; border: 1px solid var(--linie);
  text-decoration: none; color: var(--tinte); font: 500 .95rem var(--f-text); background: var(--papier); }
.kap-raster a:hover, .kap-raster a:focus-visible { background: var(--gruen); color: var(--papier); border-color: var(--gruen); }

.treffer-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.treffer { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: start; padding: .75rem .9rem; border-radius: 14px;
  background: var(--karte); border: 1px solid var(--linie); }
.treffer:hover, .treffer:focus-within { border-color: var(--gold-hell); }
.vers-link { display: grid; gap: .25rem; text-decoration: none; color: var(--tinte); min-width: 0; }
.treffer-stelle { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; font: 600 .88rem var(--f-titel); color: var(--gold); }
.treffer-stelle .ar { font: 600 .98rem var(--f-ar-titel); }
.ue-marke { font: 500 .72rem var(--f-titel); color: var(--tinte-2); border: 1px solid var(--linie); padding: 0 .45rem; border-radius: 99px; }
.treffer-text.ar { font-size: 1.25rem; line-height: 1.9; }
.treffer-text.lat { font-size: 1.07rem; line-height: 1.5; }
.treffer-text mark { background: var(--markiert); color: inherit; border-radius: 3px; padding: 0 .08em; }
.treffer-anders { color: var(--tinte-2); font-size: .95rem; line-height: 1.6; }
.treffer-anders.ar { font-size: 1.08rem; }
.treffer-aktionen { display: flex; flex-direction: column; gap: .25rem; }
.treffer-aktionen button, .knopf-rund { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--linie);
  background: var(--papier); color: var(--tinte); cursor: pointer; text-decoration: none; font-size: 1rem; }
.treffer-aktionen button:hover, .knopf-rund:hover { border-color: var(--gold-hell); background: var(--karte); }
@media (hover: hover) { .treffer-aktionen { opacity: .35; transition: opacity .15s; } .treffer:hover .treffer-aktionen, .treffer:focus-within .treffer-aktionen { opacity: 1; } }

.buch-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .4rem; }
.buch-raster button { display: grid; gap: 0; text-align: center; padding: .5rem .4rem; border-radius: 11px; border: 1px solid var(--linie); background: var(--karte); cursor: pointer; }
.buch-raster button:hover, .buch-raster button:focus-visible { border-color: var(--gold-hell); }
.buch-raster .ar { font: 600 1.05rem/1.5 var(--f-ar-titel); color: var(--gruen); }
.buch-raster .lat { font: 500 .85rem var(--f-titel); color: var(--tinte-2); }
.buch-raster.klein { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.buch-raster.klein .ar { font-size: .95rem; }
.kap-aufklapp { grid-column: 1 / -1; padding: .8rem; border-radius: 12px; background: var(--papier-2); display: grid; gap: .5rem; animation: auftauchen .2s ease; }
.kap-aufklapp b { font: 600 1rem var(--f-titel); }

/* ---------- Dialoge ---------- */
dialog.dialog { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); border: 1px solid var(--linie); border-radius: 18px; padding: 1.1rem 1.3rem 1.3rem;
  background: var(--karte); color: var(--tinte); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
dialog.dialog-breit { width: min(60rem, calc(100vw - 2rem)); }
dialog.dialog::backdrop { background: rgba(10, 25, 18, .45); backdrop-filter: blur(3px); }
.dialog-kopf { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .8rem; }
.dialog-kopf h2 { margin: 0; font: 600 1.35rem var(--f-titel); }
[dir="rtl"] .dialog-kopf h2 { font-family: var(--f-ar-titel); }
.dialog-suche { width: 100%; border: 0; border-bottom: 2px solid var(--tinte); background: transparent; color: var(--tinte); font: 400 1.3rem var(--f-text); padding: .3rem .1rem; margin-bottom: .6rem; }
.dialog-suche:focus { outline: none; border-bottom-color: var(--gold); }
.dialog-buecher h3 { font: 600 .78rem var(--f-titel); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 1rem 0 .4rem; }

/* ---------- Lesen ---------- */
.lese-leiste { position: sticky; top: 4.1rem; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .55rem 0; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.lese-leiste .luecke { flex: 1; }
.lese-leiste .ue-wahl { margin: 0; }
.lese-titel { display: inline-flex; flex-direction: column; align-items: center; border: 0; background: none; cursor: pointer; padding: .1rem .6rem; border-radius: 10px; line-height: 1.15; }
.lese-titel:hover { background: var(--papier-2); }
.lese-titel .ar { font: 700 1.45rem/1.4 var(--f-ar-titel); color: var(--gruen); }
.lese-titel .lat { font: 600 .95rem var(--f-titel); color: var(--tinte-2); }
.knopf-klein[aria-pressed="true"] { background: var(--tinte); color: var(--papier); }
.kapitel { display: grid; gap: .15rem; max-width: 1100px; margin: 0 auto; }
.vers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4rem; padding: .45rem .7rem; border-radius: 10px; cursor: pointer; scroll-margin: 9rem 0 6rem; outline: none;
  transition: background .12s; }
.vers:hover { background: color-mix(in srgb, var(--papier-2) 60%, transparent); }
.vers.gewaehlt { background: color-mix(in srgb, var(--gold-hell) 22%, var(--karte)); box-shadow: inset 3px 0 0 var(--gold); }
.vers p { margin: 0; }
.vers-de { grid-column: 1; grid-row: 1; font-size: calc(1.1rem * var(--text-skala)); line-height: 1.6; }
.vers-ar { grid-column: 2; grid-row: 1; font-size: calc(1.38rem * var(--text-skala)); line-height: 1.95; text-align: right; }
.einspaltig .vers { grid-template-columns: 1fr; max-width: 46rem; margin-inline: auto; width: 100%; }
.einspaltig .vers-de, .einspaltig .vers-ar { grid-column: 1; }
.vers-fehlt { color: var(--tinte-2); opacity: .5; }
[dir="rtl"] .kapitel { direction: ltr; }
@media (max-width: 760px) {
  .vers { grid-template-columns: 1fr; gap: .15rem; }
  .vers-ar { grid-row: 1; grid-column: 1; }
  .vers-de { grid-row: 2; grid-column: 1; color: var(--tinte-2); }
  .einspaltig .vers-de { color: var(--tinte); }
  .lese-leiste { position: static; justify-content: center; }
  .lese-leiste .luecke { display: none; }
  .marke-de { display: none; }
  .auswahl-leiste { gap: .3rem; padding: .45rem .5rem; }
  .auswahl-leiste .knopf { padding: .35rem .7rem; font-size: .88rem; }
  .vorschau-vers { grid-template-columns: 1fr; }
  .vorschau-vers .ar, .vorschau-vers .lat { grid-column: 1; grid-row: auto; }
}
.kapitel-fuss { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.ue-quelle { text-align: center; color: var(--tinte-2); font-size: .82rem; margin: 0 0 6rem; }
.auswahl-leiste { position: fixed; z-index: 30; left: 50%; translate: -50% 0; bottom: calc(1rem + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 1.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .7rem; border-radius: 18px;
  background: var(--karte); border: 1px solid var(--gold-hell); box-shadow: 0 20px 50px -20px rgba(0,0,0,.55); animation: auftauchen .2s ease; }
.auswahl-stelle { display: grid; line-height: 1.2; padding: 0 .5rem; text-align: center; }
.auswahl-stelle .ar { font: 700 1.05rem var(--f-ar-titel); color: var(--gruen); }
.auswahl-stelle .lat { font: 600 .82rem var(--f-titel); color: var(--tinte-2); }

/* ---------- Ablauf ---------- */
.ablauf-name input[type="date"] { flex: 0 0 auto; min-width: 0; }
.ablauf-werkzeuge { margin-bottom: 1rem; }
.ablauf-status { font-size: .88rem; color: var(--tinte-2); }
.ablauf-status[data-s="ok"] { color: var(--gruen-hell); }
.ablauf-titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .8rem; }
.ablauf-titel .ar { display: inline; }
.eintrag-art { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--papier-2); color: var(--gold); font-size: .9rem; }
.eintrag-ue { display: inline-flex; gap: .3rem; width: 100%; margin-top: .35rem; }
.eintrag-ue select { font-size: .78rem; padding: .1rem .5rem; }
.eintrag-vorschau { width: 100%; color: var(--tinte-2); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.neu-box { margin-top: 1.5rem; padding: 1rem 1.1rem 1.2rem; border-radius: 16px; background: var(--karte); border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent); display: grid; gap: .8rem; }
.neu-reiter { justify-self: start; }
.neu-reiter button { padding: .4rem .9rem; font-size: .92rem; }
.neu-zeile { display: flex; gap: .5rem; }
.neu-zeile input, .neu-feld > input, .neu-text input, .neu-text textarea {
  flex: 1; width: 100%; min-width: 0; border: 1px solid var(--linie); background: var(--papier); color: var(--tinte); border-radius: 10px; padding: .55rem .8rem; font: 400 1.05rem var(--f-text); }
.neu-text { display: grid; gap: .5rem; }
.neu-text textarea[dir="rtl"] { font-family: var(--f-ar); font-size: 1.15rem; }
.neu-text .knopf { justify-self: start; }
.neu-vorschau { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.neu-lied-liste { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .25rem; }
.neu-lied-liste button { width: 100%; display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: baseline; text-align: start; border: 1px solid var(--linie); background: var(--papier);
  border-radius: 10px; padding: .45rem .7rem; cursor: pointer; }
.neu-lied-liste button:hover, .neu-lied-liste button:focus-visible { border-color: var(--gold-hell); }
.neu-lied-liste b { color: var(--gold); font: 600 .85rem var(--f-titel); }
.neu-lied-liste .ar { font: 600 1.05rem var(--f-ar-titel); color: var(--gruen); }

/* ---------- Einstellungen ---------- */
.einst-karte { padding: 1rem 1.2rem; border-radius: 14px; background: var(--karte); border: 1px solid var(--linie); box-shadow: var(--schatten); margin-bottom: 1rem; }
.einst-karte h2 { margin-top: 0 !important; }
.einst-karte h3 { margin: .2rem 0 .4rem; font: 600 .95rem var(--f-titel); color: var(--tinte-2); }
.einst-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .5rem 2rem; }
.wahl { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; cursor: pointer; }
.wahl input { accent-color: var(--gruen); }
.wahl input[type="range"] { flex: 1; max-width: 16rem; }
.lizenzen { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .5rem; }
.lizenzen small { color: var(--tinte-2); }
.hilfe-liste { padding-inline-start: 1.2rem; display: grid; gap: .45rem; }

/* ---------- Beamer: Bibelverse und Textfolien ---------- */
.folie-vers { display: grid; justify-items: center; gap: calc(var(--fs) * .12); }
.folie-vers .fv-ar { font: 700 var(--fs)/1.62 'Noto Naskh Arabic', 'Noto Sans Arabic', serif; direction: rtl; max-width: 100%; }
.folie-vers .fv-de { font: 600 calc(var(--fs) * .86)/1.32 'Noto Sans', 'Newsreader', sans-serif; color: #f2d98d; max-width: 100%; }
.folie-vers:not(:has(.fv-ar)) .fv-de { color: #fff; font-size: var(--fs); }
.folie-vers .folie-linie { margin: calc(var(--fs) * .18) auto; }
.fv-stelle { margin-top: calc(var(--fs) * .35); display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .2em .6em;
  font-family: 'Noto Sans', 'Noto Sans Arabic', sans-serif; font-weight: 600; color: #a9d98b; letter-spacing: .02em; direction: ltr; }
.fv-stelle-ar { font-family: 'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif; direction: rtl; }
.fv-punkt { opacity: .6; }
.fv-quelle { flex-basis: 100%; font-size: .62em; font-weight: 400; color: #8fb5a3; letter-spacing: .04em; }
.folie-text { display: grid; justify-items: center; gap: calc(var(--fs) * .25); }
.folie-text .ft-titel { font: 700 calc(var(--fs) * 1.25)/1.25 'Noto Sans', 'Noto Sans Arabic', sans-serif; color: #e6c574; }
.folie-text .ft-text-ar { font: 600 var(--fs)/1.6 'Noto Sans Arabic', 'Noto Naskh Arabic', sans-serif; direction: rtl; white-space: pre-line; }
.folie-text .ft-text-de { font: 500 calc(var(--fs) * .9)/1.35 'Noto Sans', sans-serif; color: #f2d98d; white-space: pre-line; }
.beamer-gehezu { position: absolute; z-index: 8; left: 50%; top: 4vh; translate: -50% 0; width: min(40rem, 80vw); }
.beamer-gehezu input { width: 100%; font: 600 28px 'Noto Sans', 'Noto Sans Arabic', sans-serif; padding: .5em .8em; border-radius: 14px; border: 2px solid #e6c574;
  background: rgba(8, 28, 21, .92); color: #fff; outline: none; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.mod-kopf { flex-wrap: wrap; row-gap: .5rem; }
.mod-haupt > section { overflow: hidden; }
.mod-haupt > section > .mod-rahmen { margin-inline: auto; }
.mod-spontan { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.mod-spontan label { font: 600 .78rem 'Noto Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #e6c574; }
.mod-spontan label kbd { font: 600 .72rem 'Noto Sans', sans-serif; padding: 0 .35rem; border: 1px solid currentColor; border-radius: 4px; opacity: .7; letter-spacing: 0; }
.mod-spontan input { flex: 1; min-width: 14rem; font: 600 1.1rem 'Noto Sans', 'Noto Sans Arabic', sans-serif; padding: .45rem .8rem; border-radius: 10px;
  border: 1px solid #2f5242; background: #142e23; color: #fff; }
.mod-spontan input:focus { outline: 2px solid #e6c574; }
#mod-spontan-vorschau { color: #a9d98b; font: 500 .95rem 'Noto Sans', 'Noto Sans Arabic', sans-serif; }
#mod-spontan-vorschau:empty { display: none; }
.mod-folie .folie-vers .folie-linie { width: calc(var(--sh) * .18); }

/* Geteilter Ablauf (Link): nur ansehen, nicht bearbeiten */
.ablauf-liste.geteilt .ablauf-aktion, .ablauf-liste.geteilt .eintrag-ue { display: none; }

/* Ablauf als Datei */
.teilen-zwischen { margin: 1.3rem 0 .2rem; font: 600 .8rem var(--f-titel); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
[dir="rtl"] .teilen-zwischen { font-family: var(--f-ar-titel); letter-spacing: 0; font-size: 1rem; }
body.datei-drueber::after { content: ""; position: fixed; inset: .6rem; z-index: 90; border: 3px dashed var(--gold-hell); border-radius: 20px;
  background: color-mix(in srgb, var(--papier) 70%, transparent); pointer-events: none; }

/* Vers teilen: WhatsApp und Vers als Bild */
.knopf-wa { border-color: color-mix(in srgb, #25d366 55%, var(--linie)); }
.knopf-wa::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #25d366; }
.treffer-aktionen .wa-rund { color: #1da851; }
dialog.dialog-bild { width: min(36rem, calc(100vw - 1.5rem)); }
.bild-optionen { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.bild-vorschau { display: grid; place-items: center; min-height: 12rem; margin-bottom: .8rem; }
.bild-vorschau img { display: block; max-width: 100%; max-height: 56vh; border-radius: 12px; box-shadow: 0 16px 40px -20px rgba(0,0,0,.6); }
.bild-vorschau img.status { max-height: 62vh; }
.knopf-gross { padding: .65rem 1.3rem; font-size: 1.05rem; }
.knopf-gross small { font-size: .78rem; opacity: .8; font-weight: 400; }

/* Vorlesen */
.knopf-vorlesen { border-color: var(--gold-hell); }
.vers.vorlesen-aktiv { background: color-mix(in srgb, var(--blatt) 22%, var(--karte)); box-shadow: inset 3px 0 0 var(--blatt); }
.vorlese-leiste { position: fixed; z-index: 31; left: 50%; translate: -50% 0; bottom: calc(.8rem + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 1rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem .6rem; padding: .5rem .8rem; border-radius: 20px;
  background: var(--tinte); color: var(--papier); box-shadow: 0 20px 50px -18px rgba(0,0,0,.6); animation: auftauchen .2s ease; }
.vorlese-leiste button { font: 600 .9rem var(--f-titel); color: inherit; }
.vl-titel { font: 600 .92rem var(--f-titel); white-space: nowrap; }
[dir="rtl"] .vl-titel { font-family: var(--f-ar-titel); }
.vl-knoepfe { display: inline-flex; gap: .3rem; align-items: center; }
.vl-knoepfe button { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--papier) 30%, transparent); background: none; cursor: pointer; font-size: 1.05rem; }
.vl-knoepfe .vl-haupt { width: 3rem; height: 3rem; background: var(--gold-hell); color: #10281d; border: 0; font-size: 1.25rem; }
.vl-modus { border-color: color-mix(in srgb, var(--papier) 30%, transparent); }
.vl-modus button { background: none; color: var(--papier); }
.vl-modus button[aria-pressed="true"] { background: var(--papier); color: var(--tinte); }
.vl-klein { border: 1px solid color-mix(in srgb, var(--papier) 30%, transparent); background: none; border-radius: 99px; padding: .3rem .7rem; cursor: pointer; }
.vl-klein[aria-pressed="true"] { background: var(--gold-hell); color: #10281d; border-color: var(--gold-hell); }
body.vorlesen-an .auswahl-leiste { display: none; }   /* waehrend des Vorlesens: Vers antippen = ab dort lesen */
body.vorlesen-an .ue-quelle { margin-bottom: 11rem; }
.vl-wahl { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.vl-wahl select { max-width: 100%; border: 1px solid var(--linie); background: var(--karte); color: var(--tinte); border-radius: 10px; padding: .35rem .6rem; font: 400 .9rem var(--f-text); }
/* Lange Meldungen als Kasten statt Pille */
.toast { max-width: min(34rem, calc(100vw - 2rem)); width: max-content; text-align: center; line-height: 1.4; }
.toast:not(:empty) { border-radius: 16px; }
body.vorlesen-an .toast { bottom: calc(9rem + env(safe-area-inset-bottom)); }
