/* Koran & Gebet – Farben wie die DMV-Orga-App; Koran-Darstellung aus der App von Das Licht e.V. */
:root {
  --bg: #f6f5f1; --surface: #fff; --surface-2: #efede6; --text: #1d2321; --muted: #5f6b67; --line: #dcd9cf;
  --brand: #0f5c4d; --brand-soft: #dcefe9; --danger: #b42318; --green: #217a4b;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
a { color: var(--brand); }
header { position: sticky; top: 0; z-index: 6; background: var(--brand); padding: calc(8px + env(safe-area-inset-top)) 16px 8px; }
header a { color: #fff; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px; }
header img { border-radius: 6px; background: #fff; }
header small { font-weight: 400; opacity: .8; }
main { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
h1 { font-size: 1.35rem; margin: 0 0 .3rem; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 .4rem; }
h3 { font-size: 1rem; margin: .2rem 0; }
p { margin: .35rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.muted { color: var(--muted); } .small { font-size: .9rem; } .tiny { font-size: .78rem; } .error { color: var(--danger); }
.center-text { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; flex-wrap: nowrap; } .row.center { justify-content: center; }
.row.wrap { flex-wrap: wrap; }
.row > input { flex: 1; width: auto; min-width: 0; }
form.row { flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 8px; }
button, .button { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 14px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .45; cursor: default; }
button.secondary, .button.secondary { background: var(--brand-soft); color: var(--brand); }
button.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
button.danger { background: var(--danger); }
button.small, .button.small { min-height: 34px; padding: 4px 10px; font-size: .88rem; }
button.icon { min-height: 34px; width: 34px; padding: 0; }
input, select, textarea { font: inherit; width: 100%; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); min-height: 42px; }
textarea { min-height: 90px; }
label { display: block; font-size: .9rem; font-weight: 600; }
label input, label select, label textarea { margin-top: 4px; font-weight: 400; }
.back { text-decoration: none; font-size: .95rem; }
.more { font-size: .9rem; text-decoration: none; white-space: nowrap; }
.more.light { color: #fff; opacity: .9; }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 0 8px; font-size: .78rem; font-weight: 600; }
.notice { background: #fff6dc; border-color: #f0dca0; }
.rows { list-style: none; margin: 6px 0 0; padding: 0; }
.rows > li { border-bottom: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 0; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; color: inherit; text-decoration: none; min-width: 0; }
.line .t { min-width: 0; } .line .m { color: var(--muted); font-size: .88rem; text-align: right; flex: none; }
li.mit-x { display: flex; align-items: center; gap: 6px; } li.mit-x .line { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { min-height: 34px; padding: 4px 12px; border-radius: 99px; background: #fff; color: var(--text); border: 1px solid var(--line); font-weight: 500; font-size: .9rem; }
.chip-btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.progress { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 6px 0 2px; }
.progress span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
details.fold > summary { cursor: pointer; font-weight: 600; list-style-position: inside; padding: 2px 0; }
details.fold[open] > summary { margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; background: #1d2321; color: #fff; padding: 10px 16px; border-radius: 10px; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast.err { background: var(--danger); }
dialog { border: 0; border-radius: 16px; padding: 16px; width: min(560px, calc(100% - 24px)); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.35); }
.sheet { display: flex; flex-direction: column; gap: 10px; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0; }
.sheet-grid .button, .sheet-grid button { width: 100%; }
nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 2px 7px; font-size: .72rem; color: var(--muted); text-decoration: none; }
nav a span { font-size: 1.3rem; line-height: 1.2; }
nav a[aria-current] { color: var(--brand); font-weight: 700; }

/* Start */
.hero { background: linear-gradient(135deg, #0f5c4d, #1b7a66); color: #fff; border: 0; }
.hero h1 { font-size: 1.6rem; margin: .2rem 0 0; }
.zeiten-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 10px 0 6px; }
.zeiten-mini span { background: rgba(255,255,255,.12); border-radius: 8px; padding: 4px 2px; text-align: center; display: flex; flex-direction: column; }
.zeiten-mini span.on { background: #fff; color: var(--brand); }
.zeiten-mini small { font-size: .7rem; opacity: .9; }
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kachel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; font-size: 1.5rem; box-shadow: var(--shadow); min-width: 0; }
.kachel strong { font-size: 1rem; margin-top: 2px; } .kachel small { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hadith-de { font-size: .94rem; }
.hadith-ar { font-family: "Amiri Quran", serif; font-size: 1.25rem; line-height: 2; text-align: right; }
.hadith-item { border-bottom: 1px solid var(--line); padding: 8px 0; }

/* Zeiten */
.zeit.gebet .t { font-weight: 600; } .zeit .m b { font-size: 1.1rem; color: var(--text); }
.korrektur { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 8px; margin: 6px 0; }
.tab-wrap { overflow-x: auto; }
table.zeiten { border-collapse: collapse; width: 100%; font-size: .85rem; font-variant-numeric: tabular-nums; }
table.zeiten th, table.zeiten td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: center; }
table.zeiten tr.heute { background: #fff6dc; font-weight: 700; }

/* Tasbih */
.tasbih { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ar-gross { font-family: "Amiri Quran", serif; font-size: 1.7rem; line-height: 2; margin: 0; }
.tasbih-knopf { width: min(68vw, 260px); height: min(68vw, 260px); border-radius: 50%; flex-direction: column; font-size: 1rem; margin: 10px auto;
  background: radial-gradient(circle at 35% 30%, #1b8a72, #0f5c4d); box-shadow: 0 8px 24px rgba(15,92,77,.35); user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tasbih-knopf b { font-size: 3.6rem; line-height: 1; } .tasbih-knopf small { opacity: .85; }
.tasbih-knopf:active { transform: scale(.97); }
.tasbih-knopf.fertig { background: radial-gradient(circle at 35% 30%, #3aa76d, #217a4b); }
.tasbih .progress { width: 100%; }

/* Nachholen */
li.qada { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
li.qada .t { display: flex; flex-direction: column; flex: 1; min-width: 0; }

/* Qunut */
.dua { border-bottom: 1px solid var(--line); padding: 8px 0 10px; }
.dua:last-child { border-bottom: 0; }
.dua .um { font-style: italic; color: var(--muted); }

/* ---------- Koran (aus Das Licht) ---------- */
@font-face { font-family: 'Amiri Quran'; src: url('fonts/AmiriQuran-Regular.ttf') format('truetype'); font-display: swap; }
[lang="ar"] { font-family: 'Amiri Quran', serif; }
.ar-title { font-size: 26px; color: var(--brand); } .ar-name { font-size: 17px; }
.snum { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; margin-right: 4px; }
.koran-tools { margin-top: 6px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg.full { display: flex; } .seg.full button { flex: 1; }
.seg button { background: transparent; color: var(--muted); min-height: 32px; padding: 4px 10px; font-size: 13.5px; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px #0001; }
.basmala { text-align: center; font-size: 28px; padding: 6px 0 12px; color: var(--brand); }
.ayah { padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 8px; cursor: pointer; scroll-margin-top: 160px; }
.ayah:last-child { border-bottom: 0; } .ayah:hover { background: #faf8f4; }
.ayah.playing { background: #eaf4ea; box-shadow: inset 3px 0 0 #2e7d32; }
.ay-ar { font-size: 27px; line-height: 2.15; text-align: right; }
.size-0 .ay-ar { font-size: 22px; } .size-2 .ay-ar { font-size: 32px; } .size-3 .ay-ar { font-size: 38px; } .size-4 .ay-ar { font-size: 44px; }
.size-0 .ay-tr { font-size: 13px; } .size-2 .ay-tr { font-size: 16px; } .size-3 .ay-tr, .size-4 .ay-tr { font-size: 17.5px; }
.ay-no { color: var(--brand); font-size: .8em; white-space: nowrap; }
.ay-tr { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; } .ay-tr b { color: var(--brand); font-size: 12px; margin-right: 4px; }
.ay-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ay-meta span { background: #f4f1ea; border-radius: 10px; padding: 1px 8px; } .ay-round { background: var(--brand-soft) !important; color: var(--brand); font-size: 13px; padding: 2px 10px !important; }
.hl-gold { background: #fff6d6; } .hl-green { background: #e4f4e4; } .hl-blue { background: #e3eefb; } .hl-rose { background: #fbe6ee; }
.hit { flex-direction: column; align-items: stretch; } .hit .t { display: flex; flex-direction: column; gap: 2px; } .hit-ar { font-size: 20px; text-align: right; line-height: 1.9; }
.tj-legend { list-style: none; padding: 0; margin: 6px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; font-size: 13px; }
.tj-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid #0001; }
.juz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.juz { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; background: #fff; border: 1px solid var(--line); color: inherit; border-radius: 10px; min-height: 56px; font-weight: 400; }
.juz strong { font-size: 17px; } .juz small { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.juz.taken { background: #fff6d6; } .juz.done { background: #e4f4e4; } .juz.mine { outline: 2px solid var(--brand); }
#koran-player { position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 7; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; box-shadow: var(--shadow); font-size: 13px; }
#koran-player a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #koran-player select { max-width: 120px; width: auto; font-size: 12px; padding: 4px; min-height: 32px; }
.tj-h, .tj-s, .tj-l { color: #9a9a9a; } .tj-n { color: #537fff; } .tj-p { color: #4050ff; } .tj-o { color: #2144c1; } .tj-m { color: #000ebc; } .tj-q { color: #dd0008; }
.tj-c { color: #d500b7; } .tj-f { color: #9400a8; } .tj-w { color: #58b800; } .tj-i { color: #26bffd; } .tj-a { color: #169777; } .tj-u { color: #169200; } .tj-d, .tj-b { color: #a1a1a1; } .tj-g { color: #ff7e1e; }
.tj-bg-h, .tj-bg-l { background: #9a9a9a; } .tj-bg-n { background: #537fff; } .tj-bg-p { background: #4050ff; } .tj-bg-o { background: #2144c1; } .tj-bg-m { background: #000ebc; } .tj-bg-q { background: #dd0008; }
.tj-bg-c { background: #d500b7; } .tj-bg-f { background: #9400a8; } .tj-bg-w { background: #58b800; } .tj-bg-i { background: #26bffd; } .tj-bg-a { background: #169777; } .tj-bg-u { background: #169200; } .tj-bg-b { background: #a1a1a1; } .tj-bg-g { background: #ff7e1e; }
.koran-bar { position: sticky; top: calc(44px + env(safe-area-inset-top)); z-index: 4; display: flex; align-items: center; gap: 6px; background: var(--bg); padding: 6px 0; margin: -4px 0 -4px; }
.koran-bar a { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; font-size: 18px; color: var(--brand); }
.koran-bar select { flex: 1; min-width: 0; height: 36px; min-height: 36px; padding: 4px 6px; font-size: 14px; border-radius: 10px; }
.koran-bar select#koran-verse { flex: 0 0 96px; }
.koran-round { position: sticky; top: calc(92px + env(safe-area-inset-top)); z-index: 4; display: flex; align-items: center; gap: 8px; background: var(--brand-soft); border: 1px solid #b9dccf; border-radius: 12px; padding: 6px 10px; color: var(--brand); }
.koran-round span { flex: 1; min-width: 0; line-height: 1.2; } .koran-round small { color: var(--muted); }
.ayah.round-here { box-shadow: inset 0 -3px 0 var(--brand); background: #f1f8f5; }

@media print { header, nav, .noprint, .back, details, #koran-player { display: none !important; } body { padding: 0; background: #fff; } .card { box-shadow: none; border: 0; } }

/* In der DMV-Orga-App (Reiter „Gebet“): ohne eigene Kopfzeile, Bereiche oben statt unten */
.eingebettet body { padding-bottom: 0; }
.eingebettet header { display: none; }
.eingebettet nav { position: sticky; top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.eingebettet .koran-bar { top: 56px; }
.eingebettet .koran-round { top: 104px; }
.eingebettet #koran-player { bottom: 8px; }

/* Kompaktere Schrift; in der Startseite unten einstellbar (klein / normal / groß) */
html { font-size: 15px; }
html[data-schrift="klein"] { font-size: 13.5px; }
html[data-schrift="gross"] { font-size: 17.5px; }
body { font-size: 1rem; }
.hero { padding: 10px 14px; }
.hero-next { margin: .1rem 0 0; font-size: 1.05rem; }
.zeiten-mini { margin: 6px 0 4px; }
.zeiten-mini b { font-size: .95rem; }

/* Islamischer Kalender */
.kal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 8px 0; }
.kal-kopf { text-align: center; font-size: .72rem; color: var(--muted); }
.kal-tag { min-height: 46px; padding: 3px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.kal-tag b { font-size: .95rem; line-height: 1.1; } .kal-tag small { font-size: .62rem; color: var(--muted); line-height: 1.1; }
.kal-tag.fremd { opacity: .4; }
.kal-tag.heute { border: 2px solid var(--brand); }
.kal-tag.wahl { background: var(--brand-soft); }
.kal-tag.art-trauer { background: #f3e3e3; } .kal-tag.art-freude { background: #e1f3e8; } .kal-tag.art-eid { background: #e2ebf8; } .kal-tag.art-x { background: #f1efe6; }
.kal-tag.wahl.art-trauer, .kal-tag.wahl.art-freude, .kal-tag.wahl.art-eid, .kal-tag.wahl.art-x { outline: 2px solid var(--brand); }
.kacheln { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kachel { padding: 8px 9px; font-size: 1.25rem; }
.kachel strong { font-size: .86rem; } .kachel small { font-size: .72rem; }
