@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/Nunito-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/Nunito-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/Baloo2-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/Baloo2-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Amiri Quran'; src: url('../fonts/AmiriQuran.ttf') format('truetype'); font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fbf6ea; --bg2: #f4ead2; --surface: #ffffff; --soft: #fdf9f0; --ink: #1f2540; --muted: #5a5f7c; --line: #ece1c8;
  --teal: #0f8b8d; --teal-d: #0a6466; --teal-l: #d8f2f0; --teal-2: #2bb3a6;
  --lapis: #3b5bdb; --lapis-d: #2742a8; --lapis-l: #e4eaff;
  --gold: #f0b021; --gold-d: #b97d00; --gold-l: #fff0c2;
  --coral: #ef6a5b; --coral-d: #c2432f; --coral-l: #ffe3de;
  --leaf: #3aa76d; --leaf-d: #1f7a4d; --leaf-l: #dcf5e6;
  --plum: #7c4dbd; --plum-l: #efe5fb;
  --brand: var(--teal); --brand-d: var(--teal-d); --brand-l: var(--teal-l); --brand-2: var(--teal-2);
  --sky: var(--lapis); --sky-d: var(--lapis-d); --sky-l: var(--lapis-l);
  --red: var(--coral); --red-d: var(--coral-d); --red-l: var(--coral-l);
  --mc: #0f8b8d; --mc-d: #0a6466; --mc-2: #2bb3a6;
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --ar: 'Amiri Quran', 'Scheherazade New', 'Traditional Arabic', 'Noto Naskh Arabic', serif;
  --shadow: 0 1px 2px rgba(31,37,64,.05), 0 10px 28px rgba(31,37,64,.08);
  --shadow-lg: 0 18px 44px rgba(31,37,64,.18);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4l5.2 8.6 9.9-2.1-2.1 9.9L50 28l-8.6 5.2 2.1 9.9-9.9-2.1L28 52l-5.2-8.6-9.9 2.1 2.1-9.9L6 28l8.6-5.2-2.1-9.9 9.9 2.1z' fill='none' stroke='%23fff' stroke-opacity='.2' stroke-width='1.4'/%3E%3C/svg%3E");
  --pattern-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4l5.2 8.6 9.9-2.1-2.1 9.9L50 28l-8.6 5.2 2.1 9.9-9.9-2.1L28 52l-5.2-8.6-9.9 2.1 2.1-9.9L6 28l8.6-5.2-2.1-9.9 9.9 2.1z' fill='none' stroke='%23b97d00' stroke-opacity='.10' stroke-width='1.4'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; background-image: var(--pattern-d), radial-gradient(900px 420px at 80% -100px, rgba(15,139,141,.13), transparent 70%), radial-gradient(700px 400px at -10% 10%, rgba(240,176,33,.14), transparent 70%); background-repeat: repeat, no-repeat, no-repeat; }
h1, h2, h3, .head { font-family: var(--head); font-weight: 800; letter-spacing: 0; line-height: 1.15; }
h1 { font-size: 1.75rem; margin: .3rem 0 .4rem; line-height: 1.15; } h2 { font-size: 1.35rem; margin: .2rem 0 .5rem; line-height: 1.2; } h3 { font-size: 1.1rem; margin: .1rem 0 .4rem; }
p { margin: .3rem 0 .6rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lapis); outline-offset: 2px; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.22em; }
.flip { transform: scaleX(-1); }
.mascot { display: block; }

/* ===== Gerüst ===== */
#app { max-width: 600px; margin: 0 auto; position: relative; }
.page { padding: 4px 16px 140px; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 8px; background: linear-gradient(var(--bg) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--teal-d); }
.brand .logo { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), #ffcf5a); display: grid; place-items: center; color: #7a4f00; box-shadow: 0 4px 10px rgba(240,176,33,.45); transform: rotate(-6deg); }
.brand .logo .ic { width: 21px; height: 21px; }
.lang-switch { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.lang-switch button { background: transparent; border: 0; padding: 5px 13px; border-radius: 999px; font-weight: 800; font-size: .85rem; color: var(--muted); transition: all .2s; }
.lang-switch button.on { background: var(--teal); color: #fff; box-shadow: 0 3px 8px rgba(15,139,141,.4); }

/* Dock */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
#tabs { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr; align-items: end; gap: 2px; padding: 8px 8px 6px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 28px; box-shadow: 0 14px 36px rgba(31,37,64,.22), 0 0 0 1px rgba(236,225,200,.9); pointer-events: auto; }
#tabs button { background: transparent; border: 0; padding: 5px 2px 3px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; font-weight: 800; color: var(--muted); border-radius: 16px; transition: color .2s; }
#tabs button .ico { width: 42px; height: 30px; display: grid; place-items: center; border-radius: 14px; transition: background .2s, color .2s; }
#tabs button .ico .ic { width: 23px; height: 23px; }
#tabs button.on { color: var(--teal-d); } #tabs button.on .ico { background: var(--teal-l); color: var(--teal-d); }
#tabs .dock-center { transform: translateY(-16px); color: #7a4f00; gap: 4px; }
#tabs .dock-center .lantern { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 60%, #d98e00); color: #6b4300; box-shadow: 0 8px 18px rgba(240,176,33,.55), 0 0 0 5px rgba(255,255,255,.95); animation: glow 2.6s ease-in-out infinite; }
#tabs .dock-center .lantern .ic { width: 28px; height: 28px; margin-left: 3px; }
@keyframes glow { 50% { box-shadow: 0 8px 26px rgba(240,176,33,.85), 0 0 0 5px rgba(255,255,255,.95); } }
body.in-lesson #screen, body.in-lesson #tabbar { display: none; }
#lesson { display: none; }
body.in-lesson #lesson { display: flex; }

/* ===== Buttons & Karten ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 18px; font-weight: 800; border: 0; background: var(--surface); color: var(--teal-d); box-shadow: 0 0 0 2px var(--line) inset, 0 4px 0 var(--line); transition: transform .1s, box-shadow .1s; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 2px var(--line) inset, 0 1px 0 var(--line); }
.btn.primary { background: linear-gradient(180deg, var(--teal-2), var(--teal)); color: #fff; box-shadow: 0 4px 0 var(--teal-d), 0 10px 20px rgba(15,139,141,.3); text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.btn.primary:active:not(:disabled) { box-shadow: 0 1px 0 var(--teal-d), 0 4px 10px rgba(15,139,141,.3); }
.btn.primary:disabled { background: #e6dfcc; color: #a49c84; box-shadow: 0 4px 0 #d3cab0; text-shadow: none; }
.btn.ghost { color: var(--muted); } .btn.danger { color: var(--coral-d); box-shadow: 0 0 0 2px var(--coral) inset, 0 4px 0 var(--coral-l); }
.btn.gold { background: linear-gradient(180deg, #ffd45a, var(--gold)); color: #6b4300; box-shadow: 0 4px 0 var(--gold-d); }
.btn.wide { width: 100%; }
.icon-btn { background: var(--lapis-l); color: var(--lapis-d); border: 0; border-radius: 50%; width: 42px; height: 42px; display: inline-grid; place-items: center; transition: transform .1s; flex: none; }
.icon-btn:active { transform: scale(.92); }
.icon-btn.big { width: 58px; height: 58px; } .icon-btn.big .ic { width: 27px; height: 27px; }
.row-actions, .play-row, .modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.modal-actions .btn, .play-row .btn, .row-actions .btn { flex: 1; }
.back-link { background: transparent; border: 0; color: var(--lapis-d); font-weight: 800; padding: 6px 0; display: inline-flex; align-items: center; gap: 4px; }
.back-link.on-dark { color: #fff; opacity: .95; }
.link { background: transparent; border: 0; color: var(--teal-d); font-weight: 800; display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; }
.card { background: var(--surface); border-radius: 26px; padding: 16px 18px; margin: 14px 0; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 8px; } .card h3 .ic { color: var(--teal); }
.text-in, .select { width: 100%; padding: 13px 15px; border-radius: 16px; border: 2px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; font-weight: 700; margin-bottom: 14px; }
textarea.text-in { resize: vertical; font-weight: 700; }
.chip { display: inline-block; background: var(--lapis-l); color: var(--lapis-d); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: .82rem; }
.chip.alt { background: var(--gold-l); color: var(--gold-d); } .chip.on-dark { background: rgba(255,255,255,.22); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.22); color: inherit; border-radius: 999px; padding: 2px 11px 2px 8px; font-weight: 800; font-size: .8rem; backdrop-filter: blur(4px); }
.bar { height: 10px; background: var(--bg2); border-radius: 8px; overflow: hidden; margin-top: 6px; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-2), var(--leaf)); border-radius: 8px; transition: width .5s; }
.bar.mini { height: 6px; margin-top: 4px; } .bar.on-dark { background: rgba(255,255,255,.28); } .bar.on-dark i { background: linear-gradient(90deg, #fff, var(--gold-l)); }
.stars { color: var(--gold); letter-spacing: 2px; white-space: nowrap; } .stars .off { color: #e5dcc3; }
.page-head, .sub-head { margin: 4px 0 10px; } .page-head p, .sub-head p { margin: 0; }
.block { margin: 22px 0; } .block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .block-head h2 { margin: 0; }

/* ===== Einstieg ===== */
.onboarding { text-align: center; padding-top: 26px; }
.onboarding .mascot { margin: 0 auto 6px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.lang-pick { display: flex; gap: 12px; margin: 10px 0 18px; }
.big-choice { flex: 1; padding: 16px 10px; border-radius: 22px; border: 0; background: var(--surface); box-shadow: 0 0 0 2px var(--line) inset, 0 4px 0 var(--line); font-size: 1.15rem; font-weight: 800; }
.big-choice.on { box-shadow: 0 0 0 3px var(--teal) inset, 0 4px 0 var(--teal-d); background: var(--teal-l); color: var(--teal-d); }
.flag { display: inline-block; background: var(--teal); color: #fff; border-radius: 8px; padding: 0 7px; font-size: .75rem; margin-right: 6px; vertical-align: middle; }

/* ===== Garten / Start ===== */
.hero2 { position: relative; border-radius: 34px; overflow: hidden; color: #fff; box-shadow: var(--shadow-lg); min-height: 262px; margin: 6px 0 14px; isolation: isolate; }
.hero2 .sky { position: absolute; inset: 0; z-index: -2; } .hero2 .sky svg { width: 100%; height: 100%; display: block; }
.hero2::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(14,28,70,.62) 0%, rgba(14,28,70,.28) 55%, rgba(14,28,70,0) 85%); }
.hero2.tod-night::after { background: linear-gradient(100deg, rgba(5,10,40,.35), rgba(5,10,40,0) 70%); }
.hero2-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; padding: 20px 18px 18px; min-height: 262px; }
.hero2-text { max-width: 62%; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-shadow: 0 2px 8px rgba(0,0,0,.28); }
.hero2-text h1 { font-size: 1.7rem; margin: 2px 0 0; } .hero2-text p { margin: 0 0 4px; font-weight: 700; line-height: 1.3; } .muted-on { opacity: .88; font-size: .88rem; }
.cta { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 12px 22px; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: #5b3a00; background: linear-gradient(180deg, #ffe08a, var(--gold)); box-shadow: 0 5px 0 var(--gold-d), 0 12px 24px rgba(0,0,0,.25); text-shadow: none; transition: transform .1s; }
.cta:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-d); } .cta .ic { width: 1.2em; height: 1.2em; }
.hero2-mascot { flex: none; margin-bottom: -4px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.3)); animation: float 3.4s ease-in-out infinite; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-tile { border-radius: 22px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0; font-weight: 800; font-size: .76rem; box-shadow: var(--shadow); }
.stat-tile .ic { width: 26px; height: 26px; margin-bottom: 2px; } .stat-tile b { font-family: var(--head); font-size: 1.5rem; line-height: 1.1; font-weight: 700; } .stat-tile small { font-size: .8rem; opacity: .7; }
.stat-tile.s-fire { background: var(--coral-l); color: var(--coral-d); } .stat-tile.s-xp { background: var(--gold-l); color: var(--gold-d); } .stat-tile.s-ayat { background: var(--teal-l); color: var(--teal-d); }
.garden-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 6px 16px 14px; scrollbar-width: none; } .garden-scroll::-webkit-scrollbar { display: none; }
.plant-card { flex: none; width: 124px; scroll-snap-align: start; border: 0; text-align: center; background: linear-gradient(180deg, hsl(var(--h), 85%, 94%), var(--surface) 62%); border-radius: 28px; padding: 10px 8px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 1px; transition: transform .12s; }
.plant-card:active { transform: scale(.97); }
.plant-card .plant-art { height: 92px; display: grid; place-items: end center; } .plant-card .plant-art svg { width: 84px; height: 84px; }
.plant-ar { font-family: var(--ar); font-size: 1.45rem; line-height: 1.6; color: hsl(var(--h), 45%, 32%); }
.plant-card b { font-family: var(--head); font-weight: 700; font-size: .98rem; line-height: 1.15; } .plant-card .stage { font-size: .72rem; font-weight: 800; color: hsl(var(--h), 55%, 36%); background: hsl(var(--h), 85%, 90%); padding: 1px 9px; border-radius: 999px; margin-top: 3px; }
.plant-card .bar { width: 80%; }
.plant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .plant-card.big { width: auto; padding-top: 14px; } .plant-card.big .plant-art { height: 106px; } .plant-card.big .plant-art svg { width: 96px; height: 96px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ws-day { border: 0; background: var(--surface); border-radius: 18px; padding: 8px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; box-shadow: var(--shadow); font-weight: 800; color: var(--muted); }
.ws-l { font-size: .74rem; } .ws-c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); color: var(--muted); } .ws-c .ic { width: 17px; height: 17px; }
.ws-day.done .ws-c { background: linear-gradient(180deg, #ffd45a, var(--gold)); color: #6b4300; }
.ws-day.now { box-shadow: 0 0 0 3px var(--teal), var(--shadow); color: var(--teal-d); } .ws-day.now .ws-c { background: var(--teal); color: #fff; animation: glow2 2s ease-in-out infinite; }
@keyframes glow2 { 50% { box-shadow: 0 0 0 6px rgba(15,139,141,.25); } }
.ws-day.lock { opacity: .6; }
.ayah-big.daily { text-align: center; padding-bottom: 14px; } .ayah-big.daily .icon-btn { margin-top: 4px; }
.reward-card { width: 100%; border: 0; text-align: left; display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, hsl(var(--h, 40), 90%, 95%), #fff); border-radius: 26px; padding: 14px 16px; box-shadow: var(--shadow), 0 0 0 2px hsl(var(--h, 40), 70%, 80%) inset; border: 0; }
.reward-card > .ic { width: 46px; height: 46px; padding: 10px; border-radius: 16px; background: hsl(var(--h, 40), 85%, 62%); color: #fff; } .reward-card > div { flex: 1; } .reward-card b { display: block; font-family: var(--head); font-weight: 700; }
.reward-card.done { justify-content: center; background: var(--gold-l); --h: 45; margin: 10px 0; } .reward-card.done > .ic { background: var(--gold); }
.quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick { border: 0; border-radius: 24px; padding: 16px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-family: var(--head); font-weight: 700; box-shadow: var(--shadow); transition: transform .1s; } .quick:active { transform: scale(.96); }
.quick .ic { width: 34px; height: 34px; } .q-paint { background: linear-gradient(135deg, #f472b6, #c026d3); } .q-story { background: linear-gradient(135deg, #38bdf8, var(--lapis)); } .q-game { background: linear-gradient(135deg, #34d399, var(--teal)); }

/* ===== Plan ===== */
.week-chips { display: flex; gap: 8px; overflow-x: auto; margin: 4px -16px 12px; padding: 6px 16px 10px; scrollbar-width: none; } .week-chips::-webkit-scrollbar { display: none; }
.wk-chip { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; position: relative; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--mc-d); background: conic-gradient(var(--mc) calc(var(--p) * 1%), #e8dec6 0); transition: transform .15s; }
.wk-chip::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); } .wk-chip span { position: relative; }
.wk-chip.sel { transform: scale(1.18); box-shadow: 0 6px 14px rgba(31,37,64,.2); } .wk-chip.sel::before { background: var(--mc); } .wk-chip.sel span { color: #fff; }
.wk-chip.full::before { background: var(--gold-l); } .wk-chip.now::after { content: ''; position: absolute; bottom: -7px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--coral); }
.m1 { --mc: #0f8b8d; --mc-d: #0a6466; --mc-2: #2bb3a6; } .m2 { --mc: #3b5bdb; --mc-d: #2742a8; --mc-2: #7c93f5; } .m3 { --mc: #8b4fd0; --mc-d: #6a35a8; --mc-2: #b88af0; } .m4 { --mc: #e8920a; --mc-d: #b06500; --mc-2: #ffc247; }
.week-card { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--mc-d), var(--mc) 55%, var(--mc-2)); color: #fff; border-radius: 30px; padding: 16px 18px 14px; box-shadow: 0 14px 30px color-mix(in srgb, var(--mc) 40%, transparent); margin-bottom: 14px; }
.week-card::before { content: ''; position: absolute; inset: 0; background: var(--pattern); pointer-events: none; } .week-card > * { position: relative; }
.week-card h2 { font-size: 1.5rem; margin: 8px 0 4px; } .wk-top { display: flex; gap: 8px; flex-wrap: wrap; }
.day-list { display: flex; flex-direction: column; gap: 10px; }
.day-card { display: flex; align-items: center; gap: 12px; border: 0; text-align: left; background: var(--surface); border-radius: 24px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow); transition: transform .1s; }
.day-card:active:not(.locked) { transform: scale(.985); }
.dc-date { width: 48px; height: 52px; border-radius: 17px; background: var(--bg2); display: grid; place-items: center; font-family: var(--head); font-weight: 700; color: var(--muted); flex: none; }
.dc-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mc); color: #fff; flex: none; } .dc-ico .ic { width: 20px; height: 20px; }
.dc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .dc-body b { font-family: var(--head); font-weight: 700; }
.dc-end { color: var(--muted); flex: none; }
.day-card.done .dc-date { background: var(--gold-l); color: var(--gold-d); } .day-card.done .dc-ico { background: linear-gradient(180deg, #ffd45a, var(--gold)); color: #6b4300; }
.day-card.now { box-shadow: 0 0 0 3px var(--mc), var(--shadow); } .day-card.now .dc-date { background: var(--mc); color: #fff; } .day-card.now .dc-end { color: var(--mc); }
.day-card.locked { opacity: .62; } .day-card.locked .dc-ico { background: #cfc7b0; }

/* ===== Entdecken ===== */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .tile-grid.one { grid-template-columns: 1fr; }
.tile { position: relative; overflow: hidden; border: 0; text-align: left; border-radius: 28px; padding: 16px 16px 14px; min-height: 148px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; box-shadow: var(--shadow); transition: transform .12s; }
.tile:active { transform: scale(.97); } .tile::before { content: ''; position: absolute; inset: 0; background: var(--pattern); }
.tile > * { position: relative; } .tile b { font-family: var(--head); font-weight: 700; font-size: 1.2rem; line-height: 1.1; } .tile-sub { font-size: .8rem; font-weight: 700; opacity: .92; line-height: 1.25; }
.tile-ico { position: absolute; top: 14px; right: 14px; width: 52px; height: 52px; border-radius: 18px; background: rgba(255,255,255,.25); display: grid; place-items: center; backdrop-filter: blur(3px); } .tile-ico .ic { width: 28px; height: 28px; }
.t-practice { background: linear-gradient(135deg, #0f8b8d, #34c0a6); } .t-paint { background: linear-gradient(135deg, #e0449c, #a43bd1); } .t-story { background: linear-gradient(135deg, #4f6df0, #38b6f2); }
.t-game { background: linear-gradient(135deg, #f08a24, #f5c242); } .t-reward { background: linear-gradient(135deg, #ef5b7a, #f59a5b); } .t-badge { background: linear-gradient(135deg, #7c4dbd, #b58af2); }

/* Malen */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gal-card { border: 0; background: var(--surface); border-radius: 24px; padding: 8px 8px 12px; box-shadow: var(--shadow); text-align: left; transition: transform .1s; } .gal-card:active { transform: scale(.97); }
.gal-card .thumb { position: relative; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px var(--line) inset; } .gal-card .thumb svg { display: block; width: 100%; height: auto; }
.gal-card b { display: block; font-family: var(--head); font-weight: 700; font-size: .95rem; margin: 8px 6px 0; line-height: 1.2; } .gal-card .bar { margin: 6px 6px 0; }
.done-flag { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #6b4300; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.2); } .done-flag .ic { width: 16px; height: 16px; }
.paint-box { background: #fff; border-radius: 26px; padding: 8px; box-shadow: var(--shadow), 0 0 0 3px var(--gold-l) inset; } .paint-box svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.paint-box svg .reg { cursor: pointer; transition: fill .15s; } .paint-box svg .reg:hover { filter: brightness(.97); }
.palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 14px 0 6px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 0; box-shadow: 0 0 0 2px rgba(31,37,64,.12) inset, 0 3px 6px rgba(31,37,64,.15); transition: transform .12s; } .swatch.sel { transform: scale(1.22); box-shadow: 0 0 0 3px #fff inset, 0 0 0 3px var(--ink), 0 6px 12px rgba(31,37,64,.25); }
.swatch.eraser { background: repeating-linear-gradient(45deg, #fff, #fff 5px, #eee 5px, #eee 10px) !important; }
.paint-tools { display: flex; gap: 8px; margin: 10px 0 4px; } .paint-tools .btn { flex: 1; padding: 10px 6px; font-size: .88rem; }
.print-sheet { text-align: center; } .print-sheet svg { width: 100%; height: auto; }

/* Geschichten */
.story-list { display: flex; flex-direction: column; gap: 12px; }
.story-card { border: 0; text-align: left; display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, hsl(var(--h), 80%, 93%), #fff 70%); border-radius: 26px; padding: 12px 14px; box-shadow: var(--shadow); }
.story-card.locked { opacity: .6; filter: grayscale(.4); }
.story-ar { font-family: var(--ar); font-size: 1.9rem; line-height: 1.6; min-width: 78px; text-align: center; color: hsl(var(--h), 50%, 30%); background: hsl(var(--h), 80%, 88%); border-radius: 20px; padding: 6px 8px; }
.story-ar.big { font-size: 3rem; background: transparent; color: #fff; padding: 0; text-shadow: 0 3px 10px rgba(0,0,0,.25); }
.story-info { flex: 1; display: flex; flex-direction: column; line-height: 1.25; } .story-info b { font-family: var(--head); font-weight: 700; font-size: 1.05rem; } .story-state { color: hsl(var(--h), 55%, 38%); }
.story-head { background: linear-gradient(135deg, hsl(var(--h), 62%, 42%), hsl(var(--h), 75%, 62%)); color: #fff; border-radius: 30px; text-align: center; padding: 18px 16px 16px; margin-bottom: 14px; position: relative; overflow: hidden; box-shadow: 0 14px 30px hsla(var(--h), 60%, 40%, .35); }
.story-head::before { content: ''; position: absolute; inset: 0; background: var(--pattern); } .story-head > * { position: relative; } .story-head h1 { margin: 2px 0 8px; }
.story-text { font-size: 1.12rem; line-height: 1.75; background: var(--surface); border-radius: 24px; padding: 16px 18px; box-shadow: var(--shadow); margin: 0 0 12px; }
.lesson-box { background: var(--gold-l); border-radius: 22px; padding: 12px 16px; margin: 14px 0; color: #5b3d00; } .lesson-box p { margin: 4px 0 0; }
.note-label { display: block; font-weight: 800; margin: 12px 0 6px; }

/* Memory */
.memory-bar { display: flex; gap: 8px; margin: 6px 0 12px; }
.memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mcard { position: relative; border: 0; background: transparent; aspect-ratio: 1 / 1.08; perspective: 700px; padding: 0; }
.mcard .face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 22px; backface-visibility: hidden; transition: transform .45s; padding: 6px; text-align: center; box-shadow: var(--shadow); }
.mcard .back { background: linear-gradient(135deg, var(--teal), var(--lapis)); color: #fff; } .mcard .back .ic { width: 34px; height: 34px; opacity: .85; }
.mcard .front { background: var(--surface); transform: rotateY(180deg); font-weight: 800; line-height: 1.2; font-size: .98rem; } .mcard .front.ar { font-family: var(--ar); font-size: 1.9rem; font-weight: 400; color: var(--teal-d); background: var(--gold-l); }
.mcard.flip .back { transform: rotateY(180deg); } .mcard.flip .front { transform: rotateY(360deg); }
.mcard.ok .front { box-shadow: 0 0 0 3px var(--leaf) inset, var(--shadow); background: var(--leaf-l); animation: pop .4s; }

/* Kupons */
.coupon-grid { display: flex; flex-direction: column; gap: 12px; }
.coupon { position: relative; display: flex; align-items: center; gap: 12px; border: 0; text-align: left; border-radius: 22px; padding: 14px 16px 14px 0; background: linear-gradient(90deg, hsl(var(--h), 85%, 91%) 0 92px, #fff 92px); box-shadow: var(--shadow); -webkit-mask: radial-gradient(circle 11px at 92px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 92px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 11px at 92px 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 92px 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; filter: drop-shadow(0 6px 10px rgba(31,37,64,.08)); }
.coupon::after { content: ''; position: absolute; left: 92px; top: 14px; bottom: 14px; border-left: 2px dashed hsl(var(--h), 55%, 75%); }
.coupon .cp-ico { width: 58px; height: 58px; flex: none; border-radius: 20px; display: grid; place-items: center; background: hsl(var(--h), 70%, 52%); color: #fff; margin-left: 17px; box-shadow: 0 4px 0 hsl(var(--h), 70%, 38%); } .coupon .cp-ico .ic { width: 28px; height: 28px; }
.cp-ico.big { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 6px; background: hsl(var(--h), 75%, 58%); color: #fff; display: grid; place-items: center; } .cp-ico.big .ic { width: 38px; height: 38px; }
.cp-body { flex: 1; padding-left: 12px; display: flex; flex-direction: column; line-height: 1.25; } .cp-body b { font-family: var(--head); font-weight: 700; }
.cp-label { font-size: .68rem; font-weight: 800; letter-spacing: 1.1px; color: hsl(var(--h), 45%, 38%); } .cp-used { font-size: .78rem; color: var(--leaf-d); font-weight: 800; }
.coupon.off { filter: grayscale(.9); opacity: .62; } .coupon.used { opacity: .72; }
.coupon-big { text-align: center; border-radius: 26px; padding: 18px 14px; background: linear-gradient(180deg, hsl(var(--h), 85%, 94%), #fff); box-shadow: 0 0 0 3px hsl(var(--h), 70%, 78%) inset; }

/* Abzeichen */
.badge-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.badge-card { background: var(--surface); border-radius: 22px; padding: 12px 6px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; box-shadow: var(--shadow); opacity: .55; filter: grayscale(.7); } .badge-card.on { opacity: 1; filter: none; }
.badge-card b { font-family: var(--head); font-weight: 700; font-size: .85rem; line-height: 1.15; } .badge-card .small { font-size: .68rem; line-height: 1.2; }
.medal { display: grid; place-items: center; border-radius: 50%; background: #dad3c0; color: #fff; box-shadow: 0 4px 0 #bdb59e; } .medal .ic { width: 52%; height: 52%; }
.medal.on { background: radial-gradient(circle at 35% 28%, hsl(var(--h), 90%, 72%), hsl(var(--h), 70%, 48%)); box-shadow: 0 5px 0 hsl(var(--h), 65%, 34%), 0 8px 14px hsla(var(--h), 70%, 40%, .35); }

/* Profil */
.profile-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--teal-d), var(--teal) 60%, var(--teal-2)); color: #fff; border-radius: 30px; padding: 16px; margin: 6px 0 12px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.profile-card::before { content: ''; position: absolute; inset: 0; background: var(--pattern); } .profile-card > * { position: relative; } .profile-card h1 { margin: 0 0 4px; } .pc-body { flex: 1; }
.profile-card .bar { background: rgba(255,255,255,.28); } .profile-card .bar i { background: linear-gradient(90deg, #fff, var(--gold-l)); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.stat-card { background: var(--surface); border-radius: 22px; padding: 12px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; font-size: .76rem; color: var(--muted); font-weight: 800; box-shadow: var(--shadow); line-height: 1.2; }
.stat-card b { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--ink); display: flex; align-items: center; gap: 4px; } .stat-card .ic { color: var(--teal); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 700; }
.toggle-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { width: 52px; height: 30px; border-radius: 16px; background: #d4ccb6; position: relative; flex: none; transition: .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.toggle-row input:checked + .switch { background: var(--teal); } .toggle-row input:checked + .switch::after { left: 25px; } .toggle-row input:focus-visible + .switch { outline: 3px solid var(--lapis); }
.table-wrap { overflow-x: auto; } .karne { width: 100%; border-collapse: collapse; font-size: .85rem; }
.karne th, .karne td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; } .karne th { color: var(--muted); font-weight: 800; }
.karne .off { color: #e5dcc3; } .karne td:nth-child(3), .karne td:nth-child(4) { white-space: nowrap; }
.cert { text-align: center; border: 4px double var(--gold-d); border-radius: 22px; padding: 20px 12px; background: linear-gradient(180deg, var(--gold-l), transparent); }
.cert-ar { font-family: var(--ar); font-size: 2.1rem; color: var(--gold-d); } .cert-name { font-family: var(--head); font-size: 1.9rem; border-bottom: 2px solid var(--line); margin: 8px 0; padding: 4px; } .cert-stars { color: var(--gold); font-size: 1.8rem; letter-spacing: 6px; }

/* Sure-Seite */
.sura-hero { position: relative; overflow: hidden; border-radius: 32px; padding: 10px 16px 16px; color: #fff; background: linear-gradient(135deg, hsl(var(--h), 55%, 38%), hsl(var(--h), 70%, 58%)); box-shadow: 0 14px 30px hsla(var(--h), 60%, 40%, .35); margin-bottom: 12px; }
.sura-hero::before { content: ''; position: absolute; inset: 0; background: var(--pattern); } .sura-hero > * { position: relative; }
.sh-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; } .sh-ar { font-family: var(--ar); font-size: 2.6rem; line-height: 1.5; text-shadow: 0 3px 10px rgba(0,0,0,.25); } .sh-text h1 { margin: 0 0 6px; }
.sh-body .plant { background: rgba(255,255,255,.88); border-radius: 26px; padding: 4px; }
.about { background: var(--lapis-l); border-radius: 22px; padding: 11px 16px; margin: 10px 0; }
.basmala { font-family: var(--ar); text-align: center; font-size: 1.9rem; margin: 14px 0; color: var(--gold-d); }
.ar { font-family: var(--ar); font-size: 2rem; line-height: 2.2; text-align: right; margin: 6px 0; }
.ar.big { font-size: 2.6rem; text-align: center; line-height: 2.3; }
.ayah-card { background: var(--surface); border-radius: 26px; padding: 12px 16px; margin: 12px 0; box-shadow: var(--shadow); box-shadow: var(--shadow), 0 0 0 2px transparent; transition: box-shadow .2s, background .2s; }
.ayah-card.playing { box-shadow: var(--shadow), 0 0 0 3px var(--lapis); background: var(--lapis-l); }
.ayah-top { display: flex; align-items: center; gap: 8px; }
.ayah-no { background: linear-gradient(135deg, #ffd45a, var(--gold)); color: #6b4300; border-radius: 50%; width: 32px; height: 32px; display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; box-shadow: 0 3px 0 var(--gold-d); }
.ayah-top .icon-btn { margin-left: auto; }
.tag { display: inline-flex; align-items: center; gap: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 1px 9px; font-size: .78rem; font-weight: 800; color: var(--muted); } .tag .ic { width: 1em; height: 1em; }
.tag.ok { color: var(--leaf-d); border-color: var(--leaf); background: var(--leaf-l); }
.tl { color: var(--lapis-d); font-weight: 800; font-style: italic; margin: 2px 0; } .ml { color: var(--ink); margin: 4px 0; } .ml.big { font-size: 1.2rem; font-weight: 800; padding: 8px 0; }
.vocab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.vocab-item { border-radius: 18px; padding: 4px 10px 8px; text-align: center; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.vocab-item .ar { font-size: 1.8rem; line-height: 1.9; text-align: center; margin: 0; } .vocab-item .tl, .vocab-item .ml { font-size: .85rem; margin: 0; }

/* Modal / Toast */
#modal { position: fixed; inset: 0; z-index: 100; background: rgba(20,24,48,.55); backdrop-filter: blur(4px); display: none; align-items: flex-end; justify-content: center; }
#modal.open { display: flex; }
.modal-card { background: var(--surface); border-radius: 32px 32px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); width: 100%; max-width: 600px; max-height: 92vh; overflow: auto; text-align: center; animation: sheet .3s cubic-bezier(.2,.9,.3,1) both; }
@keyframes sheet { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { #modal { align-items: center; padding: 16px; } .modal-card { border-radius: 32px; max-width: 460px; } }
.modal-ico { width: 78px; height: 78px; margin: 0 auto 8px; border-radius: 28px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--mc-2), var(--mc)); box-shadow: 0 6px 0 var(--mc-d); } .modal-ico .ic { width: 40px; height: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
#toast { position: fixed; left: 50%; bottom: 112px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 18px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; max-width: 90%; text-align: center; font-weight: 700; box-shadow: var(--shadow-lg); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Lektion ===== */
#lesson { position: fixed; inset: 0; z-index: 60; background: var(--bg); background-image: var(--pattern-d); flex-direction: column; max-width: 600px; margin: 0 auto; }
.l-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.l-head .x { background: var(--surface); border: 0; color: var(--muted); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; box-shadow: var(--shadow); } .l-head .x .ic { width: 20px; height: 20px; }
.progress { flex: 1; height: 16px; background: #e8dec6; border-radius: 12px; overflow: hidden; position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,.08); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #ffd45a); border-radius: 12px; transition: width .45s cubic-bezier(.3,.9,.3,1); position: relative; }
.progress i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 4px; height: 4px; background: rgba(255,255,255,.55); border-radius: 4px; }
.l-xp { font-family: var(--head); font-weight: 700; color: #3b5bdb; display: inline-flex; align-items: center; gap: 3px; background: var(--surface); padding: 3px 10px; border-radius: 999px; box-shadow: var(--shadow); } .l-xp .ic { width: 1.05em; height: 1.05em; }
.l-body { flex: 1; overflow-y: auto; padding: 8px 18px 24px; animation: fadeUp .3s ease both; }
.l-title { font-family: var(--head); font-weight: 700; font-size: 1.4rem; margin: 6px 0 12px; line-height: 1.2; }
.badge { display: inline-block; background: var(--gold-l); color: var(--gold-d); border-radius: 999px; padding: 2px 11px; font-family: 'Nunito'; font-size: .78rem; font-weight: 800; margin-right: 8px; vertical-align: middle; }
.ayah-big { position: relative; background: linear-gradient(180deg, #fffdf6, #fbf4de); border-radius: 28px; padding: 12px 16px 10px; text-align: center; margin: 10px 0; box-shadow: var(--shadow), inset 0 0 0 2px #efdca0; color: #2a2417; }
.ayah-big::before { content: ''; position: absolute; inset: 7px; border-radius: 21px; border: 1.5px dashed #e3cf86; pointer-events: none; }
.ayah-big .tl { color: var(--lapis-d); } .ayah-big .ml { color: inherit; }
.ayah-big.pre { background: linear-gradient(180deg, var(--lapis-l), #fff); box-shadow: var(--shadow), inset 0 0 0 2px #b7c4ff; } .ayah-big.pre::before { border-color: #9fb0ff; }
.ar.veiled { opacity: .55; } .veil { display: grid; place-items: center; color: var(--gold-d); padding: 14px 0; } .veil .ic { width: 46px; height: 46px; }
.listen-prompt { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0; }
.dots { display: flex; justify-content: center; gap: 10px; margin: 10px 0; } .dots i { width: 16px; height: 16px; border-radius: 50%; background: #e3d9bf; transition: .3s; } .dots i.on { background: var(--gold); transform: scale(1.15); box-shadow: 0 0 0 4px rgba(240,176,33,.25); }
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; counter-reset: opt; }
.opt { counter-increment: opt; position: relative; text-align: left; padding: 15px 16px 15px 58px; border-radius: 22px; border: 0; background: var(--surface); font-weight: 700; box-shadow: 0 0 0 2px var(--line) inset, 0 4px 0 var(--line); transition: transform .1s, box-shadow .15s, background .15s; }
.opt::before { content: counter(opt, upper-alpha); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 12px; background: var(--bg2); color: var(--muted); display: grid; place-items: center; font-family: var(--head); font-weight: 700; }
.opt:active:not(:disabled) { transform: translateY(2px); }
.opt.ar-opt { font-family: var(--ar); font-size: 1.8rem; text-align: right; line-height: 2.1; font-weight: 400; padding-left: 58px; }
.opt.sel { box-shadow: 0 0 0 3px var(--lapis) inset, 0 4px 0 var(--lapis-d); background: var(--lapis-l); } .opt.sel::before { background: var(--lapis); color: #fff; }
.opt.good { box-shadow: 0 0 0 3px var(--leaf) inset, 0 4px 0 var(--leaf-d); background: var(--leaf-l); animation: pop .35s; } .opt.good::before { background: var(--leaf); color: #fff; content: '✓'; }
.opt.bad { box-shadow: 0 0 0 3px var(--coral) inset, 0 4px 0 var(--coral-d); background: var(--coral-l); animation: shake .35s; } .opt.bad::before { background: var(--coral); color: #fff; content: '✕'; }
@keyframes pop { 50% { transform: scale(1.03); } } @keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.blank { display: inline-block; min-width: 3.4rem; border-bottom: 3px solid var(--lapis); color: var(--lapis-d); }
.answer-line { min-height: 80px; border-radius: 22px; background: var(--soft); box-shadow: inset 0 0 0 2px var(--line); margin: 12px 0; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.answer-line.good { box-shadow: inset 0 0 0 3px var(--leaf); } .answer-line.bad { box-shadow: inset 0 0 0 3px var(--coral); }
.bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.wchip-btn { font-family: var(--ar); font-size: 1.7rem; padding: 3px 15px; border-radius: 16px; border: 0; background: var(--surface); box-shadow: 0 0 0 2px var(--line) inset, 0 4px 0 var(--line); line-height: 2; transition: transform .1s; }
.wchip-btn:active:not(:disabled) { transform: translateY(2px); }
.mic-zone { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0 6px; }
.mic { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 28%, #5fd0c7, var(--teal) 62%, var(--teal-d)); box-shadow: 0 7px 0 var(--teal-d), 0 16px 26px rgba(15,139,141,.4); transition: transform .1s; }
.mic .ic { width: 42px; height: 42px; stroke-width: 2.2; } .mic:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--teal-d); }
.mic.on { background: radial-gradient(circle at 35% 28%, #ff9a8d, var(--coral) 62%, var(--coral-d)); box-shadow: 0 7px 0 var(--coral-d), 0 16px 26px rgba(239,106,91,.45); }
.mic.on::before, .mic.on::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--coral); animation: wave 1.4s ease-out infinite; } .mic.on::after { animation-delay: .7s; }
@keyframes wave { from { transform: scale(1); opacity: .6; } to { transform: scale(1.75); opacity: 0; } }
.mic-status { color: var(--muted); text-align: center; min-height: 1.4em; font-weight: 700; }
.heard { color: var(--ink); text-align: center; font-family: var(--ar); font-size: 1.4rem; direction: rtl; }
.wfb { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; margin-top: 4px; direction: rtl; }
.wchip { font-family: var(--ar); font-size: 1.8rem; line-height: 2.1; padding: 0 12px; border-radius: 14px; }
.wchip.ok { background: rgba(58,167,109,.18); color: var(--leaf-d); } .wchip.miss { background: rgba(239,106,91,.18); color: var(--coral-d); text-decoration: underline wavy var(--coral); text-underline-offset: 6px; }
.l-foot { padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); }
.l-foot:empty { display: none; }
.l-foot.result { margin: 0 12px calc(12px + env(safe-area-inset-bottom)); padding: 14px 16px 14px; border-radius: 30px; box-shadow: var(--shadow-lg); animation: sheet .3s cubic-bezier(.2,.9,.3,1) both; position: relative; }
.l-foot.result.good { background: #e6f8ee; color: var(--leaf-d); box-shadow: var(--shadow-lg), 0 0 0 3px #b9ebcd inset; } .l-foot.result.bad { background: #ffe9e5; color: var(--coral-d); box-shadow: var(--shadow-lg), 0 0 0 3px #ffc7bd inset; }
.res-head { display: flex; align-items: center; gap: 10px; } .res-head .mascot { flex: none; margin-top: -40px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.2)); }
.res-title { font-family: var(--head); font-weight: 700; font-size: 1.2rem; line-height: 1.25; flex: 1; }
.res-detail { margin: 6px 0 8px; color: var(--ink); } .res-label { font-weight: 800; } .res-ans { font-weight: 800; } .res-ans.ar { font-family: var(--ar); font-size: 1.6rem; font-weight: 400; }
.res-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.l-foot.result.bad .btn.primary { background: linear-gradient(180deg, #ff8a7a, var(--coral)); box-shadow: 0 4px 0 var(--coral-d); }
.intro, .done-screen { text-align: center; padding-top: 18px; }
.intro .mascot, .done-screen .mascot { margin: 0 auto; animation: float 3s ease-in-out infinite; }
.intro-text { font-size: 1.15rem; font-weight: 700; }
.stars.big { font-size: 2.9rem; margin: 4px 0; text-shadow: 0 4px 0 rgba(184,125,0,.22); }
.sum-grid { display: flex; gap: 10px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.sum { background: var(--surface); border-radius: 22px; padding: 10px 16px; min-width: 100px; display: flex; flex-direction: column; box-shadow: var(--shadow); } .sum b { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--teal-d); } .sum span { color: var(--muted); font-size: .8rem; font-weight: 800; }
.exam-line { margin: 6px 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.m-col { display: flex; flex-direction: column; gap: 8px; }
.m-item { text-align: left; padding: 9px 11px; border-radius: 18px; border: 0; background: var(--surface); box-shadow: 0 0 0 2px var(--line) inset, 0 3px 0 var(--line); font-size: .92rem; font-weight: 700; }
.m-item.ar-m { font-family: var(--ar); font-size: 1.35rem; text-align: right; line-height: 1.9; font-weight: 400; }
.m-item.sel { box-shadow: 0 0 0 3px var(--lapis) inset, 0 3px 0 var(--lapis-d); background: var(--lapis-l); } .m-item.linked { box-shadow: 0 0 0 3px var(--lapis) inset; }
.m-item.good { box-shadow: 0 0 0 3px var(--leaf) inset; background: var(--leaf-l); } .m-item.bad { box-shadow: 0 0 0 3px var(--coral) inset; background: var(--coral-l); }
.m-no { display: inline-flex; width: 23px; height: 23px; border-radius: 50%; background: var(--lapis); color: #fff; align-items: center; justify-content: center; font-size: .8rem; font-family: 'Nunito', sans-serif; }
.m-link { color: var(--lapis-d); font-family: 'Nunito', sans-serif; font-size: .85rem; }

@media (max-width: 430px) { .hero2-text h1 { font-size: 1.5rem; } .hero2-mascot svg { width: 92px; height: 92px; } }
@media print {
  body * { visibility: hidden; }
  #modal, #modal * { visibility: visible; }
  #modal { position: static; background: #fff; display: block; }
  .modal-actions { display: none !important; }
  html, body { background: #fff !important; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.report { text-align: left; } .report h2 { font-size: 1.2rem; } .report .karne td, .report .karne th { padding: 3px 4px; }
/* ===== Korrekturen nach der Prüfung (Design, Lesbarkeit, Ausrichtung) ===== */
:root { --r-card: 26px; --r-hero: 32px; }
html { background: #ebe1c7; }
body { background: transparent; background-image: none; }
#app { background: var(--bg); min-height: 100vh; min-height: 100dvh; }
@media (min-width: 700px) { #app { box-shadow: 0 0 0 1px var(--line), 0 0 70px rgba(31,37,64,.10); } }
#lesson { background-color: var(--bg); background-image: none; }
.page { padding-bottom: 170px; }
.nw { white-space: nowrap; }
.link { white-space: nowrap; } .block-head .link { flex: none; }

/* obere Leiste: feste Höhe, nichts gedreht, Logo und Sprachwahl auf einer Linie */
.topbar { min-height: 62px; padding: 10px 16px 8px; background: var(--bg); box-shadow: 0 10px 14px -12px rgba(31,37,64,.22); }
.brand { gap: 10px; font-size: 1.22rem; line-height: 1; }
.brand .logo { transform: none; width: 38px; height: 38px; border-radius: 13px; box-shadow: 0 3px 0 #d79a14; }
.lang-switch button { min-height: 34px; padding: 4px 16px; font-size: .9rem; }

/* untere Leiste: nur die Laterne ragt heraus, alle Beschriftungen auf einer Linie */
#tabs { grid-template-columns: repeat(5, 1fr); align-items: end; padding: 8px 6px; }
#tabs button { min-height: 56px; justify-content: flex-end; font-size: .76rem; padding: 4px 2px; }
#tabs .dock-center { transform: none; }
#tabs .dock-center .lantern { margin-top: -30px; }

/* Hinweis-Meldung oben, damit sie nichts verdeckt */
#toast { top: 76px; bottom: auto; transform: translate(-50%, -16px); }
#toast.show { transform: translate(-50%, 0); }

/* Kontrast auf farbigem Grund */
.profile-card .muted, .profile-card .small { color: rgba(255,255,255,.94); }
.hero2 .pill { background: rgba(14,28,70,.45); color: #fff; }
.hero2-text .muted-on { opacity: 1; }
.stat-tile { min-height: 92px; justify-content: center; } .stat-tile small { opacity: 1; }
.stat-tile.s-fire { color: #a8321f; } .stat-tile.s-xp { color: #7a5200; } .stat-tile.s-ayat { color: #075a5c; } .stat-tile span { font-size: .82rem; }

/* Wochen-Chips: Auswahl über Ring statt Vergrößerung, nichts springt oder wird abgeschnitten */
.week-chips { position: relative; gap: 12px; padding: 12px 16px 18px; scroll-padding: 0 16px; }
.wk-chip { width: 50px; height: 50px; font-size: 1.15rem; }
.wk-chip.sel { transform: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--mc); }
.wk-chip.sel::before { background: var(--mc); } .wk-chip.sel span { color: #fff; }
.wk-chip.full { background: var(--gold); } .wk-chip.full::before { background: var(--gold-l); } .wk-chip.full span { color: var(--gold-d); }
.wk-chip.sel.full::before { background: var(--gold); } .wk-chip.sel.full span { color: #fff; }
.wk-chip.now::after { bottom: -10px; }

/* Tageskarten und Wochenstreifen: jeder Wochentag hat eine eigene Farbe, Lerntage zeigen die wachsende Pflanze */
.day-card { border-radius: var(--r-card); }
.dc-date { width: 46px; height: 50px; color: var(--wc); background: color-mix(in srgb, var(--wc) 14%, #fff); }
.dc-ico { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--wc); color: #fff; flex: none; }
.dc-ico .ic { width: 22px; height: 22px; }
.dc-ico.plantic { background: #fff; box-shadow: inset 0 0 0 3px var(--wc); } .dc-ico.plantic svg.plant { width: 34px; height: 34px; margin-top: 4px; }
.ico-badge { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; font-style: normal; }
.ico-badge .ic { width: 12px; height: 12px; stroke-width: 3; } .ico-badge.ok { background: var(--leaf); color: #fff; } .ico-badge.lock { background: #8b8fa6; color: #fff; }
.day-card.done .dc-date { background: color-mix(in srgb, var(--wc) 14%, #fff); color: var(--wc); }
.day-card.done .dc-ico { background: var(--wc); color: #fff; } .day-card.done .dc-ico.plantic { background: #fff; }
.day-card.now { box-shadow: 0 0 0 3px var(--wc), var(--shadow); } .day-card.now .dc-date { background: var(--wc); color: #fff; } .day-card.now .dc-end { color: var(--wc); }
.day-card.locked { opacity: 1; } .day-card.locked .dc-ico { background: var(--wc); filter: grayscale(.85); opacity: .55; } .day-card.locked .dc-ico.plantic { background: #fff; } .day-card.locked .dc-date, .day-card.locked .dc-body { opacity: .6; }
.dc-body b { font-size: 1rem; line-height: 1.2; } .dc-end { min-width: 0; } .dc-end .stars { font-size: .8rem; letter-spacing: 1px; }
.ws-day { min-height: 84px; border-radius: 20px; padding: 8px 0 6px; gap: 5px; }
.ws-l { font-size: .8rem; color: var(--wc); }
.ws-day .dc-ico { width: 36px; height: 36px; } .ws-day .dc-ico .ic { width: 18px; height: 18px; } .ws-day .dc-ico.plantic svg.plant { width: 28px; height: 28px; margin-top: 3px; }
.ws-day .ico-badge { width: 16px; height: 16px; right: -3px; bottom: -3px; } .ws-day .ico-badge .ic { width: 10px; height: 10px; }
.ws-day.now { box-shadow: 0 0 0 3px var(--wc), var(--shadow); }
.ws-day.lock { opacity: 1; } .ws-day.lock .dc-ico { background: var(--wc); filter: grayscale(.85); opacity: .55; } .ws-day.lock .dc-ico.plantic { background: #fff; }

/* Antwort-Auswahl und Rückmeldung */
.opt::before { line-height: 1; font-size: 1rem; color: var(--ink); opacity: .75; }
.opt.sel::before, .opt.good::before, .opt.bad::before { opacity: 1; color: #fff; }
.wchip { line-height: 2.3; padding: 2px 12px; overflow: visible; } .wfb { padding: 4px 0 8px; }
.l-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; } .l-title .badge { margin: 0; }

/* Tabellen, Karten, Listen */
.karne td:first-child { white-space: nowrap; } .karne td:nth-child(2) { font-size: .82rem; }
@media (max-width: 480px) { .karne th:nth-child(4), .karne td:nth-child(4) { display: none; } }
.card h3 { align-items: flex-start; } .card h3 .ic { margin-top: 3px; }
.icon-btn { width: 44px; height: 44px; }
.memory-grid { max-width: 520px; margin-inline: auto; }
.paint-box svg { width: 100%; height: auto; max-height: calc(100dvh - 330px); margin: 0 auto; }
.tile { min-height: 156px; } .tile::before { opacity: .45; } .tile-ico { width: 58px; height: 58px; border-radius: 20px; } .tile-ico .ic { width: 32px; height: 32px; }
.cp-label { color: #5b6078; } .coupon.off { --h: 220; filter: grayscale(1); opacity: .72; }
.story-ar { min-width: 84px; flex: none; } .story-card.locked { opacity: 1; filter: none; } .story-card.locked .story-ar { filter: grayscale(1); opacity: .6; } .story-card.locked .story-info b { color: var(--muted); }
.badge-grid { grid-auto-rows: 1fr; } .badge-card { opacity: .85; filter: grayscale(.55); } .badge-card.on { opacity: 1; filter: none; } .badge-card b { font-size: .88rem; } .badge-card .small { font-size: .74rem; }
.medal { position: relative; }
.medal-n { position: absolute; right: -6px; bottom: -4px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: #fff; color: var(--ink); font: 700 .8rem/26px var(--head); font-style: normal; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.plant-card .stage { white-space: nowrap; }
.day-card, .quick, .reward-card, .stat-tile, .stat-card, .gal-card, .story-card, .tile, .plant-card, .ayah-card, .card, .coupon, .badge-card, .sum { border-radius: var(--r-card); }
.hero2, .week-card, .profile-card, .sura-hero, .story-head { border-radius: var(--r-hero); }

/* breite Bildschirme / kleine Fenster */
@media (min-width: 900px) { #app { max-width: 680px; } #lesson { max-width: 720px; } .l-body { padding: 16px 32px; } .ar.big { font-size: 3.1rem; } }
@media (max-height: 640px) { .hero2, .hero2-in { min-height: 210px; } #tabs .lantern { width: 52px; height: 52px; } }

/* ===== Kurzfilme ===== */
body.in-film { overflow: hidden; }
#film { position: fixed; inset: 0; z-index: 90; background: radial-gradient(900px 500px at 50% -10%, #25326b, #0d1330 70%); color: #fff; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; }
.film-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.film-top .x { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; } .film-top .x .ic { width: 22px; height: 22px; } .film-top .x.off { opacity: .45; }
.film-title { flex: 1; font-family: var(--head); font-weight: 700; font-size: 1.15rem; text-align: center; line-height: 1.2; }
.film-stage { position: relative; width: calc(100% - 28px); max-width: 640px; margin: 4px auto 0; aspect-ratio: 360 / 250; background: #000; border-radius: 26px; overflow: hidden; box-shadow: 0 22px 54px rgba(0,0,0,.55), 0 0 0 3px rgba(255,255,255,.1); }
.film-stage svg { width: 100%; height: 100%; display: block; }
.film-cap { padding: 14px 22px 4px; text-align: center; min-height: 118px; display: grid; align-items: center; } .film-cap p { font-size: 1.18rem; font-weight: 700; line-height: 1.5; margin: 0; text-wrap: balance; }
.film-dots { display: flex; justify-content: center; gap: 9px; padding: 6px 0; } .film-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); transition: all .3s; } .film-dots i.on { background: var(--gold); transform: scale(1.35); } .film-dots i.done { background: #fff; }
.film-ctl { display: flex; justify-content: center; gap: 14px; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); margin-top: auto; }
.film-ctl .btn { min-width: 70px; } .film-ctl .btn.ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; } .film-ctl .btn.primary { min-width: 120px; }
.film-end { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,15,40,.66); backdrop-filter: blur(3px); } .film-end[hidden] { display: none; }
.film-end-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--head); font-size: 1.3rem; } .film-end-card .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .film-end-card .btn { padding: 10px 16px; font-size: .95rem; }
.film-btn { margin-bottom: 12px; }
.film-chip { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: hsl(var(--h), 70%, 52%); color: #fff; margin-right: 6px; } .film-chip .ic { width: 16px; height: 16px; }
.story-state { display: inline-flex; align-items: center; }

/* ===== Profile, Erwachsenen-Modus, dunkles Design, große Schrift ===== */
body.big { font-size: 20px; }
body.mode-adult .hero2-mascot, body.mode-adult .pc-mascot, body.mode-adult .onboarding > svg { display: none; }
body.mode-adult .hero2 { background: linear-gradient(135deg, var(--teal-d), #17324a); }
.prof-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.prof-chip { border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 700 .95rem var(--head); cursor: pointer; min-height: 44px; }
.prof-chip.on { border-color: var(--teal); background: var(--teal-l); color: var(--teal-d); }
.seg { display: flex; gap: 8px; margin: 8px 0; }
.seg button { flex: 1; min-height: 46px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; font: 700 .95rem var(--head); cursor: pointer; }
.seg button.on { border-color: var(--teal); background: var(--teal-l); color: var(--teal-d); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] { color-scheme: dark; --bg: #121a24; --bg2: #19222e; --surface: #1c2733; --soft: #17212c; --ink: #eef1f6; --muted: #a6b0c2; --line: #2c3a4b; --teal-l: #123a3b; --gold-l: #3a2f10; --coral-l: #3b1d19; --leaf-l: #15301f; --lapis-l: #1a2547; --plum-l: #2a1f3d; }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #121a24; --bg2: #19222e; --surface: #1c2733; --soft: #17212c; --ink: #eef1f6; --muted: #a6b0c2; --line: #2c3a4b; --teal-l: #123a3b; --gold-l: #3a2f10; --coral-l: #3b1d19; --leaf-l: #15301f; --lapis-l: #1a2547; --plum-l: #2a1f3d; }
:root[data-theme="dark"] html, :root[data-theme="dark"] #app, :root[data-theme="dark"] .topbar { background: var(--bg); }

/* ===== Wiederholung, Ayet-Karte, Ramadan ===== */
.review-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; }
.review-card .rv-ico { width: 46px; height: 46px; border-radius: 15px; background: var(--coral-l); color: var(--coral-d); display: grid; place-items: center; flex: none; }
.review-card .rv-ico svg { width: 26px; height: 26px; }
.rv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; } .rv-body b { font-family: var(--head); }
.heat-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; } .heat-row > span { width: 92px; flex: none; font-size: .85rem; }
.heat-cells { display: flex; flex-wrap: wrap; gap: 4px; }
.heat-cells i { width: 16px; height: 16px; border-radius: 5px; background: var(--line); }
.heat-cells i.h1 { background: #ef6a5b; } .heat-cells i.h2 { background: #f4a259; } .heat-cells i.h3 { background: #f0d04a; } .heat-cells i.h4 { background: #7fcf8f; } .heat-cells i.h5 { background: #2f9d62; }

/* ===== Freunde-Duell ===== */
.t-duel { background: linear-gradient(135deg, #3b5bdb, #7c4dbd); }
.code-in { text-transform: uppercase; letter-spacing: .3em; text-align: center; font-family: var(--head); font-size: 1.3rem; margin: 8px 0; }
.duel-code { font: 800 2.6rem var(--head); letter-spacing: .18em; text-align: center; color: var(--teal-d); margin: 4px 0 8px; }
.duel-err { color: var(--coral-d); font-weight: 700; text-align: center; }
.duel-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.duel-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 12px; } .duel-bar i { display: block; height: 100%; background: var(--gold); width: 100%; }
.duel-ar { font-family: var(--ar); font-size: 2rem; line-height: 1.9; text-align: center; margin: 6px 0; }
.duel-opt:disabled { cursor: default; }
.duel-board { list-style: none; margin: 0; padding: 0; } .duel-board li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--soft); margin: 6px 0; } .duel-board li.me { background: var(--teal-l); }
.duel-board .rk { width: 28px; font: 800 1.1rem var(--head); text-align: center; } .duel-board b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .duel-board .sc { font-weight: 700; } .duel-board .pf svg { width: 20px; height: 20px; color: var(--gold-d); }

/* ===== Elif-Ba-Kurs ===== */
.t-elifba { background: linear-gradient(135deg, #b97d00, #f0b021); }
.eb-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.eb-unit { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 12px 16px; cursor: pointer; color: var(--ink); font: inherit; }
.eb-unit.done { border-color: var(--leaf); background: var(--leaf-l); } .eb-unit.lock { opacity: .55; }
.eb-n { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-l); color: var(--gold-d); display: grid; place-items: center; font: 800 1.1rem var(--head); flex: none; }
.eb-t { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .eb-t b { font-family: var(--head); } .eb-t-ar { font-size: 1.7rem; line-height: 1.6; }
.eb-s { flex: none; color: var(--gold-d); } .eb-s svg { width: 22px; height: 22px; } .eb-s .stars { letter-spacing: 1px; }
.eb-run { min-height: 70vh; display: flex; flex-direction: column; }
.eb-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; } .eb-top .progress { flex: 1; }
.eb-body { flex: 1; } .eb-foot { position: sticky; bottom: 0; padding: 12px 0 18px; background: linear-gradient(transparent, var(--bg) 35%); }
.eb-huge { font-family: var(--ar); font-size: 6.5rem; line-height: 1.5; display: block; text-align: center; color: var(--teal-d); }
.eb-big { font-family: var(--ar); font-size: 3.4rem; line-height: 1.6; }
.eb-qbig { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 14px; }
.eb-play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: grid; place-items: center; cursor: pointer; } .eb-play svg { width: 24px; height: 24px; }
.eb-opts { display: grid; gap: 10px; } .eb-opts.glyphs { grid-template-columns: 1fr 1fr; } .eb-opt-ar { font-family: var(--ar); font-size: 2.4rem; line-height: 1.5; }
.eb-letter { text-align: center; } .eb-letter h2 { margin: 0 0 8px; } .eb-name-ar { font-family: var(--ar); color: var(--muted); font-size: 1.3rem; }
.eb-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 8px 0; } .eb-btns .btn svg { width: 20px; height: 20px; }
.eb-sound { margin: 6px 0; }
.eb-forms { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.eb-form { flex: 1; max-width: 90px; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; font: inherit; color: var(--ink); } button.eb-form { cursor: pointer; }
.eb-form-ar { font-family: var(--ar); font-size: 2.2rem; line-height: 1.6; } .eb-form small { color: var(--muted); font-size: .75rem; }
.eb-word { display: inline-flex; align-items: center; gap: 12px; background: var(--gold-l); border: 0; border-radius: 18px; padding: 10px 18px; cursor: pointer; font: inherit; color: var(--ink); margin-top: 8px; } .eb-word svg { width: 20px; height: 20px; color: var(--gold-d); }
.eb-word-ar { font-family: var(--ar); font-size: 1.9rem; }
.eb-forms-demo { font-family: var(--ar); text-align: center; }
.eb-result { text-align: center; padding-top: 30px; }
.eb-top .x { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; } .eb-top .x svg { width: 20px; height: 20px; }
.eb-t-ar { text-align: left; }
.eb-huge { margin-bottom: 22px; }

/* ===== Entdecken-Hub, Suche, Tagesziele, Gebet, Geschenke, PIN ===== */
.search { position: relative; margin: 6px 0 12px; } .search .text-in { padding-left: 46px; } .search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; } .search-ico svg { width: 22px; height: 22px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; } .chip-row:empty { display: none; } button.chip { cursor: pointer; border: 0; font: inherit; font-weight: 700; }
.hub-group { margin: 18px 0 6px; } .hub-h { font-family: var(--head); font-size: 1.15rem; margin: 0 0 10px; color: var(--ink); } .hub-group[hidden], .tile[hidden] { display: none; }
.t-salah { background: linear-gradient(135deg, #0a6466, #2bb3a6); } .t-gift { background: linear-gradient(135deg, #c2432f, #f0b021); }
.sec-h { font-family: var(--head); font-size: 1.2rem; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); color: var(--teal-d); }
.quest-card .quest { display: flex; align-items: center; gap: 12px; padding: 8px 0; } .q-ck { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; } .q-ck svg { width: 18px; height: 18px; }
.quest.done .q-ck { background: var(--leaf); border-color: var(--leaf); } .q-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; line-height: 1.25; } .q-all { text-align: center; color: var(--leaf-d); margin: 8px 0 0; }
.quest-card .chip svg { width: 16px; height: 16px; vertical-align: -3px; }
.pin-in { text-align: center; letter-spacing: .5em; font-family: var(--head); font-size: 1.4rem; margin: 8px 0; }
.flip { display: inline-grid; transform: scaleX(-1); }
.sl-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.sl-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 20px; padding: 14px 16px; color: var(--ink); font: inherit; cursor: pointer; }
.sl-ico { width: 46px; height: 46px; border-radius: 15px; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; flex: none; } .sl-ico svg { width: 26px; height: 26px; }
.sl-ct { flex: 1; display: flex; flex-direction: column; line-height: 1.25; } .sl-ct b { font-family: var(--head); }
.sl-steps { list-style: none; margin: 12px 0; padding: 0; } .sl-steps > li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); } .sl-steps > li > div { flex: 1; min-width: 0; } .sl-steps p { margin: 4px 0 8px; }
.sl-n { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-l); color: var(--gold-d); display: grid; place-items: center; font: 800 1rem var(--head); flex: none; }
.sl-phrase { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 10px 12px; margin: 8px 0; }
.sl-play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; } .sl-play svg { width: 22px; height: 22px; }
.sl-txt { flex: 1; min-width: 0; } .sl-ar { font-family: var(--ar); font-size: 1.6rem; line-height: 2; text-align: right; } .sl-tl { font-weight: 700; color: var(--teal-d); margin: 2px 0; }
.sl-ayah { display: flex; gap: 10px; align-items: flex-start; } .sl-ayah .sl-phrase { flex: 1; } .sl-ayah > .sl-n { margin-top: 18px; }
.sl-times { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; } .sl-time { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 12px 16px; } .sl-time b { flex: 1; font-family: var(--head); } .sl-time-ar { font-family: var(--ar); font-size: 1.6rem; }
.sl-note { display: flex; gap: 8px; align-items: flex-start; } .sl-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--coral); }
.gift-list { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.gift { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 22px; padding: 14px 16px; color: var(--ink); font: inherit; cursor: pointer; }
.gift.on { border-color: hsl(var(--h) 70% 55%); background: hsl(var(--h) 90% 96%); }
.gift-ico { width: 54px; height: 54px; border-radius: 18px; background: var(--line); color: var(--muted); display: grid; place-items: center; flex: none; } .gift-ico svg { width: 30px; height: 30px; }
.gift.on .gift-ico { background: hsl(var(--h) 75% 55%); color: #fff; }
.gift-t { flex: 1; display: flex; flex-direction: column; gap: 3px; line-height: 1.25; } .gift-t b { font-family: var(--head); font-size: 1.1rem; } .gift-t .bar { margin: 4px 0; }
.gift-how { margin: 6px 0 0; padding-left: 20px; } .gift-code { font: 800 1.5rem var(--head); letter-spacing: .12em; margin: 10px 0; color: var(--teal-d); }
:root[data-theme="dark"] .gift.on { background: var(--surface); }
.hub-group .tile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 120px; }

/* ===== Lernwege (Plan), Einstufung, Elif-Ba überarbeitet ===== */
.path-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 18px; }
.path-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 2px solid var(--line); background: var(--surface); border-radius: 20px; color: var(--ink); font: inherit; cursor: pointer; text-align: center; min-height: 104px; }
.path-tab b { font-family: var(--head); font-size: 1rem; line-height: 1.1; } .path-tab small { color: var(--muted); font-size: .72rem; line-height: 1.15; }
.path-tab .pt-ico { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 2px; } .path-tab .pt-ico svg { width: 40px; height: 40px; }
.path-tab.on { border-color: var(--teal); background: var(--teal-l); } .path-tab.on b { color: var(--teal-d); }
.lvl-pick { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; } .lvl-pick .big-choice { width: 100%; justify-content: flex-start; text-align: left; }
.eb-place { margin: 10px 0 14px; border: 2px dashed var(--gold); background: var(--gold-l); }
.eb-info { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 10px 14px; margin: 10px 0; text-align: left; } .eb-info-l { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .eb-info b { font-family: var(--head); font-size: 1.15rem; color: var(--teal-d); }
.eb-form.wide { max-width: none; }
.res-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #fff; flex: none; } .res-ico svg { width: 26px; height: 26px; }
.l-foot.result.bad .res-ico { background: var(--coral); }
body.mode-adult .res-head > svg, body.mode-adult .done-screen > svg { display: none; }
.eb-body { padding-bottom: 20px; }

/* ===== Embleme und Erwachsenen-Darstellung ===== */
.tile-ico.has-emb { background: none; width: 64px; height: 64px; } .tile-ico.has-emb svg { width: 64px; height: 64px; }
.review-card .rv-ico:has(svg) { background: none; }
.review-card .rv-ico svg { width: 46px; height: 46px; }
body.mode-adult .tile { background: linear-gradient(135deg, #12303a, #1d4a52) !important; color: #f3e9d0; }
body.mode-adult .tile .tile-ico { color: #c9a24a; }
body.mode-adult .tile::before { opacity: .25; }
body.mode-adult .hero2 .sky svg { width: 100%; height: 100%; }

/* ===== Embleme und Erwachsenen-Darstellung ===== */
.tile-ico.has-emb { background: none; width: 64px; height: 64px; } .tile-ico.has-emb svg { width: 64px; height: 64px; }
.review-card .rv-ico:has(svg) { background: none; }
.review-card .rv-ico svg { width: 46px; height: 46px; }
body.mode-adult .tile { background: linear-gradient(135deg, #12303a, #1d4a52) !important; color: #f3e9d0; }
body.mode-adult .tile .tile-ico { color: #c9a24a; }
body.mode-adult .tile::before { opacity: .25; }
body.mode-adult .hero2 .sky svg { width: 100%; height: 100%; }
body.mode-adult .stat-tile, body.mode-adult .stat-card { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
body.mode-adult .stat-tile svg, body.mode-adult .stat-card svg { color: #b08a2e; }
body.mode-adult .cta { background: #c9a24a; color: #12303a; box-shadow: 0 4px 0 #8f6f27; }
body.mode-adult .hero2 { box-shadow: none; }
.btn.primary { background: linear-gradient(180deg, var(--teal), var(--teal-d)); }

/* ===== Dunkelmodus: Feinschliff ===== */
:root[data-theme="dark"] #tabs button.on { color: #7fe3dc; }
:root[data-theme="dark"] #tabs button.on .ico { color: #7fe3dc; }
:root[data-theme="dark"] .ayah-big { color: var(--ink); }
:root[data-theme="dark"] .ayah-big .tl { color: #a9b8ff; }
:root[data-theme="dark"] .back-link { color: #a9b8ff; }
:root[data-theme="dark"] .badge { color: #f2c14e; }
:root[data-theme="dark"] .basmala { color: #f2c14e; }
:root[data-theme="dark"] .big-choice.on { color: #7fe3dc; }
:root[data-theme="dark"] .blank { color: #a9b8ff; }
:root[data-theme="dark"] .brand { color: #7fe3dc; }
:root[data-theme="dark"] .btn { color: #7fe3dc; }
:root[data-theme="dark"] .btn.danger { color: #ff9d8f; }
:root[data-theme="dark"] .cert-ar { color: #f2c14e; }
:root[data-theme="dark"] .chip { color: #a9b8ff; }
:root[data-theme="dark"] .chip.alt { color: #f2c14e; }
:root[data-theme="dark"] .cp-label { color: var(--muted); }
:root[data-theme="dark"] .cp-used { color: #7fdba0; }
:root[data-theme="dark"] .day-card.done .dc-date { color: #f2c14e; }
:root[data-theme="dark"] .duel-board .pf svg { color: #f2c14e; }
:root[data-theme="dark"] .duel-code { color: #7fe3dc; }
:root[data-theme="dark"] .duel-err { color: #ff9d8f; }
:root[data-theme="dark"] .eb-huge { color: #7fe3dc; }
:root[data-theme="dark"] .eb-info b { color: #7fe3dc; }
:root[data-theme="dark"] .eb-n { color: #f2c14e; }
:root[data-theme="dark"] .eb-s { color: #f2c14e; }
:root[data-theme="dark"] .eb-word svg { color: #f2c14e; }
:root[data-theme="dark"] .gift-code { color: #7fe3dc; }
:root[data-theme="dark"] .icon-btn { color: #a9b8ff; }
:root[data-theme="dark"] .karne .off { color: #3a4a5c; }
:root[data-theme="dark"] .l-foot.result.bad { color: #ff9d8f; }
:root[data-theme="dark"] .l-foot.result.good { color: #7fdba0; }
:root[data-theme="dark"] .l-xp { color: #a9b8ff; }
:root[data-theme="dark"] .link { color: #7fe3dc; }
:root[data-theme="dark"] .m-link { color: #a9b8ff; }
:root[data-theme="dark"] .mcard .front.ar { color: #7fe3dc; }
:root[data-theme="dark"] .path-tab.on b { color: #7fe3dc; }
:root[data-theme="dark"] .prof-chip.on { color: #7fe3dc; }
:root[data-theme="dark"] .q-all { color: #7fdba0; }
:root[data-theme="dark"] .review-card .rv-ico { color: #ff9d8f; }
:root[data-theme="dark"] .sec-h { color: #7fe3dc; }
:root[data-theme="dark"] .seg button.on { color: #7fe3dc; }
:root[data-theme="dark"] .sl-ico { color: #7fe3dc; }
:root[data-theme="dark"] .sl-n { color: #f2c14e; }
:root[data-theme="dark"] .sl-tl { color: #7fe3dc; }
:root[data-theme="dark"] .stars .off { color: #3a4a5c; }
:root[data-theme="dark"] .stat-tile.s-ayat { color: #7fe3dc; }
:root[data-theme="dark"] .stat-tile.s-fire { color: #ff9d8f; }
:root[data-theme="dark"] .stat-tile.s-xp { color: #f2c14e; }
:root[data-theme="dark"] .sum b { color: #7fe3dc; }
:root[data-theme="dark"] .tag.ok { color: #7fdba0; }
:root[data-theme="dark"] .tl { color: #a9b8ff; }
:root[data-theme="dark"] .veil { color: #f2c14e; }
:root[data-theme="dark"] .wchip.miss { color: #ff9d8f; }
:root[data-theme="dark"] .wchip.ok { color: #7fdba0; }
:root[data-theme="dark"] .wk-chip { color: #a9b8ff; }
:root[data-theme="dark"] .wk-chip.full span { color: #f2c14e; }
:root[data-theme="dark"] .ws-day.now { color: #7fe3dc; }
:root[data-theme="dark"] .reward-card { background: linear-gradient(135deg, hsl(var(--h, 40), 35%, 20%), var(--surface)); }
:root[data-theme="dark"] .reward-card b, .reward-card span { color: var(--ink); }
:root[data-theme="dark"] .coupon { background: linear-gradient(90deg, hsl(var(--h), 40%, 24%) 0 92px, var(--surface) 92px); }
:root[data-theme="dark"] .coupon.off { filter: none; opacity: .8; background: var(--surface); } .coupon.off * { color: var(--muted); }
:root[data-theme="dark"] .plant-card { background: linear-gradient(180deg, hsl(var(--h), 30%, 22%), var(--surface) 62%); }
:root[data-theme="dark"] .plant-card .stage { color: #fff; background: hsl(var(--h), 40%, 32%); }
:root[data-theme="dark"] #tabs { background: rgba(28,39,51,.94); }
:root[data-theme="dark"] #tabs button.on { background: #1d4a52; }
:root[data-theme="dark"] .chip { background: var(--lapis-l); } .badge { background: var(--gold-l); }
:root[data-theme="dark"] .topbar, .page-head { color: var(--ink); }
:root[data-theme="dark"] .search .text-in, .text-in, .select { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .btn { background: var(--surface); }
:root[data-theme="dark"] .opt { background: var(--surface); color: var(--ink); }
@media (prefers-color-scheme: dark) {
:root[data-theme="auto"] #tabs button.on { color: #7fe3dc; }
:root[data-theme="auto"] #tabs button.on .ico { color: #7fe3dc; }
:root[data-theme="auto"] .ayah-big { color: var(--ink); }
:root[data-theme="auto"] .ayah-big .tl { color: #a9b8ff; }
:root[data-theme="auto"] .back-link { color: #a9b8ff; }
:root[data-theme="auto"] .badge { color: #f2c14e; }
:root[data-theme="auto"] .basmala { color: #f2c14e; }
:root[data-theme="auto"] .big-choice.on { color: #7fe3dc; }
:root[data-theme="auto"] .blank { color: #a9b8ff; }
:root[data-theme="auto"] .brand { color: #7fe3dc; }
:root[data-theme="auto"] .btn { color: #7fe3dc; }
:root[data-theme="auto"] .btn.danger { color: #ff9d8f; }
:root[data-theme="auto"] .cert-ar { color: #f2c14e; }
:root[data-theme="auto"] .chip { color: #a9b8ff; }
:root[data-theme="auto"] .chip.alt { color: #f2c14e; }
:root[data-theme="auto"] .cp-label { color: var(--muted); }
:root[data-theme="auto"] .cp-used { color: #7fdba0; }
:root[data-theme="auto"] .day-card.done .dc-date { color: #f2c14e; }
:root[data-theme="auto"] .duel-board .pf svg { color: #f2c14e; }
:root[data-theme="auto"] .duel-code { color: #7fe3dc; }
:root[data-theme="auto"] .duel-err { color: #ff9d8f; }
:root[data-theme="auto"] .eb-huge { color: #7fe3dc; }
:root[data-theme="auto"] .eb-info b { color: #7fe3dc; }
:root[data-theme="auto"] .eb-n { color: #f2c14e; }
:root[data-theme="auto"] .eb-s { color: #f2c14e; }
:root[data-theme="auto"] .eb-word svg { color: #f2c14e; }
:root[data-theme="auto"] .gift-code { color: #7fe3dc; }
:root[data-theme="auto"] .icon-btn { color: #a9b8ff; }
:root[data-theme="auto"] .karne .off { color: #3a4a5c; }
:root[data-theme="auto"] .l-foot.result.bad { color: #ff9d8f; }
:root[data-theme="auto"] .l-foot.result.good { color: #7fdba0; }
:root[data-theme="auto"] .l-xp { color: #a9b8ff; }
:root[data-theme="auto"] .link { color: #7fe3dc; }
:root[data-theme="auto"] .m-link { color: #a9b8ff; }
:root[data-theme="auto"] .mcard .front.ar { color: #7fe3dc; }
:root[data-theme="auto"] .path-tab.on b { color: #7fe3dc; }
:root[data-theme="auto"] .prof-chip.on { color: #7fe3dc; }
:root[data-theme="auto"] .q-all { color: #7fdba0; }
:root[data-theme="auto"] .review-card .rv-ico { color: #ff9d8f; }
:root[data-theme="auto"] .sec-h { color: #7fe3dc; }
:root[data-theme="auto"] .seg button.on { color: #7fe3dc; }
:root[data-theme="auto"] .sl-ico { color: #7fe3dc; }
:root[data-theme="auto"] .sl-n { color: #f2c14e; }
:root[data-theme="auto"] .sl-tl { color: #7fe3dc; }
:root[data-theme="auto"] .stars .off { color: #3a4a5c; }
:root[data-theme="auto"] .stat-tile.s-ayat { color: #7fe3dc; }
:root[data-theme="auto"] .stat-tile.s-fire { color: #ff9d8f; }
:root[data-theme="auto"] .stat-tile.s-xp { color: #f2c14e; }
:root[data-theme="auto"] .sum b { color: #7fe3dc; }
:root[data-theme="auto"] .tag.ok { color: #7fdba0; }
:root[data-theme="auto"] .tl { color: #a9b8ff; }
:root[data-theme="auto"] .veil { color: #f2c14e; }
:root[data-theme="auto"] .wchip.miss { color: #ff9d8f; }
:root[data-theme="auto"] .wchip.ok { color: #7fdba0; }
:root[data-theme="auto"] .wk-chip { color: #a9b8ff; }
:root[data-theme="auto"] .wk-chip.full span { color: #f2c14e; }
:root[data-theme="auto"] .ws-day.now { color: #7fe3dc; }
:root[data-theme="auto"] .reward-card { background: linear-gradient(135deg, hsl(var(--h, 40), 35%, 20%), var(--surface)); }
:root[data-theme="auto"] .reward-card b, .reward-card span { color: var(--ink); }
:root[data-theme="auto"] .coupon { background: linear-gradient(90deg, hsl(var(--h), 40%, 24%) 0 92px, var(--surface) 92px); }
:root[data-theme="auto"] .coupon.off { filter: none; opacity: .8; background: var(--surface); } .coupon.off * { color: var(--muted); }
:root[data-theme="auto"] .plant-card { background: linear-gradient(180deg, hsl(var(--h), 30%, 22%), var(--surface) 62%); }
:root[data-theme="auto"] .plant-card .stage { color: #fff; background: hsl(var(--h), 40%, 32%); }
:root[data-theme="auto"] #tabs { background: rgba(28,39,51,.94); }
:root[data-theme="auto"] #tabs button.on { background: #1d4a52; }
:root[data-theme="auto"] .chip { background: var(--lapis-l); } .badge { background: var(--gold-l); }
:root[data-theme="auto"] .topbar, .page-head { color: var(--ink); }
:root[data-theme="auto"] .search .text-in, .text-in, .select { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="auto"] .btn { background: var(--surface); }
:root[data-theme="auto"] .opt { background: var(--surface); color: var(--ink); }
}

/* ===== Erwachsenen-Modus: ruhige Farben ===== */
body.mode-adult [style*="--wc"] { --wc: #1d4a52 !important; }
body.mode-adult [style*="--h:"], body.mode-adult [style*="--h :"] { --h: 190 !important; }
body.mode-adult .quick, body.mode-adult .q-paint, body.mode-adult .q-story, body.mode-adult .q-game { background: linear-gradient(135deg, #12303a, #1d4a52); color: #f3e9d0; }
body.mode-adult .sura-hero { background: linear-gradient(135deg, #12303a, #1d4a52); }
body.mode-adult .plant-card .plant-art, body.mode-adult .dc-ico svg, body.mode-adult .ws-c svg { filter: saturate(.35); }
body.mode-adult .eb-place { background: var(--surface); border-color: #c9a24a; }
body.mode-adult .gift.on, body.mode-adult .coupon { background: var(--surface); }
body.mode-adult .wk-chip { filter: saturate(.4); }
body.mode-adult .onboarding > svg { display: none; }

/* ===== Bedienbarkeit ===== */
.lang-switch button, .back-link, .link { min-height: 44px; }
.stat-grid { grid-template-columns: repeat(2, 1fr); }
.me-seg { margin: 14px 0 6px; } .me-sec[hidden] { display: none; }

/* ===== Dunkelmodus: Zusatz ===== */
:root[data-theme="dark"] .ayah-big, :root[data-theme="dark"] .ayah-big.daily, :root[data-theme="dark"] .lesson-box { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .ayah-big .ar, :root[data-theme="dark"] .ayah-big .ml { color: var(--ink); }
:root[data-theme="dark"] #tabs .dock-center { color: #f2c14e; }
:root[data-theme="dark"] .mcard .front, :root[data-theme="dark"] .mcard .back { background: var(--surface); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .modal-card { background: var(--surface); color: var(--ink); }
@media (prefers-color-scheme: dark) {
:root[data-theme="auto"] .ayah-big, :root[data-theme="auto"] .ayah-big.daily, :root[data-theme="auto"] .lesson-box { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="auto"] .ayah-big .ar, :root[data-theme="auto"] .ayah-big .ml { color: var(--ink); }
:root[data-theme="auto"] #tabs .dock-center { color: #f2c14e; }
:root[data-theme="auto"] .mcard .front, :root[data-theme="auto"] .mcard .back { background: var(--surface); }
:root[data-theme="auto"] .card, :root[data-theme="auto"] .modal-card { background: var(--surface); color: var(--ink); }
}

/* ===== Start-Assistent, Avatare, Farbwelt je Geschlecht ===== */
body.g-f { --teal: #7c4dbd; --teal-d: #55308f; --teal-l: #efe5fb; --teal-2: #a47ae6; --mc: #7c4dbd; --mc-d: #55308f; --mc-2: #a47ae6; }
body.g-f .btn.primary { background: linear-gradient(180deg, #7c4dbd, #55308f); }
:root[data-theme="dark"] body.g-f, body.g-f { }
.onboarding { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: 24px; text-align: center; }
.ob-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 6px; }
.ob-top > span { width: 44px; } .ob-back { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; } .ob-back svg { width: 22px; height: 22px; }
.ob-dots { display: flex; gap: 8px; } .ob-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: all .25s; } .ob-dots i.on { width: 26px; border-radius: 6px; background: var(--teal); } .ob-dots i.done { background: var(--teal-2); }
.ob-body { flex: 1; padding-top: 8px; } .ob-body h1 { margin: 6px 0; } .ob-hero { display: grid; place-items: center; margin: 8px 0 4px; } .ob-hero svg { width: 120px; height: 120px; }
.ob-who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.ob-card { border: 2px solid var(--line); background: var(--surface); border-radius: 26px; padding: 14px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); font: inherit; transition: transform .15s, border-color .15s; }
.ob-card b { font-family: var(--head); font-size: 1.1rem; } .ob-card.on { border-color: var(--teal); background: var(--teal-l); box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.ob-av { display: grid; place-items: center; border-radius: 50%; overflow: hidden; } .ob-av svg { display: block; } .ob-av.big svg { width: 120px; height: 120px; }
.ob-hello { display: grid; place-items: center; margin: 14px 0 8px; }
.ob-lvl { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 22px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.ob-lvl.on { border-color: var(--teal); background: var(--teal-l); } .ob-lvl-ico { width: 52px; height: 52px; display: grid; place-items: center; flex: none; } .ob-lvl-ico svg { width: 52px; height: 52px; }
.ob-lvl-t { display: flex; flex-direction: column; line-height: 1.25; } .ob-lvl-t b { font-family: var(--head); }
.top-av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); padding: 0; overflow: hidden; background: var(--surface); cursor: pointer; flex: none; } .top-av svg { width: 100%; height: 100%; display: block; }
.topbar { gap: 10px; } .topbar .brand { flex: 1; }
.pc-avatar { flex: none; border-radius: 50%; overflow: hidden; width: 92px; height: 92px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
body.mode-adult .pc-mascot, body.mode-adult .onboarding > svg { display: none; }

/* ===== Kleine Anzeige für Serie und Tagesziele (Kopfleiste) ===== */
.top-goal { display: flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px 4px 8px; color: var(--ink); font: 700 .9rem var(--head); cursor: pointer; min-height: 40px; }
.top-goal .tg-flame { display: flex; align-items: center; gap: 2px; color: var(--coral-d); } .top-goal .tg-flame svg { width: 18px; height: 18px; } .top-goal .tg-ring { width: 24px; height: 24px; }
#fVoice { display: none !important; }
.stat-grid { grid-template-columns: repeat(3, 1fr); }

.mini-stats { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .85rem; }
.mini-stats li { display: inline-flex; align-items: center; gap: 4px; } .mini-stats svg { width: 16px; height: 16px; } .mini-stats b { color: var(--ink); font-family: var(--head); }
.top-goal .tg-xp { display: flex; align-items: center; gap: 2px; color: var(--gold-d); } .top-goal .tg-xp svg { width: 16px; height: 16px; }
@media (max-width: 380px) { .top-goal .tg-xp { display: none; } }

/* Lernweg-Auswahl auf der Startseite */
.path-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.path-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; min-height: 96px; }
.path-card.on { border-color: var(--teal); box-shadow: 0 6px 18px rgba(15, 139, 141, .18); }
.path-card .pc-pic { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 16px; background: var(--teal-l); display: grid; place-items: center; overflow: hidden; }
.path-card .pc-pic img { width: 100%; height: 100%; object-fit: cover; }
.path-card .pc-pic svg { width: 76px; height: 76px; }
.path-card .pc-txt { display: grid; gap: 2px; } .path-card .pc-txt b { font-size: 1.15rem; } .path-card .pc-txt .small { color: var(--muted); }
@media (min-width: 640px) { .path-cards { grid-template-columns: repeat(3, 1fr); } .path-card { flex-direction: column; text-align: center; } }

/* Hochwertige Illustrationen (img/ui): als Bildkarte auf Sand */
.ui-pic { display: block; object-fit: cover; max-width: 100%; height: auto; border-radius: 22%; background: #fbf6ea; box-shadow: 0 6px 14px rgba(18, 48, 58, .22); }
.ui-photo { object-fit: cover; border-radius: 22%; }
img.plant { width: 84px; height: 84px; object-fit: cover; border-radius: 24%; background: #fbf6ea; box-shadow: 0 4px 10px rgba(60, 40, 20, .18); }
.plant-card .plant-art { height: 96px; } .plant-card .plant-art img.plant { width: 92px; height: 92px; } .plant-card.big .plant-art { height: 112px; } .plant-card.big .plant-art img.plant { width: 104px; height: 104px; }
.tile-ico.has-emb { width: 92px; height: 92px; top: 10px; right: 10px; } .tile-ico.has-emb .ui-pic { width: 88px; height: 88px; border: 2px solid rgba(240, 176, 33, .7); }
.quick .ui-pic { width: 64px; height: 64px; }
.path-tab .pt-ico { width: 46px; height: 46px; } .path-tab .pt-ico .ui-pic { width: 46px; height: 46px; box-shadow: 0 2px 6px rgba(18, 48, 58, .2); }
.path-card .pc-pic { flex: 0 0 96px; width: 96px; height: 96px; background: none; overflow: visible; } .path-card .pc-pic .ui-pic { width: 100%; height: 100%; }
.dc-ico img.plant { width: 34px; height: 34px; box-shadow: none; }

.sub-head, .page-head { position: relative; } .sub-head .sub-pic, .page-head .sub-pic { position: absolute; right: 0; top: 0; width: 76px; height: 76px; border: 2px solid rgba(240, 176, 33, .55); }
.sub-head h1, .page-head h1 { padding-right: 86px; }

/* Start-Symbole und Avatare als hochwertige Bilder */
.avatar-img { display: block; border-radius: 50%; object-fit: cover; background: #fbf6ea; box-shadow: 0 3px 8px rgba(18, 48, 58, .2); }
.ob-hero .ob-logo { width: 144px; height: 144px; border-radius: 28px; box-shadow: 0 10px 24px rgba(18, 48, 58, .28); }
.ob-lvl-ico .ui-pic { width: 60px; height: 60px; } .ob-lvl-ico { width: 60px; height: 60px; display: grid; place-items: center; }
.brand .logo .brand-logo { width: 30px; height: 30px; border-radius: 8px; display: block; box-shadow: none; }
.t-know { background: linear-gradient(135deg, #1f7a4d, #56b97a); }

.wi-th { flex: 0 0 56px; width: 56px !important; height: 56px !important; border-radius: 16px; }
.wi-hero { display: flex; justify-content: center; margin: 6px 0 12px; } .wi-big { width: min(280px, 80%) !important; height: auto !important; border-radius: 26px; }

.medal.bd { background: none !important; box-shadow: none !important; } .medal.bd img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 22%; } .medal.bd.lock img { filter: grayscale(1) opacity(.42); }
.coupon .cp-ico.has-img, .cp-ico.big.has-img { background: none; box-shadow: none; overflow: hidden; border-radius: 18px; } .coupon .cp-ico.has-img img { width: 62px; height: 62px; object-fit: contain; } .cp-ico.big.has-img { width: 104px; height: 104px; } .cp-ico.big.has-img img { width: 100%; height: 100%; object-fit: contain; }
.reward-card .rw-img { width: 52px; height: 52px; flex: none; object-fit: contain; border-radius: 14px; }
