/* Version: 1.1.0 — Zuhörer-Seite, Ebenezer-Design */
:root {
  color-scheme: light dark;
  --bg: #f6f1e8; --fg: #18231f; --fg-2: #4a5852; --fg-3: #8a938d; --fg-4: #c0c3ba;
  --bar: rgba(255, 250, 241, 0.94); --line: #e7e0d2; --accent: #1f6f68; --brand: #bc7a2f; --error: #c0392b;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #141b18; --fg: #f2efe7; --fg-2: #c7ccc4; --fg-3: #8b938c; --fg-4: #58605a; --bar: rgba(22, 29, 26, 0.94); --line: #2a332e; } }
:root[data-theme="dark"] { --bg: #141b18; --fg: #f2efe7; --fg-2: #c7ccc4; --fg-3: #8b938c; --fg-4: #58605a; --bar: rgba(22, 29, 26, 0.94); --line: #2a332e; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
button { font: inherit; cursor: pointer; }

/* Sitzung */
.session { position: fixed; inset: 0; display: flex; flex-direction: column; }
.reader { flex: 1; overflow-y: auto; padding: calc(env(safe-area-inset-top) + 1.5rem) 1.25rem 2rem; font-size: 1.9rem; line-height: 1.32; letter-spacing: -0.01em; }
.reader p { margin: 0 0 0.9em; color: var(--fg-4); transition: color 0.6s, font-weight 0.6s; }
.reader p:nth-last-child(3) { color: var(--fg-3); }
.reader p:nth-last-child(2) { color: var(--fg-2); }
.reader p:last-child { color: var(--fg); font-weight: 600; }
.notice { margin: 0 1rem 0.5rem; padding: 0.7rem 0.9rem; border-radius: 14px; background: var(--bar); border: 1px solid var(--line); color: var(--fg-2); font-size: 0.95rem; }

.toolbar { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem calc(env(safe-area-inset-bottom) + 0.6rem); background: var(--bar); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.event-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; color: var(--fg); }
.event-name::before { content: "EBENEZER"; display: inline-block; margin-right: 0.5rem; font-weight: 800; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--brand); vertical-align: 1px; }
.tool { height: 44px; min-width: 44px; padding: 0 0.6rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; }
.tool[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.tool:disabled { opacity: 0.35; cursor: default; }
.tool.lang #lang-flag { font-size: 1.4rem; line-height: 1; }
.chevron { color: var(--fg-3); font-size: 1rem; }

/* Menüs */
.backdrop { position: fixed; inset: 0; z-index: 4; background: rgba(0, 0, 0, 0.25); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; max-height: 70vh; overflow-y: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 0.75rem 0.75rem calc(env(safe-area-inset-bottom) + 0.75rem); box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18); }
.sheet .option { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.8rem 0.75rem; border: 0; background: none; color: var(--fg); font-size: 1.05rem; border-radius: 12px; text-align: left; }
.sheet .option .flag { font-size: 1.5rem; }
.sheet .option .hint { margin-left: auto; color: var(--fg-3); font-size: 0.85rem; }
.sheet .option[aria-selected="true"] { background: var(--bar); font-weight: 600; }
.sheet-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.5rem; }
.pill { padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-weight: 600; }
.pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
