/* Style/style.css */

/* =========================================
   Base
   ========================================= */
* { box-sizing: border-box; }
html, body { height: 100%; }

:root{
  --bg: #f8f3ea;
  --text: #2b2218;
  --muted: rgba(43,34,24,.62);

  --appbarBg: #fffaf2;
  --appbarBorder: rgba(120,88,46,0.14);

  --cardBg: #fffdf8;
  --cardBorder: rgba(120,88,46,0.14);
  --shadow: 0 10px 24px rgba(82,56,22,0.12);

  --pillBg: #f3eadb;

  --brandGreen1: #2da86f;
  --brandGreen2: #238e5f;

  --accentGreen: #2f7d6e;

  --fs-title-xl: clamp(2rem, 2.5vw, 2.5rem);
  --fs-title-lg: clamp(1.22rem, 1.45vw, 1.45rem);
  --fs-title-md: clamp(1.06rem, 1.15vw, 1.16rem);
  --fs-body-md: clamp(1rem, 1vw, 1.06rem);
  --fs-body-sm: clamp(.92rem, .92vw, .98rem);

  --btn-h: 52px;
  --btn-fs: clamp(1rem, 1vw, 1.04rem);

  --contentMax: 640px;
  --contentPad: 14px;
}

@media (min-width: 768px){
  :root{
    --contentMax: 820px;
    --contentPad: 18px;
  }
}

@media (min-width: 1200px){
  :root{
    --contentMax: 960px;
    --contentPad: 20px;
  }
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================================
   Dark Mode
   ========================================= */
body.dark{
  --bg: #0f1720;
  --text: #e9f0f7;
  --muted: rgba(233,240,247,.72);

  --appbarBg: #152231;
  --appbarBorder: rgba(170,196,224,0.2);

  --cardBg: #1b2a3b;
  --cardBorder: rgba(170,196,224,0.2);
  --shadow: 0 12px 30px rgba(0,0,0,0.4);

  --pillBg: #24374d;
}

body.legalConsentOpen{
  overflow: hidden;
}

.legalConsentOverlay{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(19, 16, 12, .56);
}

.legalConsentCard{
  width: min(620px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 24px;
  background: var(--cardBg);
  border: 1px solid var(--cardBorder);
  box-shadow: 0 20px 60px rgba(0,0,0,.26);
  padding: 22px 18px;
}

.legalConsentKicker{
  font-size: var(--fs-body-sm);
  color: var(--accentGreen);
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.legalConsentTitle{
  margin: 8px 0 10px;
  font-size: var(--fs-title-lg);
  font-weight: 900;
}

.legalConsentText{
  margin: 0;
  font-size: var(--fs-body-md);
  line-height: 1.6;
  color: var(--muted);
}

.legalConsentLinks{
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.legalConsentLink{
  min-height: var(--btn-h);
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--pillBg);
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.legalConsentLink small{
  display: block;
  font-size: var(--fs-body-sm);
  color: var(--muted);
  font-weight: 700;
}

.legalConsentCheck{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 6px;
  padding: 14px;
  border-radius: 18px;
  background: var(--pillBg);
}

.legalConsentCheck input{
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

.legalConsentCheckText{
  font-size: var(--fs-body-md);
  line-height: 1.55;
}

.legalConsentActions{
  display: flex;
  margin-top: 16px;
}

.legalConsentBtn{
  width: 100%;
  min-height: var(--btn-h);
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brandGreen1), var(--brandGreen2));
  color: #fff;
  font-size: var(--btn-fs);
  font-weight: 900;
  cursor: pointer;
}

.legalConsentBtn:disabled{
  opacity: .45;
  cursor: not-allowed;
}

.legalConsentHint{
  margin-top: 12px;
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--muted);
}

/* =========================================
   AppBar
   ========================================= */
.appbar{
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  background: var(--appbarBg);
  border-bottom: 1px solid var(--appbarBorder);
  backdrop-filter: saturate(120%) blur(4px);
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandIcon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--pillBg);
}

.brandText{
  font-weight: 700;
  line-height: 1.1;
}

/* Back button: unterstützt beide Klassen */
.backBtn,
.back-btn{
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--pillBg);
  cursor: pointer;

  display: grid;
  place-items: center;
  font-size: 18px;
  color: inherit;
}

.backBtn:active,
.back-btn:active{
  transform: translateY(1px);
}

/* optionaler Titel im Reader */
.appbarTitle{
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================
   Actions (rechts oben)
   ========================================= */
.appActions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.iconCircle, .toggle{
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--pillBg);
  cursor: pointer;

  display: grid;
  place-items: center;
  font-size: 18px;
  color: inherit;
}

.iconCircle{
  position: relative;
}

.notifBellBadge{
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

.iconCircle:active, .toggle:active{ transform: translateY(1px); }

.toggle::before{ content: "🌙"; }
body.dark .toggle::before{ content: "☀️"; }

/* =========================================
   Layout Container
   ========================================= */
.container{
  width: min(100%, var(--contentMax));
  margin: 0 auto;
  padding: var(--contentPad);

  display: grid;
  gap: 14px;
}

/* Alias: falls du pageWrap nutzt */
.pageWrap{
  width: min(100%, var(--contentMax));
  margin: 0 auto;
  padding: var(--contentPad);
}

/* =========================================
   Notifications
   ========================================= */
.notifWrap{
  width: min(100%, var(--contentMax));
  margin: 0 auto;
  padding: var(--contentPad);
  display: grid;
  gap: 14px;
}

.notifIntro,
.notifConsent,
.notifPush,
.notifCard{
  background: var(--cardBg);
  border: 1px solid var(--cardBorder);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.notifIntro,
.notifConsent,
.notifPush{
  padding: 18px 16px;
}

.notifKicker{
  font-size: var(--fs-body-sm);
  color: var(--accentGreen);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.notifTitle{
  margin: 6px 0 8px;
  font-size: var(--fs-title-lg);
  font-weight: 900;
}

.notifText,
.notifMuted{
  margin: 0;
  font-size: var(--fs-body-md);
  line-height: 1.55;
  color: var(--muted);
}

.notifActions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.notifBtn,
.notifBtnGhost{
  min-height: var(--btn-h);
  padding: 12px 16px;
  border-radius: 16px;
  font-size: var(--btn-fs);
  font-weight: 800;
  cursor: pointer;
}

.notifBtn{
  border: 0;
  background: linear-gradient(135deg, var(--brandGreen1), var(--brandGreen2));
  color: #fff;
}

.notifBtnGhost{
  border: 1px solid var(--cardBorder);
  background: var(--pillBg);
  color: inherit;
}

.notifStatus{
  margin-top: 10px;
  font-size: var(--fs-body-sm);
  color: var(--muted);
}

.notifList{
  display: grid;
  gap: 12px;
}

.notifCard{
  padding: 16px;
}

.notifCard.isUnread{
  border-color: rgba(47,125,110,.28);
}

.notifCardHead{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notifMeta{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.notifType,
.notifState{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.notifType{
  background: rgba(47,125,110,.12);
  color: var(--accentGreen);
}

.notifState{
  background: var(--pillBg);
  color: var(--muted);
}

.notifState.isUnread{
  background: rgba(220,38,38,.12);
  color: #b91c1c;
}

body.dark .notifState.isUnread{
  background: rgba(248,113,113,.16);
  color: #fca5a5;
}

.notifItemTitle{
  margin: 0;
  font-size: var(--fs-title-md);
  font-weight: 900;
}

.notifDate{
  margin-top: 6px;
  font-size: var(--fs-body-sm);
  color: var(--muted);
}

.notifDelete{
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--pillBg);
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}

.notifBody{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--cardBorder);
  display: grid;
  gap: 12px;
}

.notifBody p{
  margin: 0;
  font-size: var(--fs-body-md);
  line-height: 1.6;
}

.notifLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--pillBg);
  color: inherit;
  font-weight: 800;
}

.notifEmpty{
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-body-md);
}

/* =========================================
   Hero (Startseite)
   ========================================= */
.heroCard{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ddd;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.heroImg{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.heroOverlay{
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: #fff;
}

.heroOverlay .small{
  font-size: var(--fs-body-sm);
  opacity: 0.95;
}

.heroOverlay .big{
  font-size: var(--fs-title-xl);
  font-weight: 800;
  line-height: 1.15;
}

/* =========================================
   Cards (Startseite)
   ========================================= */
.card{
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;

  padding: 16px;
  border-radius: 20px;

  background: var(--cardBg);
  border: 1px solid var(--cardBorder);
  box-shadow: var(--shadow);
}

.cardIcon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--pillBg);
  font-size: 21px;
}

.cardText{ min-width: 0; }

.cardTitleBase{
  margin: 0;
  font-weight: 800;
  font-size: var(--fs-title-md);
}

.cardSub{
  margin: 4px 0 0;
  font-size: var(--fs-body-sm);
  opacity: 0.75;
}

.badge{
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--pillBg);
}

.lock{
  font-size: 18px;
  opacity: 0.7;
}

/* Primary Card Button */
.cardPrimary{
  border: 0;
  background: linear-gradient(135deg, var(--brandGreen1), var(--brandGreen2));
  color: #fff;
}

.cardPrimary .cardIcon{ background: rgba(255,255,255,0.20); }
.cardPrimary .cardSub{ opacity: 0.9; }

.cardPrimaryButton{
  cursor: pointer;
  text-align: left;
}

.cardPrimaryButton:active{ transform: translateY(1px); }

/* =========================================
   Übungen Seite (NEU: wie Startseite / Kacheln)
   ========================================= */
.uebungenPage{
  max-width: 560px;
  margin: 0 auto;
  padding: 14px;
}

.pageTitle{
  font-size: var(--fs-title-xl);
  line-height: 1.05;
  margin: 8px 0 18px;
  font-weight: 700;
}

/* Grid für die Übungs-Kacheln */
.cards{
  display: grid;
  gap: 14px;
}

/* Die Kachel selbst (wie Startseite, aber Button-Variante) */
.homeCard{
  width: 100%;
  border: 0;
  background: var(--cardBg);
  border: 1px solid var(--cardBorder);
  box-shadow: var(--shadow);

  border-radius: 20px;
  padding: 16px;

  display: flex;
  align-items: center;
  gap: 12px;

  text-align: left;
  cursor: pointer;
  color: inherit;
}

.homeCard:active{ transform: translateY(1px); }

/* Icon links */
.homeIcon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--pillBg);
  font-size: 21px;
  flex: 0 0 46px;
}

/* Arabisch-Pill */
.arabicPill{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Text */
.homeText{
  min-width: 0;
  display: grid;
  gap: 4px;
}

.homeTitle{
  font-weight: 800;
  font-size: var(--fs-title-md);
  line-height: 1.1;
}

.homeSub{
  font-size: var(--fs-body-sm);
  opacity: .75;
}

/* Rechts: lock + pfeil */
.homeRight{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chev{
  font-size: 22px;
  opacity: 0.35;
}

/* Gesperrt */
.homeCard.isLocked{
  opacity: .92;
}

/* =========================================
   Reader (Swipe-Only Look & Layout)
   ========================================= */
.reader{
  height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 0;
}

.track{
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.track::-webkit-scrollbar{ display: none; }

.slide{
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  padding: 14px;
}

.pageFrame{
  width: min(520px, 92vw);
  height: min(760px, calc(100vh - 120px));
  border-radius: 18px;
  background: var(--cardBg);
  border: 1px solid var(--cardBorder);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
}

body.dark .pageFrame{
  box-shadow: 0 10px 28px rgba(0,0,0,0.40);
}

.pageFrame img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  position: relative;
  z-index: 1;
}

.hotspotLayer{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hotspot{
  position: absolute;
  pointer-events: auto;
  z-index: 3;
  background: rgba(0, 0, 0, 0.033);
  border-radius: 12px;
  cursor: pointer;
}

/* =========================================
   Profil Seite
   ========================================= */
.topbar{
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: transparent;
}

.topbarTitle{
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .2px;
}

.topbarBtn{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: inherit;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.topbarBtn:active{ opacity: .6; }

.profilePage{ padding: 6px 16px 26px; }

.profileH1{
  font-size: 46px;
  line-height: 1.05;
  margin: 6px 0 14px;
  font-weight: 700;
}

.profileHero{
  display: grid;
  place-items: center;
  padding: 8px 0 14px;
}

.avatarCircle{
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accentGreen);
  margin: 8px 0 14px;
}

.profileName{
  font-size: 40px;
  font-weight: 800;
  margin: 0;
}

.profileEmail{
  margin-top: 6px;
  font-size: 18px;
  opacity: .55;
}

.profileList{
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

/* EINMALIG definiert (du hattest es mehrfach) */
.profileItem{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 18px 16px;
  border: 0;
  border-radius: 16px;

  cursor: pointer;
  background: rgba(0,0,0,0.03);
  color: inherit;
  text-align: left;
  text-decoration: none;

  transition: background .2s ease, transform .05s ease;
}

body.dark .profileItem{ background: rgba(255,255,255,0.06); }

.profileItem:hover{ background: rgba(0,0,0,0.05); }
body.dark .profileItem:hover{ background: rgba(255,255,255,0.09); }

.profileItem:active{ transform: scale(0.98); }

.piLeft{
  width: 34px;
  display: grid;
  place-items: center;
  font-size: 20px;
  opacity: .75;
}

.piText{
  flex: 1;
  font-size: 20px;
  font-weight: 600;
  opacity: .85;
}

.piRight{
  font-size: 22px;
  opacity: .35;
}

.dividerLine{
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 18px 0 18px;
}
body.dark .dividerLine{ background: rgba(255,255,255,0.12); }

/* Danger */
.profileItem.danger{ background: rgba(255,0,0,0.06); }
body.dark .profileItem.danger{ background: rgba(255,0,0,0.10); }
.dangerText{ color: #d94a4a; opacity: 1; }
.dangerIcon{ color: #d94a4a; opacity: 1; }

/* =========================================
   Einstellungen Formular
   ========================================= */
.settingsWrap{ padding: 14px 16px 28px; }

.settingsH1{
  font-size: 44px;
  line-height: 1.05;
  margin: 10px 0 18px;
  font-weight: 700;
}

.formCard{
  background: rgba(0,0,0,0.03);
  border-radius: 16px;
  padding: 16px;
}
body.dark .formCard{ background: rgba(255,255,255,0.06); }

/* Du hattest cardTitle doppelt -> sauberer Name */
.formCardTitle{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  opacity: .85;
}

.formGrid{ display: grid; gap: 14px; }

.field{ display: grid; gap: 8px; }

.label{
  font-size: 14px;
  opacity: .7;
  font-weight: 600;
}

.input{
  height: 46px;
  width: 100%;
  border-radius: 12px;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.65);
  color: inherit;
  outline: none;
}

body.dark .input{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
}

.input:focus{
  border-color: rgba(47,125,110,0.65);
  box-shadow: 0 0 0 4px rgba(47,125,110,0.12);
}

.row2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.saveBtn{
  min-height: var(--btn-h);
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  font-size: var(--btn-fs);
  font-weight: 800;
  cursor: pointer;
  background: var(--accentGreen);
  color: #fff;
  margin-top: 10px;
}
.saveBtn:active{ opacity: .85; }

.hint{
  margin: 6px 0 0;
  font-size: 14px;
  opacity: .65;
  min-height: 18px;
}

.settingsSection{
  margin-top: 16px;
}

.settingsInfo{
  margin: 10px 0 0;
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--muted);
}

.settingsToggleList{
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.settingsToggleItem{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}

body.dark .settingsToggleItem{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.settingsToggleTitle{
  margin: 0;
  font-size: var(--fs-title-md);
  font-weight: 800;
}

.settingsToggleDesc{
  margin: 6px 0 0;
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--muted);
}

.settingsToggleStatus{
  margin-top: 8px;
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: var(--muted);
}

.settingsSwitch{
  position: relative;
  width: 58px;
  height: 34px;
  flex: 0 0 58px;
}

.settingsSwitch input{
  position: absolute;
  opacity: 0;
  inset: 0;
}

.settingsSlider{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8d2c7;
  transition: background .2s ease;
  cursor: pointer;
}

body.dark .settingsSlider{
  background: #425469;
}

.settingsSlider::after{
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .2s ease;
}

.settingsSwitch input:checked + .settingsSlider{
  background: var(--accentGreen);
}

.settingsSwitch input:checked + .settingsSlider::after{
  transform: translateX(24px);
}

.settingsNote{
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--pillBg);
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--muted);
}

/* =========================================
   Mein Account (Read-only)
   ========================================= */
.accTopbar{
  height: 84px;
  background: var(--accentGreen);
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.accBack{
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255,255,255,0.22);
  color: #fff;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
}
.accBack:active{ opacity: .8; }

.accWrap{ padding: 16px 16px 28px; }

.accTitle{
  font-size: 28px;
  margin: 10px 0 14px;
  font-weight: 700;
  opacity: .9;
}

.accCard{
  border-radius: 18px;
  padding: 16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
}
body.dark .accCard{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

/* Avatar */
.accAvatarBlock{
  display: grid;
  place-items: center;
  margin: 6px 0 10px;
}

.accAvatar{
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: 2px dashed rgba(0,0,0,0.10);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
body.dark .accAvatar{
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.14);
}

#avatarImg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.accAvatarPlaceholder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  opacity: .35;
}

.accFile{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Rows */
.accRows{ margin-top: 8px; }

.accRow{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 2px;
}

.accIcon{
  width: 32px;
  display: grid;
  place-items: center;
  font-size: 18px;
  opacity: .75;
  margin-top: 2px;
}

.accText{ flex: 1; }

.accLabel{
  font-size: 12px;
  font-weight: 700;
  opacity: .55;
  margin-bottom: 4px;
}

.accValue{
  font-size: 16px;
  font-weight: 700;
  opacity: .85;
  white-space: pre-line;
}

.accDivider{
  height: 1px;
  background: rgba(0,0,0,0.10);
  margin: 6px 0;
}
body.dark .accDivider{ background: rgba(255,255,255,0.12); }

/* =========================================
   Über uns
   ========================================= */
.aboutTop{
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: transparent;
}

.aboutBack{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
  color: inherit;
}
.aboutBack:active{ opacity: .65; }

.aboutTopTitle{
  font-size: 18px;
  font-weight: 700;
  opacity: .85;
}
.aboutTopSpacer{ flex: 1; }

.aboutWrap{
  padding: 10px 16px 28px;
  display: grid;
  gap: 22px;
}

.aboutSection{
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 18px 16px;
}
body.dark .aboutSection{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.aboutHead{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.aboutIcon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--accentGreen);
}

.aboutH2{
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--accentGreen);
}

.aboutHeadGold{ margin-bottom: 10px; }
.aboutIconGold{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #b08b2d;
}
.aboutH2Gold{
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #b08b2d;
}

.aboutP{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: .78;
}

.duaCard{
  border-radius: 22px;
  padding: 22px 18px;
  background: var(--accentGreen);
  color: #fff;
  text-align: center;
}
.duaIcon{ font-size: 26px; opacity: .95; margin-bottom: 10px; }
.duaTitle{ font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.duaText{ margin: 0; font-size: 16px; line-height: 1.7; opacity: .92; }
.duaAminAr{ margin-top: 18px; font-size: 30px; font-weight: 900; letter-spacing: .5px; }
.duaAminDe{ margin-top: 6px; font-size: 18px; font-weight: 800; opacity: .95; }

body.dark .duaCard{ filter: saturate(1.02) brightness(0.95); }

/* =========================================
   Fortschritt
   ========================================= */
.progressWrap{
  margin-top: 14px;
  padding: 12px 12px 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.16);
}

.progressTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

.progressTitle{ font-weight: 900; opacity: .92; }
.progressValue{ font-weight: 900; opacity: .85; }

.progressBar{
  width:100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow:hidden;
}

.progressFill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #2fbf63;
  transition: width .25s ease;
}

.progressHint{
  margin-top: 8px;
  font-size: 12px;
  opacity: .65;
  text-align: center;
}

/* =========================================
   Mobile Fine Tuning
   ========================================= */
@media (max-width: 420px){
  .heroImg{ height: 200px; }
  .heroOverlay .big{ font-size: 20px; }
}
/* ===== HOTFIX: cardTitle wieder wie vorher ===== */
.cardTitle{
  margin: 0;
  font-weight: 800;
  font-size: var(--fs-title-md);
}

/* Falls du cardTitle auch in Formularen genutzt hast */
.settingsWrap .cardTitle{
  margin: 0 0 14px;
  font-size: var(--fs-title-lg);
  font-weight: 700;
  opacity: .85;
}
/* =========================================
   Alif Ba Ta Übung (global, passend zur App)
   ========================================= */

.abtPage{
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.abtTopbar{
  width: min(100%, var(--contentMax));
  margin: 0 auto;
  padding: var(--contentPad);
  display:flex;
  align-items:center;
  gap:12px;
}

.abtTitle{
  font-size: var(--fs-title-lg);
  font-weight: 800;
  opacity: .92;
}

.abtWrap{
  width: min(100%, var(--contentMax));
  margin: 0 auto;
  padding: 0 var(--contentPad) 26px;
  display: grid;
  gap: 14px;
}

/* Cards wie Startseite */
.abtCard,
.abtProgressCard{
  background: var(--cardBg);
  border: 1px solid var(--cardBorder);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 18px 16px;
}

.abtGlyph{
  text-align:center;
  font-size: 110px;
  line-height: 1;
  margin: 18px 0 6px;
  color: inherit;
}

.abtHint{
  text-align:center;
  font-size: var(--fs-body-md);
  opacity: .70;
  margin-bottom: 14px;
}

/* Audio Buttons */
.abtAudioRow{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.abtAudioBtn{
  border: 1px solid var(--cardBorder);
  border-radius: 16px;
  padding: 14px 10px;
  background: var(--pillBg);
  color: inherit;
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.abtAudioBtn .icon{
  display:block;
  font-size: 22px;
  margin-bottom: 6px;
}

.abtAudioBtn:active{ transform: translateY(1px); }

/* Active = grün */
.abtAudioBtn.active{
  border-color: rgba(47,191,99,.95);
  background: rgba(47,191,99,.14);
  box-shadow: 0 0 0 3px rgba(47,191,99,.18), var(--shadow);
}

.abtFeedback{
  margin-top: 14px;
  min-height: 22px;
  text-align:center;
  font-weight: 900;
  letter-spacing: .2px;
}
.abtFeedback.ok{ color: #2fbf63; }
.abtFeedback.bad{ color: #ff5b5b; }

/* Action Buttons */
.abtActionRow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.abtBtn{
  border: 1px solid var(--cardBorder);
  border-radius: 16px;
  min-height: var(--btn-h);
  padding: 14px 14px;
  font-size: var(--btn-fs);
  font-weight: 900;
  cursor: pointer;
  background: var(--pillBg);
  color: inherit;
  box-shadow: var(--shadow);
}
.abtBtn:active{ transform: translateY(1px); }

.abtBtn:disabled{
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Primary = wie App */
.abtBtnPrimary{
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brandGreen1), var(--brandGreen2));
}

/* Progress */
.abtProgressCard{ padding: 16px; }

.abtProgressTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}

.abtProgressTitle{
  font-weight: 900;
  opacity: .92;
  font-size: 16px;
}

.abtProgressValue{
  font-weight: 900;
  opacity: .85;
  font-size: 16px;
}

.abtProgressBar{
  width:100%;
  height: 18px;
  border-radius: 999px;
  background: var(--pillBg);
  border: 1px solid var(--cardBorder);
  overflow: hidden;
}

.abtProgressFill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #2fbf63;
  transition: width .25s ease;
}

.abtProgressHint{
  margin-top: 10px;
  font-size: 12px;
  opacity: .65;
  text-align: center;
}

@media (max-width: 380px){
  .abtGlyph{ font-size: 92px; }
  .abtProgressBar{ height: 16px; }
}
/* =========================================
   Motivation Card (Startseite)
   ========================================= */

/* =========================================
   Motivation Card – „Zitat / Schreibschrift“-Look
   ========================================= */

.motivationCard{
  padding: 18px 16px;
  display: block;      /* ✅ EINSPALTIG */
}


.motivationHead{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.motivationHeadLeft{
  min-width: 0;
}

.motivationTitle{
  margin: 0;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .2px;
}

.motivationIntro{
  margin: 6px 0 0;
  font-size: 14px;
  opacity: .72;
  font-weight: 800;
}

.motivationTitle{
  margin: 0;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .2px;
}

.motivationIcon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--pillBg);
  font-size: 20px;
  flex: 0 0 44px;
}

/* Zitat-Block */
.motivationQuote{
  position: relative;
  border-radius: 16px;
  padding: 16px 14px 14px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--cardBorder);
}

body.dark .motivationQuote{
  background: rgba(255,255,255,0.06);
}

/* große Anführungszeichen */
.motivationQuote::before{
  content: "“";
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  color: rgba(47,125,110,0.35); /* accentGreen soft */
}

body.dark .motivationQuote::before{
  color: rgba(47,125,110,0.55);
}

/* Schreibschrift-Feeling: Serif + Italic + etwas kräftiger */
.motivationText{
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);

  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .1px;
}

/* Quelle/Meta kleiner & normal */
.motivationMeta{
  margin-top: 10px;
  font-size: 14px;
  opacity: .70;
  font-weight: 700;
}

/* optional: kleine „Einleitung“ normaler Text */
.motivationIntro{
  margin: 0 0 10px;
  font-size: 13px;
  opacity: .75;
  font-weight: 700;
}

/* Mobile leicht kompakter */
@media (max-width: 420px){
  .motivationText{ font-size: 15px; }
}
