/* =====================================================================
   Biblia – app.css (handgeschrieben, kein Build, keine CDN)
   Ruhige, leseorientierte Gestaltung. Hell/Dunkel automatisch.
   ===================================================================== */

:root {
  --bg:        #fbf9f4;   /* warmes Papier */
  --fg:        #23211c;
  --muted:     #6f6a5f;
  --line:      #e3ddd0;
  --card:      #ffffff;
  --accent:    #8a5a2b;   /* gedämpftes Kupfer */
  --vn:        #b8a98c;   /* Versnummer */
  --err:       #c0392b;   /* Fehler/Entfernen */
  --read-scale: 1;        /* Schriftgrösse Lesetext (A−/A+) */
  --maxread:   38rem;     /* Lesebreite (Maß) */
  --serif:     "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:      system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:#15140f; --fg:#e8e3d6; --muted:#9b9482; --line:#322f27;
    --card:#1d1b15; --accent:#ca8b4f; --vn:#6c6450;
  }
}
/* Manuell erzwungener Lesemodus (schlägt die Media-Query per höherer Spezifität). */
:root[data-theme="light"] {
  --bg:#fbf9f4; --fg:#23211c; --muted:#6f6a5f; --line:#e3ddd0;
  --card:#ffffff; --accent:#8a5a2b; --vn:#b8a98c;
}
:root[data-theme="dark"] {
  --bg:#15140f; --fg:#e8e3d6; --muted:#9b9482; --line:#322f27;
  --card:#1d1b15; --accent:#ca8b4f; --vn:#6c6450;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); line-height: 1.6;
}

/* --- Kopfzeile ------------------------------------------------------ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  color: var(--fg); text-decoration: none; letter-spacing: .01em; }
.langs { display: flex; gap: .25rem; align-items: center; }
.langs a { color: var(--muted); text-decoration: none; font-size: .8rem;
  padding: .2rem .5rem; border-radius: 6px; }
.langs a.is-active { color: var(--fg); background: var(--line); }
.langs a:hover { color: var(--fg); }

/* --- Seite ---------------------------------------------------------- */
.page { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 4rem; }

/* --- Steuerleiste --------------------------------------------------- */
.controls {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: end;
  margin-bottom: 1.5rem;
}
.ctl { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 auto; min-width: 0; }
.ctl span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); }
.ctl-book     { flex-basis: 12rem; }
.ctl-chapter  { flex: 0 0 5.5rem; }
.ctl-version, .ctl-compare { flex-basis: 8rem; }
.ctl select {
  font-family: var(--sans); font-size: .95rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: .5rem .6rem; width: 100%; cursor: pointer;
}
.ctl select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* --- Kapitelüberschrift -------------------------------------------- */
.chapter-title {
  font-family: var(--serif); font-weight: 600; font-size: 1.8rem;
  margin: 0 0 1.25rem; color: var(--fg);
}

/* --- Einzeltext ----------------------------------------------------- */
.single { max-width: var(--maxread); }
.verse {
  font-family: var(--serif); font-size: calc(1.18rem * var(--read-scale)); line-height: 1.75;
  margin: 0 0 .35rem; text-align: justify; hyphens: auto;
}
.vn {
  font-family: var(--sans); font-size: .62em; color: var(--vn);
  margin-right: .35em; vertical-align: .35em; font-weight: 600;
}
.empty { color: var(--muted); }

/* --- Parallelansicht ----------------------------------------------- */
.parallel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.col { min-width: 0; }
.col-head {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  color: var(--fg); padding-bottom: .5rem; margin-bottom: .75rem;
  border-bottom: 1px solid var(--line); position: sticky; top: 3.2rem;
  background: var(--bg);
}
.col-head .abbr { color: var(--muted); font-weight: 400; }
.parallel .verse { font-size: calc(1.05rem * var(--read-scale)); line-height: 1.7; text-align: left; }

/* --- Navigation ----------------------------------------------------- */
.chapter-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.btn {
  font-family: var(--sans); font-size: .9rem; text-decoration: none;
  color: var(--accent); padding: .55rem .9rem; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card); white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }
.btn.disabled { color: var(--muted); opacity: .5; pointer-events: none; }

/* --- Fehler --------------------------------------------------------- */
.errorbox { text-align: center; padding: 4rem 1rem; }
.errorbox h1 { font-family: var(--serif); font-size: 3rem; margin: 0; }
.errorbox a { color: var(--accent); }

/* --- Mobil: Parallelansicht untereinander --------------------------- */
@media (max-width: 640px) {
  .parallel { grid-template-columns: 1fr; gap: 1.75rem; }
  .col-head { position: static; }
  .chapter-title { font-size: 1.5rem; }
  .ctl-book, .ctl-version, .ctl-compare { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* --- Suche im Kopf -------------------------------------------------- */
.topsearch { flex: 1 1 12rem; max-width: 22rem; margin: 0 .5rem; }
.topsearch input {
  width: 100%; font-family: var(--sans); font-size: .9rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem;
}
.topsearch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* --- Suchseite ------------------------------------------------------ */
.search { max-width: var(--maxread); }
.search-form { display: flex; gap: .5rem; margin-bottom: .75rem; }
.search-form input[type="search"] {
  flex: 1 1 auto; font-family: var(--sans); font-size: 1rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: .6rem .8rem;
}
.search-form button {
  font-family: var(--sans); font-size: .95rem; color: #fff; background: var(--accent);
  border: 0; border-radius: 8px; padding: .6rem 1.1rem; cursor: pointer;
}
.search-scope { color: var(--muted); font-size: .85rem; margin: 0 0 1.5rem; }
.search-scope select {
  font-family: var(--sans); color: var(--fg); background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; padding: .25rem .4rem;
}
.search-hint { color: var(--muted); }
.search-count { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.search-count .muted { color: var(--vn); }

.hits { list-style: none; padding: 0; margin: 0; }
.hit { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.hit-ref {
  display: inline-block; font-family: var(--sans); font-size: .8rem; font-weight: 600;
  color: var(--accent); text-decoration: none; margin-bottom: .2rem;
}
.hit-ref:hover { text-decoration: underline; }
.hit-text { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; }

mark { background: rgba(202,139,79,.28); color: inherit; border-radius: 3px; padding: 0 .1em; }

/* Treffer-Vers nach Sprung kurz hervorheben */
.verse.target { background: rgba(202,139,79,.18); border-radius: 6px;
  box-shadow: 0 0 0 .4rem rgba(202,139,79,.18); transition: background .3s; }

@media (max-width: 640px) {
  .topsearch { order: 3; flex-basis: 100%; max-width: none; margin: .4rem 0 0; }
  .topbar { flex-wrap: wrap; }
}

/* --- Fußzeilen-Menü ------------------------------------------------- */
.sitefooter { border-top: 1px solid var(--line); margin-top: 3rem; }
.footmenu { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.footmenu a { color: var(--muted); text-decoration: none; font-size: .85rem; }
.footmenu a:hover { color: var(--accent); }

/* --- Statische Seite ------------------------------------------------ */
.staticpage { max-width: var(--maxread); }
.staticpage h1 { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 1rem; }
.staticbody { font-size: 1.05rem; line-height: 1.7; }
.staticbody h2, .staticbody h3 { font-family: var(--serif); }
.staticbody a { color: var(--accent); }
.staticbody ul, .staticbody ol { padding-left: 1.3rem; }
.staticbody blockquote { border-left: 3px solid var(--line); margin: 1rem 0;
  padding: .3rem 0 .3rem 1rem; color: var(--muted); }

/* --- Lesezeichen ---------------------------------------------------- */
.bm-link { display: inline-flex; align-items: center; color: var(--vn); text-decoration: none; font-size: 1rem; padding: .2rem .4rem; }
.bm-link:hover { color: var(--accent); }
.navico { width: 1.2rem; height: 1.2rem; display: block; }
.chapter-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.chapter-head .chapter-title { margin: 0; }
.bm-toggle {
  font-size: 1.2rem; line-height: 1; background: none; border: 1px solid var(--line);
  color: var(--vn); border-radius: 8px; padding: .3rem .55rem; cursor: pointer;
}
.bm-toggle:hover { border-color: var(--accent); color: var(--accent); }
.bm-toggle.on { color: var(--accent); border-color: var(--accent); }
.bm-list { list-style: none; padding: 0; margin: 0; max-width: var(--maxread); }
.bm-item { display: flex; align-items: center; gap: .75rem; padding: .65rem 0;
  border-bottom: 1px solid var(--line); }
.bm-go { flex: 1 1 auto; font-family: var(--serif); font-size: 1.1rem; color: var(--fg); text-decoration: none; }
.bm-go:hover { color: var(--accent); }
.bm-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: .2rem .4rem; }
.bm-del:hover { color: var(--err); }
.bm-empty { color: var(--muted); padding: 1rem 0; }

/* --- Werkzeugleiste im Leser --------------------------------------- */
.readtools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  margin: -.4rem 0 1.4rem; }
.rt-group { display: flex; flex-wrap: wrap; gap: .35rem; }
.rt-btn { font-family: var(--sans); font-size: .82rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: .35rem .6rem; cursor: pointer; }
.rt-btn:hover { border-color: var(--accent); color: var(--accent); }
.rt-goto { display: flex; gap: .35rem; margin-left: auto; }
.rt-goto input { font-family: var(--sans); font-size: .85rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: .35rem .55rem; width: 9rem; }
.rt-goto input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 560px) { .rt-goto { margin-left: 0; width: 100%; } .rt-goto input { flex: 1 1 auto; width: auto; } }

/* Klickbare Versnummer */
.vn[role="button"] { cursor: pointer; }
.vn[role="button"]:hover { color: var(--accent); }
.vn[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* --- Toast --------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(1rem);
  background: var(--fg); color: var(--bg); font-family: var(--sans); font-size: .9rem;
  padding: .55rem .9rem; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; z-index: 50; max-width: 90vw; }
.toast.show { opacity: .96; transform: translateX(-50%) translateY(0); }

/* --- Druckansicht: nur Kapiteltitel + Verse ------------------------ */
@media print {
  .topbar, .readtools, .controls, .chapter-nav, .sitefooter, .bm-toggle, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .page { max-width: none; margin: 0; padding: 0; }
  .chapter-head { margin: 0 0 .6rem; }
  .chapter-title { color: #000; font-size: 18pt; }
  .verse { color: #000; font-size: 12pt; line-height: 1.5; }
  .verse .vn { color: #555; }
  .parallel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .col-head { color: #000; border-color: #999; position: static; }
  a { color: #000; text-decoration: none; }
}

/* --- Vers des Tages ------------------------------------------------ */
.votd { max-width: var(--maxread); margin: 0 0 1.6rem; padding: .9rem 1.1rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; background: var(--card); }
.votd-label { display: block; font-family: var(--sans); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .35rem; }
.votd-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; margin: 0 0 .4rem; }
.votd-ref { font-family: var(--sans); font-size: .85rem; color: var(--accent); text-decoration: none; }
.votd-ref:hover { text-decoration: underline; }

/* --- Vers-Markierungen (Farben, hell/dunkel-tauglich) -------------- */
.verse.hl-1, .verse.hl-2, .verse.hl-3, .verse.hl-4 {
  border-radius: 6px; padding: .1rem .35rem; margin-left: -.35rem; }
.verse.hl-1 { background: rgba(255, 209, 71, .34); }
.verse.hl-2 { background: rgba(129, 199, 132, .34); }
.verse.hl-3 { background: rgba(100, 181, 246, .32); }
.verse.hl-4 { background: rgba(240, 120, 160, .30); }

/* --- Vers-Popover -------------------------------------------------- */
.vpop { position: absolute; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem;
  max-width: 17rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: .35rem .4rem; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.vpop-xref { flex-basis: 100%; width: 100%; max-height: 12rem; overflow: auto;
  display: flex; flex-direction: column; gap: .1rem; margin-top: .3rem; padding-top: .3rem;
  border-top: 1px solid var(--line); }
.vpop-xref-link { font-family: var(--sans); font-size: .85rem; color: var(--accent);
  text-decoration: none; padding: .15rem .1rem; border-radius: 4px; }
.vpop-xref-link:hover { background: var(--line); }
.vpop-act { font-family: var(--sans); font-size: .82rem; color: var(--fg);
  background: transparent; border: 1px solid var(--line); border-radius: 7px;
  padding: .3rem .5rem; cursor: pointer; line-height: 1; }
.vpop-act:hover { border-color: var(--accent); color: var(--accent); }
.vpop-colors { display: flex; gap: .25rem; align-items: center; padding-left: .25rem;
  margin-left: .15rem; border-left: 1px solid var(--line); }
.vpop-sw { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.vpop-sw.hl-1 { background: rgb(255, 209, 71); }
.vpop-sw.hl-2 { background: rgb(129, 199, 132); }
.vpop-sw.hl-3 { background: rgb(100, 181, 246); }
.vpop-sw.hl-4 { background: rgb(240, 120, 160); }
.vpop-clear { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; font-size: .7rem; line-height: 1; padding: 0; }
.vpop-clear:hover { color: var(--err); border-color: var(--err); }

@media print { .votd, .vpop { display: none !important; } }

/* --- Vorlesen: aktiver Vers ---------------------------------------- */
.verse.reading { background: rgba(138, 90, 43, .12); border-radius: 6px;
  padding: .1rem .35rem; margin-left: -.35rem; box-shadow: inset 3px 0 0 var(--accent); }
:root[data-theme="dark"] .verse.reading { background: rgba(202, 139, 79, .16); }

/* --- Lesezeichen Export/Import ------------------------------------- */
.bm-io { display: flex; gap: .5rem; margin-top: 1.4rem; }
.bm-io-hint { max-width: var(--maxread); margin-top: .5rem; font-size: .85rem; }
@media print { .bm-io, .bm-io-hint { display: none !important; } }

/* --- Notizen pro Vers ---------------------------------------------- */
.vnote { max-width: var(--maxread); margin: .15rem 0 .8rem; padding: .5rem .7rem;
  border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 8px 8px 0;
  font-family: var(--sans); font-size: .92rem; color: var(--fg); white-space: pre-wrap; }
.verse.has-note .vn::after { content: '•'; color: var(--accent); font-size: .7em; vertical-align: super; margin-left: .1em; }
.vpop-note { flex-basis: 100%; width: 100%; margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.vpop-note textarea { width: 100%; box-sizing: border-box; font-family: var(--sans); font-size: .9rem;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .55rem; resize: vertical; }
.vpop-note-row { display: flex; gap: .3rem; margin-top: .35rem; }

/* --- Fokus-/Lesemodus ---------------------------------------------- */
body.focus-mode .topbar,
body.focus-mode .readtools,
body.focus-mode .controls,
body.focus-mode .chapter-nav,
body.focus-mode .sitefooter,
body.focus-mode .votd { display: none !important; }
body.focus-mode .reader { margin-top: 1.5rem; }
.focus-exit { position: fixed; top: .8rem; right: .8rem; z-index: 70; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--fg);
  font-size: 1rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.focus-exit:hover { border-color: var(--accent); color: var(--accent); }

@media print { .vnote { border-left: 2px solid #999; } .focus-exit { display: none !important; } }

/* --- Leseplan ------------------------------------------------------ */
.plan-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; margin: 1rem 0 1.4rem; }
.plan-progress { flex: 1 1 16rem; }
.plan-bar { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: .35rem; }
.plan-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.plan-actions { display: flex; gap: .5rem; }
.plan-today { max-width: var(--maxread); margin: 0 0 1.4rem; padding: .9rem 1.1rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--card); }
.plan-today-label { display: block; font-family: var(--sans); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: .4rem; }
.plan-today-refs { font-family: var(--serif); font-size: 1.08rem; margin-bottom: .6rem; }
.plan-today-refs a, .plan-refs a { color: var(--accent); text-decoration: none; }
.plan-today-refs a:hover, .plan-refs a:hover { text-decoration: underline; }
.plan-list { list-style: none; padding: 0; margin: 0; max-width: var(--maxread); }
.plan-day { display: flex; gap: .7rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.plan-day.is-today { background: rgba(138,90,43,.08); border-radius: 8px; padding-left: .5rem; margin-left: -.5rem; }
.plan-day.is-done .plan-refs { color: var(--muted); }
.plan-day.is-done .plan-refs a { color: var(--muted); }
.plan-check { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; cursor: pointer; }
.plan-daynum { font-family: var(--sans); font-size: .8rem; color: var(--muted); min-width: 2.2rem; }
.plan-refs { font-family: var(--serif); }
@media print { .plan-head, .plan-actions, .plan-check { display: none !important; } }

/* --- Offline-Seite ------------------------------------------------- */
.off-list { list-style: none; padding: 0; margin: 1rem 0 0; max-width: var(--maxread); }
.off-item { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.off-name { flex: 1 1 12rem; }
.off-status { flex: 0 0 auto; font-size: .85rem; }
.off-buttons { display: flex; gap: .4rem; }
.off-sep { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.off-h2 { font-family: var(--serif); }
.off-reader-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 1rem; }
.off-reader-controls select { padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--fg); font-size: .95rem; }
.off-output { max-width: var(--maxread); }
.off-output:empty::after { content: ''; }

/* --- Konto --------------------------------------------------------- */
.account { max-width: var(--maxread); }
.acc-flash { padding: .6rem .9rem; border-radius: 8px; margin: .6rem 0; }
.acc-ok  { background: rgba(60,140,60,.14); border: 1px solid rgba(60,140,60,.4); }
.acc-err { background: rgba(170,50,50,.12); border: 1px solid rgba(170,50,50,.4); }
.acc-forms { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.acc-card { flex: 1 1 16rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.acc-card h2 { margin-top: 0; font-family: var(--serif); font-size: 1.15rem; }
.acc-card label { display: block; font-size: .9rem; margin: .5rem 0; }
.acc-card input { display: block; width: 100%; box-sizing: border-box; margin-top: .2rem;
  padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
.acc-actions { display: flex; gap: .6rem; align-items: center; margin: 1rem 0 .4rem; }
.acc-logout { margin-top: 1.2rem; }
.acc-hint, .acc-wait { font-size: .85rem; }
.bm-link.is-on { color: var(--accent); }

/* --- Konto: Wiederherstellungscode + Reset ------------------------- */
.acc-recovery { margin: .8rem 0 1.2rem; padding: .9rem 1.1rem; border: 1px solid var(--accent);
  border-radius: 10px; background: rgba(138,90,43,.08); }
.acc-code { display: inline-block; margin: .4rem 0; padding: .35rem .6rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.25rem; letter-spacing: .12em; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.acc-recovery-warn { margin: .3rem 0 0; font-size: .88rem; color: var(--muted); }
.acc-forgot { max-width: var(--maxread); margin-top: 1.4rem; }
.acc-forgot > summary { cursor: pointer; color: var(--accent); }
.acc-forgot .acc-card { margin-top: .8rem; }

/* --- Mobile: Überlauf vermeiden ------------------------------------ */
@media (max-width: 560px) {
  .rt-group { width: 100%; }
  .rt-btn { flex: 0 1 auto; }
  .off-reader-controls select { flex: 1 1 8rem; max-width: 100%; }
  .acc-forms { gap: .8rem; }
  .acc-code { font-size: 1.05rem; letter-spacing: .08em; }
}
/* lange, unumbrechbare Inhalte nicht über den Rand schieben */
.staticpage, .vnote, .acc-recovery, .plan-refs, .off-name { overflow-wrap: anywhere; }
.acc-code { max-width: 100%; overflow-wrap: anywhere; }
.col-head { overflow: hidden; text-overflow: ellipsis; }

/* kleine Knopfreihen ebenfalls umbrechen lassen (Handy) */
.acc-actions, .bm-io, .off-buttons, .plan-actions, .acc-forms { flex-wrap: wrap; }

/* --- Vers-Popover: ganzer Vers tippbar, Handy = Bottom-Sheet ------- */
.reader .verse { cursor: pointer; }
.vpop-backdrop { display: none; }
.vpop-close { display: none; }

@media (max-width: 560px) {
  .vpop {
    position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
    width: 100% !important; max-width: none !important;
    max-height: 85vh; overflow-y: auto; overflow-x: hidden;
    border-radius: 16px 16px 0 0; padding: .5rem .9rem 1.1rem; gap: .5rem;
    box-shadow: 0 -8px 28px rgba(0,0,0,.28);
  }
  .vpop-act { font-size: 1rem; padding: .65rem .9rem; border-radius: 9px; white-space: normal; overflow-wrap: anywhere; }
  .vpop-colors { margin-left: 0; padding-left: .5rem; }
  .vpop-sw, .vpop-clear { width: 2rem; height: 2rem; }
  .vpop-clear { font-size: 1rem; }
  .vpop-note textarea { font-size: 1rem; }
  .vpop-xref { max-height: 42vh; }
  .vpop-xref-link { font-size: 1rem; padding: .45rem .2rem; }
  .vpop-close { display: block; order: -1; flex-basis: 100%; text-align: right;
    background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted);
    padding: .1rem .2rem .2rem; cursor: pointer; }
  .vpop-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
}

/* --- Offline-Lesemodus: Kopf & Verwaltung ausblenden --------------- */
body.off-reading .topbar,
body.off-reading .sitefooter,
body.off-reading .off-title,
body.off-reading .off-intro,
body.off-reading .off-list,
body.off-reading .off-sep,
body.off-reading .off-h2,
body.off-reading .off-reader-hint { display: none !important; }
body.off-reading .offline { margin-top: .5rem; }
body.off-reading .off-reader-controls { position: sticky; top: 0; z-index: 5;
  background: var(--bg); padding: .5rem 0; margin: 0 0 1.2rem; }

/* --- Weiterlesen-Balken -------------------------------------------- */
.resume-bar { max-width: var(--maxread); margin: 0 0 1rem; }
.resume-link { display: inline-block; font-family: var(--sans); font-size: .9rem;
  color: var(--accent); text-decoration: none; padding: .4rem .7rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.resume-link::before { content: '\21BB\00A0'; }
.resume-link:hover { border-color: var(--accent); }

/* --- Vers teilen: tracking-freie Links (Desktop) ------------------- */
.vpop-share { flex-basis: 100%; width: 100%; display: flex; flex-wrap: wrap; gap: .35rem;
  margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.vpop-share-link { font-family: var(--sans); font-size: .85rem; color: var(--accent);
  text-decoration: none; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 7px; }
.vpop-share-link:hover { border-color: var(--accent); }
@media (max-width: 560px) { .vpop-share-link { font-size: 1rem; padding: .5rem .8rem; } }

/* --- Kontaktformular ----------------------------------------------- */
.contact { max-width: var(--maxread); }
.contact-form { margin-top: 1rem; }
.contact-form textarea { width: 100%; box-sizing: border-box; margin-top: .2rem;
  font-family: var(--sans); font-size: .95rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- Mehrfachauswahl von Versen ------------------------------------ */
.verse.is-selected { background: rgba(138, 90, 43, .16); border-radius: 5px;
  box-shadow: 0 0 0 2px rgba(138, 90, 43, .16); }
body.select-mode .reader .verse { cursor: pointer; }
.ms-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .7rem; box-shadow: 0 6px 22px rgba(0, 0, 0, .2); z-index: 60; max-width: 94vw; }
.ms-count { font-family: var(--sans); font-size: .85rem; padding: 0 .25rem; }

/* --- Parallelstellen: Inline-Box unter dem Vers -------------------- */
.xref-panel { max-width: var(--maxread); margin: .5rem 0 1rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); overflow: hidden; font-family: var(--sans);
  animation: xref-in .15s ease-out; }
@keyframes xref-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.xref-head { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem;
  background: rgba(138, 90, 43, .10); border-bottom: 1px solid var(--line); }
.xref-ic { color: var(--accent); flex: 0 0 auto; }
.xref-title { font-size: .9rem; font-weight: 600; color: var(--fg); flex: 1 1 auto; }
.xref-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 0 .2rem; }
.xref-close:hover { color: var(--fg); }
.xref-body { display: flex; flex-direction: column; }
.xref-loading, .xref-empty { padding: .7rem .8rem; color: var(--muted); font-size: .9rem; }
.xref-item { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem;
  color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); transition: background .12s; }
.xref-item:last-child { border-bottom: 0; }
.xref-item:hover { background: rgba(138, 90, 43, .07); }
.xref-arrow { color: var(--accent); flex: 0 0 auto; }
.xref-item span { font-size: .92rem; }

/* --- Vers-Bild-Generator ------------------------------------------- */
.vi { max-width: 64rem; }
.vi-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.vi-controls { display: flex; flex-direction: column; gap: .7rem; }
.vi-controls > label { display: flex; flex-direction: column; gap: .25rem; font-family: var(--sans); font-size: .9rem; }
.vi-row { display: flex; gap: .5rem; }
.vi-row label { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 auto; min-width: 0; font-family: var(--sans); font-size: .9rem; }
.vi-vnum { flex: 0 0 5rem !important; }
.vi-controls textarea { width: 100%; box-sizing: border-box; font-family: var(--sans); resize: vertical;
  color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .55rem; }
.vi-colorrow { display: flex; align-items: end; gap: .6rem; }
.vi-colorrow label { flex: 0 0 auto; flex-direction: column; display: flex; gap: .25rem; font-family: var(--sans); font-size: .9rem; }
.vi-colorrow input[type=color] { width: 3rem; height: 2.2rem; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.vi-swatches { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.vi-sw { width: 1.8rem; height: 1.8rem; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; padding: 0; }
.vi-preview { display: flex; flex-direction: column; gap: .8rem; align-items: center; }
#vi-canvas { max-width: 100%; max-height: 64vh; height: auto; width: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.vi-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.vi-gallery-title { margin-top: 1.8rem; }
.vi-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.vi-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.vi-card img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg); }
.vi-card-row { display: flex; gap: .3rem; padding: .4rem; flex-wrap: wrap; }
.vi-card-row .rt-btn { font-size: .8rem; padding: .3rem .5rem; }
@media (max-width: 760px) { .vi-grid { grid-template-columns: 1fr; } }

/* --- Vers-Bild: Server-Render-Vorschau ----------------------------- */
#vi-preview { max-width: 100%; max-height: 64vh; height: auto; width: auto; display: block;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); min-height: 120px; }
.vi-check { flex-direction: row !important; align-items: center; gap: .4rem; }
.vi-colorrow label.vi-check { flex: 0 0 auto; }

/* --- Vereinheitlichter Vers-Kasten (Inline-Box im Verweis-Stil) ---- */
.vpanel { margin: .5rem 0 1rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); box-shadow: 0 6px 24px rgba(0,0,0,.10); overflow: hidden; animation: vpanel-in .14s ease-out; }
@keyframes vpanel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.vpanel .xref-head { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.vpanel .xref-title { flex: 1 1 auto; font-family: var(--sans); font-size: .9rem; font-weight: 600; }
.vpanel .xref-close { background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted); padding: .1rem .3rem; }
.vpanel-colors { display: flex; gap: .45rem; align-items: center; padding: .6rem .7rem .2rem; }
.vpanel-colors .vpop-sw { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; }
.vpanel-colors .vpop-clear { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; color: var(--muted); }
.vpanel-acts { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem .7rem .7rem; }
.vpanel-act { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .65rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: .85rem; cursor: pointer; }
.vpanel-act:hover { border-color: var(--accent); }
.vpanel-act.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.vpanel-act .vp-ic { flex: 0 0 auto; }
.vpanel-act-image { margin-left: auto; }
.vpanel-extra:not(:empty) { padding: 0 .7rem .7rem; }
.vpanel-note textarea { width: 100%; box-sizing: border-box; font-family: var(--sans); resize: vertical;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem; }
.vpanel-note-row { display: flex; gap: .4rem; margin-top: .4rem; }
.vpanel-share { display: flex; flex-wrap: wrap; gap: .4rem; }
.vpanel-xref { display: flex; flex-direction: column; gap: .15rem; }
.vpanel-xref.vpanel-loading, .vpanel-xref.xref-empty { color: var(--muted); font-family: var(--sans); font-size: .9rem; padding: .2rem 0; }

/* --- RTL-Leseansicht (arabische/hebräische Corpora) ---------------- */
.reader-rtl .chapter-title,
.reader-rtl .verse,
.reader-rtl .single,
.reader-rtl .vnote { text-align: right; }
.reader-rtl .verse {
  line-height: 2;
  font-family: "Noto Naskh Arabic", "Amiri", "Scheherazade New", "Frank Ruhl Libre", "Times New Roman", serif;
}
.reader-rtl .vn { margin-inline-end: .4em; }

/* --- Selbstgehostete arabische Schrift (Amiri, OFL) --------------- */
@font-face {
  font-family: 'Amiri';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/amiri-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Amiri';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/amiri-bold.woff2') format('woff2');
}
.reader-arabic .chapter-title,
.reader-arabic .verse,
.reader-arabic .single {
  font-family: 'Amiri', "Noto Naskh Arabic", "Scheherazade New", serif;
  line-height: 2.15;
}

/* --- Selbstgehostete hebräische Schrift (David Libre, OFL) -------- */
@font-face {
  font-family: 'David Libre';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/davidlibre-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'David Libre';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/davidlibre-bold.woff2') format('woff2');
}
.reader-hebrew .chapter-title,
.reader-hebrew .verse,
.reader-hebrew .single {
  font-family: 'David Libre', "Frank Ruhl Libre", "Noto Serif Hebrew", serif;
  line-height: 2;
}

/* ===================================================================
   UI-Auffrischung – Auswahllisten, Eingaben und Kästen
   Nur Optik (Struktur/Logik unverändert). Tokens sind themen-abhängig.
   =================================================================== */
:root { --ring: rgba(138,90,43,.20); --accent-soft: rgba(138,90,43,.08); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ring: rgba(202,139,79,.26); --accent-soft: rgba(202,139,79,.12); }
}
:root[data-theme="dark"] { --ring: rgba(202,139,79,.26); --accent-soft: rgba(202,139,79,.12); }

/* Auswahllisten: native Pfeile aus, eigener Chevron, weiche Zustände */
select,
.ctl select,
.search-scope select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  font-family: var(--sans); color: var(--fg);
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9078' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .65rem center; background-size: .7rem;
  border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem 2rem .5rem .7rem; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ctl select { width: 100%; }
.search-scope select { padding: .3rem 1.7rem .3rem .55rem; background-size: .6rem; background-position: right .5rem center; border-radius: 8px; }
select:hover, .ctl select:hover, .search-scope select:hover { border-color: var(--accent); }
select:focus, select:focus-visible,
.ctl select:focus-visible, .search-scope select:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring);
}

/* Eingabefelder: gleicher weicher Fokus-Ring statt harter Outline */
.topsearch input:focus-visible,
.search-form input[type="search"]:focus-visible,
.vpanel-note textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring);
}
.search-form input[type="search"] { border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.search-form button { border-radius: 10px; transition: filter .15s ease, transform .05s ease; }
.search-form button:hover { filter: brightness(1.06); }
.search-form button:active { transform: translateY(1px); }

/* Navigationsknöpfe: weicher, mit dezenter Tönung */
.btn { border-radius: 10px; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Vers-Kasten, Popover, Parallelstellen: grössere Radien, weichere Schatten */
.vpanel     { border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.vpop       { border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.xref-panel { border-radius: 12px; }

/* Aktions-Pillen: Hover füllt dezent, Klick gibt leicht nach */
.vpanel-act { transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .05s ease; }
.vpanel-act:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.vpanel-act.is-on, .vpanel-act.is-on:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.vpanel-act:active { transform: translateY(1px); }
.vpop-act { transition: border-color .15s ease, background-color .15s ease, color .15s ease; border-radius: 8px; }
.vpop-act:hover { background: var(--accent-soft); }

/* Farb-Schwalben: dezenter Hover-Zoom */
.vpanel-colors .vpop-sw, .vpop-sw { transition: transform .12s ease, box-shadow .12s ease; }
.vpanel-colors .vpop-sw:hover, .vpop-sw:hover { transform: scale(1.12); box-shadow: 0 1px 6px rgba(0,0,0,.22); }

@media (prefers-reduced-motion: reduce) {
  select, .btn, .vpanel-act, .vpop-act, .vpop-sw, .search-form button,
  .search-form input[type="search"] { transition: none; }
}

/* Vers-Bild: Auswahllisten füllen ihre Spalten (zur Auffrischung passend) */
.vi-controls select { width: 100%; }

/* Vers-Bild: Zahlen-/Textfelder an die neue Optik angleichen */
.vi-controls input[type="number"],
.vi-controls input[type="text"] {
  font-family: var(--sans); font-size: .95rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: .5rem .6rem; width: 100%; box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vi-controls textarea { border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.vi-controls input[type="number"]:hover,
.vi-controls input[type="text"]:hover { border-color: var(--accent); }
.vi-controls input[type="number"]:focus-visible,
.vi-controls input[type="text"]:focus-visible,
.vi-controls textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring);
}
@media (prefers-reduced-motion: reduce) {
  .vi-controls input[type="number"], .vi-controls input[type="text"], .vi-controls textarea { transition: none; }
}

/* --- KI-Vers-Auslegung --------------------------------------------- */
.vpanel-ai { padding: .15rem 0 .1rem; font-family: var(--sans); }
.vpanel-ai.vpanel-loading { color: var(--muted); font-size: .9rem; padding: .25rem 0; }
.vpanel-ai-p { margin: 0 0 .55rem; font-size: .92rem; line-height: 1.58; color: var(--fg); }
.vpanel-ai-p:last-of-type { margin-bottom: .35rem; }
.vpanel-ai-meta { font-size: .72rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .4rem; }

/* --- KI-Auslegung: Modus-Auswahl ----------------------------------- */
.vpanel-ai-wrap { padding: .1rem 0; }
.vpanel-ai-modes { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }
.vpanel-ai-chip {
  font: inherit; font-size: .8rem; line-height: 1; padding: .34rem .62rem;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--fg); cursor: pointer; transition: background .15s, border-color .15s;
}
.vpanel-ai-chip:hover { border-color: var(--accent, #8a8478); }
.vpanel-ai-chip.is-on {
  background: var(--accent-soft, rgba(122,112,96,.14));
  border-color: var(--accent, #8a8478); font-weight: 600;
}
@media (prefers-reduced-motion: reduce) { .vpanel-ai-chip { transition: none; } }
.vpanel-ai-out { min-height: 1.1rem; }

/* --- Suche: Modus-Umschalter + KI-Themensuche ---------------------- */
.search-modes { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 1rem; }
.search-mode {
  font: inherit; font-size: .88rem; padding: .35rem .95rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.search-mode.is-on { background: var(--accent-soft, rgba(122,112,96,.16)); color: var(--fg); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .search-mode { transition: none; } }
.aisearch-intro { margin-top: .15rem; }
.aisearch-out.aisearch-loading { color: var(--muted); padding: .4rem 0; }
.aisearch-kw { font-size: .82rem; margin-top: .9rem; }
.aisearch-note { font-size: .74rem; border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .6rem; }

/* --- Guthaben (Konto) ---------------------------------------------- */
.acc-credit { margin: 1.4rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; }
.acc-credit h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.acc-balance { margin: .2rem 0 .4rem; }
.acc-txns { margin-top: .7rem; }
.acc-txns summary { cursor: pointer; color: var(--muted); }
.acc-txn-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.acc-txn { display: flex; flex-wrap: wrap; gap: .3rem .8rem; padding: .35rem 0; border-top: 1px solid var(--line); font-size: .85rem; }
.acc-txn-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.acc-txn-pos { color: #2e7d32; }
.acc-txn-neg { color: var(--muted); }
.acc-txn-ref { flex: 1 1 8rem; }

/* --- Guthaben aufladen ---------------------------------------------- */
.topup { margin: .9rem 0 .2rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.topup-pick, .topup-emaillbl {
  display: block; max-width: 340px; margin: 0 0 .7rem;
  font-family: var(--sans); font-size: .85rem; color: var(--fg);
}
.topup-amount, .topup-email {
  display: block; width: 100%; box-sizing: border-box; margin-top: .25rem;
}
/* E-Mail-Feld: gleiche Optik wie die Konto-Eingaben */
.topup-email {
  padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--fg); font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.topup-email:hover { border-color: var(--accent); }
.topup-email:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft, rgba(122,112,96,.2));
}
.topup-paypal { max-width: 340px; margin-top: .2rem; }
.topup-msg { min-height: 1.1rem; margin: .5rem 0 0; }
@media (prefers-reduced-motion: reduce) { .topup-email { transition: none; } }

/* --- Konto: Verbrauch, Remember ------------------------------------ */
.acc-usage { margin: .2rem 0 .3rem; }
.acc-usage-kinds { margin: 0 0 .5rem; font-size: .82rem; }
.acc-remember { display: flex; align-items: center; gap: .45rem; font-size: .9rem; margin: .2rem 0 .1rem; }
.acc-remember input { width: auto; margin: 0; }

/* --- Konto: AGB, Passwort ändern, Löschen, Neuversand -------------- */
.acc-terms { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; margin: .4rem 0; }
.acc-terms input { width: auto; margin: .15rem 0 0; }
.acc-pw, .acc-resend { margin: .6rem 0; }
.acc-pw > summary, .acc-resend > summary { cursor: pointer; color: var(--accent); font-size: .92rem; }
.acc-pw form, .acc-resend form { margin-top: .6rem; }
.acc-delete { margin: 1rem 0 .2rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.rt-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.rt-danger:hover { background: #8f1d17; border-color: #8f1d17; }
