/* Zahlenzauber – Zauberbuch */
/* Zauberbuch */
.rangkarte { background: linear-gradient(160deg, #fff, #f1ebff); }
.rang-kopf { display: flex; align-items: center; gap: 16px; }
.rang-kopf .avatar.rangbild { width: 110px; height: 150px; }
.rang-text { flex: 1; min-width: 0; }
.rang-eyebrow { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--lila); }
.rang-text h2 { font-size: clamp(1.6rem, 6vw, 2.1rem); }
.rang-text p { margin: 2px 0 10px; font-weight: 700; color: var(--tinte-weich); }
.xpbalken.gross { height: 16px; }
.leiter { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--linie); }
@media (max-width: 520px) { .leiter { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sprosse { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 2px; border-radius: 16px; }
.sprosse .avatar.leiterbild { width: 56px; height: 76px; }
.sprosse b { font-family: var(--f-display); font-weight: 600; font-size: .8rem; line-height: 1.15; }
.sprosse span { font-size: .7rem; font-weight: 700; color: var(--tinte-weich); }
.sprosse.aktuell { background: #fff; box-shadow: inset 0 0 0 2px var(--blau), 0 6px 14px rgba(91,140,255,.2); }
.sprosse.kommt .avatar { filter: grayscale(1) opacity(.45); }
.sprosse.kommt b { color: var(--tinte-weich); }
.statgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
@media (max-width: 420px) { .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: rgba(255,255,255,.95); border-radius: 20px; padding: 14px; box-shadow: var(--schatten); display: flex; flex-direction: column; }
.stat b { font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; color: var(--blau-d); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: .8rem; font-weight: 700; color: var(--tinte-weich); }
.legende { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--tinte-weich); margin: 4px 0 8px; }
.legende i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legende .l-richtig { background: var(--gruen); } .legende .l-alle { background: #cfdcff; margin-left: 8px; }
.woche { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 170px; }
.tag { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.tag em { font-style: normal; font-weight: 800; font-size: .8rem; color: var(--tinte-weich); min-height: 1.1em; font-variant-numeric: tabular-nums; }
.saeule { flex: 1; width: 100%; max-width: 38px; background: var(--panel-2); border-radius: 12px; display: flex; align-items: flex-end; overflow: hidden; }
.saeule span { width: 100%; background: #cfdcff; border-radius: 12px; display: flex; align-items: flex-end; min-height: 0; }
.saeule i { width: 100%; background: linear-gradient(180deg, #5fe39b, var(--gruen-d)); border-radius: 12px; }
.tag small { font-weight: 800; font-size: .75rem; color: var(--tinte-weich); }
.tag.heute small { color: var(--blau-d); }
.kuenste { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 20px; margin-top: 10px; }
.kunst-gruppe h4 { margin: 0 0 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--lila); }
.kunst { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.kname { font-weight: 700; min-width: 0; }
.ksterne { display: flex; align-items: center; gap: 3px; flex: none; }
.ksterne i { width: 18px; height: 18px; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 35%); background: #e3def3; }
.ksterne i.voll { background: linear-gradient(180deg, #ffe17a, var(--gold-d)); }
.ksterne em { font-style: normal; font-size: .68rem; font-weight: 800; background: linear-gradient(180deg, var(--lila), #6a3fd0); color: #fff; border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.zaehler { font-size: .85rem; font-weight: 700; color: var(--tinte-weich); font-family: var(--f-text); }
.abzeichen { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin-top: 12px; }
.abz { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; background: linear-gradient(180deg, #fff, var(--panel-2)); border-radius: 18px; padding: 12px 8px; box-shadow: inset 0 0 0 2px var(--linie); }
.abz .medaille { width: 52px; height: 60px; filter: drop-shadow(0 4px 4px rgba(18,8,60,.15)); }
.abz b { font-family: var(--f-display); font-weight: 600; font-size: .98rem; }
.abz span { font-size: .76rem; font-weight: 700; color: var(--tinte-weich); line-height: 1.3; }
.abz em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--gruen-d); margin-top: auto; padding-top: 4px; }
.abz.offen em { color: #a37400; }
.abz.offen .medaille { filter: none; }
