/* ============================================================
   PROPS – Stylesheet (mobile-first) · helles, frisches Design
   ============================================================ */
:root {
  --brand:   #7c5cff;   /* helles Violett   */
  --brand-2: #9d7bff;   /* noch heller      */
  --brand-3: #c9baff;   /* pastell          */
  --brand-4: #ede8ff;   /* sehr hell (Chips)*/
  --ink:     #2c2b3a;   /* weiches Dunkel   */
  --muted:   #8a8aa0;
  --bg:      #ffffff;
  --bg-soft: #faf9ff;
  --card:    #ffffff;
  --line:    #efedfb;
  --good:    #22c55e;
  --good-bg: #eafaf0;
  --bad:     #f43f5e;
  --radius:  22px;
  --shadow:  0 8px 26px rgba(124, 92, 255, 0.10);
  --shadow-sm: 0 3px 12px rgba(124, 92, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  /* helles, luftiges Hintergrund-Glow */
  background:
    radial-gradient(1100px 520px at 50% -8%, #f1ecff 0%, rgba(241,236,255,0) 60%),
    radial-gradient(700px 400px at 100% 0%, #fef2ff 0%, rgba(254,242,255,0) 55%),
    var(--bg);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.screen {
  max-width: 440px;
  margin: 0 auto;
  padding: 26px 20px 70px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.screen.center { justify-content: center; min-height: 100vh; }

/* ---- Topbar ---- */
.topbar {
  max-width: 440px; margin: 0 auto;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-brand { font-weight: 800; font-size: 1.3rem; color: var(--brand); letter-spacing: -0.5px; }
.topbar-brand.link, a.link { text-decoration: none; }

/* ---- Brand / Logo ---- */
.brand { text-align: center; margin-bottom: 26px; }
.brand-logo {
  width: 76px; height: 76px; margin: 0 auto 14px;
  border-radius: 24px;
  background: linear-gradient(145deg, #b7a3ff, var(--brand));
  color: #fff; font-size: 2.5rem; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.30);
}
.brand-name { font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -1px; }
.brand-tagline { color: var(--brand); margin-top: 3px; font-weight: 500; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

/* ---- Tabs ---- */
.tabs { display: flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 5px; margin-bottom: 20px; }
.tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  padding: 11px; border-radius: 10px; font-weight: 600; color: var(--muted); font-size: 0.95rem;
  transition: all .15s;
}
.tab.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ---- Forms ---- */
.form { display: flex; flex-direction: column; gap: 15px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 0.82rem; font-weight: 600; color: #6d6d84; }
.form input {
  padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 14px;
  font-size: 1rem; background: var(--bg-soft); transition: all .15s; color: var(--ink);
}
.form input:focus { outline: none; border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 4px rgba(124,92,255,.12); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 16px; padding: 15px 18px;
  font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .06s ease, box-shadow .15s, opacity .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary {
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  color: #fff; box-shadow: 0 10px 22px rgba(124, 92, 255, .30);
}
.btn.primary:hover { box-shadow: 0 12px 26px rgba(124, 92, 255, .38); }
.btn.ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand-3); }
.btn.ghost:hover { background: var(--brand-4); }
.btn.big { padding: 17px; font-size: 1.08rem; width: 100%; }
.btn.google { width: 100%; background: #fff; color: #3c4043; border: 1.5px solid var(--line); font-weight: 600; }
.btn.google:hover { background: #f8f7ff; border-color: var(--brand-3); }

/* Trennlinie "oder" */
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-row { display: flex; gap: 12px; }
.btn-row .btn { flex: 1; }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .95rem; font-weight: 500; }
.link-btn:hover { color: var(--brand); }

/* ---- Score ---- */
.greeting { font-size: 1.45rem; font-weight: 800; }
.score-card {
  text-align: center;
  background: linear-gradient(160deg, #ffffff 0%, #f6f2ff 100%);
  border-color: var(--brand-4);
}
.score-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.score-value { font-size: 3.6rem; font-weight: 800; line-height: 1.1; margin: 4px 0;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.score-value.big { font-size: 3.1rem; }
.score-value small { font-size: 1rem; color: var(--brand); font-weight: 700; margin-left: 6px; -webkit-text-fill-color: var(--brand); }

/* ---- Tageslimit-Punkte ---- */
.limit { margin-top: 10px; }
.dots { display: flex; gap: 9px; justify-content: center; margin-bottom: 7px; }
.dot { width: 13px; height: 13px; border-radius: 50%; background: var(--brand-4); border: 2px solid var(--brand-3); transition: all .2s; }
.dot.full { background: var(--brand); border-color: var(--brand); box-shadow: 0 2px 8px rgba(124,92,255,.4); }

/* ---- Profil ---- */
.profile-card { text-align: center; }
.avatar {
  width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-3), var(--brand-2));
  color: #fff; font-size: 2.3rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(124,92,255,.28);
}
.p-name { font-size: 1.65rem; font-weight: 800; }

/* ---- Listen / Events ---- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h3 { font-size: 1.08rem; }
.event-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.event-list li { display: flex; align-items: center; gap: 11px; font-size: .95rem; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.event-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.event-list .plus {
  flex: 0 0 auto; background: var(--good-bg); color: var(--good);
  font-weight: 800; font-size: .85rem; padding: 5px 9px; border-radius: 9px;
}
.event-list time { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.badge { background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* ---- Modal (QR) ---- */
.modal { position: fixed; inset: 0; background: rgba(60, 45, 120, .35); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 26px; padding: 28px; text-align: center; max-width: 340px; width: 100%; box-shadow: 0 20px 50px rgba(60,45,120,.25); }
.modal-box h3 { font-size: 1.35rem; margin-bottom: 4px; }
.modal-box canvas { margin: 18px auto; border-radius: 14px; border: 1px solid var(--line); }
.qr-link { font-size: .72rem; color: var(--muted); word-break: break-all; margin-bottom: 18px; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px;
  font-size: .92rem; font-weight: 600; max-width: 90%; text-align: center;
  box-shadow: 0 12px 34px rgba(44,43,58,.28); opacity: 0; transition: all .3s ease; z-index: 100;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--good); }
.toast.error { background: var(--bad); }

/* ---- Utilities ---- */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.xsmall { font-size: .75rem; margin-top: 10px; }
.hidden { display: none !important; }
