/* ===== extras.css – zentriertes Layout, Buttons, Symbole, Lernstand, Verein, Hinweise (wird zuletzt geladen) ===== */

/* --- Zentriert --- */
#app > h2, #app > h3, #app > h2 + p, .qtext { text-align: center; }
.row .grow { text-align: center; }
.row::after { margin-left: -4px; }
.wissen h4 { text-align: center; }
.center { text-align: center; }

/* --- Schickere Buttons --- */
.btn {
  border-radius: 999px; letter-spacing: -.005em; text-align: center;
  background: linear-gradient(180deg, #0b9a4e 0%, var(--brand) 55%, #046f35 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 22px -12px rgba(5, 136, 67, .85);
}
.btn.sec { color: var(--brand); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--brand-tint), var(--shadow-1); }
.btn.gold { color: var(--btn-dark-fg); background: var(--btn-dark-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 22px -12px rgba(0, 0, 0, .55); }
.btn[disabled] { color: var(--muted); background: var(--fill); box-shadow: none; }

/* --- Startseite: Kacheln mittig, eigene Symbole --- */
.tile { align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 148px; padding: 18px 12px; }
.tile::after { display: none; }
.tiles .tile .ico {
  position: static; grid-area: auto; width: 58px; height: 58px; margin-bottom: 6px; border-radius: 50%; color: #fff;
  background: linear-gradient(145deg, #12a357, #045c2d); box-shadow: 0 8px 16px -8px rgba(4, 92, 45, .8);
}
.tiles .tile.pri .ico { color: #16120a; background: var(--gold); }
/* Prüfungssimulation: hell und freundlich, nur leicht hervorgehoben */
.tiles .tile.pri { color: var(--ink); background: linear-gradient(160deg, var(--card) 20%, var(--brand-tint) 100%); box-shadow: inset 0 0 0 1.5px var(--brand-tint), var(--shadow-1); }
.tiles .tile.pri .s { color: var(--muted); }
.tile .ico svg { width: 32px; height: 32px; }
.tile b, .tile.pri b, .tile.wide b { grid-area: auto; align-self: auto; margin: 0; font-size: 1.12rem; }
.tile .s, .tile.pri .s, .tile.wide .s { grid-area: auto; align-self: auto; }
.tile.pri, .tile.wide { display: flex; flex-direction: column; min-height: 132px; }
.beta { margin-left: 2px; }

/* --- Abbrechen-Leiste beim Üben --- */
.quiznav { display: flex; justify-content: center; gap: 10px; margin: 0 0 14px; }
.quiznav button { padding: 9px 16px; font: 600 .86rem/1 var(--font); color: var(--ink); background: var(--card); border: 0; border-radius: 999px; box-shadow: var(--shadow-1); cursor: pointer; }
.quiznav button:active { transform: scale(.96); }

/* --- Lernstand: Sicher / Unsicher / Falsch --- */
:root { --kat-sicher: #058843; --kat-unsicher: #b97a00; --kat-falsch: #c93b2b; }
@media (prefers-color-scheme: dark) { :root { --kat-sicher: #4fd48a; --kat-unsicher: #f0b43c; --kat-falsch: #ff7a6b; } }
.stapel { display: flex; height: 6px; margin: 9px 0 6px; overflow: hidden; border-radius: 6px; background: var(--fill); }
.stapel .sicher { background: var(--kat-sicher); } .stapel .unsicher { background: var(--kat-unsicher); } .stapel .falsch { background: var(--kat-falsch); }
.zahlen { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.zahlen .sicher { color: var(--kat-sicher); } .zahlen .unsicher { color: var(--kat-unsicher); } .zahlen .falsch { color: var(--kat-falsch); }
.kats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kat { --f: var(--muted); display: flex; flex-direction: column; align-items: center; padding: 14px 8px; color: var(--ink); background: var(--card); border: 0; border-top: 4px solid var(--f); border-radius: var(--r); box-shadow: var(--shadow-1); cursor: pointer; font: inherit; }
.kat b { font-size: 1.7rem; line-height: 1.15; color: var(--f); font-variant-numeric: tabular-nums; }
.kat span { font-size: .85rem; font-weight: 600; }
.kat[disabled] { opacity: .45; cursor: default; }
.kat.sicher { --f: var(--kat-sicher); } .kat.unsicher { --f: var(--kat-unsicher); } .kat.falsch { --f: var(--kat-falsch); }
.einordnung { margin: 8px 0; text-align: center; font-size: .86rem; color: var(--muted); }
.einordnung.sicher b { color: var(--kat-sicher); } .einordnung.unsicher b { color: var(--kat-unsicher); } .einordnung.falsch b { color: var(--kat-falsch); }

.rmini { flex: none; width: 78px; height: 52px; object-fit: cover; border-radius: var(--r-sm); background: #fff; }

/* --- Abbildungen mit Erklärung --- */
figure { margin: 14px 0 4px; }
figure img { margin: 0; border: 1px solid var(--line); }
figcaption { margin-top: 8px; padding: 9px 12px; text-align: center; font-size: .85rem; line-height: 1.4; color: var(--muted); background: var(--fill); border-radius: var(--r-sm); }

/* --- Vereinsseite --- */
.vheld { padding: 26px 18px 22px; text-align: center; color: var(--on-night); background: radial-gradient(120% 130% at 50% 0%, var(--night-2) 0%, var(--night) 70%); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.vheld img { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 12px 24px -10px #000; }
.vheld h2 { margin: 16px 0 6px; font-size: 1.4rem; }
.vheld p { max-width: 32ch; margin: 0 auto; color: rgba(255, 255, 255, .8); }
.fakten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.fakten div { display: flex; flex-direction: column; padding: 12px 4px; text-align: center; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-1); }
.fakten b { font-size: 1.1rem; color: var(--brand); } .fakten span { font-size: .74rem; color: var(--muted); }

/* --- Installationshilfe & Lernhinweis --- */
.install summary { text-align: center; font-weight: 600; cursor: pointer; }
.install h4 { margin: 14px 0 0; }
.install ol { line-height: 1.5; }
.recht { margin: 16px 0 4px; padding: 14px 16px; text-align: center; font-size: .8rem; line-height: 1.45; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r); }
.recht b { color: var(--ink); } .recht p { margin: 8px 0 0; }
.recht summary { list-style: none; cursor: pointer; } .recht summary::-webkit-details-marker { display: none; }
.recht summary span { display: block; margin-top: 6px; font-weight: 600; color: var(--brand); }
.recht summary span::after { content: " ▾"; }
.recht[open] summary span { font-size: 0; } .recht[open] summary span::after { content: "Weniger anzeigen ▴"; font-size: .8rem; }
.tiles + .install { margin-top: 26px; }
