/* Beigaben in den Texten der Rezensionen und auf /sola-scriptura/ (scripts/beigaben.mjs): Bild am Anfang eines Teils
   oder einer Aussage, die Listen des Alten Testaments, Verse in drei Übersetzungen; dazu die Gegenüberstellung der
   Rezensionen, deren Antwort einen Augenblick nach dem Satz des Autors erscheint. Farben und Schriften aus site.css. */

/* ------------------------------------------------------------ Bild */
.beigabe-bild { max-width: var(--measure); margin: .4rem 0 1.6rem; }
.beigabe-bild--hoch { max-width: 24rem; }
.beigabe-bild .gross-link { overflow: hidden; border-radius: 12px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); }
.beigabe-bild picture, .beigabe-bild img { display: block; width: 100%; height: auto; }
.beigabe-bild figcaption { margin-top: .6rem; font-family: var(--font-ui); font-size: .84rem; line-height: 1.5; color: var(--ink-2); }
.beigabe-werk { color: var(--ink); font-weight: 600; }
.beigabe-bild .nachweis { display: block; margin-top: .2rem; color: var(--ink-3); }
/* Auftakt eines Teils: unter der Einleitung, vor der ersten Aussage */
.part > .beigabe-bild { margin-top: 1.6rem; }
@media (min-width: 820px) { .part > .beigabe-bild, .claim > .beigabe-bild { margin-left: 0; } .part > .beigabe-bild { margin-left: var(--margin-col); } }

/* ------------------------------------------------------------ Auswahl (src/schrift.js), wie in artikel.css */
.at-kanon .wahl, .uebers .wahl { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.at-kanon .wahl { justify-content: center; }
.at-kanon .wahl button, .uebers .wahl button {
  min-height: 2.75rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: var(--sheet); color: var(--ink-2); cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-family: var(--font-ui); font-size: .9rem; font-weight: 600; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.at-kanon .wahl button:hover, .uebers .wahl button:hover { border-color: var(--gold); color: var(--ink); }
.at-kanon .wahl button[aria-pressed="true"], .uebers .wahl button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--gold-hell); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.at-kanon, .uebers) .wahl button[aria-pressed="true"] { background: var(--night-3); border-color: var(--gold-line); } }
:root[data-theme="dark"] :is(.at-kanon, .uebers) .wahl button[aria-pressed="true"] { background: var(--night-3); border-color: var(--gold-line); }
@media (max-width: 520px) { :is(.at-kanon, .uebers) .wahl { gap: .3rem; } :is(.at-kanon, .uebers) .wahl button { padding: .4rem .72rem; font-size: .84rem; } }
@media (forced-colors: active) { :is(.at-kanon, .uebers) .wahl button[aria-pressed="true"] { outline: 2px solid CanvasText; } }

/* ------------------------------------------------------------ Die Listen des Alten Testaments */
.at-kanon { max-width: 46rem; margin: 1.8rem 0 2rem; }
.at-blatt {
  padding: 1.4rem clamp(.9rem, 3.5vw, 1.9rem) 1.2rem; border-radius: 6px; background: #f6efdf; color: #2a2318;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 18px 44px rgba(40, 28, 10, .16);
  background-image: linear-gradient(90deg, rgba(120, 90, 40, .06), transparent 12%, transparent 88%, rgba(120, 90, 40, .06));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .at-blatt { background-color: #2a2620; color: #efe6d2; } }
:root[data-theme="dark"] .at-blatt { background-color: #2a2620; color: #efe6d2; }
.at-kopf { margin: 0 0 .6rem; text-align: center; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em; }
.at-gruppe { margin: 1rem 0 .35rem; font-family: var(--font-ui); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.at-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); gap: .28rem .4rem; }
.at-buch {
  display: flex; align-items: baseline; gap: .35rem; padding: .22rem .45rem; border-radius: 6px; min-width: 0;
  font-family: var(--font-display); font-size: .98rem; line-height: 1.25; box-shadow: inset 0 0 0 1px rgba(90, 70, 30, .16);
  transition: background-color .3s ease, opacity .3s ease, box-shadow .3s ease;
}
.at-kurz { flex: none; min-width: 2.3em; font-family: var(--font-ui); font-size: .7rem; font-weight: 700; opacity: .62; }
.at-name { min-width: 0; overflow-wrap: anywhere; }
/* Stand eines Buches in der gewählten Liste: l zum Lesen, n nicht genannt, u nicht eigens genannt, a Apokryphen */
[data-gewaehlt="athanasius"] .at-buch[data-athanasius="l"],
[data-gewaehlt="luther"] .at-buch[data-luther="a"] { background: rgba(176, 112, 20, .18); box-shadow: inset 0 0 0 1.5px rgba(176, 112, 20, .6); }
[data-gewaehlt="athanasius"] .at-buch[data-athanasius="n"] { opacity: .62; box-shadow: inset 0 0 0 1.5px rgba(90, 70, 30, .45); text-decoration: line-through; text-decoration-thickness: 1px; }
[data-gewaehlt="karthago"] .at-buch[data-karthago="u"] { background: repeating-linear-gradient(135deg, rgba(176, 112, 20, .16) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1.5px rgba(176, 112, 20, .4); }
.at-legende { list-style: none; min-height: 1.4rem; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; font-family: var(--font-ui); font-size: .78rem; }
.at-legende li { display: none; }
.at-legende li::before { content: ""; display: inline-block; width: 1.1rem; height: .75rem; margin-right: .4rem; vertical-align: -.05rem; border-radius: 3px; }
.at-legende-l::before, .at-legende-a::before { background: rgba(176, 112, 20, .18); box-shadow: inset 0 0 0 1.5px rgba(176, 112, 20, .6); }
.at-legende-n::before { opacity: .5; box-shadow: inset 0 0 0 1.5px rgba(90, 70, 30, .6); }
.at-legende-u::before { background: repeating-linear-gradient(135deg, rgba(176, 112, 20, .2) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1.5px rgba(176, 112, 20, .4); }
.at-kanon.ist-bedienbar .at-legende li[aria-current] { display: list-item; }
.at-texte { margin-top: 1rem; }
.at-text { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; hyphens: auto; -webkit-hyphens: auto; }
.at-text strong { font-family: var(--font-ui); color: var(--ink); }
.at-zahlen { font-family: var(--font-ui); font-size: .9rem; font-weight: 600; color: var(--gold-text); }
/* Mit Skript steht nur der Text der gewählten Liste da; ohne Skript alle vier */
.at-kanon.ist-bedienbar .at-text:not([aria-current]) { display: none; }
.at-kanon.ist-bedienbar .at-texte { min-height: 8.5em; }
.at-kanon figcaption { margin-top: .4rem; font-family: var(--font-ui); font-size: .8rem; line-height: 1.5; color: var(--ink-3); }

/* auf /sola-scriptura/ in der Mitte der Seite, wie das Inhaltsverzeichnis des Neuen Testaments */
.schrift-seite .at-kanon { max-width: var(--mittel); margin: var(--luft) auto; }
.schrift-seite .at-text { text-align: center; }

/* ------------------------------------------------------------ Verse in drei Übersetzungen */
.uebers { max-width: var(--measure); margin: 1.6rem 0 1.8rem; padding: 1rem 1.1rem 1.05rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--sheet); }
.uebers-vers + .uebers-vers { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.uebers-stelle { margin: 0 0 .45rem; font-family: var(--font-ui); font-size: .82rem; font-weight: 700; }
.uebers-text {
  margin: 0 0 .4rem; padding: .45rem .7rem .5rem; border-left: 3px solid var(--rule-strong); border-radius: 3px 10px 10px 3px;
  line-height: 1.5; hyphens: auto; -webkit-hyphens: auto; transition: background-color .25s ease, border-color .25s ease;
}
.uebers-name { display: block; margin-bottom: .1rem; font-family: var(--font-ui); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.uebers mark { padding: 0 .12em; border-radius: 3px; background: var(--gold-tint); color: inherit; box-shadow: inset 0 -2px 0 var(--gold); }
/* Alle drei bleiben lesbar (nichts wird abgeblendet, der Kontrast bleibt); die gewählte tritt hervor */
.uebers.ist-bedienbar .uebers-text[aria-current] { border-left-color: var(--rubric); background: var(--rubric-tint); }
.uebers.ist-bedienbar .uebers-text[aria-current] .uebers-name { color: var(--rubric); }
.uebers figcaption { margin-top: .8rem; font-family: var(--font-ui); font-size: .84rem; line-height: 1.5; color: var(--ink-2); }

/* ------------------------------------------------------------ Gegenüberstellung in zwei Schritten
   Der Satz des Autors steht da; die Antwort folgt einen Augenblick später, sobald die Gegenüberstellung in den Blick
   kommt (src/zeigen.js setzt .ist-sichtbar). Ohne Skript, beim Drucken und bei „Bewegung reduzieren“ steht beides da. */
.js .vs.zeigen { opacity: 1; transform: none; transition: none; }
.js .vs.zeigen .vs-row--lehre { opacity: 0; transform: translateY(14px); transition: opacity .7s ease .45s, transform .7s cubic-bezier(.2, .7, .2, 1) .45s; }
.js .vs.zeigen.ist-sichtbar .vs-row--lehre, .js .vs.zeigen:focus-within .vs-row--lehre { opacity: 1; transform: none; }
.js.zurueck .vs.zeigen .vs-row--lehre { transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .js .vs.zeigen .vs-row--lehre { opacity: 1; transform: none; transition: none; } }
@media print { .js .vs.zeigen .vs-row--lehre { opacity: 1 !important; transform: none !important; } }
