@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&family=Amiri:wght@400;700&display=swap');
:root { --gold: #fbbf24; --bg: #020617; --card: rgba(255,255,255,0.03); --border: rgba(255,255,255,0.08); --header-h: 70px; --emerald: #10b981; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* HEADER */
.header-wrap { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: rgba(2,6,23,0.98); backdrop-filter: blur(20px); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; z-index: 5000; border-bottom: 1px solid var(--border); }
.logo-area { font-weight: 900; font-size: 1.1rem; text-transform: uppercase; color: #fff; text-decoration: none; }
#menuOverlay { position: fixed; inset: 0; z-index: 6000; background: rgba(0,0,0,0.98); display: none; backdrop-filter: blur(20px); }
#menuOverlay.active { display: block; }
.menu-side { position: absolute; right: 0; top: 0; bottom: 0; width: 280px; background: #0c1322; padding: 30px; border-left: 1px solid var(--border); }
.menu-btn { width: 100%; text-align: left; padding: 15px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: #fff; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }

main { padding: 95px 15px 140px; width: 100%; max-width: 800px; margin: 0 auto; }

/* SEARCH */
.search-container { display: flex; gap: 10px; margin-bottom: 20px; position: relative; z-index: 1000; }
.search-input { flex-grow: 1; height: 55px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 18px; padding: 0 20px; color: #fff; font-weight: 700; outline: none; }
.gps-btn { width: 55px; height: 55px; background: var(--gold); color: #000; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 20px; border: none; cursor: pointer; }
#suggestList { position: absolute; top: 60px; left: 0; right: 65px; background: #0c1322; border: 1px solid var(--border); border-radius: 15px; z-index: 2000; list-style: none; overflow: hidden; display: none; }
#suggestList.active { display: block; }
#suggestList li { padding: 15px 20px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }

/* DASHBOARD & MOND */
#page-dash .dash-hero { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 25px; margin-bottom: 20px; position: relative; }
#page-dash .dash-title-row { display: flex; align-items: center; gap: 15px; margin-bottom: 5px; }
#page-dash .dash-title { font-size: 2.3rem; font-weight: 900; color: var(--gold); line-height: 1.1; margin: 0; }

/* WICHTIG: DER LADE-KREISEL */
.moon-loader { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.1); border-top: 2px solid var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#page-dash .moon-widget { display: flex; flex-direction: column; align-items: center; margin-top: 5px; min-width: 45px; }
#page-dash .moon-icon { font-size: 16px; margin-bottom: 4px; color: rgba(255,255,255,0.8); transition: opacity 0.2s; }
#page-dash .moon-pct { font-size: 10px; font-weight: 900; color: var(--gold); min-height: 14px; display: flex; align-items: center; justify-content: center; }
#page-dash .dash-city { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 6px; }

#page-dash .prayer-grid { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 8px !important; margin-top: 25px; }
#page-dash .p-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 16px; padding: 15px 2px; text-align: center; }
#page-dash .p-card.active { border-color: var(--gold); background: rgba(251,191,36,0.1); }

/* QURAN / READER */
#page-quran .q-item { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; display: flex; align-items: center; margin-bottom: 10px; cursor: pointer; }
#page-quran .q-item.has-bm { border-color: var(--gold); background: rgba(251,191,36,0.05); }
#page-quran .q-num { width: 42px; height: 42px; background: rgba(251,191,36,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 900; margin-right: 15px; }
#page-reader .ayah-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; margin-bottom: 15px; text-align: center; position: relative; }
#page-reader .ayah-ar { font-family: 'Amiri', serif; font-size: 1.6rem; line-height: 2.3; margin-bottom: 10px; }
#page-reader .ayah-de { color: rgba(255,255,255,0.4); font-size: 13px; font-style: italic; border-top: 1px solid var(--border); padding-top: 15px; margin-top: 10px; }
.ayah-active { border-color: var(--emerald) !important; background: rgba(16, 185, 129, 0.08) !important; }
.bookmark-btn { position: absolute; top: 15px; right: 15px; font-size: 18px; color: rgba(255,255,255,0.1); cursor: pointer; }
.bookmark-btn.active { color: var(--gold); opacity: 1; }

#globalAudioPlayer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 4000; background: #000 !important; border-top: 1px solid var(--border); padding: 15px 20px 30px; display: flex; flex-direction: column; gap: 10px; }
#progressFill { height: 100%; background: var(--gold); width: 0%; }

/* COOKIE & TABS */
#cookieBanner { position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 110000; background: rgba(10,10,10,0.95); border: 1px solid var(--border); border-radius: 20px; padding: 25px; display: none; backdrop-filter: blur(20px); }
.tab-box { display: flex; background: rgba(255,255,255,0.03); padding: 5px; border-radius: 15px; height: 55px; margin-bottom: 20px; }
.tab-btn { flex: 1; border-radius: 12px; border: none; font-weight: 900; text-transform: uppercase; font-size: 11px; cursor: pointer; transition: 0.2s; }
.tab-btn.active { background: var(--gold); color: #000; }
.tab-btn.inactive { color: rgba(255,255,255,0.3); background: transparent; }
