/* Artikel-Vorleser – nutzt die Bausteine aus design.css (.h-*). Quelle der Logik: web/src/vorleser/ */
.vl-main { max-width: 820px; }
#vl { margin-bottom: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-4); }
.vl-form { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.vl-in { min-height: 84px; font-size: var(--fs-m); }
.vl-row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.vl-row > .h-btn--primary { flex: 1; }
.vl-h2 { font-size: var(--fs-xl); margin: var(--sp-5) 0 var(--sp-3); }
.vl-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.vl-item { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); }
.vl-item-main { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: var(--sp-2); }
.vl-item-main small { color: var(--muted); }

/* Spieler */
.vl-player { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.vl-head { display: flex; gap: var(--sp-4); align-items: center; }
.vl-img { width: 72px; height: 72px; border-radius: var(--r-m); object-fit: cover; flex: none; background: var(--accent-soft); }
.vl-img--ph { display: grid; place-items: center; font-size: 2rem; }
.vl-title { display: block; font-size: var(--fs-l); line-height: 1.3; }
.vl-head small { color: var(--muted); }
.vl-bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.vl-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s linear; }
.vl-meta { display: flex; justify-content: space-between; font-size: var(--fs-s); color: var(--muted); font-variant-numeric: tabular-nums; }
.vl-btns { display: flex; justify-content: center; align-items: center; gap: var(--sp-5); }
.vl-play { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 1.9rem; cursor: pointer; box-shadow: var(--shadow-2); display: grid; place-items: center; transition: transform .12s; }
.vl-play:active { transform: scale(.94); }
.vl-play:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.vl-play.is-loading { animation: vl-puls 1s ease-in-out infinite; }
@keyframes vl-puls { 50% { opacity: .55; } }
.vl-ctl { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.vl-speed { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.vl-speed button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: var(--fs-s); cursor: pointer; font-variant-numeric: tabular-nums; }
.vl-speed button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.vl-voices { display: flex; flex-direction: column; gap: var(--sp-3); }
.vl-voices .h-select { flex: 1; min-width: 0; }
.vl-kurz { align-self: center; }

/* Text zum Mitlesen */
.vl-textcard { padding: var(--sp-5); }
.vl-texthead { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-3); }
.vl-text { max-height: 55vh; overflow-y: auto; line-height: 1.75; font-size: var(--fs-m); padding-right: 6px; }
.vl-text p { margin: 0 0 1em; }
.vl-text span { cursor: pointer; border-radius: 4px; transition: background .2s; }
.vl-text span:hover { background: var(--accent-soft); }
.vl-text span.on { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.vl-back { text-align: center; }
@media (max-width: 560px) {
  .vl-form, .vl-player, .vl-textcard { padding: var(--sp-4); }
  .vl-btns { gap: var(--sp-4); }
}

/* Hinweise + Dialoge (ui.js) */
.tg-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 16px; border-radius: var(--r-m); opacity: 0; pointer-events: none; transition: .2s; z-index: 1100; max-width: calc(100% - 32px); text-align: center; }
.tg-toast.on { opacity: 1; transform: translate(-50%, 0); }
.tg-noscroll { overflow: hidden; }
.tg-modal { position: fixed; inset: 0; background: rgba(10, 12, 25, .55); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .tg-modal { align-items: center; } }
.tg-sheet { background: var(--surface); width: 100%; max-width: 520px; max-height: 94vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 16px 18px 22px; }
@media (min-width: 700px) { .tg-sheet { border-radius: var(--r-l); } }
.tg-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tg-x { border: 0; background: none; font-size: 1.2rem; padding: 4px 8px; color: var(--text); cursor: pointer; }
.vl-cross { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, #25d366 55%, var(--border)); background: color-mix(in srgb, #25d366 7%, var(--surface)); color: var(--text); text-decoration: none; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.vl-cross:hover { transform: translateY(-2px); }
.vl-cross > span:first-child { font-size: 1.6rem; }
.vl-cross > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.vl-cross small { color: var(--muted); }
