:root {
  --blue: #2b4c9b;
  --blue-d: #1e3872;
  --blue-l: #e6ecf8;
  --brand: #2b4c9b;
  --brand-d: #1e3872;
  --coral: #e8574f;
  --coral-l: #fde8e6;
  --gold: #f4b942;
  --green: #2f9870;
  --green-l: #e1f4ec;
  --amber-l: #fdf3d8;
  --cream: #fbf6ec;
  --card: #ffffff;
  --ink: #1f2540;
  --muted: #6b7190;
  --line: #e8e1d2;
  --shadow: 0 6px 20px rgba(31, 37, 64, .08);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #7c9cf0; --blue-d: #a9bff7; --blue-l: #232c48;
    --coral: #ff7e76; --coral-l: #3d2327;
    --green: #5fd0a3; --green-l: #1c3a30; --amber-l: #3a321c;
    --cream: #141827; --card: #1d2236; --ink: #eef0f8; --muted: #9aa1c0; --line: #2d3350;
    --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --blue: #7c9cf0; --blue-d: #a9bff7; --blue-l: #232c48;
  --coral: #ff7e76; --coral-l: #3d2327;
  --green: #5fd0a3; --green-l: #1c3a30; --amber-l: #3a321c;
  --cream: #141827; --card: #1d2236; --ink: #eef0f8; --muted: #9aa1c0; --line: #2d3350;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif; font-size: 19px; line-height: 1.5;
}
h1, h2, h3, .logo, .btn, .grade-num { font-family: "Fredoka", "Nunito", sans-serif; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: .2em 0 .3em; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 1.4rem; font-weight: 600; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.logo b { color: var(--coral); font-weight: 700; }
.flag { display: inline-flex; width: 30px; height: 22px; border-radius: 5px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #2b4c9b; } .flag i:nth-child(2) { background: #fff; } .flag i:nth-child(3) { background: #e8574f; }

main { max-width: 1100px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-left)) calc(60px + env(safe-area-inset-bottom)); outline: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 22px; border-radius: 16px; border: 2px solid transparent;
  font-size: 1.1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease, background .15s;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-d); }
.btn.primary:active { box-shadow: 0 1px 0 var(--blue-d); transform: translateY(3px); }
.btn.ghost { background: var(--card); color: var(--blue); border-color: var(--line); }
.btn.big { min-height: 60px; font-size: 1.2rem; padding: 12px 28px; }
.btn.small { min-height: 44px; font-size: 1rem; padding: 6px 16px; }
.btn:disabled { opacity: .5; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0; }
.row.center { justify-content: center; }

.speak {
  width: 48px; height: 48px; flex: none; border-radius: 50%; border: none;
  background: var(--blue-l); font-size: 1.35rem; cursor: pointer; vertical-align: middle;
  display: inline-grid; place-items: center;
}
.speak.pulse, .big-speak.pulse { animation: pulse .5s ease; }
@keyframes pulse { 50% { transform: scale(1.18); } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center;
  background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.hero-text { padding: 26px 28px 26px 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: .8rem; color: var(--coral); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 6px; }
.stat { background: var(--card); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.stat-num { font-family: "Fredoka", sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--blue); }
.stat-num small { font-size: 1rem; color: var(--muted); }
.stat-lbl { color: var(--muted); font-size: .95rem; }

.section-title { font-size: 1.5rem; margin: 30px 0 12px; }

/* Grid of lessons */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s ease;
}
.card:active { transform: scale(.97); }
@media (hover: hover) { .card:hover { transform: translateY(-4px); } }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--blue-l); }
.card-body { padding: 12px 16px 16px; }
.card-num { font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card h3 { margin: 2px 0 0; font-size: 1.45rem; color: var(--blue); }
.card p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.bar { height: 8px; background: var(--blue-l); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 99px; }
.badge { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

.info { margin-top: 30px; background: var(--card); border-radius: 18px; padding: 14px 20px; box-shadow: var(--shadow); font-size: .95rem; }
.info summary { cursor: pointer; font-weight: 800; min-height: 32px; }

/* Lesson */
.back { display: inline-block; margin-bottom: 12px; font-weight: 800; text-decoration: none; padding: 8px 0; }
.lesson-head { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: center; background: var(--card); padding: 18px; border-radius: 28px; box-shadow: var(--shadow); }
.lesson-img { border-radius: 20px; aspect-ratio: 1; object-fit: cover; }
.verb-title { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--blue); display: flex; align-items: center; gap: 12px; margin: 0; }
.meaning { font-size: 1.35rem; margin: 4px 0; display: flex; align-items: center; gap: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 14px; background: var(--blue-l); border-radius: 14px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--blue); }
.hint { color: var(--muted); margin: -4px 0 10px; }

.conj { display: grid; gap: 10px; margin-top: 12px; }
.conj-row {
  display: grid; grid-template-columns: 110px 1fr auto 48px; align-items: center; gap: 12px;
  width: 100%; min-height: 64px; padding: 10px 18px; background: var(--card); color: var(--ink);
  border: 2px solid var(--line); border-radius: 18px; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.conj-row .pron { font-weight: 800; color: var(--muted); font-size: 1.25rem; }
.conj-row .form { font-family: "Fredoka", sans-serif; font-size: 1.6rem; font-weight: 600; color: var(--blue); }
.conj-row .de { color: var(--muted); font-size: .95rem; }
.conj-row .ico { font-size: 1.3rem; text-align: center; }
.conj-row.active, .conj-row:active { border-color: var(--blue); background: var(--blue-l); }
.hidden-forms .form { color: transparent; background: var(--blue-l); border-radius: 10px; }
.hidden-forms .conj-row:active .form, .hidden-forms .conj-row.active .form { color: var(--blue); background: none; }

.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tips li { background: var(--amber-l); border-left: 6px solid var(--gold); padding: 12px 16px; border-radius: 12px; }
.tips li b { color: var(--coral); }

.examples { display: grid; gap: 10px; }
.example { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); }
.example p { margin: 0; }
.example .fr { font-weight: 800; font-size: 1.2rem; }
.example .de { color: var(--muted); }

.lesson-cta { text-align: center; margin: 30px 0 10px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* Panels */
.panel { background: var(--card); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.panel-img { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; margin: 0 auto 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 12px 0; }
.chip {
  min-height: 48px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card); color: var(--muted); font: 700 1.05rem "Nunito", sans-serif; cursor: pointer;
}
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip.on::before { content: ""; display: inline-block; width: .45em; height: .8em; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(45deg); margin: 0 .5em .15em .1em; }
.panel .btn.big { margin-top: 12px; }

/* Quiz */
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quiz-title { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.2rem; }
.quiz-count { font-weight: 800; color: var(--muted); }
.progress { height: 12px; background: var(--blue-l); border-radius: 99px; margin: 14px 0 20px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--coral)); transition: width .3s ease; }
.qcard { background: var(--card); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.q-prompt { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.q-prompt p { margin: 0; font-size: 1.25rem; }
.de-sub { color: var(--muted); font-size: 1.05rem; }
.q-stem { font-family: "Fredoka", sans-serif; font-size: clamp(1.7rem, 4.5vw, 2.5rem); text-align: center; margin: 22px 0; min-height: 1em; }
.q-stem .pron { color: var(--muted); }
.q-stem .blank { color: var(--coral); letter-spacing: .05em; }
.q-stem .form-big { color: var(--blue); }
.q-stem .sentence { font-size: .8em; }
.big-speak {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px; border: none; cursor: pointer;
  background: var(--blue); color: #fff; width: 150px; height: 150px; border-radius: 50%; font-size: 3.2rem;
  box-shadow: 0 6px 0 var(--blue-d);
}
.big-speak span { font: 700 .9rem "Nunito", sans-serif; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  min-height: 70px; padding: 12px; border-radius: 18px; border: 3px solid var(--line); background: var(--card);
  color: var(--ink); font: 600 1.35rem "Fredoka", sans-serif; cursor: pointer; transition: all .15s;
}
.opt:active { transform: scale(.97); }
.opt.right { background: var(--green-l); border-color: var(--green); color: var(--green); }
.opt.wrong { background: var(--coral-l); border-color: var(--coral); color: var(--coral); animation: shake .35s; }
.opt:disabled { cursor: default; }
.opt:disabled:not(.right):not(.wrong) { opacity: .55; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.type-form { display: grid; gap: 14px; }
#ans {
  width: 100%; min-height: 68px; font: 600 1.7rem "Fredoka", sans-serif; text-align: center;
  border: 3px solid var(--line); border-radius: 18px; padding: 8px 14px; background: var(--cream); color: var(--ink);
}
#ans:focus { outline: none; border-color: var(--blue); }
#ans.right { border-color: var(--green); background: var(--green-l); }
#ans.half { border-color: var(--gold); background: var(--amber-l); }
#ans.wrong { border-color: var(--coral); background: var(--coral-l); animation: shake .35s; }
.accents { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.acc { min-width: 52px; min-height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 700 1.35rem "Nunito", sans-serif; cursor: pointer; }
.acc:active { background: var(--blue-l); }

.feedback { margin-top: 20px; padding: 16px; border-radius: 18px; display: grid; gap: 14px; animation: pop .25s ease; }
.feedback.ok { background: var(--green-l); }
.feedback.half { background: var(--amber-l); }
.feedback.no { background: var(--coral-l); }
.fb-msg { font-size: 1.25rem; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.fb-sol { font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } }

/* Result */
.grade { display: inline-flex; flex-direction: column; align-items: center; margin: 10px 0; }
.grade-num {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  font-size: 5.5rem; font-weight: 700; color: #fff; box-shadow: var(--shadow);
}
.grade-word { font-size: 1.4rem; font-weight: 800; margin-top: 8px; }
.g1 .grade-num, .grade-mini.g1 { background: var(--green); }
.g2 .grade-num, .grade-mini.g2 { background: #4a9d5b; }
.g3 .grade-num, .grade-mini.g3 { background: var(--gold); }
.g4 .grade-num, .grade-mini.g4 { background: #e99a3c; }
.g5 .grade-num, .grade-mini.g5 { background: var(--coral); }
.g6 .grade-num, .grade-mini.g6 { background: #b23a3a; }
.score { font-size: 1.2rem; font-weight: 800; color: var(--muted); }
.big-praise { font-size: 1.4rem; font-weight: 800; margin-top: 24px; }
.review { display: grid; gap: 10px; }
.rev { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); border-left: 6px solid var(--coral); }
.rev.half { border-left-color: var(--gold); }
.rev > div { flex: 1; }
.rev p { margin: 0; }
.rev-right { font-size: 1.2rem; }

.hist { display: grid; gap: 8px; margin: 14px 0 20px; }
.hist-row { display: flex; align-items: center; gap: 16px; background: var(--card); padding: 10px 16px; border-radius: 16px; box-shadow: var(--shadow); flex-wrap: wrap; }
.grade-mini { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 1.4rem "Fredoka", sans-serif; }

#toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 150%);
  background: var(--ink); color: var(--cream); padding: 12px 22px; border-radius: 14px; font-weight: 700;
  transition: transform .25s ease, opacity .25s; z-index: 50; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* Tablet portrait & phones */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { min-height: 0; aspect-ratio: 16/9; }
  .hero-text { padding: 0 22px 24px; }
  .lesson-head { grid-template-columns: 180px 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .link { grid-column: span 2; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lesson-head { grid-template-columns: 1fr; text-align: left; }
  .lesson-img { max-width: 220px; }
  .conj-row { grid-template-columns: 70px 1fr 40px; }
  .conj-row .de { display: none; }
  .options { grid-template-columns: 1fr; }
  .qcard, .panel { padding: 18px; }
}

/* Coral button */
.btn.coral { background: var(--coral); color: #fff; box-shadow: 0 4px 0 #b83d36; }
.btn.coral:active { box-shadow: 0 1px 0 #b83d36; transform: translateY(3px); }
.lesson-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Test modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 6px; }
.mode {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; min-height: 140px;
  border-radius: 20px; border: 3px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; cursor: pointer; transition: all .15s;
}
.mode b { font-family: "Fredoka", sans-serif; font-size: 1.2rem; }
.mode small { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.mode-ic { font-size: 2rem; }
.mode.on { border-color: var(--blue); background: var(--blue-l); }
.mode:disabled { opacity: .45; cursor: not-allowed; }
.small-note { font-size: .9rem; }

/* Microphone */
.q-stem .plus { color: var(--coral); margin: 0 .2em; }
.mic-area { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mic-btn {
  position: relative; width: 140px; height: 140px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--coral); box-shadow: 0 6px 0 #b83d36; display: grid; place-items: center;
  transition: transform .1s;
}
.mic-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #b83d36; }
.mic-ic { font-size: 3.6rem; }
.mic-btn.rec { background: #d93a31; animation: recpulse 1.1s ease-in-out infinite; }
@keyframes recpulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 87, 79, .55); }
  100% { box-shadow: 0 0 0 28px rgba(232, 87, 79, 0); }
}
.mic-btn:disabled { opacity: .5; animation: none; }
.mic-status { font-weight: 800; margin: 4px 0 0; text-align: center; }
.mic-heard { margin: 0; padding: 8px 16px; background: var(--blue-l); border-radius: 12px; text-align: center; }
.mic-heard.miss { background: var(--coral-l); }
.mic-area.done .mic-status { display: none; }

@media (max-width: 560px) {
  .modes { grid-template-columns: 1fr; }
  .mode { min-height: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; text-align: left; }
  .mode small { width: 100%; }
}
.mic-btn.rec::after {
  content: "Fertig"; position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  font: 800 .85rem "Nunito", sans-serif; color: #fff; letter-spacing: .04em;
}
.mic-btn.rec .mic-ic { transform: translateY(-8px); }

/* ===== Hub ===== */
.brand-ic { font-size: 1.5rem; }
.today { display: grid; gap: 10px; }
.today-item {
  display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit; min-height: 64px; border-left: 6px solid var(--gold);
}
.today-ic { font-size: 1.8rem; }
.today-txt { flex: 1; display: flex; flex-direction: column; }
.today-txt small { color: var(--muted); }
.today-score { font-weight: 800; color: var(--blue); background: var(--blue-l); padding: 4px 12px; border-radius: 99px; }
.today-empty { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.today-empty img { width: 90px; height: 90px; border-radius: 14px; object-fit: cover; flex: none; }
.next-exam { background: var(--coral-l); padding: 10px 16px; border-radius: 14px; margin-top: 12px; }
.subjects .card h3 { font-size: 1.25rem; }

.topics { display: grid; gap: 10px; }
.topic { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 18px; padding: 10px 12px 10px 10px; box-shadow: var(--shadow); }
.topic-main { flex: 1; display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit; min-width: 0; }
.topic-num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; font: 700 1.2rem "Fredoka", sans-serif; }
.topic-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.topic-txt b { font-size: 1.15rem; }
.topic-txt small { color: var(--coral); font-weight: 700; font-size: .8rem; }
.topic-sum { color: var(--muted); font-size: .95rem; }
.topic-txt .bar { margin-top: 6px; }
.topic-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pin { min-width: 48px; min-height: 44px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-size: 1.2rem; cursor: pointer; filter: grayscale(1); opacity: .6; color: var(--ink); }
.pin.big { font: 700 1rem "Nunito", sans-serif; padding: 8px 16px; min-height: 52px; }
.pin.on { filter: none; opacity: 1; border-color: var(--coral); background: var(--coral-l); }

.topic-head { background: var(--card); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.topic-head h1 { margin: .1em 0; }
.topic-head p { margin: .2em 0; }
.cards { display: grid; gap: 14px; margin-top: 18px; }
.lcard { background: var(--card); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); border-top: 6px solid var(--blue); }
.lcard:nth-child(3n+2) { border-top-color: var(--coral); }
.lcard:nth-child(3n) { border-top-color: var(--gold); }
.lcard-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lcard h2 { margin: 0; font-size: 1.3rem; }
.lcard-body { margin-top: 8px; overflow-x: auto; }
.lcard-body table { border-collapse: collapse; margin: 8px 0; min-width: 60%; }
.lcard-body th, .lcard-body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.lcard-body th { background: var(--blue-l); }
.lcard-body b { color: var(--blue); }
.lcard-body ul, .lcard-body ol { padding-left: 1.3em; margin: 6px 0; }
.lcard-body li { margin: 3px 0; }

.q-prompt p { line-height: 1.45; }
.qcard .options .opt { font-family: "Nunito", sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.inp-row { display: flex; align-items: center; gap: 10px; }
.inp-row #ans { flex: 1; }
.unit { font: 700 1.4rem "Fredoka", sans-serif; color: var(--muted); }
.fb-ex { margin: 0; font-size: 1.02rem; }
.pct-big { font: 700 4rem "Fredoka", sans-serif; color: var(--blue); }
.rev-q { font-weight: 700; margin-bottom: 4px !important; }
.rev > div { min-width: 0; }

/* Lernplan */
.plan-head p { margin: .3em 0; }
.exams { display: grid; gap: 10px; }
.exam { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); }
.exam.past { opacity: .5; }
.exam-date { flex: none; width: 84px; text-align: center; background: var(--coral-l); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; }
.exam-date small { color: var(--muted); }
.exam-body { flex: 1; min-width: 0; }
.exam-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tchip { font-size: .9rem; background: var(--blue-l); padding: 4px 10px; border-radius: 99px; text-decoration: none; color: var(--ink); }
.tchip em { font-style: normal; color: var(--blue); font-weight: 800; margin-left: 4px; }
.add-exam { margin-top: 14px; }
.add-exam > summary { list-style: none; display: inline-flex; }
.add-exam > summary::-webkit-details-marker { display: none; }
.add-exam .panel { margin-top: 12px; max-width: none; text-align: left; }
.fld { display: flex; flex-direction: column; gap: 6px; font-weight: 800; margin-bottom: 12px; }
.fld select, .fld input { font: 600 1.1rem "Nunito", sans-serif; min-height: 52px; border-radius: 14px; border: 2px solid var(--line); padding: 8px 12px; background: var(--cream); color: var(--ink); }
.fld-lbl { font-weight: 800; margin: 4px 0; }
.add-exam .chips { justify-content: flex-start; }
.plan-subjects { display: grid; gap: 10px; }
.plan-subj { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 4px 14px; }
.plan-subj summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; cursor: pointer; font-weight: 800; font-size: 1.1rem; }
.plan-subj summary small { background: var(--coral); color: #fff; border-radius: 99px; padding: 0 10px; }
.plan-subj summary small:empty { display: none; }
.pin-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; min-height: 52px; background: none; border: none; border-top: 1px solid var(--line); font: 600 1.05rem "Nunito", sans-serif; color: var(--ink); cursor: pointer; flex-wrap: wrap; padding: 6px 0; }
.pin-row span { filter: grayscale(1); opacity: .4; }
.pin-row small { color: var(--muted); width: 100%; padding-left: 30px; font-size: .8rem; }
.pin-row.on { color: var(--coral); }
.pin-row.on span { filter: none; opacity: 1; }
.avg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.avg { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); }
.avg small { display: block; color: var(--muted); }
.avg .grade-mini { width: 54px; height: 54px; font-size: 1.2rem; }

@media (max-width: 560px) {
  .topic { flex-direction: column; align-items: stretch; }
  .topic-actions { flex-direction: row; justify-content: flex-end; }
  .exam { flex-wrap: wrap; }
}

/* ===== Own icon set ===== */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; display: inline-block; }
.btn .ic { width: 1.25em; height: 1.25em; }
.ic.ok { color: var(--green); }
.ic.no { color: var(--coral); }
.ic.half { color: #d99a1e; }
.speak .ic { width: 26px; height: 26px; color: var(--blue); }
.conj-row .ico .ic { width: 26px; height: 26px; color: var(--blue); }
.big-speak .ic { width: 64px; height: 64px; }
.mic-ic .ic { width: 64px; height: 64px; color: #fff; }
.mode-ic .ic { width: 40px; height: 40px; color: var(--blue); }
.badge .ic { width: 22px; height: 22px; stroke-width: 3; }
.stat-num .ic { width: 34px; height: 34px; }
.pin .ic { width: 24px; height: 24px; }
.pin.on { color: var(--coral); }
.pin-row span .ic { width: 22px; height: 22px; }
.grade-word .ic { width: 1.3em; height: 1.3em; color: var(--gold); }
.fb-ex .ic { color: #d99a1e; }
.section-title .ic { color: var(--coral); }
.sthumb { width: 1.6em; height: 1.6em; border-radius: 50%; object-fit: cover; vertical-align: middle; display: inline-block; box-shadow: 0 1px 4px rgba(0,0,0,.15); background: var(--blue-l); }
.sthumb.lg { width: 52px; height: 52px; flex: none; }
.brand-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.hist-row .sthumb, .avg .sthumb { width: 1.5em; height: 1.5em; }
.card h3 { overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; }
.trainer { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: 20px; padding: 12px 18px 12px 12px; box-shadow: var(--shadow); text-decoration: none; color: inherit; margin-top: 18px; border: 3px solid var(--blue-l); }
.trainer img { width: 110px; height: 72px; object-fit: cover; border-radius: 14px; flex: none; }
.trainer span { flex: 1; display: flex; flex-direction: column; }
.trainer b { font-family: "Fredoka", sans-serif; font-size: 1.3rem; color: var(--blue); }
.trainer small { color: var(--muted); }
.trainer > .ic { width: 28px; height: 28px; color: var(--blue); }

/* ===== Kindermodus / lock ===== */
.nav-lock { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--muted); display: grid; place-items: center; cursor: pointer; margin-left: 4px; }
.nav-lock .ic { width: 22px; height: 22px; }
body.kidmode .nav-lock { color: var(--coral); border-color: var(--coral); }
body.kidmode { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
body.kidmode input { -webkit-user-select: text; user-select: text; }
body.kidmode .info { display: none; }
.lock-ov { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--blue-d) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; }
.lock-box { background: var(--card); border-radius: 28px; padding: 28px 24px; width: min(420px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lock-box h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.lock-box p { margin: 0; color: var(--muted); }
.lock-box .btn { width: 100%; }
.lock-box.shake { animation: shake .35s; }
.lock-logo { width: 96px; height: 96px; border-radius: 22px; }
.pin-dots { display: flex; gap: 16px; margin: 6px 0; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--blue); }
.pin-dots i.on { background: var(--blue); }
.pin-msg { color: var(--coral) !important; font-weight: 800; min-height: 1.4em; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; }
.pin-pad button { height: 76px; border-radius: 50%; border: 2px solid var(--line); background: var(--cream); color: var(--ink); font: 700 1.8rem "Fredoka", sans-serif; cursor: pointer; display: grid; place-items: center; }
.pin-pad button:active { background: var(--blue-l); }
.pin-pad .ic { width: 28px; height: 28px; }
.panel.left { text-align: left; max-width: none; margin-top: 16px; }
.panel.left h2 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.panel.left ol { padding-left: 1.3em; }
.panel.left li { margin: 4px 0; }
h1 .ic { color: var(--blue); }

/* Topic cards (like the French lesson grid) */
.tgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tcard .card-link { display: block; text-decoration: none; color: inherit; }
.tcard h3 { font-size: 1.2rem; line-height: 1.25; }
.tcard p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-pin { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.topic-head.lesson-head { align-items: start; }
.topic-head .lesson-img { width: 100%; }
.today-item .sthumb.lg { border-radius: 14px; }
@media (max-width: 560px) { .tgrid { grid-template-columns: 1fr 1fr; } .tcard p { display: none; } }
.fb-say { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.lp { margin: 8px 0; }
.lp summary { cursor: pointer; font-weight: 800; color: var(--blue); min-height: 40px; display: flex; align-items: center; gap: 6px; }
.lp p { font-size: .95rem; }

/* Stop button while audio plays */
#stopSpeech { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; display: none; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px 0 18px; border: none; border-radius: 999px; background: var(--coral); color: #fff; font: 700 1.1rem "Nunito", sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; }
body.speaking #stopSpeech { display: inline-flex; animation: pop .2s ease; }
#stopSpeech .ic { width: 22px; height: 22px; fill: currentColor; }
body.speaking .speak { position: relative; }
.voice-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.voice-row .fld { flex: 1; min-width: 220px; margin-bottom: 8px; }
.voice-row .btn { margin-bottom: 8px; }

/* ===== Arbeitsblätter ===== */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head .section-title, .sec-head h1 { margin-bottom: 8px; }
.sheet-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sheet-card img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #fff; }
.sheet-card.done { opacity: .75; }
.sheets-open { border-left-color: var(--coral); margin-bottom: 10px; }
.sheets-open .today-ic .ic { width: 34px; height: 34px; color: var(--coral); }
.sheet-add { width: min(560px, 100%); text-align: left; align-items: stretch; }
.sheet-add .fld { width: 100%; }
.sheet-add .btn { width: auto; }
.sheet-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.sheet-thumbs figure { margin: 0; flex: none; text-align: center; font-size: .8rem; color: var(--muted); }
.sheet-thumbs img { width: 80px; height: 106px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sheet-head h1 { margin: 0; }
.sheet-tools { position: sticky; top: 72px; z-index: 5; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--card); padding: 8px 10px; border-radius: 18px; box-shadow: var(--shadow); margin: 14px 0; }
.tool { width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.tool .ic { width: 26px; height: 26px; }
.tool.pen .ic { color: var(--c); }
.tool.on { border-color: var(--blue); background: var(--blue-l); box-shadow: inset 0 0 0 2px var(--blue); }
.tool-sep { flex: 1; }
.sheet-pages { display: grid; gap: 16px; }
.sheet-page { position: relative; width: 100%; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.sheet-page img, .sheet-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet-page img { object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.worksheet { background: var(--card); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.ws-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.ws-head h1 { margin: 0; }
.ws-img { width: 130px; height: 130px; border-radius: 18px; object-fit: cover; flex: none; }
.ws-meta { color: var(--muted); margin: 10px 0 18px; }
.ws-list { padding-left: 1.4em; display: grid; gap: 14px; }
.ws-q { padding: 10px 12px; border-radius: 14px; border: 2px solid transparent; }
.ws-q.right { border-color: var(--green); background: var(--green-l); }
.ws-q.wrong { border-color: var(--coral); background: var(--coral-l); }
.ws-text { margin: 0 0 8px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-opt { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; min-height: 48px; }
.ws-opt input { width: 20px; height: 20px; accent-color: var(--blue); }
.ws-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-l); }
.ws-inp { flex: 1; min-height: 48px; font: 600 1.1rem "Nunito", sans-serif; border: 2px solid var(--line); border-radius: 12px; padding: 6px 12px; background: var(--cream); color: var(--ink); }
.ws-fb { margin-top: 8px; }
@media print {
  .topbar, .no-print, #stopSpeech, #toast, .speak { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  main { padding: 0; }
  .worksheet { box-shadow: none; padding: 0; }
  .ws-q { break-inside: avoid; }
}

/* OpenArt icons used as colour masks */
span.ic { background-color: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* ===== Profile ===== */
.nav-me { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; font: 800 1rem "Nunito", sans-serif; color: var(--ink); margin-right: 4px; }
.nav-me img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.profile-box { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; align-items: stretch; text-align: left; }
.profile-box h2, .profile-box > p { text-align: center; justify-content: center; }
.lock-logo.small { width: 64px; height: 64px; align-self: center; }
.age-row { display: flex; gap: 8px; flex-wrap: wrap; }
.age-row .chip { min-width: 56px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.av { border: 3px solid transparent; background: var(--cream); border-radius: 18px; padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 .8rem "Nunito", sans-serif; color: var(--muted); }
.av img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.av.on { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
.me-big { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* ===== Designed worksheets ===== */
.ws-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ws-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.ws-score { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; font-weight: 800; border-radius: 99px; padding: 2px 10px; font-size: .85rem; }
.ws-intro { background: var(--amber-l); border-left: 6px solid var(--gold); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.ws-tasks { list-style: none; padding: 0; display: grid; gap: 16px; }
.ws-task { border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.ws-task h3 { margin: 0 0 10px; font-size: 1.15rem; }
.ws-task.right { border-color: var(--green); }
.ws-task.wrong { border-color: var(--coral); }
.ws-cloze { line-height: 2.4; font-size: 1.1rem; }
.ws-blank { font: 700 1.05rem "Nunito", sans-serif; border: none; border-bottom: 3px solid var(--blue); background: var(--blue-l); border-radius: 6px 6px 0 0; padding: 2px 6px; margin: 0 2px; color: var(--ink); min-height: 36px; }
.ws-blank.wide { width: 100% !important; max-width: 320px; }
.ws-blank.ok, .ws-sel.ok { background: var(--green-l); border-color: var(--green); }
.ws-blank.bad, .ws-sel.bad { background: var(--coral-l); border-color: var(--coral); }
.ws-table { border-collapse: collapse; }
.ws-table td, .ws-table th { border: 1px solid var(--line); padding: 6px 10px; }
.ws-match { display: grid; gap: 8px; }
.ws-match-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-match-row > span { flex: 1; min-width: 160px; font-weight: 600; }
.ws-sel { min-height: 46px; font: 600 1rem "Nunito", sans-serif; border: 2px solid var(--line); border-radius: 12px; padding: 4px 10px; background: var(--cream); color: var(--ink); max-width: 100%; }
.ws-sel.small { width: 70px; }
.ws-opt.ok { border-color: var(--green); background: var(--green-l); }
.ws-opt.bad { border-color: var(--coral); background: var(--coral-l); }
.ws-free { width: 100%; font: 1rem "Nunito", sans-serif; border: 2px solid var(--line); border-radius: 12px; padding: 10px; background: var(--cream); color: var(--ink); margin-bottom: 8px; }
.ws-solution { background: var(--green-l); border-radius: 12px; padding: 10px 14px; margin-top: 8px; }
@media print { .ws-blank { background: none; } .ws-sol-btn, .ws-solution { display: none !important; } }

/* Lehrplan modal + pin hint */
.lp-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 8px 0; min-height: 44px; font: 800 1rem "Nunito", sans-serif; color: var(--blue); cursor: pointer; }
.lp-box { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; text-align: left; align-items: stretch; }
.lp-box h2 { justify-content: center; }
.lp-box h3 { margin: 8px 0 0; font-size: 1.05rem; }
.lp-src { color: var(--ink) !important; }
.lp-list { margin: 4px 0; padding-left: 1.2em; color: var(--muted); }
.lp-box .row .btn { width: auto; }
.pin-hint { display: flex; align-items: center; gap: 10px; margin: 28px 0 8px; padding: 12px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); color: var(--muted); font-size: .95rem; }
.pin-hint .ic { color: var(--coral); width: 22px; height: 22px; }
/* Profile chip: prominent avatar + name in the header */
.nav-me { padding: 3px 16px 3px 3px; border-color: var(--blue-l); background: var(--blue-l); }
.nav-me img { width: 44px; height: 44px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.nav-me span { font-size: 1.05rem; color: var(--blue); }
@media (max-width: 560px) { .nav-me span { display: inline; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nav-me { padding: 3px 10px 3px 3px; }  }

.profile-box .fld-lbl { text-align: left !important; color: var(--ink); }

/* ---------- Kinder, Datensicherung, Fehler melden ---------- */
.kid-list { display: grid; gap: 10px; margin: 8px 0 14px; }
.kid-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--blue-l); border: 2px solid transparent; flex-wrap: wrap; }
.kid-row.on { border-color: var(--blue); }
.kid-row img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.kid-row > div { flex: 1 1 160px; display: flex; flex-direction: column; }
.kid-row small { opacity: .75; }
.kid-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .8rem; font-weight: 700; vertical-align: middle; }
.fb-report { margin-top: 10px; text-align: right; }
.report-btn { opacity: .8; font-size: .85rem; }
.report-item { background: rgba(0,0,0,.05); border-radius: 12px; padding: 10px 12px; font-size: .95rem; text-align: left; }
.report-ov textarea { width: 100%; font: inherit; border-radius: 12px; border: 2px solid rgba(0,0,0,.12); padding: 10px; box-sizing: border-box; }
.report-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.report-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.04); }
.report-list li > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.report-list em { color: var(--coral); font-style: normal; font-weight: 700; }

/* ---------- Trainer: Vokabeln & Fehlerheft ---------- */
.trainer-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 8px; }
.trainer-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; background: var(--card); border-radius: 20px; box-shadow: 0 4px 16px rgba(31,37,64,.08); color: inherit; text-decoration: none; transition: transform .15s; }
.trainer-card:active { transform: scale(.98); }
.trainer-card img { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; flex: none; }
.trainer-card span { display: flex; flex-direction: column; gap: 2px; }
.trainer-card b { font-family: Fredoka, sans-serif; font-size: 1.25rem; }
.trainer-card small { opacity: .75; }
.trainer-card .badge { position: absolute; top: 10px; right: 10px; background: var(--coral); }
.trainer-head { display: flex; gap: 20px; align-items: center; background: var(--card); border-radius: 24px; padding: 18px; box-shadow: 0 4px 16px rgba(31,37,64,.08); margin-bottom: 18px; }
.trainer-head img { width: 150px; height: 150px; border-radius: 20px; object-fit: cover; flex: none; }
.trainer-head h1 { margin: 0 0 6px; }
@media (max-width: 600px) { .trainer-head { flex-direction: column; text-align: center; } .trainer-head img { width: 120px; height: 120px; } }
.mk-list { display: grid; gap: 10px; }
.mk-row { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 18px; padding: 10px 14px; box-shadow: 0 2px 10px rgba(31,37,64,.06); flex-wrap: wrap; }
.mk-row img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.mk-row > div { flex: 1 1 160px; display: flex; flex-direction: column; }
.mk-row small { opacity: .75; }
.tag.ok { background: var(--green); display: inline-flex; gap: 4px; align-items: center; }
.vk-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.vk-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border-radius: 20px; padding: 16px; box-shadow: 0 4px 16px rgba(31,37,64,.08); color: inherit; text-decoration: none; }
.vk-card b { font-family: Fredoka, sans-serif; font-size: 1.2rem; }
.vk-card small { opacity: .8; }
.vk-card .due { color: var(--coral); font-weight: 800; }
.vk-lang { align-self: flex-start; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--blue-l); color: var(--blue); padding: 2px 10px; border-radius: 99px; }
.vk-boxes { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--blue-l); }
.vk-boxes i { display: block; }
.vk-boxes .b0 { background: #c9cfdf; } .vk-boxes .b1 { background: var(--coral); } .vk-boxes .b2 { background: var(--gold); }
.vk-boxes .b3 { background: #9ccf6a; } .vk-boxes .b4 { background: var(--green); } .vk-boxes .b5 { background: var(--blue); }
.vk-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
.vk-mode { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border: 0; border-radius: 20px; background: var(--card); box-shadow: 0 4px 16px rgba(31,37,64,.08); font: inherit; color: inherit; cursor: pointer; }
.vk-mode .ic { width: 34px; height: 34px; color: var(--blue); }
.vk-mode b { font-family: Fredoka, sans-serif; font-size: 1.2rem; }
.vk-mode small { opacity: .75; text-align: center; }
.vk-shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 12px; }
.vk-shelf div { background: var(--blue-l); border-radius: 12px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.vk-shelf b { font-size: 1.3rem; }
.vk-table { width: 100%; border-collapse: collapse; }
.vk-table td { padding: 6px 8px; border-bottom: 1px solid rgba(0,0,0,.07); vertical-align: middle; }
.vk-table td:last-child { text-align: right; opacity: .7; white-space: nowrap; }
.flash { min-height: 240px; display: grid; place-items: center; background: var(--card); border-radius: 26px; box-shadow: 0 6px 22px rgba(31,37,64,.12); margin: 10px auto 18px; max-width: 560px; padding: 24px; text-align: center; cursor: pointer; transition: transform .3s; }
.flash.flipped { background: var(--green-l); cursor: default; animation: flip .35s ease; }
@keyframes flip { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
.flash-face { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flash-face small { text-transform: uppercase; letter-spacing: .06em; opacity: .6; font-weight: 800; }
.flash-face b { font-family: Fredoka, sans-serif; font-size: 2.1rem; }
.vk-ask { max-width: 620px; margin: 0 auto; }
.vk-word { font-family: Fredoka, sans-serif; font-size: 2rem; margin: 6px 0 14px; }
.vk-ask form { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 12px; }
.vk-ask input { font-size: 1.4rem; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--blue-l); width: 100%; max-width: 420px; box-sizing: border-box; text-align: center; }
#vkText { width: 100%; font: 1rem/1.5 ui-monospace, Menlo, monospace; border-radius: 12px; border: 2px solid rgba(0,0,0,.12); padding: 10px; box-sizing: border-box; }
button.back { background: none; border: 0; font: inherit; font-weight: 800; color: var(--blue); cursor: pointer; }

/* ---------- Wer lernt jetzt? ---------- */
.who-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; width: 100%; margin: 6px 0 4px; }
.who { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; border: 3px solid transparent; border-radius: 22px; background: var(--cream); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.who:active { transform: scale(.97); }
.who.on { border-color: var(--blue); }
.who img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.who b { font-family: Fredoka, sans-serif; font-size: 1.2rem; }
.who small { color: var(--muted); font-size: .8rem; }
.who.add { border: 3px dashed var(--blue-l); background: transparent; }
.who-plus { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); }
.who-plus .ic { width: 40px; height: 40px; }
.who-box .row { width: 100%; flex-direction: column; gap: 8px; }

/* ---------- Header (v2) ---------- */
.topbar { gap: 12px; padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }
.logo { gap: 10px; flex: none; }
.brand-txt { font-size: 1.45rem; letter-spacing: -.01em; }
.brand-img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
#nav { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; text-decoration: none; font: 700 1rem "Fredoka", "Nunito", sans-serif; color: var(--muted); transition: background .15s, color .15s; }
.nav-link .ic { width: 20px; height: 20px; }
.nav-link.on { background: var(--blue); color: #fff; }
.nav-link:not(.on):hover { color: var(--blue); }
.nav-me { margin: 0; }
.nav-pause { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font: 700 1rem "Fredoka", "Nunito", sans-serif; cursor: pointer; box-shadow: 0 3px 0 color-mix(in srgb, var(--coral) 70%, #000); }
.nav-pause:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--coral) 70%, #000); }
.nav-pause .ic { width: 22px; height: 22px; }
@media (max-width: 900px) { .nav-link > span:not(.ic), .nav-pause > span:not(.ic) { display: none; } .nav-link { padding: 10px 12px; } .nav-pause { width: 50px; padding: 0; justify-content: center; } }
@media (max-width: 560px) {
  .brand-txt { display: none; }
  .nav-me span { display: none; } .nav-me { padding: 3px; }
  #nav { gap: 6px; } .nav-link { padding: 9px 10px; } .nav-pause { width: 46px; height: 46px; }
}
.pause-box { width: min(480px, 100%); }
.pause-av { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.18); margin-top: -4px; }
.pause-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 4px; }
.pm { display: flex; align-items: center; gap: 10px; padding: 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); font: 700 .98rem "Nunito", sans-serif; text-align: left; cursor: pointer; }
.pm .ic { width: 24px; height: 24px; color: var(--blue); flex: none; }
.pm:active { transform: scale(.98); }
.nav-links, .nav-link, .nav-link .ic, .nav-pause, .nav-pause .ic, .nav-me { flex: none; }
.topbar .logo { flex-shrink: 0; }

/* ---------- Overlays (einheitlich) ---------- */
.lock-ov { background: color-mix(in srgb, #1f2540 42%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: ovFade .18s ease; }
@keyframes ovFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ovPop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.lock-box { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px 22px 22px; gap: 14px; border-radius: 28px; box-shadow: 0 24px 60px rgba(20,25,45,.28); animation: ovPop .22s ease; }
.lock-box > p { color: var(--muted); }
.ov-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; width: 100%; padding: 0 36px; box-sizing: border-box; }
.ov-head h2 { margin: 4px 0 0; font-size: 1.5rem; line-height: 1.2; justify-content: center; }
.ov-sub { margin: 0; color: var(--muted); font-size: .95rem; }
.ov-img { width: 84px; height: 84px; object-fit: cover; border-radius: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.ov-img.round { border-radius: 50%; border: 3px solid var(--card); }
.ov-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; }
.ov-icon .ic { width: 30px; height: 30px; }
.ov-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); color: var(--muted); display: grid; place-items: center; cursor: pointer; z-index: 1; }
.ov-x .ic { width: 18px; height: 18px; }
.ov-x:active { transform: scale(.94); }
.ov-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: center; border: 0; background: none; padding: 6px 10px; font: 700 .95rem "Nunito", sans-serif; color: var(--blue); cursor: pointer; }
.link-btn .ic { width: 18px; height: 18px; }
.link-btn.danger { color: var(--coral); }
.lock-box .btn { width: 100%; }
.pause-box, .report-box, .lp-box { width: min(460px, 100%); }
.pause-grid { gap: 10px; }
.pm { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 8px; min-height: 92px; text-align: center; border-width: 0; background: var(--cream); font-size: .95rem; }
.pm .ic { width: 26px; height: 26px; }
.pm.on { background: var(--blue-l); box-shadow: inset 0 0 0 2px var(--blue); }
.pause-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .pause-grid { grid-template-columns: 1fr 1fr; } }
.report-box .age-row { justify-content: center; }
.report-box textarea { width: 100%; font: inherit; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 12px; box-sizing: border-box; resize: none; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lp-chips span { padding: 5px 12px; border-radius: 99px; background: var(--blue-l); color: var(--blue); font-weight: 800; font-size: .85rem; }
.who-box { width: min(520px, 100%); }
.who-grid { margin: 0; }
.profile-box .ov-head { text-align: center; }
.profile-box .age-row { justify-content: flex-start; }
.pin-msg { min-height: 1.2em; }
.ov-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.ov-stats div { background: var(--cream); border-radius: 16px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.ov-stats b { font: 700 1.5rem "Fredoka", sans-serif; color: var(--blue); }
.ov-stats small { color: var(--muted); font-weight: 700; }
.pause-foot { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Themenseite (v2) ---------- */
.t-hero { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 28px; align-items: center; background: var(--card); border-radius: 32px; padding: 18px; box-shadow: var(--shadow); }
.t-hero-img { position: relative; }
.t-hero-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; display: block; }
.t-pin { position: absolute; top: 12px; left: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(4px); color: var(--muted); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); padding: 0; }
.t-pin .ic { width: 22px; height: 22px; }
.t-pin.on { background: var(--coral); color: #fff; }
.t-hero-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-right: 8px; }
.t-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.t-tags > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; background: var(--blue-l); color: var(--blue); font-weight: 800; font-size: .82rem; }
.t-tags > span:first-child { background: var(--coral-l); color: var(--coral); }
.t-tags .ic { width: 15px; height: 15px; }
.t-hero h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; }
.t-sum { margin: 0; color: var(--muted); font-size: 1.05rem; }
.t-progress { display: flex; align-items: center; gap: 14px; background: var(--cream); border-radius: 20px; padding: 12px 16px; }
.t-progress > div { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.t-progress small { color: var(--muted); font-weight: 700; }
.t-ring { --p: 0; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--blue-l) 0); }
.t-ring b { width: 48px; height: 48px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font: 700 1.05rem "Fredoka", sans-serif; color: var(--ink); }
.t-ring b small { font-size: .65rem; margin-left: 1px; }
.t-ring.new { background: conic-gradient(var(--gold) 100%, var(--gold) 0); }
.t-ring.new b { font-size: .9rem; color: var(--gold); }
.t-read { height: 10px; border-radius: 99px; background: var(--blue-l); overflow: hidden; }
.t-read span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #7cc8a4); border-radius: 99px; transition: width .35s ease; }

.t-steps { list-style: none; padding: 0; margin: 26px 0 0; position: relative; }
.t-steps::before { content: ""; position: absolute; left: 23px; top: 20px; bottom: 20px; width: 4px; border-radius: 4px; background: repeating-linear-gradient(to bottom, var(--line) 0 10px, transparent 10px 18px); }
.t-step { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 14px; margin-bottom: 16px; --c: var(--blue); --cl: var(--blue-l); }
.t-step.c1 { --c: var(--coral); --cl: var(--coral-l); }
.t-step.c2 { --c: #d99a1e; --cl: var(--amber-l); }
.t-step.c3 { --c: var(--green); --cl: var(--green-l); }
.t-num { position: sticky; top: 90px; z-index: 1; width: 50px; height: 50px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 1.3rem "Fredoka", sans-serif; box-shadow: 0 0 0 5px var(--cream), 0 4px 10px rgba(0,0,0,.15); }
.t-num .ic { width: 24px; height: 24px; }
.t-step.done .t-num { background: var(--green); }
.t-step .lcard { border-top: 0; border-radius: 24px; padding: 0 0 14px; overflow: hidden; }
.t-step .lcard-head { background: var(--cl); padding: 14px 16px 14px 20px; }
.t-step .lcard h2 { font-size: 1.25rem; color: var(--ink); }
.t-step .lcard-body { padding: 4px 20px 0; font-size: 1.05rem; line-height: 1.6; }
.t-step .lcard-body b { color: var(--c); }
.t-step .speak { background: var(--card); }
.t-got { display: flex; align-items: center; gap: 6px; margin: 10px 16px 0 auto; border: 2px solid var(--line); background: var(--card); color: var(--muted); border-radius: 99px; padding: 8px 16px; font: 700 .95rem "Nunito", sans-serif; cursor: pointer; }
.t-got .ic { width: 18px; height: 18px; }
.t-step.done .t-got { background: var(--green); border-color: var(--green); color: #fff; }
.t-step.done .lcard { box-shadow: 0 0 0 2px var(--green), var(--shadow); }

.t-next { margin: 34px 0 10px; text-align: center; }
.t-next h2 { margin: 0 0 14px; }
.t-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.t-act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px 18px; border-radius: 26px; text-decoration: none; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.18); transition: transform .12s; }
.t-act:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.t-act .ic { width: 38px; height: 38px; }
.t-act b { font: 700 1.4rem "Fredoka", sans-serif; }
.t-act small { opacity: .9; font-weight: 700; }
.t-act.blue { background: var(--blue); } .t-act.coral { background: var(--coral); } .t-act.gold { background: #e3a52c; }
.t-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.t-nav { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); min-width: 0; }
.t-nav img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.t-nav span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.t-nav small { color: var(--muted); font-weight: 700; }
.t-nav b { font: 700 1.05rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-nav .ic { width: 22px; height: 22px; color: var(--blue); flex: none; }
.t-nav.prev { flex-direction: row; } .t-nav.prev .ic { order: -1; }
.t-nav.next { text-align: right; } .t-nav.next img { order: 2; } .t-nav.next .ic { order: 3; }
@media (max-width: 760px) {
  .t-hero { grid-template-columns: 1fr; gap: 16px; }
  .t-hero-img img { aspect-ratio: 16/10; }
  .t-hero-body { padding: 0 4px 4px; }
  .t-acts { gap: 10px; } .t-act { padding: 16px 6px 14px; } .t-act b { font-size: 1.1rem; } .t-act small { font-size: .75rem; }
  .t-pager { grid-template-columns: 1fr; }
  .t-step { grid-template-columns: 40px 1fr; gap: 10px; } .t-num { width: 40px; height: 40px; font-size: 1.1rem; } .t-steps::before { left: 18px; }
}

/* ---------- Fachseite (v2) ---------- */
.s-hero .t-hero-img img { aspect-ratio: 1; }
.t-progress > .s-stats, .s-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-stats > div { display: flex; flex-direction: column; }
.s-stats b { font: 700 1.5rem "Fredoka", sans-serif; color: var(--ink); line-height: 1.1; }
.s-stats b small { font-size: .9rem; color: var(--muted); }
.s-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.s-acts .lp-btn { font: inherit; }
.s-next { display: flex; align-items: center; gap: 16px; margin: 20px 0 6px; padding: 12px 16px 12px 12px; border-radius: 26px; background: linear-gradient(120deg, var(--blue), color-mix(in srgb, var(--blue) 70%, var(--coral))); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(43,76,155,.25); }
.s-next img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; flex: none; border: 3px solid rgba(255,255,255,.6); }
.s-next > span:not(.s-go) { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-next small { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; opacity: .8; font-size: .75rem; }
.s-next b { font: 700 1.35rem "Fredoka", sans-serif; }
.s-next em { font-style: normal; opacity: .85; font-weight: 700; }
.s-go { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.s-go .ic { width: 24px; height: 24px; }
.s-alldone { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 20px 0 6px; padding: 16px; border-radius: 22px; background: var(--green-l); color: var(--green); font-weight: 800; }
.s-group { margin-top: 26px; }
.s-group-h { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin: 0 0 12px; }
.s-group-h span { flex: none; padding: 4px 12px; border-radius: 99px; background: var(--blue); color: #fff; font-size: .85rem; }
.tgrid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tcard2 { position: relative; border-radius: 22px; overflow: hidden; }
.tcard2 .card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.tc2-img { position: relative; display: block; }
.tc2-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tc2-num { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--card); color: var(--blue); display: grid; place-items: center; font: 700 1rem "Fredoka", sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.tc2-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px 14px 14px; }
.tc2-body b { font: 600 1.08rem/1.25 "Fredoka", sans-serif; color: var(--ink); overflow-wrap: anywhere; hyphens: auto; }
.tc2-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-weight: 800; font-size: .8rem; }
.tc2-status .ic { width: 14px; height: 14px; }
.tc2-status.new { background: var(--amber-l); color: #b07a10; }
.tc2-status.mid { background: var(--blue-l); color: var(--blue); }
.tc2-status.ok { background: var(--green-l); color: var(--green); }
.tcard2.good { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.tcard2 .card-pin { top: 10px; right: 10px; left: auto; }
@media (max-width: 560px) { .tgrid2 { grid-template-columns: 1fr 1fr; gap: 10px; } .tc2-body b { font-size: .98rem; } .s-next b { font-size: 1.1rem; } .s-next img { width: 64px; height: 64px; } .s-stats b { font-size: 1.2rem; } }
.tcard2 .card-pin { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.tcard2 .card-pin .ic { width: 20px; height: 20px; }
.tcard2 .card-pin.on { background: var(--coral); color: #fff; }
.s-next { background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #b0567a) 60%, #b0567a); }
.s-acts .lp-btn { min-height: 0; padding: 12px 20px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); font: 700 1rem "Fredoka", "Nunito", sans-serif; }
.tcard2 .card-pin { filter: none; opacity: .92; }
.tcard2 .card-pin.on { opacity: 1; }
.tc2-body b { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* ---------- Startseite (v2) ---------- */
.h-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: var(--card); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.h-hero-img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.h-hero-body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 26px 26px 26px 24px; min-width: 0; }
.h-hero h1 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; }
.h-exam { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 18px 12px 12px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.h-exam > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.h-exam small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.h-exam b { font: 700 1.25rem "Fredoka", sans-serif; }
.h-exam em { font-style: normal; color: var(--muted); font-weight: 700; }
.h-exam > .ic { width: 22px; height: 22px; color: var(--blue); }
.h-exam-d { width: 64px; height: 64px; flex: none; border-radius: 18px; background: var(--blue-l); color: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.h-exam-d b { font-size: 1.6rem; line-height: 1; }
.h-exam-d small { color: inherit; text-transform: none; letter-spacing: 0; font-size: .75rem; }
.h-exam.soon .h-exam-d { background: var(--coral); color: #fff; }
.h-first { margin-top: 0; }
.h-first img { width: 96px; height: 96px; }
.h-sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 12px; }
.h-sugs:empty { display: none; }
.h-sug { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-width: 0; }
.h-sug img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.h-sug > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.h-sug b { font: 600 1.02rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-sug small { color: var(--muted); font-weight: 700; }
.h-sug-ic { width: 56px; height: 56px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--amber-l); color: #b07a10; }
.h-sug-ic .ic { width: 26px; height: 26px; }
.h-sug.plan .h-sug-ic { background: var(--coral-l); color: var(--coral); }
#openSheets { display: contents; }
#openSheets[hidden] { display: none; }
.h-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.h-act { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 18px; border-radius: 24px; text-decoration: none; color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.16); }
.h-act:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.16); }
.h-act .ic { width: 30px; height: 30px; flex: none; }
.h-act b { font: 700 1.2rem "Fredoka", sans-serif; }
.h-act i { position: absolute; top: -8px; right: -6px; min-width: 30px; height: 30px; padding: 0 8px; box-sizing: border-box; border-radius: 99px; background: var(--card); color: var(--coral); font: 800 .95rem "Nunito", sans-serif; font-style: normal; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.h-act.blue { background: var(--blue); } .h-act.coral { background: var(--coral); } .h-act.gold { background: #e3a52c; }
.h-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.h-subj { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink); }
.h-subj img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.h-subj-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.h-subj-body b { font: 700 1.2rem "Fredoka", sans-serif; color: var(--blue); overflow-wrap: break-word; hyphens: auto; }
.h-subj-body small { color: var(--muted); font-weight: 700; }
.h-subj-body .bar { margin-top: 6px; }
.h-info { margin-top: 26px; }
@media (max-width: 820px) {
  .h-hero { grid-template-columns: 1fr; }
  .h-hero-img { min-height: 0; aspect-ratio: 16/8; }
  .h-hero-body { padding: 18px 18px 20px; }
}
@media (max-width: 560px) {
  .h-acts { gap: 8px; } .h-act { flex-direction: column; gap: 6px; padding: 14px 6px; text-align: center; } .h-act b { font-size: .95rem; }
  .h-subjects { grid-template-columns: 1fr 1fr; gap: 10px; }
  .h-first img { width: 64px; height: 64px; }
}
.s-stats > div > small { font-size: .82rem; line-height: 1.2; font-weight: 700; color: var(--muted); }
.h-tip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 99px; background: var(--coral-l); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.h-tip .ic { width: 18px; height: 18px; color: var(--coral); flex: none; }
.h-tip b { color: var(--coral); }
.h-sug small, .h-exam em { font-size: .85rem; line-height: 1.3; }
.h-exam em { font-weight: 700; }
.h-act.blue, .t-act.blue { background: var(--brand); } .h-act.coral, .t-act.coral { background: #e8574f; } .h-act.gold, .t-act.gold { background: #e3a52c; }
.h-subj-body b { font-size: 1.12rem; }

/* ---------- Lernplan (v2) ---------- */
.h-exam-d.hot { background: var(--coral); color: #fff; }
.t-ring.sm { width: 52px; height: 52px; } .t-ring.sm b { width: 40px; height: 40px; font-size: .9rem; background: var(--card); }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.p-head .section-title { margin: 0; }
.p-exams { display: grid; gap: 14px; margin-top: 14px; }
.p-exam { display: flex; gap: 14px; align-items: stretch; padding: 14px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.p-date { flex: none; width: 72px; border-radius: 20px; background: var(--blue-l); color: var(--blue); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 0; }
.p-date b { font: 700 2rem/1 "Fredoka", sans-serif; }
.p-date small { font-weight: 800; font-size: .8rem; text-transform: uppercase; }
.p-exam.soon .p-date { background: var(--coral); color: #fff; }
.p-exam.past { opacity: .7; box-shadow: none; }
.p-exam.past .p-date { background: var(--line); color: var(--muted); }
.p-exam-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.p-exam-top { display: flex; align-items: center; gap: 12px; }
.p-exam-top img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.p-exam-top > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.p-exam-top b { font: 700 1.25rem "Fredoka", sans-serif; }
.p-exam-top small { color: var(--muted); font-weight: 700; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: .88rem; color: var(--ink); background: var(--cream); }
.p-chip em { font-style: normal; font-weight: 800; font-size: .78rem; padding: 1px 7px; border-radius: 99px; }
.p-chip.new em { background: var(--amber-l); color: #b07a10; } .p-chip.mid em { background: var(--blue-l); color: var(--blue); } .p-chip.ok em { background: var(--green-l); color: var(--green); }
.p-exam-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icon-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn .ic { width: 18px; height: 18px; }
.p-empty { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px; padding: 14px; border: 2px dashed var(--line); border-radius: 24px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.p-empty > span:last-child { display: flex; flex-direction: column; }
.p-empty b { font: 700 1.1rem "Fredoka", sans-serif; }
.p-empty small { color: var(--muted); font-weight: 700; }
.p-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.p-pin { padding-right: 8px; }
.p-pin > a { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.p-pin > a > span { display: flex; flex-direction: column; min-width: 0; }
.p-hint { color: var(--muted); font-weight: 700; margin: 4px 0 12px; }
.p-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.p-subj { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px 14px; border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: inherit; cursor: pointer; }
.p-subj img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.p-subj b { font: 600 1rem "Fredoka", sans-serif; text-align: center; }
.p-subj i { position: absolute; top: 8px; right: 8px; min-width: 28px; height: 28px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; background: var(--coral); color: #fff; font: 800 .9rem "Nunito", sans-serif; font-style: normal; display: grid; place-items: center; }
.p-subj.on { box-shadow: 0 0 0 2px var(--coral), var(--shadow); }
.p-past { margin-top: 26px; }
.p-past summary { cursor: pointer; font-weight: 800; color: var(--muted); }
.p-dlg { width: min(520px, 100%); }
.p-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.p-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 2px solid transparent; border-radius: 18px; background: var(--cream); color: var(--ink); font: 700 1rem "Nunito", sans-serif; text-align: left; cursor: pointer; }
.p-row img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.p-row span { flex: 1; }
.p-row i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--muted); flex: none; }
.p-row i .ic { width: 18px; height: 18px; }
.p-row.on { border-color: var(--coral); background: var(--coral-l); }
.p-row.on i { background: var(--coral); color: #fff; }
.p-subpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; width: 100%; }
.p-subpick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 2px solid transparent; border-radius: 16px; background: var(--cream); color: var(--ink); font: 700 .8rem "Nunito", sans-serif; cursor: pointer; }
.p-subpick img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.p-subpick button.on { border-color: var(--blue); background: var(--blue-l); }
.p-dlg .chips { justify-content: flex-start; }
.p-dlg input[type=date] { width: 100%; box-sizing: border-box; }

/* ---------- Ergebnisse (v2) ---------- */
.grade-mini.big { width: 64px; height: 64px; font-size: 1.5rem; flex: none; }
.r-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.r-subj { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.r-subj img { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; flex: none; }
.r-subj-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.r-subj-body b { font: 700 1.15rem "Fredoka", sans-serif; }
.r-subj-body small { color: var(--muted); font-weight: 700; }
.r-dots { display: flex; gap: 4px; }
.r-dots .grade-mini { width: 22px; height: 22px; font-size: .75rem; font-style: normal; }
.r-subj > .grade-mini { width: 52px; height: 52px; font-size: 1.15rem; flex: none; }
.r-day { margin-bottom: 16px; }
.r-day h3 { margin: 0 0 8px; font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.r-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; margin-bottom: 8px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.r-row img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.r-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.r-row b { font: 600 1.02rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-row small { color: var(--muted); font-weight: 700; font-size: .85rem; }
.r-row .grade-mini { width: 40px; height: 40px; font-size: 1.1rem; flex: none; }
@media (max-width: 560px) { .p-date { width: 58px; } .p-date b { font-size: 1.6rem; } .p-subjects { grid-template-columns: repeat(3, 1fr); gap: 8px; } .p-subj img { width: 56px; height: 56px; } .p-subj b { font-size: .85rem; } .r-subjects { grid-template-columns: 1fr; } }
.confirm-ov { z-index: 120; }
.confirm-box { width: min(400px, 100%); }
.confirm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 4px; }
.confirm-acts .btn { padding-left: 10px; padding-right: 10px; }
.p-dlg .fld-lbl, .p-dlg .fld { align-self: stretch; text-align: left; color: var(--ink); margin: 4px 0 0; }
.p-subpick button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Arbeitsblätter (v2) ---------- */
.worksheet { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.ws-hero { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: var(--card); border-radius: 32px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.ws-hero .ws-img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22px; }
.ws-hero-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ws-hero h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.1; }
.ws-hero .ws-meta { margin: 0; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; border-radius: 99px; background: var(--cream); color: var(--muted); font-weight: 700; }
.ws-hero .ws-meta b { color: var(--ink); }
.ws-hero .ws-meta .ic { width: 16px; height: 16px; color: var(--blue); }
.ws-intro { border-left: 0; border-radius: 22px; padding: 16px 20px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent); }
.ws-intro table { border-collapse: collapse; }
.ws-tasks, .ws-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; position: relative; }
.ws-tasks::before, .ws-list::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 4px; border-radius: 4px; background: repeating-linear-gradient(to bottom, var(--line) 0 10px, transparent 10px 18px); }
.ws-task, .ws-q { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 12px; border: 0; padding: 0; background: none; --c: var(--blue); --cl: var(--blue-l); }
.ws-task.c1, .ws-q.c1 { --c: var(--coral); --cl: var(--coral-l); }
.ws-task.c2, .ws-q.c2 { --c: #d99a1e; --cl: var(--amber-l); }
.ws-task.c3, .ws-q.c3 { --c: var(--green); --cl: var(--green-l); }
.ws-num { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 1.2rem "Fredoka", sans-serif; box-shadow: 0 0 0 5px var(--cream), 0 3px 8px rgba(0,0,0,.14); }
.ws-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.ws-card h3 { margin: 0; padding: 12px 18px; background: var(--cl); font-size: 1.12rem; color: var(--ink); }
.ws-card-body { padding: 14px 18px 4px; }
.ws-card .ws-fb, .ws-q .ws-fb { margin: 8px 18px 14px; padding: 10px 14px; border-radius: 14px; background: var(--cream); }
.ws-card-body > .lcard-body { margin: 0; padding: 0; }
.ws-q > .ws-text, .ws-q > .ws-opts, .ws-q > .inp-row, .ws-q > .ws-fb { grid-column: 2; }
.ws-q { row-gap: 0; }
.ws-q > .ws-text { margin: 0; padding: 14px 18px 8px; background: var(--card); border-radius: 22px 22px 0 0; font-weight: 700; }
.ws-q > .ws-opts, .ws-q > .inp-row { padding: 4px 18px 16px; background: var(--card); border-radius: 0 0 22px 22px; margin: 0; box-shadow: var(--shadow); }
.ws-q > .ws-fb { margin: 8px 0 0; }
.ws-q > .ws-num { grid-row: 1 / span 3; }
.ws-task.filled .ws-num, .ws-q.filled .ws-num { box-shadow: 0 0 0 5px var(--cream), 0 0 0 8px var(--c); }
.ws-task.right .ws-num, .ws-q.right .ws-num { background: var(--green); }
.ws-task.wrong .ws-num, .ws-q.wrong .ws-num { background: var(--coral); }
.ws-task.right .ws-card { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.ws-task.wrong .ws-card { box-shadow: 0 0 0 2px var(--coral), var(--shadow); }
.ws-q.right, .ws-q.wrong { background: none; border: 0; }
.ws-q.right > .ws-text, .ws-q.right > .ws-opts, .ws-q.right > .inp-row { background: var(--green-l); }
.ws-q.wrong > .ws-text, .ws-q.wrong > .ws-opts, .ws-q.wrong > .inp-row { background: var(--coral-l); }
.ws-bar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 10px 10px 18px; border-radius: 99px; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 26px rgba(20,25,45,.18); }
.ws-bar-prog { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ws-bar-prog small { font-weight: 800; color: var(--muted); }
.ws-bar .btn { flex: none; }
.ws-result { margin-top: 22px; padding: 26px 20px; border-radius: 32px; background: var(--card); box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ws-result-acts { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.ws-lvl { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: var(--card); color: var(--blue); font: 800 .78rem "Nunito", sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.ws-lvl.v { color: #b07a10; } .ws-lvl.k { color: var(--coral); }
.ws-card2 .tc2-body small { color: var(--muted); font-weight: 700; margin-top: -4px; }
.ws-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: none; }
.ws-filter .chip { flex: none; }
@media (max-width: 700px) {
  .ws-hero { grid-template-columns: 1fr; } .ws-hero .ws-img { aspect-ratio: 16/9; }
  .ws-task, .ws-q { grid-template-columns: 36px 1fr; gap: 8px; } .ws-num { width: 36px; height: 36px; font-size: 1rem; } .ws-tasks::before, .ws-list::before { left: 16px; }
  .ws-card-body { padding: 12px 14px 4px; } .ws-card h3 { padding: 10px 14px; }
}
@media print {
  .ws-hero { box-shadow: none; border: 1px solid #ccc; grid-template-columns: 110px 1fr; }
  .ws-card, .ws-q > * { box-shadow: none !important; border: 1px solid #ccc; }
  .ws-tasks::before, .ws-list::before { display: none; }
  .ws-num { box-shadow: none; }
}
.ws-card2 .tc2-body small { font-size: .82rem; line-height: 1.3; }

/* ---------- Fehlerheft & Vokabeltrainer (v2) ---------- */
button.s-next { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.tc2-status.due { background: var(--coral-l); color: var(--coral); }
.p-empty.static { cursor: default; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.mk-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mk-card:disabled { cursor: default; opacity: .85; }
.mk-card.due { box-shadow: 0 0 0 2px var(--coral), var(--shadow); }
.mk-card img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; }
.mk-body { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mk-body b { font: 700 1.1rem "Fredoka", sans-serif; }
.mk-body small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.mk-steps { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--blue-l); }
.mk-steps i { display: block; } .mk-steps .s0 { background: var(--coral); } .mk-steps .s1 { background: var(--gold); } .mk-steps .s2 { background: #9ccf6a; } .mk-steps .s3 { background: var(--green); }
.mk-card .tc2-status { flex: none; align-self: center; }

.vk-flag { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font: 700 1.15rem "Fredoka", sans-serif; color: #fff; background: linear-gradient(135deg, #2b4c9b 0 34%, #fff 34% 66%, #e8574f 66%); text-shadow: 0 1px 3px rgba(0,0,0,.45); box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.vk-flag.en { background: linear-gradient(135deg, #2b4c9b, #1e3872); box-shadow: inset 0 0 0 4px #e8574f, 0 3px 8px rgba(0,0,0,.15); }
.vk-flag.big { width: 120px; height: 120px; border-radius: 30px; font-size: 2.4rem; }
.s-next .vk-flag { width: 84px; height: 84px; border-radius: 18px; font-size: 1.6rem; }
.vk-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.vk-card2 { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.vk-card2-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vk-card2-body b { font: 700 1.15rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vk-card2-body small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.vk-card2 .tc2-status { flex: none; }
.vk-samples { display: grid; gap: 12px; }
.vk-samples .p-empty { margin-top: 0; }
.vk-hero { position: relative; display: flex; align-items: center; gap: 24px; background: var(--card); border-radius: 32px; padding: 20px; box-shadow: var(--shadow); }
.vk-hero .t-hero-body { flex: 1; }
.vk-edit-btn { position: absolute; top: 16px; right: 16px; text-decoration: none; }
.t-act { border: 0; font: inherit; cursor: pointer; }
.t-act.green { background: var(--green); }
.vk-shelf2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.vk-shelf2 div { border-radius: 18px; padding: 12px 4px 10px; text-align: center; display: flex; flex-direction: column; color: #fff; }
.vk-shelf2 b { font: 700 1.6rem "Fredoka", sans-serif; }
.vk-shelf2 small { font-weight: 800; font-size: .78rem; opacity: .95; }
.vk-shelf2 .b0 { background: #9aa3bd; } .vk-shelf2 .b1 { background: var(--coral); } .vk-shelf2 .b2 { background: #e3a52c; } .vk-shelf2 .b3 { background: #7fb85a; } .vk-shelf2 .b4 { background: var(--green); } .vk-shelf2 .b5 { background: #2b4c9b; }
.vk-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-bottom: 14px; }
.vk-word2 { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.vk-word2 > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vk-word2 b { font: 600 1.02rem "Fredoka", sans-serif; }
.vk-word2 small { color: var(--muted); font-weight: 700; }
.vk-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 .8rem "Nunito", sans-serif; font-style: normal; }
.vk-dot.b0 { background: #9aa3bd; } .vk-dot.b1 { background: var(--coral); } .vk-dot.b2 { background: #e3a52c; } .vk-dot.b3 { background: #7fb85a; } .vk-dot.b4 { background: var(--green); } .vk-dot.b5 { background: #2b4c9b; }
.vk-edit { max-width: 640px; margin: 0 auto; background: var(--card); border-radius: 32px; padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.vk-edit .ov-head { padding: 0; }
.vk-hint { color: var(--muted); font-weight: 600; font-size: .9rem; }
.vk-count { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 700; }
.vk-count span { color: var(--green); }
.vk-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.vk-top .t-read { flex: 1; height: 12px; }
.vk-cnt { font: 700 1rem "Fredoka", sans-serif; color: var(--muted); min-width: 44px; text-align: right; }
.vk-again { text-align: center; color: var(--coral); font-weight: 800; margin: -6px 0 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.vk-again .ic { width: 16px; height: 16px; }
.vk-pill { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--blue-l); color: var(--blue); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.vk-pill.en { background: #2b4c9b; color: #fff; } .vk-pill.fr { background: var(--coral); color: #fff; }
.flash { min-height: 300px; border-radius: 32px; max-width: 620px; box-shadow: 0 10px 30px rgba(20,25,45,.14); background: linear-gradient(160deg, var(--card), var(--blue-l)); }
.flash.flipped { background: linear-gradient(160deg, var(--card), var(--green-l)); }
.flash-face b { font-size: clamp(2rem, 6vw, 2.8rem); }
.vk-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; margin: 0 auto; }
.vk-acts > .btn:only-child { grid-column: 1 / -1; }
.vk-ask { max-width: 620px; margin: 0 auto; background: var(--card); border-radius: 32px; padding: 26px 22px; box-shadow: 0 10px 30px rgba(20,25,45,.12); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vk-ask .vk-word { margin: 6px 0 0; font-size: clamp(2rem, 6vw, 2.6rem); }
.vk-ask form { width: 100%; }
.vk-ask input { border-color: var(--line); background: var(--cream); color: var(--ink); }
.vk-ask #vkFb { width: 100%; }
.vk-play { display: flex; align-items: center; gap: 14px; margin: 10px 0 4px; }
.vk-play-btn { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 0 #1e3872; }
.vk-play-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #1e3872; }
.vk-play-btn .ic { width: 44px; height: 44px; }
.vk-res-stats { max-width: 420px; }
@media (max-width: 600px) { .vk-hero { flex-direction: column; align-items: stretch; } .vk-flag.big { width: 84px; height: 84px; font-size: 1.7rem; } .vk-shelf2 { grid-template-columns: repeat(3, 1fr); } }
.vk-flag { color: transparent; text-shadow: none; overflow: hidden; background: linear-gradient(90deg, #0055a4 0 33.3%, #fff 33.3% 66.6%, #ef4135 66.6%); box-shadow: 0 0 0 2px var(--card), 0 3px 10px rgba(0,0,0,.18); }
.vk-flag.en { background: linear-gradient(#c8102e, #c8102e) center / 100% 18% no-repeat, linear-gradient(#c8102e, #c8102e) center / 18% 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 32% no-repeat, linear-gradient(#fff, #fff) center / 32% 100% no-repeat, #012169; box-shadow: 0 0 0 2px var(--card), 0 3px 10px rgba(0,0,0,.18); }
.s-next > span.vk-flag { flex: none; }
.vk-card2-body b { white-space: normal; }

/* ---------- Verben-Trainer (v2) ---------- */
.fr-inf { font-size: 1.35rem !important; }
.fr-de { color: var(--muted); font-weight: 700; margin-top: -6px; }
.fr-title { display: flex; align-items: center; gap: 12px; }
.fr-mean { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.fr-play { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fr-play .chip { display: inline-flex; align-items: center; gap: 6px; }
.fr-play .chip .ic { width: 18px; height: 18px; }
.conj2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.conj2 .conj-row { --c: var(--blue); --cl: var(--blue-l); display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border: 0; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); border-left: 8px solid var(--c); text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.conj2 .conj-row.c1 { --c: var(--coral); --cl: var(--coral-l); } .conj2 .conj-row.c2 { --c: #d99a1e; --cl: var(--amber-l); } .conj2 .conj-row.c3 { --c: var(--green); --cl: var(--green-l); }
.conj2 .pron { grid-row: 1 / span 2; padding: 6px 12px; border-radius: 14px; background: var(--cl); color: var(--c); font: 700 1.15rem "Fredoka", sans-serif; min-width: 64px; text-align: center; }
.conj2 .form { font: 700 1.6rem "Fredoka", sans-serif; color: var(--ink); }
.conj2 .de { grid-column: 2; color: var(--muted); font-weight: 700; font-size: .88rem; }
.conj2 .ico { grid-row: 1 / span 2; grid-column: 3; width: 42px; height: 42px; border-radius: 50%; background: var(--cream); color: var(--blue); display: grid; place-items: center; }
.conj2 .ico .ic { width: 20px; height: 20px; }
.conj2 .conj-row.active { background: var(--cl); transform: scale(1.02); }
.conj2.hidden-forms .form { color: transparent; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 14px); border-radius: 8px; min-width: 100px; }
.fr-tips { display: grid; gap: 10px; }
.fr-tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--amber-l); color: var(--ink); line-height: 1.5; }
.fr-tip .ic { flex: none; width: 24px; height: 24px; color: #b07a10; margin-top: 1px; }
.fr-ex { display: grid; gap: 10px; }
.fr-ex-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 10px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.fr-ex-row > span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fr-ex-row b { font: 600 1.15rem "Fredoka", sans-serif; }
.fr-ex-row small { color: var(--muted); font-weight: 700; }
.fr-ex-row.no { box-shadow: 0 0 0 2px var(--coral), var(--shadow); } .fr-ex-row.half { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.fr-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fr-mode { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px 16px; border: 3px solid transparent; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); font: inherit; color: var(--ink); cursor: pointer; --c: #2b4c9b; }
.fr-mode.coral { --c: #e8574f; } .fr-mode.gold { --c: #e3a52c; }
.fr-mode > .ic { width: 36px; height: 36px; color: var(--c); }
.fr-mode b { font: 700 1.3rem "Fredoka", sans-serif; }
.fr-mode small { color: var(--muted); font-weight: 700; }
.fr-mode.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--card)); }
.fr-mode-check { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; display: none; place-items: center; }
.fr-mode-check .ic { width: 16px; height: 16px; }
.fr-mode.on .fr-mode-check { display: grid; }
.fr-mode:disabled { opacity: .45; cursor: default; }
.fr-selall { display: flex; gap: 4px; }
.fr-verbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.fr-verb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 12px; border: 3px solid transparent; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); font: inherit; color: var(--ink); cursor: pointer; opacity: .6; }
.fr-verb img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.fr-verb b { font: 700 1.1rem "Fredoka", sans-serif; }
.fr-verb i { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: none; place-items: center; }
.fr-verb i .ic { width: 14px; height: 14px; }
.fr-verb.on { opacity: 1; border-color: var(--blue); } .fr-verb.on i { display: grid; }
.fr-go { display: flex; width: 100%; max-width: 420px; margin: 24px auto 0; }
.fr-mode-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; }
.fr-mode-ic .ic { width: 22px; height: 22px; }
@media (max-width: 700px) { .conj2 { grid-template-columns: 1fr; } .fr-modes { grid-template-columns: 1fr; } .fr-mode { flex-direction: row; justify-content: flex-start; padding: 14px 16px; gap: 12px; } .fr-mode small { margin-left: auto; } }

/* Quiz-Kopf (alle Quiz) */
.quiz-top { background: var(--card); border-radius: 99px; padding: 6px 16px 6px 6px; box-shadow: var(--shadow); }
.quiz-top .btn { border-radius: 99px; }
.qcard { border-radius: 32px; }
.progress { height: 12px; }
.conj2.hidden-forms .conj-row.active .form, .conj2.hidden-forms .conj-row:active .form { color: var(--ink); background: none; }

/* ---------- Elternbereich (v2) ---------- */
.t-tags .ic { width: 15px; height: 15px; }
.pa-status { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-status > span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--cream); color: var(--muted); font-weight: 800; font-size: .9rem; }
.pa-status .ic { width: 16px; height: 16px; }
.pa-status > .ok { background: var(--green-l); color: var(--green); }
.pa-status > .warn { background: var(--coral-l); color: var(--coral); }
.pa-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: var(--blue-l); color: var(--blue); font-size: .85rem; }
.pa-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pa-kid { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.pa-kid.on { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.pa-kid-top { display: flex; align-items: center; gap: 12px; }
.pa-kid-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,.14); }
.pa-kid-top > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pa-kid-top b { font: 700 1.35rem "Fredoka", sans-serif; }
.pa-kid-top small { color: var(--muted); font-weight: 700; }
.pa-kid .ov-stats div { background: var(--cream); }
.pa-kid-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-note { margin: 0; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pa-note .ic { width: 18px; height: 18px; }
.pa-kid.add { align-items: center; justify-content: center; text-align: center; border: 3px dashed var(--line); background: transparent; box-shadow: none; font: inherit; color: var(--ink); cursor: pointer; min-height: 200px; }
.pa-kid.add b { font: 700 1.2rem "Fredoka", sans-serif; }
.pa-kid.add small { color: var(--muted); font-weight: 700; }
.pa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.pa-tile { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.pa-tile.wide { grid-column: 1 / -1; }
.pa-tile.active { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.pa-tile > p { margin: 0; color: var(--muted); line-height: 1.5; }
.pa-tile-h { display: flex; align-items: center; gap: 12px; }
.pa-tile-h .ov-icon { width: 52px; height: 52px; flex: none; }
.pa-tile-h .ov-icon .ic { width: 24px; height: 24px; }
.pa-tile-h .ov-icon.warn { background: var(--coral-l); color: var(--coral); }
.pa-tile-h > span:last-child { display: flex; flex-direction: column; }
.pa-tile-h b { font: 700 1.25rem "Fredoka", sans-serif; }
.pa-tile-h small { color: var(--muted); font-weight: 700; }
.pa-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pa-voice { display: flex; align-items: flex-end; gap: 10px; }
.pa-voice label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: .9rem; color: var(--muted); min-width: 0; }
.pa-voice select { width: 100%; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); color: var(--ink); font: 700 .95rem "Nunito", sans-serif; }
.pa-more { border-top: 1px solid var(--line); padding-top: 10px; }
.pa-more summary { cursor: pointer; font-weight: 800; color: var(--blue); }
.pa-more p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; font-size: .95rem; }
.pa-tile .report-list { margin: 0; }
@media (max-width: 760px) { .pa-grid { grid-template-columns: 1fr; } }
.pa-kid-acts .tag { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; } .pa-kid-acts .tag .ic { width: 14px; height: 14px; }

/* ---------- Quiz (v2) ---------- */
.qz-top { display: flex; align-items: center; gap: 12px; max-width: 820px; margin: 0 auto; }
.qz-img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.qz-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.qz-title b { font: 700 1.15rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-title small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.qz-count { flex: none; font: 700 1.5rem "Fredoka", sans-serif; color: var(--blue); }
.qz-count small { font-size: .95rem; color: var(--muted); }
.qz-bar { display: flex; gap: 5px; max-width: 820px; margin: 14px auto 0; }
.qz-bar i { flex: 1; height: 10px; border-radius: 99px; background: var(--line); transition: background .25s; }
.qz-bar.thin { gap: 2px; } .qz-bar.thin i { height: 8px; }
.qz-bar i.ok { background: var(--green); } .qz-bar i.no { background: var(--coral); } .qz-bar i.half { background: var(--gold); }
.qz-bar i.cur { background: var(--blue); animation: qzPulse 1.2s ease-in-out infinite; }
@keyframes qzPulse { 50% { opacity: .45; } }
.qz-pills { max-width: 820px; margin: 16px auto 10px; display: flex; gap: 8px; }
.qz-pills > span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 99px; background: var(--blue-l); color: var(--blue); font-weight: 800; font-size: .82rem; }
.qz-pills > span.t { background: var(--coral-l); color: var(--coral); }
.qz-pills .ic { width: 14px; height: 14px; }
.qcard { max-width: 820px; margin: 0 auto; padding: 24px; border-radius: 32px; box-shadow: 0 10px 30px rgba(20,25,45,.1); }
.q-prompt p { font: 600 clamp(1.25rem, 2.6vw, 1.55rem)/1.35 "Fredoka", "Nunito", sans-serif; }
.q-stem { font-size: 1.3rem; }
.options { gap: 12px; margin-top: 18px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 20px; font-size: 1.1rem; min-height: 64px; }
.opt-k { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; font: 700 1rem "Fredoka", sans-serif; }
.opt-k .ic { width: 18px; height: 18px; }
.opt-t { flex: 1; }
.opt.right .opt-k { background: var(--green); color: #fff; }
.opt.wrong .opt-k { background: var(--coral); color: #fff; }
.options.tf .opt { justify-content: center; font: 700 1.25rem "Fredoka", sans-serif; min-height: 84px; }
.options.tf .opt .opt-t { flex: none; }
.options.tf .opt[data-v="true"] .opt-k { background: var(--green-l); color: var(--green); }
.options.tf .opt[data-v="false"] .opt-k { background: var(--coral-l); color: var(--coral); }
.type-form input, #ans { font-size: 1.5rem; border-radius: 18px; }
.accents .acc { min-width: 46px; min-height: 46px; border-radius: 14px; font-size: 1.2rem; background: var(--cream); }
.feedback { border-radius: 24px; padding: 16px 18px; gap: 12px; }
.fb-head { display: flex; align-items: center; gap: 14px; }
.fb-head > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fb-head b { font: 700 1.35rem "Fredoka", sans-serif; }
.fb-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--green); }
.fb-ic .ic { width: 26px; height: 26px; }
.feedback.no .fb-ic { background: var(--coral); } .feedback.half .fb-ic { background: var(--gold); }
.feedback.ok .fb-head b { color: var(--green); } .feedback.no .fb-head b { color: var(--coral); }
.fb-sol { font-weight: 700; color: var(--ink); }
.fb-ex { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--card) 75%, transparent); line-height: 1.5; }
.fb-ex .ic { flex: none; width: 20px; height: 20px; color: #b07a10; margin-top: 2px; }
.fb-acts { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fb-acts .btn { flex: 1; max-width: 360px; margin-left: auto; }
.fb-report { margin: 0; }
.t-ring.big { width: 120px; height: 120px; } .t-ring.big b { width: 94px; height: 94px; font-size: 1.8rem; background: var(--card); }
.qz-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 420px; }
.qz-dots i { width: 14px; height: 14px; border-radius: 50%; } .qz-dots .ok { background: var(--green); } .qz-dots .no { background: var(--coral); }
.qz-res-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.qz-review { display: grid; gap: 12px; }
.qz-rev { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); border-left: 6px solid var(--coral); }
.qz-rev-q { margin: 0; font: 600 1.1rem/1.35 "Fredoka", "Nunito", sans-serif; }
.qz-rev-a { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-rev-a span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-weight: 800; }
.qz-rev-a .ic { width: 16px; height: 16px; }
.qz-rev-a .ok { background: var(--green-l); color: var(--green); } .qz-rev-a .no { background: var(--coral-l); color: var(--coral); }
.qz-rev .fb-ex { background: var(--cream); }
.qz-rev .link-btn { align-self: flex-start; padding-left: 0; }
@media (max-width: 600px) {
  .options { grid-template-columns: 1fr; }
  .options.tf { grid-template-columns: 1fr 1fr; }
  .qcard { padding: 18px 16px; }
  .qz-img { display: none; }
  .fb-acts .btn { max-width: none; }
}

/* ---------- Arbeitsblätter aus der Schule (v2) ---------- */
.sh-thumb img { aspect-ratio: 4/3; object-fit: cover; object-position: top; background: #fff; }
.sh-card .ws-lvl { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.sh-card .ws-lvl .ic { width: 13px; height: 13px; }
.sh-card .tc2-body small { color: var(--muted); font-weight: 700; font-size: .82rem; margin-top: -4px; }
.sh-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); flex-wrap: wrap; }
.sh-head.done { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.sh-head-ic { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--coral-l); color: var(--coral); }
.sh-head.done .sh-head-ic { background: var(--green); color: #fff; }
.sh-head-ic .ic { width: 30px; height: 30px; }
.sh-head-body { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.sh-head h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; }
.sh-head-acts { display: flex; align-items: center; gap: 8px; }
.sh-tools { position: sticky; top: calc(76px + env(safe-area-inset-top)); z-index: 6; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 16px auto; padding: 8px; border-radius: 99px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(20,25,45,.16); }
.sh-group { display: flex; gap: 6px; padding: 0 6px; border-right: 2px solid var(--line); }
.sh-tools .tool { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--cream); }
.sh-tools .tool .ic { width: 22px; height: 22px; }
.sh-tools .tool.pen i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.sh-tools .tool.pen.on { background: var(--card); box-shadow: 0 0 0 3px var(--c); }
.sh-tools .tool.on:not(.pen) { background: var(--blue); color: #fff; box-shadow: none; }
.sh-page-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sh-pnum { padding: 4px 12px; border-radius: 99px; background: var(--blue-l); color: var(--blue); font-weight: 800; font-size: .82rem; }
.sh-page-wrap .sheet-page { border-radius: 14px; box-shadow: 0 10px 30px rgba(20,25,45,.14); }
.sh-hint { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: .9rem; margin-top: 16px; }
.sh-hint .ic { width: 16px; height: 16px; }
@media (max-width: 600px) { .sh-head-acts { width: 100%; } .sh-head-acts .btn { flex: 1; } .sh-tools .tool { width: 42px; height: 42px; } .sh-group { padding: 0 4px; gap: 4px; } }
@media (max-width: 600px) { .sh-tools { gap: 4px; padding: 6px; flex-wrap: nowrap; } .sh-tools .tool { width: 36px; height: 36px; } .sh-tools .tool .ic { width: 18px; height: 18px; } .sh-tools .tool.pen i { width: 20px; height: 20px; } .sh-group { gap: 3px; padding: 0 4px; } }

/* ---------- Profil-Fenster (v2) ---------- */
.lock-box.pf2 { width: min(760px, 100%); padding: 0; gap: 0; align-items: stretch; text-align: left; overflow-y: auto; }
.pf2 .ov-x { top: 16px; right: 16px; }
.pf-top { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 24px 18px; text-align: center; background: linear-gradient(180deg, var(--blue-l), transparent); }
.pf-top h2 { margin: 0; font-size: 1.5rem; justify-content: center; }
.pf-avatar { position: relative; border: 0; background: none; padding: 0; cursor: pointer; }
.pf-avatar .ov-img { width: 108px; height: 108px; }
.pf-avatar-edit { position: absolute; right: -2px; bottom: 2px; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--card); }
.pf-avatar-edit .ic { width: 18px; height: 18px; }
.pf-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--cream); min-width: 0; }
.pf-card-h { display: flex; align-items: center; gap: 10px; }
.pf-card-h .ov-icon { width: 38px; height: 38px; } .pf-card-h .ov-icon .ic { width: 20px; height: 20px; }
.pf-card-h b { font: 700 1.1rem "Fredoka", sans-serif; }
.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 18px; }
.pf-avatars { margin: 0 18px 12px; }
.pf-avatars.closed { display: none; }
.pf2 .avatar-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pf2 .av { background: var(--card); padding: 8px 4px 6px; }
.pf2 .av img { width: 60px; height: 60px; }
.pf2 .av.on { border-color: var(--blue); background: var(--blue-l); }
.pf2 #pfMore { align-self: center; }
.pf2 .fld { margin: 0; }
.pf2 .fld input { background: var(--card); }
.pf2 .fld-lbl { margin: 4px 0 0; }
.pf2 .age-row { gap: 6px; }
.pf2 .age-row .chip { min-width: 44px; justify-content: center; background: var(--card); }
.pf2 .age-row .chip.on { background: var(--blue); }
.pf-sf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-sf-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 2px solid transparent; border-radius: 16px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pf-sf-btn b { font: 700 1.05rem "Fredoka", sans-serif; }
.pf-sf-btn small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.pf-sf-btn.on { border-color: var(--blue); background: var(--blue-l); }
.pf-pkg { margin: 0; color: var(--coral); font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.pf-pkg:empty { display: none; }
.pf-pkg .ic { width: 16px; height: 16px; }
.pf-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 18px; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.pf-foot .btn { width: auto; min-width: 200px; }
@media (max-width: 640px) { .pf-cols { grid-template-columns: 1fr; padding: 0 12px; } .pf-avatars { margin: 0 12px 12px; } .pf-foot { padding: 12px; } .pf-foot .btn { min-width: 0; flex: 1; } }

/* ---------- Lernkarten-Inhalt (v2) ---------- */
.t-step .lcard-body { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.t-step .lcard-body p { margin: 0; }
.t-step .lcard-body .lc-line { line-height: 1.6; }
.lc-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border-radius: 16px; background: color-mix(in srgb, var(--cl) 55%, transparent); line-height: 1.55; }
.lc-key { flex: none; padding: 2px 10px; border-radius: 99px; background: var(--card); color: var(--c); font: 800 .85rem "Nunito", sans-serif; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.lc-val { flex: 1; min-width: 0; }
.lc-row.ex, .lc-box.ex { background: var(--cream); }
.lc-row.ex .lc-key { color: #b07a10; }
.lc-row.tip, .lc-box.tip { background: var(--amber-l); }
.lc-row.tip .lc-key { color: #b07a10; }
.lc-row.warn, .lc-box.warn { background: var(--coral-l); }
.lc-row.warn .lc-key { color: var(--coral); }
.lc-box { padding: 9px 12px; border-radius: 16px; }
.lc-formula { align-self: flex-start; padding: 10px 18px; border-radius: 16px; background: var(--card); border: 2px dashed color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); font: 700 1.25rem/1.4 "Fredoka", "Nunito", sans-serif; }
.lc-formula b { color: inherit !important; }
.t-step .lcard-body b.lc-fchip { display: inline-block; padding: 0 8px; border-radius: 10px; background: color-mix(in srgb, var(--cl) 80%, transparent); }
.t-step .lcard-body ul, .t-step .lcard-body ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.t-step .lcard-body li { position: relative; padding: 7px 12px 7px 32px; border-radius: 14px; background: var(--cream); line-height: 1.5; }
.t-step .lcard-body ul > li::before { content: ""; position: absolute; left: 13px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.t-step .lcard-body ol { counter-reset: lc; }
.t-step .lcard-body ol > li { counter-increment: lc; padding-left: 40px; }
.t-step .lcard-body ol > li::before { content: counter(lc); position: absolute; left: 8px; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 .8rem "Fredoka", sans-serif; }
.t-step .lcard-body li ul, .t-step .lcard-body li ol { margin-top: 6px; }
.t-step .lcard-body li li { background: var(--card); }
.lc-table { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 2px var(--cl); }
.t-step .lcard-body .lc-table table { width: 100%; min-width: 0; margin: 0; border-collapse: separate; border-spacing: 0; }
.t-step .lcard-body .lc-table th, .t-step .lcard-body .lc-table td { border: 0; padding: 8px 12px; text-align: left; vertical-align: top; }
.t-step .lcard-body .lc-table th { background: var(--c); color: #fff; font: 700 .95rem "Fredoka", sans-serif; }
.t-step .lcard-body .lc-table tr:nth-child(even) td { background: color-mix(in srgb, var(--cl) 50%, transparent); }
.t-step .lcard-body .lc-table td { border-top: 1px solid var(--line); }
.t-step .lcard-body .lc-table tr:first-child td { border-top: 0; }
.t-step .lcard-body .lc-sub { margin: 6px 0 -2px; font: 700 1rem "Fredoka", sans-serif; color: var(--c); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }

/* ---------- Eltern-Statistik ---------- */
:root { --chart: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart: #6f8fe6; } }
:root[data-theme="dark"] { --chart: #6f8fe6; }
.st-kids { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.st-kid { display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px 4px 4px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 800; border: 2px solid transparent; }
.st-kid img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.st-kid.on { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
.st-hero { display: flex; align-items: center; gap: 22px; padding: 20px; border-radius: 32px; background: var(--card); box-shadow: var(--shadow); }
.st-av { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.15); border: 4px solid var(--card); }
.st-hero-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.st-hero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.st-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.st-tile .ov-icon { width: 46px; height: 46px; flex: none; } .st-tile .ov-icon .ic { width: 22px; height: 22px; }
.st-tile > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.st-tile b { font: 700 1.6rem/1.1 "Fredoka", sans-serif; color: var(--ink); }
.st-tile b small { font-size: .95rem; color: var(--muted); }
.st-tile small { color: var(--ink); font-weight: 800; font-size: .88rem; }
.st-tile em { font-style: normal; color: var(--muted); font-weight: 700; font-size: .78rem; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.st-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.st-card.wide { grid-column: 1 / -1; }
.st-card-h { display: flex; flex-direction: column; }
.st-card-h b { font: 700 1.25rem "Fredoka", sans-serif; }
.st-card-h small { color: var(--muted); font-weight: 700; font-size: .85rem; }
.st-empty { margin: 0; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.st-empty .ic { width: 18px; height: 18px; }
.ch { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-tick, .ch-x { fill: var(--muted); font: 700 12px "Nunito", sans-serif; }
.ch-x.today { fill: var(--ink); }
.ch-val { fill: var(--ink); font: 800 13px "Nunito", sans-serif; }
.ch-bar { fill: var(--chart); transition: opacity .15s; }
.ch-bar.legacy { fill: color-mix(in srgb, var(--chart) 45%, var(--card)); }
.ch-zero { fill: var(--line); }
.ch-line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: var(--chart); stroke: var(--card); stroke-width: 2; }
.ch-hit { fill: transparent; cursor: pointer; }
.ch .hot { opacity: .72; } .ch-dot.hot { opacity: 1; r: 7; }
.ch-tip { position: fixed; z-index: 400; pointer-events: none; padding: 7px 12px; border-radius: 12px; background: var(--ink); color: var(--card); font: 700 .88rem "Nunito", sans-serif; box-shadow: 0 6px 18px rgba(0,0,0,.2); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; max-width: 280px; }
.ch-tip.on { opacity: 1; transform: none; }
.ch-table summary { cursor: pointer; color: var(--blue); font-weight: 800; font-size: .88rem; }
.ch-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .9rem; }
.ch-table th, .ch-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.st-list-h { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; }
.st-list-h .ic { width: 16px; height: 16px; }
.st-list-h.ok { color: var(--green); } .st-list-h.no { color: var(--coral); }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--cream); }
.st-list li > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.st-list b { font: 600 1rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-list small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.st-list em { font-style: normal; font-weight: 800; padding: 2px 10px; border-radius: 99px; }
.st-list em.ok { background: var(--green-l); color: var(--green); } .st-list em.no { background: var(--coral-l); color: var(--coral); }
.st-subjects { display: grid; gap: 10px; }
.st-subj { display: grid; grid-template-columns: minmax(110px, 180px) 1fr auto; align-items: center; gap: 12px; padding: 2px 0; cursor: default; }
.st-subj-n { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-track { height: 14px; border-radius: 0 4px 4px 0; background: var(--line); overflow: hidden; }
.st-track i { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; }
.st-subj-v { color: var(--muted); font-weight: 800; font-size: .85rem; white-space: nowrap; }
.st-subj.hot .st-track i { opacity: .72; }
.pa-spark { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--cream); color: var(--ink); text-decoration: none; }
.pa-spark > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.pa-spark small { color: var(--muted); font-weight: 800; font-size: .75rem; }
.st-spark { width: 140px; height: 34px; display: block; }
.pa-spark-go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 800; font-size: .88rem; }
.pa-spark-go .ic { width: 16px; height: 16px; }
@media (max-width: 760px) { .st-grid { grid-template-columns: 1fr; } .st-hero { flex-direction: column; text-align: center; } .st-hero .t-tags { justify-content: center; } .st-av { width: 96px; height: 96px; } .st-subj { grid-template-columns: 1fr auto; } .st-subj .st-track { grid-column: 1 / -1; grid-row: 2; } .st-tiles { grid-template-columns: 1fr 1fr; } }
.st-subj { grid-template-columns: minmax(100px, 170px) 1fr 132px; }
.st-subj-v { text-align: right; }
.st-hero-body { flex: 1; }
.st-tile { min-width: 0; }
.st-tile small, .st-tile em { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 760px) { .st-subj { grid-template-columns: 1fr auto; } }
.st-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } @media (max-width: 760px) { .st-grid { grid-template-columns: minmax(0, 1fr); } }
.st-list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .st-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; } .st-tile .ov-icon { width: 36px; height: 36px; } .st-tile .ov-icon .ic { width: 18px; height: 18px; } .st-tile b { font-size: 1.4rem; } }

/* ---------- Lernplan-Dialoge (v2) ---------- */
.ex-dlg .ex-top { padding-bottom: 12px; }
.ex-top .ov-img { width: 84px; height: 84px; border-radius: 22px; }
.ex-top .ov-icon { width: 64px; height: 64px; }
.ex-card { margin: 0 18px 12px; }
.ex-step { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 1rem "Fredoka", sans-serif; }
.ex-card .pf-card-h { flex-wrap: wrap; }
.ex-when { margin-left: auto; padding: 4px 12px; border-radius: 99px; background: var(--card); color: var(--blue); font-weight: 800; font-size: .88rem; }
.ex-when:empty { display: none; }
.ex-all { margin-left: auto; display: flex; gap: 2px; }
.ex-subs { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.ex-subs button { background: var(--card); }
.ex-dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ex-dates .chip { background: var(--card); padding: 10px 16px; }
.ex-dates .chip.on { background: var(--blue); color: #fff; }
.ex-cal { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 99px; background: var(--card); border: 2px solid var(--line); color: var(--blue); cursor: pointer; }
.ex-cal .ic { width: 18px; height: 18px; flex: none; }
.ex-cal input { border: 0; background: transparent; color: var(--ink); font: 700 .95rem "Nunito", sans-serif; padding: 4px 6px; min-width: 0; }
.ex-cal.on { border-color: var(--blue); background: var(--blue-l); }
.ex-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ex-topic { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 40px 6px 6px; border: 2px solid transparent; border-radius: 16px; background: var(--card); color: var(--ink); font: 700 .92rem/1.25 "Nunito", sans-serif; text-align: left; cursor: pointer; }
.ex-topic span { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; }
.ex-topic img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.ex-topic i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; }
.ex-topic i .ic { width: 14px; height: 14px; }
.ex-topic.on { border-color: var(--blue); background: var(--blue-l); }
.ex-topic.on i { background: var(--blue); border-color: var(--blue); color: #fff; }
.ex-sum { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .92rem; min-width: 0; }
.ex-sum b { color: var(--ink); }
.ex-sum .ic { width: 16px; height: 16px; color: var(--coral); }
.pf-foot .btn:disabled { opacity: .5; }
@media (max-width: 640px) { .ex-card { margin: 0 12px 10px; } .ex-topics { grid-template-columns: 1fr; } .pf-foot { flex-wrap: wrap; } .ex-sum { width: 100%; } }

/* ---------- Wer lernt jetzt? (v2) ---------- */
.who2 { width: min(640px, 100%); padding: 28px 24px 18px; gap: 18px; }
.who2-head { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.who2-hi { margin: 0; color: var(--coral) !important; font: 800 1rem "Nunito", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.who2-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.who2-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.who2-card { --c: var(--brand); position: relative; flex: 1 1 180px; max-width: 240px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 14px 16px; border: 3px solid transparent; border-radius: 28px; background: var(--cream); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.who2-card.c1 { --c: #e8574f; } .who2-card.c2 { --c: #e3a52c; } .who2-card.c3 { --c: #2f9870; }
.who2-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,25,45,.12); }
.who2-card.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--card)); }
.who2-card.picked { transform: scale(.95); }
.who2-av { position: relative; width: 124px; height: 124px; border-radius: 50%; padding: 5px; background: conic-gradient(from 200deg, var(--c), color-mix(in srgb, var(--c) 35%, #fff), var(--c)); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 30%, transparent); }
.who2-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--card); box-sizing: border-box; display: block; }
.who2-due { position: absolute; top: 2px; right: 0; min-width: 32px; height: 32px; padding: 0 8px; box-sizing: border-box; border-radius: 99px; background: var(--coral); color: #fff; font: 800 .95rem "Nunito", sans-serif; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--card); }
.who2-card b { font: 700 1.5rem "Fredoka", sans-serif; margin-top: 4px; }
.who2-card small { color: var(--muted); font-weight: 700; font-size: .85rem; }
.who2-st > span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 99px; background: var(--card); color: var(--muted); font-weight: 800; font-size: .82rem; }
.who2-st .ic { width: 14px; height: 14px; }
.who2-st > .ok { background: var(--green-l); color: var(--green); }
.who2-st > .fire { background: var(--amber-l); color: #b07a10; }
.who2-cur { position: absolute; top: 12px; left: 12px; padding: 2px 10px; border-radius: 99px; background: var(--c); color: #fff; font-weight: 800; font-size: .72rem; }
.who2-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
/* full-screen welcome at app start */
.who-full { background: radial-gradient(circle at 50% 30%, var(--blue-l), var(--cream) 65%); backdrop-filter: none; -webkit-backdrop-filter: none; }
.who-full .who2 { background: transparent; box-shadow: none; animation: spIn .4s ease both; width: min(760px, 100%); }
.who-full .who2-card { background: var(--card); box-shadow: 0 6px 20px rgba(20,25,45,.08); }
.who-full .who2-card.on { background: color-mix(in srgb, var(--c) 8%, var(--card)); }
.who-ov.out { opacity: 0; transition: opacity .25s; }
@media (max-width: 560px) { .who2-card { flex-basis: 140px; padding: 16px 10px 14px; } .who2-av { width: 96px; height: 96px; } .who2-card b { font-size: 1.25rem; } }
.who-full .who2-card { max-width: 280px; padding: 24px 16px 18px; }
.who-full .who2-av { width: 150px; height: 150px; }
.who-full .who2-card b { font-size: 1.7rem; }
@media (max-width: 560px) { .who-full .who2-card { flex-basis: 140px; padding: 16px 10px 14px; } .who-full .who2-av { width: 104px; height: 104px; } .who-full .who2-card b { font-size: 1.3rem; } .who2-st > span { font-size: .75rem; padding: 4px 8px; } }

/* ---------- Kindermodus-Sperrbildschirm (v2) ---------- */
.kid-lock { z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; background: radial-gradient(circle at 50% 35%, var(--blue-l), var(--cream) 65%); backdrop-filter: none; -webkit-backdrop-filter: none; animation: ovFade .25s ease; }
.kid-lock.out { opacity: 0; transition: opacity .25s; }
.kl-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 520px; animation: spIn .45s ease both; }
.kl-av { position: relative; width: 170px; height: 170px; border-radius: 50%; padding: 6px; background: conic-gradient(from 200deg, #2b4c9b, #e8574f, #e3a52c, #2f9870, #2b4c9b); box-shadow: 0 12px 30px rgba(20,25,45,.18); animation: spBounce 2.4s ease-in-out infinite; }
.kl-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid var(--card); box-sizing: border-box; display: block; background: var(--card); }
.kl-badge { position: absolute; right: 4px; bottom: 8px; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--card); font-style: normal; }
.kl-badge .ic { width: 22px; height: 22px; }
.kl-box h2 { margin: 8px 0 0; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; }
.kl-line { margin: 0; color: var(--muted); font-size: 1.15rem; font-weight: 700; }
.kl-line b { color: var(--ink); }
.kl-go { margin-top: 12px; min-width: 260px; font-size: 1.3rem; padding: 18px 28px; }
.kl-exit { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: 700 .9rem "Nunito", sans-serif; cursor: pointer; padding: 8px 12px; border-radius: 99px; }
.kl-exit .ic { width: 16px; height: 16px; }
.kl-exit:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
@media (prefers-reduced-motion: reduce) { .kl-av { animation: none; } }
@media (max-width: 480px) { .kl-av { width: 136px; height: 136px; } .kl-go { min-width: 0; width: 100%; } }
body.kidmode .lock-ov:not(.kid-lock):has(.pin-pad) { background: radial-gradient(circle at 50% 35%, var(--blue-l), var(--cream) 65%); backdrop-filter: none; -webkit-backdrop-filter: none; }
.kl-go { background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-d); } .kl-badge { background: var(--brand); }

/* ---------- Pause (v2) ---------- */
.pause-ov.kid-lock { z-index: 140; overflow-y: auto; justify-content: flex-start; padding-top: calc(40px + env(safe-area-inset-top)); padding-bottom: 80px; }
.pz { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(560px, 100%); margin: auto 0; text-align: center; animation: spIn .4s ease both; }
.pz-x { position: fixed; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 48px; height: 48px; background: var(--card); box-shadow: var(--shadow); }
.pz-breathe { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.pz-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, #2f9870 22%, transparent) 55%, transparent 72%); animation: pzBreathe 8s ease-in-out infinite; }
.pz-av { width: 140px; height: 140px; animation: none; }
.pz-av .kl-badge { background: var(--coral); }
@keyframes pzBreathe { 0%, 100% { transform: scale(.82); opacity: .7; } 50% { transform: scale(1.12); opacity: 1; } }
.pz-breath-txt { margin: -4px 0 0; color: var(--green); font: 800 .95rem "Nunito", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.pz h2 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.1; }
.pz-tip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.pz-tip > .ic { flex: none; width: 26px; height: 26px; color: #b07a10; }
.pz-tip > span { display: flex; flex-direction: column; }
.pz-tip b { font: 700 1.05rem "Fredoka", sans-serif; }
.pz-tip small { color: var(--muted); font-weight: 700; }
.pz-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pz-stats > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--green-l); color: var(--green); font-weight: 800; font-size: .9rem; }
.pz-stats > span:nth-child(2) { background: var(--amber-l); color: #b07a10; }
.pz-stats .ic { width: 16px; height: 16px; }
.pz .kl-go { margin-top: 6px; }
.pz-where { margin: -2px 0 4px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.pz-where b { color: var(--ink); }
.pz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 6px; }
.pz-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 12px 6px; border: 2px solid transparent; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: 700 .92rem "Nunito", sans-serif; cursor: pointer; }
.pz-tile .ic { width: 26px; height: 26px; color: var(--blue); }
.pz-tile.on { border-color: var(--blue); background: var(--blue-l); }
.pz-tile:active { transform: scale(.97); }
.pz-foot { position: fixed; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 10px; }
.pz-foot .kl-exit { position: static; }
@media (max-width: 480px) { .pz-grid { grid-template-columns: 1fr 1fr; } .pz-breathe { width: 160px; height: 160px; } .pz-av { width: 118px; height: 118px; } }
@media (prefers-reduced-motion: reduce) { .pz-ring { animation: none; } }
.pz-foot { position: static; margin-top: 18px; } .pause-ov.kid-lock { padding-bottom: calc(24px + env(safe-area-inset-bottom)); } .pz { margin: auto 0 0; }

/* ---------- Vokabel-Ergebnis (v2) ---------- */
.vr-hero .vk-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-h { display: flex; align-items: center; gap: 8px; }
.vr-h .ic { width: 22px; height: 22px; }
.vr-h.no .ic { color: var(--coral); } .vr-h.ok .ic { color: var(--green); }
.vr-h > span:not(.ic) { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; font-size: .9rem; }
.vr-h.no > span:not(.ic) { background: var(--coral-l); color: var(--coral); } .vr-h.ok > span:not(.ic) { background: var(--green-l); color: var(--green); }
.vr-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.vr-word { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); border-left: 5px solid var(--green); min-width: 0; }
.vr-word.no { border-left-color: var(--coral); }
.vr-word > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vr-word b { font: 600 1.05rem "Fredoka", sans-serif; overflow-wrap: anywhere; }
.vr-word small { color: var(--muted); font-weight: 700; }
.vr-move { flex: none; display: inline-flex; align-items: center; gap: 3px; }
.vr-move > .ic { width: 14px; height: 14px; color: var(--muted); }
.vr-move .vk-dot { width: 24px; height: 24px; font-size: .75rem; }
.vr-modes { width: min(520px, 100%); }
.vr-modes .t-acts { width: 100%; }
@media (max-width: 480px) { .vr-words { grid-template-columns: minmax(0, 1fr); } }
.vr-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 99px; font-weight: 800; font-size: .8rem; white-space: nowrap; }
.vr-chip.ok { background: var(--green-l); color: var(--green); }
.vr-chip.no { background: var(--coral-l); color: var(--coral); padding-left: 10px; }
.vr-chip .ic { width: 14px; height: 14px; }
.vr-chip .vk-dot { width: 22px; height: 22px; font-size: .72rem; }

/* ---------- Fehlerheft-Runde (v2) ---------- */
.qz-pills > .mk-pill { background: var(--coral-l); color: var(--coral); gap: 8px; }
.mk-pill em { font-style: normal; font-weight: 700; opacity: .9; }
.mk-dots { display: inline-flex; gap: 3px; }
.mk-dots i { width: 14px; height: 8px; border-radius: 99px; background: color-mix(in srgb, currentColor 25%, transparent); transition: background .3s; }
.mk-dots i.on { background: var(--green); }
.qz-pills > .mk-pill.up { background: var(--green-l); color: var(--green); }
.mk-fb { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 16px; font-weight: 700; line-height: 1.4; }
.mk-fb .ic { flex: none; width: 22px; height: 22px; }
.mk-fb.done { background: var(--green); color: #fff; }
.mk-fb.up { background: color-mix(in srgb, var(--card) 75%, transparent); color: var(--green); }
.mk-fb.again { background: color-mix(in srgb, var(--card) 75%, transparent); color: var(--coral); }
.mk-fb b { color: inherit; }
.mk-res .mk-res-img { width: 120px; height: 120px; border-radius: 30px; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.mk-res h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.mk-stats .d b { color: var(--green); } .mk-stats .u b { color: #b07a10; } .mk-stats .a b { color: var(--coral); }
.qz-rev.mkr.ok { border-left-color: var(--green); }
.mkr-foot { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.mkr-foot small { font-weight: 700; font-size: .82rem; }
.mkr-foot .mk-dots i { background: var(--line); }
.mkr-foot .mk-dots i.on { background: var(--green); }

/* ---------- Markieren & Meine Lernkarten ---------- */
[data-ml] { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, box-shadow .2s; position: relative; }
.t-step .lcard-body [data-ml]:not(li):not(tr):not(.lc-row):not(.lc-formula):not(.lc-box) { border-radius: 12px; margin-left: -8px; margin-right: -8px; padding-left: 8px; padding-right: 8px; }
[data-ml]:hover { background-color: color-mix(in srgb, var(--gold) 12%, transparent); }
.t-step .lcard-body .ml-on, .lx-body .ml-on, .ml-on { background: color-mix(in srgb, var(--gold) 30%, var(--card)) !important; box-shadow: inset 5px 0 0 var(--gold); padding-right: 34px !important; }
tr.ml-on td { background: color-mix(in srgb, var(--gold) 30%, var(--card)) !important; }
.ml-on::after { content: ""; position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; background: #c98a00; -webkit-mask: url(../icons/star.png) center / contain no-repeat; mask: url(../icons/star.png) center / contain no-repeat; }
tr.ml-on::after { top: 50%; transform: translateY(-50%); }
.ml-pop { animation: mlPop .35s ease; }
@keyframes mlPop { 40% { transform: scale(1.02); } }
.nt-hint { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 8px 14px; border-radius: 99px; background: var(--amber-l); color: var(--ink); font-weight: 700; font-size: .9rem; width: fit-content; max-width: 100%; }
.nt-hint .ic { flex: none; width: 18px; height: 18px; color: #b07a10; }
.nt-hint a { color: #b07a10; font-weight: 800; }
.t-tags .nt-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 99px; background: var(--amber-l); color: #b07a10; font-weight: 800; font-size: .82rem; text-decoration: none; }
.t-tags .nt-chip .ic { width: 15px; height: 15px; }
.t-tags .nt-chip.empty { display: none; }
.h-act.green { background: #2f9870; }
.h-acts { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .h-acts { grid-template-columns: 1fr 1fr; } }
.nt-group { margin-top: 20px; }
.nt-group-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--ink); text-decoration: none; }
.nt-group-h img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.nt-group-h > span { flex: 1; display: flex; flex-direction: column; }
.nt-group-h small { color: var(--muted); font-weight: 800; font-size: .8rem; }
.nt-group-h b { font: 700 1.2rem "Fredoka", sans-serif; }
.nt-group-h > .ic { width: 20px; height: 20px; color: var(--blue); }
.nt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.nt-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 10px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); border-top: 6px solid var(--gold); min-width: 0; }
.nt-card.b2, .nt-card.b3 { border-top-color: var(--green); }
.nt-front { font: 700 1.1rem "Fredoka", sans-serif; color: var(--ink); }
.nt-body { line-height: 1.55; overflow-wrap: break-word; }
.nt-body b { color: var(--blue); }
.nt-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.nt-foot small { flex: 1; color: var(--muted); font-weight: 700; font-size: .8rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-acts { display: flex; gap: 6px; align-items: center; }
.nt-acts .icon-btn, .nt-acts .speak { width: 38px; height: 38px; }
.nt-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-top: 18px; padding: 24px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.nt-demo { display: grid; gap: 6px; width: min(460px, 100%); text-align: left; }
.nt-demo .lc-line { position: relative; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--cream); }
.nt-demo .ml-on { padding-right: 34px; }
.nt-flash .flash-face b { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.nt-back .nt-body { font-size: 1.2rem; text-align: center; }
.nt-res-h { margin: 0; }

/* ---------- Nachschlagen (Kinderlexikon) ---------- */
.lx-more { margin-top: 26px; padding: 16px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.lx-more-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lx-more-h img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.lx-more-h > span { display: flex; flex-direction: column; }
.lx-more-h b { font: 700 1.25rem "Fredoka", sans-serif; }
.lx-more-h small { color: var(--muted); font-weight: 700; }
.lx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-chips .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--blue-l); color: var(--blue); border-color: transparent; }
.lx-chips .chip .ic { width: 16px; height: 16px; }
.lx-chips .chip.ghost { background: var(--cream); color: var(--ink); }
.lx-hero { display: flex; align-items: center; gap: 20px; padding: 18px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 16px; }
.lx-hero > img { width: 130px; height: 130px; border-radius: 24px; object-fit: cover; flex: none; }
.lx-hero > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.lx-hero h1 { margin: 0; }
.lx-form { display: flex; gap: 8px; }
.lx-form input { flex: 1; min-width: 0; font: 700 1.1rem "Nunito", sans-serif; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--cream); color: var(--ink); }
.lx-srcs { display: flex; gap: 6px; flex-wrap: wrap; }
.lx-count { color: var(--muted); font-weight: 800; margin: 4px 0 10px; }
.lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lx-card { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-height: 120px; }
.lx-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--cream); }
.lx-noimg { display: grid; place-items: center; aspect-ratio: 16/9; background: var(--blue-l); color: var(--blue); }
.lx-noimg .ic { width: 36px; height: 36px; }
.lx-card-b { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.lx-card-b b { font: 700 1.15rem "Fredoka", sans-serif; }
.lx-card-b small { color: var(--muted); font-weight: 600; line-height: 1.4; }
.lx-card.sk { min-height: 220px; background: linear-gradient(100deg, var(--card) 30%, var(--cream) 50%, var(--card) 70%); background-size: 200% 100%; animation: spShine 1.3s linear infinite; }
.lx-art-hero .t-hero-img img { object-fit: cover; }
.lx-lead { font-size: 1.12rem; color: var(--ink); line-height: 1.55; }
.lx-secs { display: grid; gap: 14px; margin-top: 16px; }
.lx-sec { --c: var(--blue); --cl: var(--blue-l); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.lx-sec.c1 { --c: var(--coral); --cl: var(--coral-l); } .lx-sec.c2 { --c: #d99a1e; --cl: var(--amber-l); } .lx-sec.c3 { --c: var(--green); --cl: var(--green-l); }
.lx-sec h2 { margin: 0; padding: 12px 18px; background: var(--cl); font-size: 1.2rem; }
.lx-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px 14px; }
.lx-p { margin: 0; padding: 8px 10px; border-radius: 12px; line-height: 1.6; font-size: 1.05rem; }
.lx-src { margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--cream); color: var(--muted); font-size: .88rem; display: flex; flex-direction: column; gap: 4px; }
.lx-src p { margin: 0; display: flex; gap: 6px; align-items: flex-start; } .lx-src .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lx-src .link-btn { align-self: flex-start; padding-left: 0; }
@media (max-width: 600px) { .lx-hero { flex-direction: column; align-items: stretch; } .lx-hero > img { width: 90px; height: 90px; align-self: center; } }
.lx-card img { background: var(--blue-l); }
.lx-noimg { background: var(--blue-l) url(../img/lexikon.webp) center / 64px no-repeat; }
@media (max-width: 600px) { .lc-row { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* ---------- Meine Lernkarten (v2) ---------- */
.nt-stats .n b { color: #b07a10; } .nt-stats .m b { color: var(--blue); } .nt-stats .o b { color: var(--green); }
.nt-go { margin-top: 18px; background: linear-gradient(120deg, #e3a52c, #e8574f); box-shadow: 0 6px 18px rgba(232,87,79,.25); }
.nt-go-ic { flex: none; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.22); }
.nt-go-ic .ic { width: 34px; height: 34px; }
.nt-filter { margin-top: 18px; }
.nt-fchip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border: 2px solid transparent; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: 800 .92rem "Nunito", sans-serif; cursor: pointer; }
.nt-fchip img, .nt-fall { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.nt-fall { display: grid; place-items: center; background: var(--amber-l); color: #b07a10; } .nt-fall .ic { width: 16px; height: 16px; }
.nt-fchip i { font-style: normal; min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; display: grid; place-items: center; background: var(--cream); font-size: .8rem; }
.nt-fchip.on { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
.nt-group { --c: var(--blue); --cl: var(--blue-l); margin-top: 22px; padding: 12px; border-radius: 28px; background: color-mix(in srgb, var(--cl) 55%, transparent); }
.nt-group.c1 { --c: var(--coral); --cl: var(--coral-l); } .nt-group.c2 { --c: #d99a1e; --cl: var(--amber-l); } .nt-group.c3 { --c: var(--green); --cl: var(--green-l); }
.nt-group-h { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; margin: 0; flex-wrap: wrap; }
.nt-group-h img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.nt-group-h > span:nth-child(2) { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.nt-group-h small { color: var(--c); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.nt-group-h b { font: 700 1.25rem "Fredoka", sans-serif; }
.nt-count { padding: 4px 12px; border-radius: 99px; background: var(--card); color: var(--c); font-weight: 800; font-size: .85rem; }
.nt-group-h .btn .ic { width: 16px; height: 16px; }
.nt-cards { display: block; columns: 3 250px; column-gap: 12px; }
.nt-card { break-inside: avoid; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 10px; border-radius: 18px; border-top: 0; box-shadow: 0 3px 12px rgba(20,25,45,.08); background: var(--card) repeating-linear-gradient(transparent 0 27px, color-mix(in srgb, var(--blue) 9%, transparent) 27px 28px); background-position: 0 44px; position: relative; overflow: hidden; }
.nt-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--gold); }
.nt-card.mid::before { background: var(--blue); } .nt-card.ok::before { background: var(--green); }
.nt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.nt-card-top small { color: var(--muted); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-state { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-weight: 800; font-size: .75rem; }
.nt-state.new { background: var(--amber-l); color: #b07a10; } .nt-state.mid { background: var(--blue-l); color: var(--blue); } .nt-state.ok { background: var(--green-l); color: var(--green); }
.nt-dots { display: inline-flex; gap: 2px; } .nt-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .25; } .nt-dots i.on { opacity: 1; }
.nt-front { font-size: 1.15rem; }
.nt-body { font-size: 1.02rem; line-height: 28px; }
.nt-foot { gap: 6px; border-top: 0; padding-top: 2px; }
.nt-foot .speak, .nt-foot .icon-btn { width: 36px; height: 36px; }
.nt-date { flex: 1; text-align: right; color: var(--muted); font-weight: 700; font-size: .78rem; }
.nt-out { transform: scale(.9); opacity: 0; transition: all .2s; }
@media (max-width: 600px) { .nt-group { padding: 10px 8px; } .nt-cards { columns: 1; } .nt-group-h .btn { width: 100%; } }
.s-next.nt-go > .nt-go-ic { flex: none; }
.nt-group-h > .nt-count { flex: none; }
.pz-grid.eight { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .pz-grid.eight { grid-template-columns: 1fr 1fr; } }
.pz-n { font-style: normal; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; background: var(--amber-l); color: #b07a10; font-size: .78rem; margin-left: 2px; }
.lx-ctx { margin: 0; display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--green-l); color: var(--green); font-weight: 700; font-size: .9rem; }
.lx-ctx b { color: var(--ink); }
.lx-ctx.free { background: var(--cream); color: var(--muted); }
.lx-ctx .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.lx-h { display: flex; align-items: center; gap: 8px; }
.lx-h .ic { width: 22px; height: 22px; color: var(--blue); } .lx-h.ok .ic { color: var(--green); }
.lx-h > span:not(.ic) { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: var(--blue-l); color: var(--blue); font-size: .9rem; }
.lx-h.ok > span:not(.ic) { background: var(--green-l); color: var(--green); }
.lx-note { margin: -4px 0 12px; color: var(--muted); font-weight: 700; }
.lx-fit { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: 12px; background: var(--green-l); color: var(--green); font-weight: 800; font-size: .78rem; line-height: 1.3; }
.lx-fit .ic { flex: none; width: 14px; height: 14px; }
.lx-fit.thema { background: var(--blue-l); color: var(--blue); }
.lx-hidden { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.lx-hidden .ic { width: 16px; height: 16px; }
.lx-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 16px; border-radius: 20px; background: var(--green-l); color: var(--green); }
.lx-check.no { background: var(--amber-l); color: #b07a10; }
.lx-check > .ic { flex: none; width: 24px; height: 24px; }
.lx-check > span { display: flex; flex-direction: column; gap: 6px; }
.lx-check b { color: var(--ink); }
.lx-terms { display: flex; flex-wrap: wrap; gap: 5px; }
.lx-terms i { font-style: normal; padding: 2px 10px; border-radius: 99px; background: var(--card); color: inherit; font-weight: 800; font-size: .8rem; }
mark.lx-kw { background: color-mix(in srgb, var(--gold) 45%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; font-weight: 700; }
.t-hero:not(:has(.t-hero-img)) { grid-template-columns: 1fr; }
.lx-noexact { align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.lx-noexact > span:nth-child(2) { flex: 1; min-width: 200px; }
.lx-noexact > span:nth-child(2) { display: flex; flex-direction: column; }
.lx-art-hero .t-hero-img { background: var(--blue-l) url(../img/lexikon.webp) center / 55% no-repeat; border-radius: 24px; min-height: 200px; }

/* ---------- Lexikon-Artikel (v2) ---------- */
.lx-progress { position: fixed; left: 0; right: 0; top: calc(66px + env(safe-area-inset-top)); height: 4px; z-index: 9; background: transparent; }
.lx-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 0 4px 4px 0; transition: width .1s; }
.lx-art-hero .lx-check { margin: 0; padding: 10px 14px; }
.lx-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.lx-toc > b { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font: 700 1rem "Fredoka", sans-serif; }
.lx-toc > b .ic { width: 18px; height: 18px; color: var(--blue); }
.lx-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.lx-toc a i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 .8rem "Fredoka", sans-serif; }
.lx-steps .lcard-body { gap: 4px; }
.lx-steps .lx-p { font-size: 1.08rem; line-height: 1.65; margin: 0 -8px; }
.lx-steps .t-step { scroll-margin-top: 90px; }
.lx-end { margin-top: 26px; }

/* ---------- Lexikon-Suche (v2) ---------- */
.lx-hero2 { grid-template-columns: minmax(180px, 260px) 1fr; }
.lx-hero-img { background: var(--blue-l); border-radius: 24px; }
.lx-hero-img img { object-fit: contain; padding: 10px; box-sizing: border-box; }
.lx-form2 { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 20px; background: var(--cream); border: 2px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.lx-form2:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.lx-form2 > .ic { flex: none; width: 22px; height: 22px; color: var(--blue); }
.lx-form2 input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font: 700 1.15rem "Nunito", sans-serif; padding: 8px 0; }
.lx-form2 input::-webkit-search-cancel-button { display: none; }
.lx-form2 .btn { flex: none; }
.lx-seg { display: flex; gap: 6px; padding: 5px; border-radius: 18px; background: var(--cream); }
.lx-seg button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 10px; border: 0; border-radius: 14px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.lx-seg button b { font: 700 1rem "Fredoka", sans-serif; }
.lx-seg button small { font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.2; }
.lx-seg button.on { background: var(--card); color: var(--blue); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.lx-seg button.on small { color: var(--muted); }
.lx-start .section-title { display: flex; align-items: center; gap: 8px; }
.lx-start .section-title .ic { width: 24px; height: 24px; color: #e3a52c; }
.lx-sugs { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-sug { --c: var(--blue); --cl: var(--blue-l); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 10px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font: 700 1.05rem "Fredoka", sans-serif; transition: transform .12s; }
.lx-sug:active { transform: scale(.96); }
.lx-sug i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cl); color: var(--c); }
.lx-sug i .ic { width: 18px; height: 18px; }
.lx-sug.c1, .lx-card2.c1, .lx-recent i.c1 { --c: var(--coral); --cl: var(--coral-l); }
.lx-sug.c2, .lx-card2.c2, .lx-recent i.c2 { --c: #d99a1e; --cl: var(--amber-l); }
.lx-sug.c3, .lx-card2.c3, .lx-recent i.c3 { --c: var(--green); --cl: var(--green-l); }
.lx-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.lx-recent a { display: grid; grid-template-columns: 42px 1fr 20px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.lx-recent i { --c: var(--blue); --cl: var(--blue-l); grid-row: span 2; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--cl); color: var(--c); font: 700 1.3rem "Fredoka", sans-serif; font-style: normal; }
.lx-recent b { font: 700 1.05rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-recent small { color: var(--muted); font-weight: 700; font-size: .8rem; grid-column: 2; }
.lx-recent a > .ic { grid-row: 1 / span 2; grid-column: 3; width: 18px; height: 18px; color: var(--muted); }
.lx-load { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 14px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.lx-load img { width: 64px; height: 64px; border-radius: 18px; animation: lxBob 1.2s ease-in-out infinite; }
.lx-load b { font: 700 1.2rem "Fredoka", sans-serif; }
.lx-load ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding: 0; }
.lx-load li { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .88rem; }
.lx-load li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lx-load li.on { color: var(--ink); } .lx-load li.on::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-l); }
@keyframes lxBob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.lx-card2 { --c: var(--blue); --cl: var(--blue-l); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border-top: 5px solid var(--c); transition: transform .12s; }
.lx-card2:active { transform: scale(.98); }
.lx-card-img { display: block; aspect-ratio: 16/9; background: var(--cl) url(../img/lexikon.webp) center / 70px no-repeat; }
.lx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lx-card2 .lx-card-b { flex: 1; }
.lx-card2 .lx-fit { margin-top: 4px; }
.lx-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--c); font: 700 .95rem "Fredoka", sans-serif; }
.lx-go .ic { width: 16px; height: 16px; }
.lx-card2.big { display: grid; grid-template-columns: minmax(200px, 40%) 1fr; margin-bottom: 12px; border-top: 0; border-left: 6px solid var(--c); }
.lx-card2.big .lx-card-img { aspect-ratio: auto; min-height: 200px; background-size: 110px; }
.lx-card2.big .lx-card-b { padding: 18px 20px; gap: 8px; }
.lx-card2.big .lx-card-b b { font-size: 1.6rem; }
.lx-card2.big .lx-card-b small { font-size: 1rem; font-weight: 500; color: var(--ink); line-height: 1.55; }
.lx-best { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: #e3a52c; color: #fff; font: 700 .8rem "Fredoka", sans-serif; }
.lx-best .ic { width: 14px; height: 14px; }
@media (max-width: 700px) {
  .lx-hero2 .lx-hero-img { display: none; }
  .lx-card2.big { grid-template-columns: 1fr; border-left: 0; border-top: 5px solid var(--c); }
  .lx-card2.big .lx-card-img { min-height: 0; aspect-ratio: 16/9; }
  .lx-card2.big .lx-card-b b { font-size: 1.35rem; }
  .lx-seg button small { display: none; }
}

/* ---------- Mehr erfahren auf Themenseiten (v2) ---------- */
.lx-more2 { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: stretch; margin-top: 30px; padding: 16px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
.lx-more-img { border-radius: 22px; overflow: hidden; background: #f6ead2; min-height: 200px; }
.lx-more-img img { width: 100%; height: 100%; object-fit: cover; }
.lx-more-b { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 6px 6px 6px 0; }
.lx-more-b h2 { margin: 0; font-size: 1.7rem; }
.lx-more-b > p { margin: 0; color: var(--muted); font-weight: 600; font-size: .98rem; line-height: 1.45; }
.lx-form2.small { padding: 4px 4px 4px 14px; border-radius: 16px; }
.lx-form2.small input { font-size: 1.02rem; padding: 6px 0; }
.lx-more-b .lx-sug { box-shadow: none; background: var(--cream); font-size: .98rem; padding: 6px 14px 6px 6px; }
.lx-more-b .lx-sug i { width: 30px; height: 30px; }
.lx-done { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .88rem; }
.lx-done .ic { width: 16px; height: 16px; }
.lx-done a { padding: 2px 10px; border-radius: 99px; background: var(--green-l); color: var(--green); text-decoration: none; }
@media (max-width: 700px) {
  .lx-more2 { grid-template-columns: 1fr; gap: 12px; }
  .lx-more-img { min-height: 0; height: 130px; }
  .lx-more-b { padding: 0 4px 4px; }
}

/* ---------- Arbeitsblätter auf Themenseiten (v2) ---------- */
.ws-topic { margin-top: 30px; padding: 18px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
.ws-topic-h { display: grid; grid-template-columns: 54px 1fr minmax(120px, 220px); align-items: center; gap: 14px; margin-bottom: 14px; }
.ws-topic-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: #e3a52c; color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.ws-topic-ic .ic { width: 28px; height: 28px; }
.ws-topic-h h2 { margin: 0; font-size: 1.6rem; }
.ws-topic-h small { color: var(--muted); font-weight: 800; }
.ws-topic-bar { height: 12px; border-radius: 99px; background: var(--cream); overflow: hidden; }
.ws-topic-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), #6fcf97); min-width: 12px; }
.ws-rows { display: grid; gap: 10px; }
.ws-row { --c: var(--blue); --cl: var(--blue-l); display: grid; grid-template-columns: 46px 1fr auto 20px; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 20px; background: var(--cream); color: var(--ink); text-decoration: none; border-left: 5px solid var(--c); transition: transform .12s; }
.ws-row:active { transform: scale(.98); }
.ws-row.v { --c: #d99a1e; --cl: var(--amber-l); } .ws-row.k { --c: var(--coral); --cl: var(--coral-l); }
.ws-row-n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 1.25rem "Fredoka", sans-serif; }
.ws-row.good .ws-row-n { background: var(--green); }
.ws-row-n .ic { width: 22px; height: 22px; }
.ws-row-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ws-row-b b { font: 700 1.12rem "Fredoka", sans-serif; }
.ws-row-b small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-weight: 700; font-size: .85rem; }
.ws-row-b small .ic { width: 14px; height: 14px; margin-left: 4px; }
.ws-lv { font-style: normal; padding: 1px 9px; border-radius: 99px; background: var(--cl); color: var(--c); font-weight: 800; }
.ws-row-st { padding: 6px 12px; border-radius: 99px; font: 700 .9rem "Fredoka", sans-serif; white-space: nowrap; }
.ws-row-st.new { background: var(--blue); color: #fff; }
.ws-row-st.mid { background: var(--amber-l); color: #b07a10; }
.ws-row-st.ok { background: var(--green-l); color: var(--green); }
.ws-row > .ic { width: 18px; height: 18px; color: var(--muted); }
@media (max-width: 700px) {
  .ws-topic { padding: 14px; }
  .ws-topic-h { grid-template-columns: 46px 1fr; } .ws-topic-ic { width: 46px; height: 46px; }
  .ws-topic-bar { grid-column: 1 / -1; }
  .ws-row { grid-template-columns: 40px 1fr auto; gap: 10px; } .ws-row-n { width: 40px; height: 40px; }
  .ws-row > .ic { display: none; }
}
.ws-types { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.ws-types i { font-style: normal; padding: 2px 9px; border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 700; font-size: .78rem; }
.ws-topic-h:not(:has(.ws-topic-bar)) { grid-template-columns: 54px 1fr; }
.ws-row:has(.ws-row-img) { grid-template-columns: 92px 1fr auto 20px; }
.ws-row-img { position: relative; width: 92px; height: 92px; }
.ws-row-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.ws-row-img em { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 3px var(--cream); }
.ws-row-img em .ic { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .ws-row, .ws-row:has(.ws-row-img) { grid-template-columns: auto 1fr; align-items: start; }
  .ws-row-img { width: 64px; height: 64px; }
  .ws-row-st { grid-column: 2; justify-self: start; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ws-row-st.mid { color: #f2c04e; } }
:root[data-theme="dark"] .ws-row-st.mid { color: #f2c04e; }
.h-hero-img { object-position: 32% center; }
.s-hero2 .h-hero-img { height: 0; min-height: max(100%, 280px); object-position: center; }
@media (max-width: 820px) { .s-hero2 .h-hero-img { height: auto; min-height: 0; } }

/* ---------- Familienkonto ---------- */
.fam-card { margin-top: 18px; padding: 20px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.fam-h { display: flex; align-items: center; gap: 14px; }
.fam-h > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fam-h b { font: 700 1.35rem "Fredoka", sans-serif; }
.fam-h small { color: var(--muted); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.fam-h small b { font: inherit; color: var(--ink); }
.fam-ic { width: 52px; height: 52px; border-radius: 17px; flex: none; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.fam-ic .ic { width: 26px; height: 26px; }
.fam-on .fam-ic { background: var(--green); }
.fam-kid .fam-ic { background: #e3a52c; }
.fam-txt { margin: 0; color: var(--muted); font-weight: 600; }
.fam-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fam-list li { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; }
.fam-list .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.fam-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.fam-card > .link-btn { align-self: flex-start; }
.fam-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 14px; }
.fam-code { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 22px; background: var(--blue-l); }
.fam-code small { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.fam-code > b { font: 700 2rem "Fredoka", sans-serif; letter-spacing: .08em; color: var(--ink); }
.fam-code p { margin: 4px 0 0; color: var(--muted); font-weight: 600; font-size: .85rem; line-height: 1.4; }
.fam-kids { display: grid; gap: 8px; align-content: start; }
.fam-kid { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--cream); }
.fam-kid img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.fam-kid > span { display: flex; flex-direction: column; min-width: 0; }
.fam-kid b { font: 700 1.1rem "Fredoka", sans-serif; }
.fam-pin { color: var(--muted); font-weight: 700; font-size: .82rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fam-pin .ok { color: var(--green); display: inline-flex; align-items: center; gap: 3px; } .fam-pin .warn { color: #b07a10; }
.fam-pin .ic { width: 13px; height: 13px; }
.fam-pin .link-btn { padding: 0; font-size: .82rem; min-height: 0; }
.fam-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 2px dashed var(--line); }
.fam-sync { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; }
.fam-sync .ic { width: 16px; height: 16px; } .fam-sync.ok { color: var(--green); } .fam-sync.err { color: var(--coral); }
.fam-box { max-width: 440px; }
.fam-form { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; text-align: left; }
.fam-form .fld input { width: 100%; box-sizing: border-box; }
.fam-err { min-height: 1.3em; margin: 0 0 8px; color: var(--coral); font-weight: 800; font-size: .92rem; text-align: center; }
.fam-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 10px; }
.fam-info { margin: 14px 0 18px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.btn.busy { opacity: .6; pointer-events: none; }
.btn.busy::after { content: ""; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: famSpin .7s linear infinite; }
@keyframes famSpin { to { transform: rotate(360deg); } }
.fj-code { font: 700 2rem "Fredoka", sans-serif; letter-spacing: .12em; text-align: center; text-transform: uppercase; padding: 14px; border-radius: 20px; border: 3px solid var(--line); background: var(--cream); color: var(--ink); width: 100%; box-sizing: border-box; }
.fj-code:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.fj-kids { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 16px 0 12px; }
.fj-spin { width: 44px; height: 44px; margin: 18px auto 6px; border-radius: 50%; border: 5px solid var(--blue-l); border-top-color: var(--blue); animation: famSpin .8s linear infinite; }
.fam-first { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin-top: 10px; padding: 8px 14px; border-radius: 16px; background: var(--blue-l); font-weight: 800; font-size: .92rem; }
.fam-first > span { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.fam-first .ic { width: 16px; height: 16px; }
.fam-first .link-btn { padding: 4px 0; }
@media (max-width: 700px) {
  .fam-card { padding: 16px; }
  .fam-grid { grid-template-columns: 1fr; }
  .fam-kid { grid-template-columns: 40px 1fr; } .fam-kid img { width: 40px; height: 40px; }
  .fam-kid .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Anmeldung (Pflicht-Startbildschirm) ---------- */
.gate-ov { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; overflow-y: auto; }
.gate-box { max-width: 880px; width: calc(100% - 32px); padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1.15fr; text-align: left; }
.gate-img { position: relative; min-height: 100%; background: #f6ead2; }
.gate-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.gate-body { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 24px; }
.gate-brand { display: flex; align-items: center; gap: 10px; }
.gate-brand img { width: 40px; height: 40px; border-radius: 12px; }
.gate-brand b { font: 700 1.35rem "Fredoka", sans-serif; }
.gate-brand b span { color: var(--coral); }
.gate-body h1 { margin: 4px 0 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.1; }
.gate-body .ov-sub { font-size: 1rem; font-weight: 600; }
.gate-cards { display: grid; gap: 12px; margin-top: 6px; }
.gate-card { --c: var(--blue); --cl: var(--blue-l); display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; border-radius: 22px; background: var(--cream); border-left: 5px solid var(--c); }
.gate-card.c1 { --c: var(--coral); --cl: var(--coral-l); }
.gate-ic { grid-row: 1 / span 2; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; }
.gate-ic .ic { width: 26px; height: 26px; }
.gate-card > b { font: 700 1.3rem "Fredoka", sans-serif; }
.gate-card > small { color: var(--muted); font-weight: 700; }
.gate-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gate-acts .btn { flex: 1; min-width: 120px; }
.gate-off { margin: 0; display: flex; align-items: center; gap: 6px; color: #b07a10; font-weight: 800; font-size: .9rem; }
.gate-off .ic { width: 16px; height: 16px; }
.fam-hint { font-weight: 700; color: var(--muted); font-size: .8rem; margin-left: 4px; }
@media (max-width: 760px) {
  .gate-box { grid-template-columns: 1fr; width: calc(100% - 24px); }
  .gate-img { min-height: 0; height: 170px; }
  .gate-body { padding: 18px 18px 20px; }
}
.gate-off[hidden] { display: none; }

/* ---------- Anmelde-Bildschirm v2: alles in einem Bildschirm ---------- */
.gate-box { max-width: 920px; min-height: min(600px, calc(100vh - 32px)); grid-template-columns: 1fr 1.1fr; }
.gate-img { overflow: hidden; }
.gate-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, color-mix(in srgb, var(--card) 35%, transparent)); pointer-events: none; }
.gate-img img { transition: opacity .18s, transform .6s; }
.gate-img img.swap { opacity: 0; transform: scale(1.03); }
.gate-box[data-side="parent"] .gate-img img { object-position: center; }
.gate-body { justify-content: center; gap: 10px; padding: 30px 32px 26px; }
.gate-body.in { animation: gtIn .28s ease; }
@keyframes gtIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.gate-body h2 { margin: 2px 0 0; font-size: 1.75rem; line-height: 1.15; }
.gt-sub { margin: 0 0 4px; color: var(--muted); font-weight: 600; line-height: 1.45; }
.gt-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.gt-back { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.gt-back .ic { width: 20px; height: 20px; }
.gt-chip { padding: 4px 12px; border-radius: 99px; font-weight: 800; font-size: .82rem; }
.gt-chip.c0 { background: var(--blue-l); color: var(--blue); } .gt-chip.c1 { background: var(--coral-l); color: var(--coral); }
.gate-kid { border: 0; border-left: 5px solid var(--c); font: inherit; color: inherit; text-align: left; cursor: pointer; grid-template-columns: 50px 1fr 40px; transition: transform .12s; }
.gate-kid:active { transform: scale(.98); }
.gate-go { grid-column: 3; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.gate-go .ic { width: 20px; height: 20px; }
.gt-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.gt-field { display: flex; flex-direction: column; gap: 5px; font-weight: 800; font-size: .95rem; }
.gt-in { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--cream); transition: border-color .15s, box-shadow .15s; }
.gt-in:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.gt-in > .ic { flex: none; width: 18px; height: 18px; color: var(--muted); }
.gt-in input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font: 600 1.08rem "Nunito", sans-serif; padding: 13px 0; }
.gt-eye { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.gt-eye .ic { width: 20px; height: 20px; } .gt-eye.on { color: var(--blue); background: var(--blue-l); }
.gt-meter { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 5px; margin-top: -4px; }
.gt-meter i { height: 6px; border-radius: 99px; background: var(--line); transition: background .2s; }
.gt-meter small { margin-left: 6px; color: var(--muted); font-weight: 800; font-size: .78rem; min-width: 118px; text-align: right; }
.gt-meter[data-s="1"] i:nth-child(-n+1) { background: var(--coral); }
.gt-meter[data-s="2"] i:nth-child(-n+2) { background: #e3a52c; }
.gt-meter[data-s="3"] i:nth-child(-n+3) { background: var(--green); }
.gt-meter[data-s="4"] i { background: var(--green); }
.gate-body .fam-err { text-align: left; margin: 0; min-height: 1.2em; }
.gt-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 14px; font-weight: 700; color: var(--muted); font-size: .92rem; }
.gt-links .link-btn { padding: 4px 0; }
.gt-note { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .82rem; }
.gt-note .ic { width: 14px; height: 14px; flex: none; }
.gt-big { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--green-l); color: var(--green); margin: 6px 0; }
.gt-big .ic { width: 36px; height: 36px; }
.gt-steps { display: flex; align-items: center; gap: 6px; }
.gt-steps i { width: 26px; height: 8px; border-radius: 99px; background: var(--line); }
.gt-steps i.on { width: 40px; background: var(--coral); } .gt-steps i.done { background: color-mix(in srgb, var(--coral) 45%, var(--line)); }
.gt-steps small { margin-left: 6px; color: var(--muted); font-weight: 800; font-size: .8rem; }
.gt-code { font: 700 2.2rem "Fredoka", sans-serif; letter-spacing: .14em; text-align: center; text-transform: uppercase; padding: 16px 10px; border-radius: 22px; border: 3px solid var(--line); background: var(--cream); color: var(--ink); width: 100%; box-sizing: border-box; }
.gt-code:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-l); }
.gt-code::placeholder { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.gt-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 6px; }
.gt-kid { --c: var(--blue); --cl: var(--blue-l); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; border-radius: 24px; border: 3px solid transparent; background: var(--cl); color: var(--ink); cursor: pointer; font: inherit; transition: transform .12s, border-color .12s; }
.gt-kid.c1 { --c: var(--coral); --cl: var(--coral-l); } .gt-kid.c2 { --c: #d99a1e; --cl: var(--amber-l); } .gt-kid.c3 { --c: var(--green); --cl: var(--green-l); }
.gt-kid:hover, .gt-kid:focus-visible { border-color: var(--c); }
.gt-kid:active { transform: scale(.96); }
.gt-kid img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--card); }
.gt-kid b { font: 700 1.2rem "Fredoka", sans-serif; }
.gt-pinhead { display: flex; align-items: center; gap: 14px; }
.gt-pinhead img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--coral-l); }
.gt-pin { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.gt-pin .pin-dots i { border-color: var(--coral); } .gt-pin .pin-dots i.on { background: var(--coral); }
.gt-pin .fam-err { text-align: center; }
.gt-pin .pin-pad { grid-template-columns: repeat(3, 68px); gap: 10px; }
.gt-pin .pin-pad button { height: 68px; font-size: 1.6rem; }
.gt-pin.shake { animation: shake .4s; }
.gt-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.gt-center .gt-sub { max-width: 340px; }
.gt-av { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--coral-l); }
.gt-avwrap { position: relative; }
.gt-avwrap i { position: absolute; right: -2px; bottom: -2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 4px var(--card); }
.gt-avwrap i .ic { width: 22px; height: 22px; }
.gt-center .btn { margin-top: 8px; min-width: 220px; }
@media (max-width: 760px) {
  .gate-box { min-height: 0; grid-template-columns: 1fr; width: calc(100% - 24px); }
  .gate-img { min-height: 0; }
  .gate-img { height: 150px; }
  .gate-img::after { background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--card) 45%, transparent)); }
  .gate-box[data-side="kid"] .gate-img, .gate-box[data-side="parent"] .gate-img { height: 96px; }
  .gate-body { padding: 18px 18px 22px; }
  .gate-body h2 { font-size: 1.45rem; }
  .gt-code { font-size: 1.8rem; }
  .gt-pin .pin-pad { grid-template-columns: repeat(3, 64px); } .gt-pin .pin-pad button { height: 64px; }
}

/* ---------- Elternbereich: Familienkonto v2 ---------- */
.fam2-title { display: flex; align-items: center; gap: 8px; }
.fam2-title .ic { width: 24px; height: 24px; color: var(--green); }
.fam2 { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
.fam2-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.fam2-code { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--blue) 0%, #3d63c4 60%, #5b7fdc 100%); }
.fam2-code::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.fam2-code > small { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; opacity: .85; }
.fam-tiles { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.fam-tiles b { width: 42px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.28); font: 700 1.7rem "Fredoka", sans-serif; }
.fam-tiles .fam-dash { width: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.6); margin: 0 2px; }
.fam2-codeacts { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn.fam2-light { background: rgba(255,255,255,.18); color: #fff; border: 2px solid rgba(255,255,255,.3); box-shadow: none; }
.btn.fam2-light:hover { background: rgba(255,255,255,.28); }
.fam2-acc { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px; background: var(--cream); }
.fam2-me { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fam2-init { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 1.3rem "Fredoka", sans-serif; }
.fam2-me > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fam2-me small { color: var(--muted); font-weight: 800; font-size: .78rem; }
.fam2-me b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fam2-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fam-sync { display: flex; align-items: center; gap: 10px; }
.fam-sync > span { display: flex; flex-direction: column; line-height: 1.25; }
.fam-sync b { font-weight: 800; font-size: .95rem; }
.fam-sync small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.fam-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--green); box-shadow: 0 0 0 4px var(--green-l); }
.fam-sync.err .fam-dot { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-l); }
.fam-sync.busy .fam-dot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); animation: famPulse 1s ease-in-out infinite; }
@keyframes famPulse { 50% { transform: scale(.6); } }
.fam2-accacts { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.fam2-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.fam2-kid { --c: var(--blue); --cl: var(--blue-l); display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 10px 14px; align-items: center; padding: 14px; border-radius: 22px; background: var(--cream); border-left: 5px solid var(--c); }
.fam2-kid.c1 { --c: var(--coral); --cl: var(--coral-l); } .fam2-kid.c2 { --c: #d99a1e; --cl: var(--amber-l); } .fam2-kid.c3 { --c: var(--green); --cl: var(--green-l); }
.fam2-kid img { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--cl); align-self: start; }
.fam2-kidb { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.fam2-kidb b { font: 700 1.3rem "Fredoka", sans-serif; }
.fam2-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-weight: 800; font-size: .8rem; }
.fam2-pill .ic { width: 13px; height: 13px; }
.fam2-pill.ok { background: var(--green-l); color: var(--green); }
.fam2-pill.warn { background: var(--amber-l); color: #b07a10; }
.fam2-pill.wait { background: var(--card); color: var(--muted); }
.fam2-dev { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; font-size: .82rem; }
.fam2-dev .ic { width: 14px; height: 14px; }
.fam2-dev .link-btn { padding: 0; min-height: 0; font-size: .82rem; }
.fam2-kid .btn { grid-column: 2; justify-self: start; }
.fam2-how { border-radius: 18px; background: var(--cream); padding: 4px 14px; }
.fam2-how summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; font-weight: 800; list-style: none; }
.fam2-how summary::-webkit-details-marker { display: none; }
.fam2-how summary .ic { width: 18px; height: 18px; color: var(--blue); }
.fam2-how ol { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fam2-how li { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: var(--card); }
.fam2-how li span { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font: 700 1.05rem "Fredoka", sans-serif; }
.fam2-how li b { font-weight: 800; }
.fam2-how li small { color: var(--muted); font-weight: 600; font-size: .82rem; line-height: 1.35; }
.fam2-kidhead { display: flex; align-items: center; gap: 14px; }
.fam2-kidhead img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--amber-l); flex: none; }
.fam2-kidhead > span { display: flex; flex-direction: column; gap: 2px; }
.fam2-kidhead small { color: var(--muted); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.fam2-kidhead b { font: 700 1.35rem "Fredoka", sans-serif; }
.fam2-kidhead em { font-style: normal; color: var(--muted); font-weight: 600; font-size: .9rem; }
.fam2-device { margin-top: 18px; }
.fam2-device .fam2-bar { padding: 12px 14px; border-radius: 18px; background: var(--cream); }
.fam2 > .link-btn { align-self: flex-start; }
.fam-codebox { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px 28px 26px; color: #fff; background: linear-gradient(135deg, var(--blue) 0%, #3d63c4 60%, #5b7fdc 100%); }
.fam-codebox > small { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.fam-codebox .fam-tiles b { width: clamp(38px, 9vw, 64px); height: clamp(52px, 12vw, 84px); font-size: clamp(1.6rem, 5vw, 2.8rem); border-radius: 16px; }
.fam-codebox p { margin: 0; opacity: .9; font-weight: 600; }
.fam-codebox .ov-x { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 820px) {
  .fam2-top { grid-template-columns: 1fr; }
  .fam2-how ol { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .fam-tiles { gap: 4px; } .fam-tiles b { width: 32px; height: 44px; font-size: 1.35rem; border-radius: 10px; }
  .fam2-kid { grid-template-columns: 52px 1fr; } .fam2-kid img { width: 52px; height: 52px; }
}
.fam-codebox { width: auto; max-width: calc(100vw - 32px); }
.fam-codebox .fam-tiles { gap: clamp(3px, 1vw, 8px); }
.fam-codebox .fam-tiles b { width: clamp(30px, 8.5vw, 60px); height: clamp(42px, 11vw, 78px); font-size: clamp(1.3rem, 4.6vw, 2.6rem); }

/* ---------- Eltern-Statistik v2 ---------- */
.st2-hero { --c: var(--blue); --cl: var(--blue-l); display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: stretch; padding: 16px; border-radius: 32px; background: var(--card); box-shadow: var(--shadow); }
.st2-hero.c1 { --c: var(--coral); --cl: var(--coral-l); } .st2-hero.c2 { --c: #d99a1e; --cl: var(--amber-l); } .st2-hero.c3 { --c: var(--green); --cl: var(--green-l); }
.st2-avp { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px 14px; border-radius: 24px; background: var(--cl); overflow: hidden; }
.st2-avp::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); top: -70px; right: -70px; }
.st2-avp img { position: relative; width: 136px; height: 136px; border-radius: 50%; object-fit: cover; border: 5px solid var(--card); box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.st2-status { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--card); color: var(--muted); font-weight: 800; font-size: .85rem; }
.st2-status .ic { width: 15px; height: 15px; }
.st2-status.ok { color: var(--green); } .st2-status.warn { color: #b07a10; }
.st2-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; padding: 6px 8px 6px 0; }
.st2-body h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.05; }
.st2-body .t-sum { margin: 0; }
.st2-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.st2-tool { --c: var(--blue); --cl: var(--blue-l); display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.st2-tool.c1 { --c: var(--coral); --cl: var(--coral-l); } .st2-tool.c2 { --c: #d99a1e; --cl: var(--amber-l); } .st2-tool.c3 { --c: var(--green); --cl: var(--green-l); }
.st2-tic { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--cl); color: var(--c); }
.st2-tic .ic { width: 22px; height: 22px; }
.st2-tool > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.st2-tool b { font: 700 1.55rem "Fredoka", sans-serif; }
.st2-tool b small { font-size: .9rem; color: var(--muted); }
.st2-tool small { font-weight: 800; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st2-tool em { font-style: normal; color: var(--muted); font-weight: 700; font-size: .78rem; }
.st2-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.st2-kpis { display: flex; gap: 8px; }
.st2-kpis > span { display: flex; flex-direction: column; align-items: flex-end; padding: 6px 12px; border-radius: 14px; background: var(--cream); line-height: 1.15; }
.st2-kpis b { font: 700 1.25rem "Fredoka", sans-serif; }
.st2-kpis small { color: var(--muted); font-weight: 800; font-size: .74rem; }
.ch-ref { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .7; }
.ch-reflbl { fill: var(--muted); font: 800 11px "Nunito", sans-serif; }
.st2-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st2-list li { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 16px; background: var(--cream); }
.st2-list img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; }
.st2-list li > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.st2-list b { font: 600 1rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st2-list small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.st2-list em { font-style: normal; font-weight: 800; padding: 2px 10px; border-radius: 99px; }
.st2-list em.ok { background: var(--green-l); color: var(--green); } .st2-list em.no { background: var(--coral-l); color: var(--coral); }
.st2-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.st2-subj { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--cream); cursor: default; }
.st2-subj img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.st2-subj-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st2-subj-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.st2-subj-top b { font: 700 1.05rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st2-subj-top small { color: var(--muted); font-weight: 800; font-size: .78rem; white-space: nowrap; }
.st2-subj .st-track { height: 10px; background: var(--card); }
.st2-subj em { font-style: normal; font-weight: 800; font-size: .82rem; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.st2-subj em.ok { background: var(--green-l); color: var(--green); } .st2-subj em.mid { background: var(--amber-l); color: #b07a10; } .st2-subj em.no { background: var(--coral-l); color: var(--coral); }
.st2-idle { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.st2-idle small { color: var(--muted); font-weight: 800; font-size: .82rem; }
.st2-idle > span { display: flex; flex-wrap: wrap; gap: 6px; }
.st2-idle i { font-style: normal; padding: 3px 11px; border-radius: 99px; background: var(--cream); color: var(--muted); font-weight: 800; font-size: .84rem; }
.st2-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.st2-res { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--cream); min-width: 0; }
.st2-res > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.st2-res b { font: 600 1rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st2-res small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.st2-res em { font-style: normal; color: var(--muted); font-weight: 800; font-size: .85rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st2-status.warn, :root:not([data-theme="light"]) .st2-subj em.mid { color: #f2c04e; } }
:root[data-theme="dark"] .st2-status.warn, :root[data-theme="dark"] .st2-subj em.mid { color: #f2c04e; }
@media (max-width: 760px) {
  .st2-hero { grid-template-columns: 1fr; gap: 14px; }
  .st2-avp { flex-direction: row; justify-content: flex-start; padding: 14px; }
  .st2-avp img { width: 84px; height: 84px; border-width: 4px; }
  .st2-body { padding: 0 4px 4px; }
  .st2-tools { grid-template-columns: 1fr 1fr; }
  .st2-subjects, .st2-results { grid-template-columns: 1fr; }
  .st2-kpis { width: 100%; } .st2-kpis > span { flex: 1; align-items: flex-start; }
}
.st2-list { grid-template-columns: minmax(0, 1fr); }
.st-card { min-width: 0; } .st-grid > * { min-width: 0; }
.st2-subj-b { gap: 5px; }
.st2-subj-b > b { font: 700 1.05rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st2-subj-b > small { color: var(--muted); font-weight: 800; font-size: .78rem; }
@media (max-width: 760px) {
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st2-tool small { white-space: normal; }
  .st2-tool { padding: 12px; gap: 10px; } .st2-tic { width: 40px; height: 40px; }
}
.st2-nochart { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px 16px; border-radius: 20px; background: var(--cream); text-align: center; }
.st2-nochart .ic { width: 34px; height: 34px; color: var(--muted); opacity: .6; margin-bottom: 4px; }
.st2-nochart b { font: 700 1.15rem "Fredoka", sans-serif; }
.st2-nochart small { color: var(--muted); font-weight: 700; }
.st-card .st-empty { font-size: .95rem; line-height: 1.4; align-items: flex-start; }
.st-card .st-empty .ic { margin-top: 2px; flex: none; }

/* ---------- Ergebnisse v2 ---------- */
.er-hero .h-hero-img { object-position: center; background: #f6ead2; }
.er-hls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.er-hl { --c: var(--blue); --cl: var(--blue-l); display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); border-top: 5px solid var(--c); min-width: 0; }
.er-hl.c1 { --c: var(--coral); --cl: var(--coral-l); } .er-hl.c2 { --c: #d99a1e; --cl: var(--amber-l); } .er-hl.c3 { --c: var(--green); --cl: var(--green-l); }
.er-hl img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; }
.er-hl > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.er-hl small { color: var(--c); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.er-hl b { font: 700 1.1rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-hl em { font-style: normal; color: var(--muted); font-weight: 700; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-chart { margin-bottom: 4px; }
.er-chart .ch { max-height: 260px; }
.er-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.er-chips::-webkit-scrollbar { display: none; }
.er-tl { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.er-tl::before { content: ""; position: absolute; left: 44px; top: 26px; bottom: 26px; border-left: 3px dotted var(--line); }
.er-row { position: relative; display: grid; grid-template-columns: 60px 48px 1fr auto; align-items: center; gap: 12px; padding: 6px 10px 6px 0; border-radius: 18px; }
.er-row[hidden] { display: none; }
.er-row:hover { background: var(--cream); }
.er-date { position: relative; z-index: 1; width: 60px; height: 52px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cream); line-height: 1.1; box-shadow: 0 0 0 4px var(--card); }
.er-date b { font: 700 1rem "Fredoka", sans-serif; }
.er-date small { color: var(--muted); font-weight: 800; font-size: .74rem; }
.er-date.today { background: var(--blue); color: #fff; } .er-date.today small { color: rgba(255,255,255,.85); }
.er-row img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.er-txt { display: flex; flex-direction: column; min-width: 0; }
.er-txt b { font: 600 1.05rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.er-txt small { color: var(--muted); font-weight: 700; font-size: .82rem; }
@media (max-width: 760px) {
  .er-hls { grid-template-columns: 1fr; }
  .er-tl { padding: 10px; } .er-tl::before { left: 34px; }
  .er-row { grid-template-columns: 50px 40px 1fr auto; gap: 10px; }
  .er-date { width: 50px; height: 46px; } .er-row img { width: 40px; height: 40px; }
}
.er-hero .h-hero-img { height: 0; min-height: max(100%, 280px); object-position: center 8%; }
.er-chart .ch { max-height: none; }
@media (max-width: 820px) { .er-hero .h-hero-img { height: auto; min-height: 0; aspect-ratio: 16/9; object-position: center 30%; } }

/* ---------- Lernplan v2 ---------- */
.lp-hero .h-hero-img { height: 0; min-height: max(100%, 260px); background: #f6ead2; object-position: center; }
.lp-next { --c: var(--blue); --cl: var(--blue-l); display: grid; grid-template-columns: 220px 1fr; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.lp-next.soon { --c: #d99a1e; --cl: var(--amber-l); } .lp-next.hot { --c: var(--coral); --cl: var(--coral-l); }
.lp-count { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 22px 16px; color: #fff; text-align: center; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 80%, #000)); overflow: hidden; }
.lp-count::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.1); top: -80px; left: -60px; }
.lp-count small { position: relative; font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.lp-count b { position: relative; font: 700 4.2rem/1 "Fredoka", sans-serif; }
.lp-count span { position: relative; font: 700 1.2rem "Fredoka", sans-serif; margin-top: -2px; }
.lp-count em { position: relative; font-style: normal; font-weight: 700; font-size: .85rem; opacity: .92; margin-top: 8px; }
.lp-next-b { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; min-width: 0; }
.lp-next-top { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; }
.lp-next-top img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; }
.lp-next-top > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.lp-next-top b { font: 700 1.6rem "Fredoka", sans-serif; line-height: 1.1; }
.lp-next-top small { color: var(--muted); font-weight: 700; }
.lp-plan-h { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--c); }
.lp-plan-h .ic { width: 16px; height: 16px; }
.lp-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-plan li { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; background: var(--cream); }
.lp-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 1rem "Fredoka", sans-serif; }
.lp-n .ic { width: 16px; height: 16px; }
.lp-plan li.ok .lp-n { background: var(--green); }
.lp-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lp-t b { font: 600 1.02rem "Fredoka", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-bar { height: 7px; border-radius: 99px; background: var(--card); overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: 99px; background: #e3a52c; }
.lp-plan li.ok .lp-bar i { background: var(--green); } .lp-plan li.new .lp-bar i { background: var(--line); }
.lp-plan em { font-style: normal; font-weight: 800; font-size: .85rem; color: var(--muted); min-width: 42px; text-align: right; }
.lp-plan li.ok em { color: var(--green); }
.lp-next-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-note { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.lp-note .ic { width: 18px; height: 18px; flex: none; }
.lp-rows { display: grid; gap: 8px; margin-top: 12px; }
.lp-sub { margin: 4px 0 0; color: var(--muted); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.lp-row { --c: var(--blue); --cl: var(--blue-l); display: grid; grid-template-columns: 54px 48px 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.lp-row.soon { --c: #d99a1e; --cl: var(--amber-l); } .lp-row.hot { --c: var(--coral); --cl: var(--coral-l); } .lp-row.past { --c: var(--muted); --cl: var(--cream); opacity: .8; }
.lp-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 16px; background: var(--cl); color: var(--c); line-height: 1.05; }
.lp-date b { font: 700 1.35rem "Fredoka", sans-serif; }
.lp-date small { font-weight: 800; font-size: .7rem; text-transform: uppercase; }
.lp-row img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.lp-row-b { display: flex; flex-direction: column; min-width: 0; }
.lp-row-b b { font: 700 1.1rem "Fredoka", sans-serif; }
.lp-row-b small { color: var(--muted); font-weight: 700; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.lp-pin { position: relative; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.lp-pin > a { display: flex; align-items: center; gap: 12px; padding: 10px 44px 10px 10px; color: inherit; text-decoration: none; }
.lp-pin img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.lp-pin a > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.lp-pin small { color: var(--muted); font-weight: 800; font-size: .78rem; }
.lp-pin b { font: 600 1.02rem/1.25 "Fredoka", sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-pin em { font-style: normal; font-weight: 800; font-size: .76rem; padding: 1px 8px; border-radius: 99px; background: var(--blue-l); color: var(--blue); }
.lp-pin em.ok { background: var(--green-l); color: var(--green); } .lp-pin em.mid { background: var(--amber-l); color: #b07a10; }
.lp-pin .icon-btn { position: absolute; top: 8px; right: 8px; }
.lp-subjects { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-subj { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 2px solid transparent; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: inherit; cursor: pointer; }
.lp-subj img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.lp-subj b { font: 600 .98rem "Fredoka", sans-serif; }
.lp-subj i { min-width: 24px; height: 24px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; background: var(--coral); color: #fff; font: 800 .82rem "Nunito", sans-serif; font-style: normal; display: grid; place-items: center; }
.lp-plus { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--muted); }
.lp-plus .ic { width: 12px; height: 12px; }
.lp-subj.on { border-color: var(--coral); background: var(--coral-l); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp-pin em.mid { color: #f2c04e; } }
:root[data-theme="dark"] .lp-pin em.mid { color: #f2c04e; }
@media (max-width: 820px) { .lp-hero .h-hero-img { height: auto; min-height: 0; aspect-ratio: 16/8; } }
@media (max-width: 760px) {
  .lp-next { grid-template-columns: 1fr; }
  .lp-count { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 4px 8px; padding: 16px 18px; text-align: left; }
  .lp-count small { width: 100%; } .lp-count b { font-size: 3rem; } .lp-count em { margin: 0 0 0 auto; }
  .lp-next-b { padding: 14px; }
  .lp-next-top { grid-template-columns: 48px 1fr auto; } .lp-next-top img { width: 48px; height: 48px; } .lp-next-top b { font-size: 1.3rem; }
  .lp-plan li { grid-template-columns: 30px 1fr auto; } .lp-plan li .btn { grid-column: 2 / -1; justify-self: start; } .lp-n { width: 30px; height: 30px; }
  .lp-row { grid-template-columns: 48px 1fr auto; } .lp-row img { display: none; } .lp-row .t-ring { display: none; }
}
.p-head .section-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
@media (max-width: 520px) { .p-head .section-title { font-size: 1.3rem; } .p-head .section-title .ic { width: 20px; height: 20px; } .p-head .btn { padding: 8px 14px; font-size: .95rem; min-height: 0; } }

/* ---------- Klassenarbeit eintragen v2 (Schritte) ---------- */
.exd { width: min(760px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 24px 20px; text-align: left; }
.exd-in.in { animation: gtIn .26s ease; }
.exd-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; padding-right: 40px; }
.exd-head h2 { margin: 6px 0 0; font-size: 1.7rem; }
.exd-steps { display: flex; gap: 6px; }
.exd-steps button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 0; border-radius: 99px; background: var(--cream); color: var(--muted); font: 800 .85rem "Nunito", sans-serif; cursor: pointer; }
.exd-steps button:disabled { cursor: default; opacity: .7; }
.exd-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--card); font: 700 .85rem "Fredoka", sans-serif; font-style: normal; }
.exd-steps i .ic { width: 14px; height: 14px; }
.exd-steps .on { background: var(--blue-l); color: var(--blue); } .exd-steps .on i { background: var(--blue); color: #fff; }
.exd-steps .done { color: var(--green); } .exd-steps .done i { background: var(--green); color: #fff; }
.exd-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.exd-sub { --c: var(--blue); --cl: var(--blue-l); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border: 3px solid transparent; border-radius: 22px; background: var(--cream); color: var(--ink); font: 600 .98rem/1.2 "Fredoka", sans-serif; text-align: center; cursor: pointer; transition: transform .12s, border-color .12s; }
.exd-sub.c1 { --c: var(--coral); --cl: var(--coral-l); } .exd-sub.c2 { --c: #d99a1e; --cl: var(--amber-l); } .exd-sub.c3 { --c: var(--green); --cl: var(--green-l); }
.exd-sub img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.exd-sub:hover { border-color: var(--cl); } .exd-sub.on { border-color: var(--c); background: var(--cl); }
.exd-sub:active { transform: scale(.96); }
.exd-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.exd-cal { padding: 12px; border-radius: 22px; background: var(--cream); }
.exd-cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.exd-cal-h b { font: 700 1.15rem "Fredoka", sans-serif; }
.exd-cal-h .icon-btn:disabled { opacity: .3; }
.exd-wd, .exd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.exd-wd span { text-align: center; color: var(--muted); font-weight: 800; font-size: .78rem; padding-bottom: 2px; }
.exd-grid button { position: relative; aspect-ratio: 1.25; border: 0; border-radius: 12px; background: var(--card); color: var(--ink); font: 700 1rem "Fredoka", sans-serif; cursor: pointer; }
.exd-grid button.we { color: var(--muted); background: transparent; }
.exd-grid button:disabled { opacity: .3; cursor: default; }
.exd-grid button.today { box-shadow: inset 0 0 0 2px var(--blue); }
.exd-grid button.busy::after { content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.exd-grid button.on { background: var(--blue); color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.exd-grid button.on.busy::after { background: #fff; }
.exd-legend { margin: 8px 2px 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .8rem; }
.exd-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.exd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); }
.exd-pick { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--blue); text-align: center; }
.exd-pick .ic { width: 16px; height: 16px; }
.exd-tbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; color: var(--muted); }
.exd-tbar b { color: var(--ink); } .exd-tbar .link-btn { padding: 2px 6px; }
.exd-topics { max-height: 330px; overflow-y: auto; padding: 2px; }
.exd-topics .ex-topic { background: var(--cream); flex-wrap: wrap; }
.exd-topics .ex-topic > span { flex: 1; min-width: 0; }
.exd-pin { position: absolute; left: 6px; bottom: -6px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; background: var(--coral); color: #fff; font: 800 .66rem "Nunito", sans-serif; font-style: normal; }
.exd-pin .ic { width: 10px; height: 10px; }
.exd-topics .ex-topic { margin-bottom: 4px; }
.exd-prev { display: grid; grid-template-columns: 54px 48px 1fr; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 12px; border-radius: 20px; background: var(--blue-l); }
.exd-prev-d { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 16px; background: var(--blue); color: #fff; line-height: 1.05; }
.exd-prev-d b { font: 700 1.35rem "Fredoka", sans-serif; }
.exd-prev-d small { font-weight: 800; font-size: .7rem; text-transform: uppercase; opacity: .9; }
.exd-prev img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.exd-prev-b { display: flex; flex-direction: column; min-width: 0; }
.exd-prev-b b { font: 700 1.15rem "Fredoka", sans-serif; }
.exd-prev-b small { color: var(--blue); font-weight: 800; font-size: .85rem; }
.exd-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 30px 10px; }
.exd-done-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; animation: exdPop .4s cubic-bezier(.3,1.6,.5,1); }
.exd-done-ic .ic { width: 42px; height: 42px; }
@keyframes exdPop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 560px) {
  .exd { padding: 18px 14px 16px; }
  .exd-head h2 { font-size: 1.35rem; }
  .exd-steps span { display: none; } .exd-steps button { padding: 4px; }
  .exd-steps .on span { display: inline; } .exd-steps .on { padding-right: 12px; }
  .exd-subs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .exd-sub img { width: 56px; height: 56px; } .exd-sub { font-size: .86rem; padding: 10px 4px; }
  .exd-pick { display: none; }
  .exd-grid button { aspect-ratio: 1; font-size: .92rem; }
}
.exd { align-items: stretch; }
.exd-in { width: 100%; }
.exd .btn { width: auto; }
.exd-foot .btn { flex: none; }
.exd-pick { flex: 1; justify-content: center; }
.exd-grid button { display: grid; place-items: center; padding: 0; }
.exd-subs { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.exd-grid button { aspect-ratio: auto; height: 42px; }
.exd-sub span { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 560px) { .exd-subs { grid-template-columns: repeat(3, 1fr); } .exd-grid button { height: 38px; } }

/* ---------- Wer lernt jetzt? v2 ---------- */
.wk-box { width: min(760px, calc(100vw - 24px)); max-width: none; align-items: stretch; padding: 24px; }
.who-full .wk-box { background: transparent; box-shadow: none; }
.who-full { background: radial-gradient(circle at 20% 10%, var(--blue-l), transparent 45%), radial-gradient(circle at 85% 90%, var(--coral-l), transparent 45%), var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
.wk-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-bottom: 8px; }
.wk-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.wk-brand { justify-content: center; margin-bottom: 6px; }
.wk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 18px; }
.wk-card { --c: var(--blue); --cl: var(--blue-l); position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 0 14px; border: 3px solid transparent; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; text-align: center; }
.wk-card.c1 { --c: var(--coral); --cl: var(--coral-l); } .wk-card.c2 { --c: #d99a1e; --cl: var(--amber-l); } .wk-card.c3 { --c: var(--green); --cl: var(--green-l); }
.wk-card:hover { transform: translateY(-3px); border-color: var(--cl); }
.wk-card.on { border-color: var(--c); }
.wk-card.picked { transform: scale(.96); }
.wk-ban { display: block; width: 100%; height: 110px; background: var(--cl); overflow: hidden; }
.wk-ban img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.wk-av { position: relative; margin-top: -54px; }
.wk-av img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 5px solid var(--card); background: var(--cl); box-shadow: 0 6px 16px rgba(0,0,0,.16); display: block; }
.wk-due { position: absolute; right: -4px; top: 4px; min-width: 28px; height: 28px; padding: 0 7px; box-sizing: border-box; border-radius: 99px; display: grid; place-items: center; background: var(--coral); color: #fff; font: 800 .85rem "Nunito", sans-serif; font-style: normal; box-shadow: 0 0 0 3px var(--card); }
.wk-cur { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--c); color: #fff; font-weight: 800; font-size: .76rem; }
.wk-cur .ic { width: 12px; height: 12px; }
.wk-card > b { font: 700 1.6rem "Fredoka", sans-serif; margin-top: 4px; }
.wk-card > small { color: var(--muted); font-weight: 800; font-size: .88rem; }
.wk-st { margin-top: 4px; }
.wk-st > span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 99px; background: var(--cream); color: var(--muted); font-weight: 800; font-size: .82rem; }
.wk-st > span .ic { width: 14px; height: 14px; }
.wk-st > .ok { background: var(--green-l); color: var(--green); } .wk-st > .fire { background: var(--amber-l); color: #b07a10; }
.wk-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 9px 20px; border-radius: 99px; background: var(--c); color: #fff; font: 700 1.02rem "Fredoka", sans-serif; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.wk-go .ic { width: 16px; height: 16px; }
.wk-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.who-full .wk-foot .link-btn { background: var(--card); padding: 8px 14px; border-radius: 99px; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wk-st > .fire { color: #f2c04e; } }
:root[data-theme="dark"] .wk-st > .fire { color: #f2c04e; }
@media (max-width: 560px) {
  .wk-box { padding: 18px 12px; }
  .wk-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wk-ban { height: 70px; }
  .wk-av { margin-top: -40px; } .wk-av img { width: 76px; height: 76px; border-width: 4px; }
  .wk-card > b { font-size: 1.3rem; } .wk-card > small { font-size: .76rem; }
  .wk-st > span { font-size: .72rem; padding: 3px 8px; }
  .wk-go { padding: 7px 14px; font-size: .92rem; }
  .wk-cur { top: 6px; left: 6px; font-size: .68rem; padding: 2px 8px; }
}
.who2-card.wk-card { padding: 0 0 14px; max-width: none; background: var(--card); gap: 4px; }
.who2-card.wk-card.on { background: var(--card); }
.who2-grid.wk-grid { display: grid; }

/* ---------- Profil bearbeiten v3 ---------- */
.profile-ov .pf2 { width: min(820px, calc(100vw - 24px)); max-width: none; }
.pf3-top { position: relative; padding: 0 24px 16px; background: none; gap: 6px; }
.pf3-ban { position: relative; width: calc(100% + 48px); height: 150px; margin: 0 -24px -60px; overflow: hidden; background: var(--blue-l); }
.pf3-ban::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--card) 100%); }
.pf3-ban img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: opacity .16s; }
.pf3-ban img.swap { opacity: 0; }
.pf3-top .pf-avatar { z-index: 1; }
.pf3-top .pf-avatar .ov-img { width: 118px; height: 118px; border: 5px solid var(--card); box-shadow: 0 8px 20px rgba(0,0,0,.18); background: var(--blue-l); }
.pf3-top h2 { font-size: 1.2rem; color: var(--muted); margin-top: 4px; }
.pf3-prev { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pf3-prev b { font: 700 1.9rem/1.1 "Fredoka", sans-serif; color: var(--ink); }
.pf3-prev b.ph { color: var(--line); }
.pf3-prev span { color: var(--muted); font-weight: 800; font-size: .92rem; }
.profile-ov .pf2 .ov-x { background: rgba(255,255,255,.85); color: #1f2540; z-index: 2; }
@media (max-width: 560px) {
  .pf3-ban { height: 110px; margin-bottom: -50px; }
  .pf3-top .pf-avatar .ov-img { width: 96px; height: 96px; }
  .pf3-prev b { font-size: 1.5rem; }
}

/* ---------- Kindermodus-Bildschirme v2 ---------- */
.kl2 { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; overflow: hidden; }
.kl2-bg { position: absolute; inset: 0 0 auto 0; height: 58%; overflow: hidden; }
.kl2-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: klPan 24s ease-in-out infinite alternate; }
.kl2-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, var(--cream) 100%); }
@keyframes klPan { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.1) translateX(1%); } }
.kl2-box { position: relative; z-index: 1; width: min(460px, calc(100vw - 32px)); margin-top: 18vh; padding: 70px 26px 26px; border-radius: 32px; background: var(--card); box-shadow: 0 24px 60px rgba(20,25,45,.22); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.kl2-av { position: absolute; top: -62px; left: 50%; transform: translateX(-50%); animation: klFloat 3.5s ease-in-out infinite; }
.kl2-av img { width: 124px; height: 124px; border-width: 6px; }
@keyframes klFloat { 50% { transform: translate(-50%, -6px); } }
.kl2-box h2 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.2rem); justify-content: center; }
.kl2-box .kl-line { margin: 0; }
.kl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 6px; }
.kl-chip { --c: var(--blue); --cl: var(--blue-l); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--cl); color: var(--c); }
.kl-chip.c1 { --c: var(--coral); --cl: var(--coral-l); } .kl-chip.c2 { --c: #b07a10; --cl: var(--amber-l); } .kl-chip.c3 { --c: var(--green); --cl: var(--green-l); }
.kl-chip .ic { width: 16px; height: 16px; }
.kl-chip b { font: 700 1.1rem "Fredoka", sans-serif; }
.kl-chip small { font-weight: 800; font-size: .84rem; }
.kl2-box .kl-go { width: 100%; margin-top: 4px; }
.kl2-exit { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 1; padding: 8px 16px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kl-chip.c2 { --c: #f2c04e; } }
:root[data-theme="dark"] .kl-chip.c2 { --c: #f2c04e; }
@media (prefers-reduced-motion: reduce) { .kl2-bg img, .kl2-av { animation: none; } }
@media (max-width: 560px) { .kl2-box { margin-top: 14vh; padding: 60px 18px 20px; } .kl2-av { top: -54px; } .kl2-av img { width: 104px; height: 104px; } .kl2-bg { height: 50%; } }
.kl2-av { width: 136px; height: 136px; top: -68px; animation: klFloat 3.5s ease-in-out infinite; }
.kl2-av img { width: 100%; height: 100%; }
.kl2-av .kl-badge { width: 40px; height: 40px; right: 0; bottom: 4px; } .kl2-av .kl-badge .ic { width: 19px; height: 19px; }
.kl2-box { padding-top: 84px; }
@media (max-width: 560px) { .kl2-av { width: 116px; height: 116px; top: -58px; } .kl2-box { padding-top: 70px; } }

/* ---------- Pause v2 ---------- */
.pz2-ov.kid-lock { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pz2-bg { position: fixed; height: 46%; }
.pz2-bg img { filter: saturate(.9); }
.pz.pz2 { position: relative; z-index: 1; width: min(1000px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 18px; text-align: center; margin-top: 12vh; }
.pz2-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 22px 22px; border-radius: 32px; background: var(--card); box-shadow: 0 24px 60px rgba(20,25,45,.18); }
.pz2-card .pz-breathe { margin-top: -90px; }
.pz2-card .pz-tip { background: var(--cream); box-shadow: none; width: 100%; box-sizing: border-box; }
.pz2-card .kl-go { width: 100%; }
.pz2-card .kl-chips { margin: 0; }
.pz2-menu { padding: 18px; border-radius: 32px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(20,25,45,.14); text-align: left; }
.pz2-h { margin: 0 0 12px 4px; font: 700 1.2rem "Fredoka", sans-serif; color: var(--ink); }
.pz2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-tile.pz2-tile { --c: var(--blue); --cl: var(--blue-l); display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; justify-items: start; min-height: 0; padding: 12px; border: 2px solid transparent; border-radius: 20px; background: var(--cream); color: var(--ink); text-align: left; font: inherit; cursor: pointer; box-shadow: none; }
.pz-tile.pz2-tile.c1 { --c: var(--coral); --cl: var(--coral-l); } .pz-tile.pz2-tile.c2 { --c: #d99a1e; --cl: var(--amber-l); } .pz-tile.pz2-tile.c3 { --c: var(--green); --cl: var(--green-l); }
.pz2-ti { grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--cl); color: var(--c); }
.pz2-ti .ic, .pz-tile.pz2-tile .ic { width: 22px; height: 22px; color: var(--c); }
.pz-tile.pz2-tile b { font: 700 1.05rem "Fredoka", sans-serif; line-height: 1.15; }
.pz-tile.pz2-tile small { color: var(--muted); font-weight: 700; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pz-tile.pz2-tile small em { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; background: var(--coral); color: #fff; font-weight: 800; font-size: .75rem; }
.pz-tile.pz2-tile:hover { border-color: var(--cl); }
.pz-tile.pz2-tile.on { border-color: var(--c); background: var(--cl); }
.pz2-sw { font-weight: 800; }
.pz-tile.pz2-tile.on .pz2-sw { color: var(--c); }
.pz2-ov .pz-foot .kl-exit { background: var(--card); padding: 8px 16px; border-radius: 99px; box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .pz.pz2 { grid-template-columns: 1fr; width: min(560px, 100%); margin-top: 10vh; }
}
@media (max-width: 480px) {
  .pz2-card { padding: 14px 16px 18px; } .pz2-card .pz-breathe { margin-top: -80px; }
  .pz2-menu { padding: 14px; }
  .pz-tile.pz2-tile { grid-template-columns: 38px 1fr; padding: 10px; column-gap: 10px; } .pz2-ti { width: 38px; height: 38px; }
  .pz-tile.pz2-tile b { font-size: .95rem; }
}

/* ---------- Fehlerheft v2 ---------- */
.mk-hero .h-hero-img { height: 0; min-height: max(100%, 260px); background: #f6ead2; }
.mk-path { margin-top: 16px; padding: 16px 18px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.mk-path-h { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font: 700 1.15rem "Fredoka", sans-serif; }
.mk-path-h .ic { width: 20px; height: 20px; color: var(--coral); }
.mk-stages { display: flex; align-items: stretch; gap: 6px; }
.mk-stages > .ic { flex: none; align-self: center; width: 18px; height: 18px; color: var(--line); }
.mk-stage { --c: var(--coral); --cl: var(--coral-l); flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 20px; background: var(--cl); text-align: center; }
.mk-stage.s1 { --c: #d99a1e; --cl: var(--amber-l); } .mk-stage.s2 { --c: #6fae3a; --cl: color-mix(in srgb, #9ccf6a 25%, var(--card)); } .mk-stage.s3 { --c: var(--green); --cl: var(--green-l); }
.mk-stage.done { --c: #fff; background: linear-gradient(160deg, var(--green), #1f7a57); color: #fff; }
.mk-stage.empty { opacity: .55; }
.mk-stage-n { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 1.25rem "Fredoka", sans-serif; margin-bottom: 4px; }
.mk-stage.done .mk-stage-n { background: rgba(255,255,255,.2); }
.mk-stage-n .ic { width: 20px; height: 20px; }
.mk-stage b { font: 700 .98rem "Fredoka", sans-serif; }
.mk-stage small { color: var(--muted); font-weight: 700; font-size: .76rem; }
.mk-stage.done small { color: rgba(255,255,255,.9); }
.mk-path-note { margin: 12px 0 0; color: var(--muted); font-weight: 600; font-size: .88rem; }
.mk-now { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); border-left: 6px solid var(--coral); }
.mk-now-top { display: flex; align-items: center; gap: 14px; }
.mk-now-top img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.mk-now-top > span { display: flex; flex-direction: column; line-height: 1.2; }
.mk-now-top small { color: var(--coral); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.mk-now-top b { font: 700 1.5rem "Fredoka", sans-serif; }
.mk-now-top em { font-style: normal; color: var(--muted); font-weight: 700; }
.mk-peek { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mk-peek li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--cream); }
.mk-peek li .ic { grid-row: span 2; width: 18px; height: 18px; color: var(--coral); margin-top: 2px; }
.mk-peek li span { font-weight: 700; line-height: 1.35; }
.mk-peek li small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.mk-now .mk-go { align-self: flex-start; width: auto; }
.mk2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mk2-card { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.mk2-card.due { box-shadow: 0 0 0 2px var(--coral-l), var(--shadow); }
.mk2-card img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.mk2-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk2-body > b { font: 700 1.1rem "Fredoka", sans-serif; }
.mk2-body small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.mk2-body small b.due { color: var(--coral); }
.mk2-ok { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-l); color: var(--green); }
.mk2-ok .ic { width: 18px; height: 18px; }
@media (max-width: 820px) { .mk-hero .h-hero-img { height: auto; min-height: 0; aspect-ratio: 16/8; } }
@media (max-width: 640px) {
  .mk-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .mk-stages > .ic { display: none; }
  .mk-stage { padding: 8px 2px; border-radius: 14px; }
  .mk-stage-n { width: 34px; height: 34px; font-size: 1.05rem; }
  .mk-stage b { font-size: .72rem; line-height: 1.15; } .mk-stage small { display: none; }
  .mk2-grid { grid-template-columns: 1fr; }
  .mk-now .mk-go { align-self: stretch; }
}

/* ---------- Vokabeltrainer v2 ---------- */
.vk2-hero .h-hero-img { height: 0; min-height: max(100%, 260px); background: #f6ead2; }
.vk-stages .mk-stage.vb0 { --c: #9aa3bd; --cl: color-mix(in srgb, #9aa3bd 18%, var(--card)); }
.vk-stages .mk-stage.vb1 { --c: var(--coral); --cl: var(--coral-l); }
.vk-stages .mk-stage.vb2 { --c: #d99a1e; --cl: var(--amber-l); }
.vk-stages .mk-stage.vb3 { --c: #6fae3a; --cl: color-mix(in srgb, #9ccf6a 25%, var(--card)); }
.vk-stages .mk-stage.vb4 { --c: var(--green); --cl: var(--green-l); }
.vk-stages .mk-stage.vb5 { --c: var(--blue); --cl: var(--blue-l); }
.vk-now .mk-now-top .vk-flag { width: 64px; height: 64px; border-radius: 18px; flex: none; }
.vk-now { border-left-color: var(--blue); }
.vk-now .mk-now-top small { color: var(--blue); }
.vk-peek { display: flex; flex-wrap: wrap; gap: 8px; }
.vk-peek-c { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--cream); font: 600 1.05rem "Fredoka", sans-serif; }
.vk-peek-c i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); font: 800 .9rem "Nunito", sans-serif; font-style: normal; }
.vk-peek-more { display: inline-grid; place-items: center; padding: 0 14px; border-radius: 14px; background: var(--blue-l); color: var(--blue); font-weight: 800; }
.vk-now .mk-go { background: var(--blue); }
.vk2-card { grid-template-columns: 1fr auto; }
.vk2-link { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.vk2-link .vk-flag { width: 56px; height: 56px; border-radius: 16px; }
.vk2-card .vk-boxes { height: 8px; }
.vk2-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
@media (max-width: 820px) { .vk2-hero .h-hero-img { height: auto; min-height: 0; aspect-ratio: 16/8; } }
@media (max-width: 640px) {
  .vk-stages { grid-template-columns: repeat(6, 1fr); }
  .vk-stages .mk-stage b { font-size: .68rem; }
}

/* ---------- Verben-Trainer v2 ---------- */
.fr2-hero .h-hero-img { height: 0; min-height: max(100%, 260px); object-position: center; }
.fr2-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 16px; }
.fr2-next { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); border-left: 6px solid var(--blue); }
.fr2-next > img { width: 170px; height: 170px; border-radius: 22px; object-fit: cover; }
.fr2-next-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fr2-next-b small { color: var(--blue); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.fr2-next-b > b { font: 700 2.2rem/1.1 "Fredoka", sans-serif; }
.fr2-next-b em { font-style: normal; color: var(--muted); font-weight: 700; font-size: 1.05rem; }
.fr2-bar { display: block; height: 8px; margin-top: 6px; border-radius: 99px; background: var(--cream); overflow: hidden; max-width: 260px; }
.fr2-bar i { display: block; height: 100%; background: #e3a52c; border-radius: 99px; }
.fr2-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fr2-acts .btn { width: auto; }
.fr2-next.done { grid-template-columns: 90px 1fr; border-left-color: var(--green); }
.fr2-trophy { width: 90px; height: 90px; border-radius: 24px; display: grid; place-items: center; background: var(--green-l); color: var(--green); }
.fr2-trophy .ic { width: 44px; height: 44px; }
.fr2-test { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border-radius: 28px; color: #fff; background: linear-gradient(150deg, var(--coral), #c9443d); box-shadow: var(--shadow); overflow: hidden; }
.fr2-test::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.1); }
.fr2-test-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.2); }
.fr2-test-ic .ic { width: 24px; height: 24px; }
.fr2-test b { font: 700 1.4rem "Fredoka", sans-serif; }
.fr2-test small { opacity: .92; font-weight: 700; }
.fr2-test .grade-mini { position: absolute; top: 18px; right: 18px; box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.fr2-test .btn { margin-top: auto; width: auto; background: #fff; color: var(--coral); position: relative; z-index: 1; }
.fr2-test .link-btn { color: #fff; padding: 4px 0; position: relative; z-index: 1; }
.fr2-path { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fr2-lvl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px 14px; border: 3px solid transparent; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; text-align: center; transition: transform .12s; }
.fr2-lvl:hover { transform: translateY(-3px); }
.fr2-lvl.next { border-color: var(--blue); }
.fr2-lvl.ok { background: color-mix(in srgb, var(--green-l) 55%, var(--card)); }
.fr2-here { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 800; font-size: .72rem; white-space: nowrap; z-index: 1; }
.fr2-img { position: relative; margin-bottom: 6px; }
.fr2-img img { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; display: block; }
.fr2-lvl.new .fr2-img img { filter: saturate(.7); }
.fr2-n { position: absolute; left: -8px; top: -8px; min-width: 30px; height: 30px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 .95rem "Fredoka", sans-serif; font-style: normal; box-shadow: 0 0 0 3px var(--card); }
.fr2-lvl.ok .fr2-n { background: var(--green); } .fr2-lvl.mid .fr2-n { background: #e3a52c; } .fr2-lvl.new .fr2-n { background: #9aa3bd; }
.fr2-n .ic { width: 15px; height: 15px; }
.fr2-lvl b { font: 700 1.2rem "Fredoka", sans-serif; }
.fr2-lvl small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.fr2-lbar { width: 70%; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--cream); overflow: hidden; }
.fr2-lbar i { display: block; height: 100%; border-radius: 99px; background: #e3a52c; }
.fr2-lvl.ok .fr2-lbar i { background: var(--green); }
@media (max-width: 820px) {
  .fr2-hero .h-hero-img { height: auto; min-height: 0; aspect-ratio: 16/8; }
  .fr2-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fr2-next { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; } .fr2-next > img { width: 96px; height: 96px; }
  .fr2-next-b > b { font-size: 1.6rem; }
  .fr2-acts { grid-column: 1 / -1; }
  .fr2-path { grid-template-columns: repeat(2, 1fr); }
  .fr2-img img { width: 80px; height: 80px; }
}
.fr2-next-b > b.fr-inf { font: 700 2.3rem/1.1 "Fredoka", sans-serif; }
.fr2-test .link-btn { align-self: flex-start; }
@media (max-width: 560px) {
  .fr2-next { align-items: start; }
  .fr2-next-b > b.fr-inf { font-size: 1.7rem; }
  .fr2-acts { display: grid; grid-template-columns: 1fr 1fr; margin-left: -108px; }
  .fr2-acts .btn:first-child { grid-column: 1 / -1; }
}
.fr2-next-b > b.fr-inf { font-size: 2.3rem !important; }
@media (max-width: 560px) { .fr2-next-b > b.fr-inf { font-size: 1.7rem !important; } }

/* ---------- Verb-Lektion v2 ---------- */
.fl-strip { display: flex; gap: 4px; flex-wrap: wrap; }
.fl-strip a { width: 18px; height: 8px; border-radius: 99px; background: var(--line); transition: transform .12s; }
.fl-strip a:hover { transform: scaleY(1.5); }
.fl-strip a.mid { background: #e3a52c; } .fl-strip a.ok { background: var(--green); }
.fl-strip a.cur { width: 34px; background: var(--blue); }
.fl-prog { flex-wrap: wrap; }
.fl-prog-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 120px; }
.fl-prog-t b { font: 700 1.1rem "Fredoka", sans-serif; }
.fl-prog-t small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.fl-prog .fr-play { margin-left: auto; }
.fl-test-btn.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.fl-test-hint { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; padding: 10px 14px; border-radius: 16px; background: var(--amber-l); color: var(--ink); font-weight: 700; }
.fl-test-hint .ic { width: 18px; height: 18px; color: #b07a10; flex: none; }
.fl-test-hint.done { background: var(--green-l); } .fl-test-hint.done .ic { color: var(--green); }
.fl-test-hint[hidden] { display: none; }
.conj2.hidden-forms .conj-row.shown .form { color: var(--ink); background: none; animation: flPop .3s ease; }
.conj2.hidden-forms .conj-row:not(.shown) .form::after { content: "?"; color: var(--muted); margin-left: 44px; }
@keyframes flPop { from { transform: scale(.7); opacity: 0; } }
.fl-tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.fl-tip { --c: var(--blue); --cl: var(--blue-l); display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); border-top: 4px solid var(--c); line-height: 1.45; }
.fl-tip.c1 { --c: var(--coral); --cl: var(--coral-l); } .fl-tip.c2 { --c: #d99a1e; --cl: var(--amber-l); } .fl-tip.c3 { --c: var(--green); --cl: var(--green-l); }
.fl-tip-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cl); color: var(--c); font: 700 1rem "Fredoka", sans-serif; }
mark.fl-hl { background: var(--blue-l); color: var(--blue); padding: 0 5px; border-radius: 6px; }
@media (max-width: 560px) { .fl-prog .fr-play { margin-left: 0; width: 100%; } .fl-strip a { width: 14px; } .fl-strip a.cur { width: 26px; } }
.conj2.hidden-forms .conj-row:not(.shown) .form { position: relative; }
.conj2.hidden-forms .conj-row:not(.shown) .form::after { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-weight: 800; }

/* ---------- Verben-Test Einstellungen v2 ---------- */
.ft-hero .h-hero-img { height: 0; min-height: max(100%, 260px); background: #f6ead2; object-position: center 20%; }
.ft-last { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--cream); }
.ft-last > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.ft-last b { font: 700 1.05rem "Fredoka", sans-serif; } .ft-last small { color: var(--muted); font-weight: 700; font-size: .82rem; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-top: 16px; }
.ft-steps { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ft-step { padding: 16px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.ft-step-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.ft-step-h > b { font: 700 1.2rem "Fredoka", sans-serif; }
.ft-quick { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.ft-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ft-mode { --c: var(--blue); --cl: var(--blue-l); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 3px solid transparent; border-radius: 22px; background: var(--cream); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ft-mode.coral { --c: var(--coral); --cl: var(--coral-l); } .ft-mode.gold { --c: #d99a1e; --cl: var(--amber-l); }
.ft-mode:disabled { opacity: .45; cursor: default; }
.ft-mode-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--cl); color: var(--c); margin-bottom: 4px; }
.ft-mode-ic .ic { width: 24px; height: 24px; }
.ft-mode b { font: 700 1.15rem "Fredoka", sans-serif; }
.ft-mode small { color: var(--muted); font-weight: 700; font-size: .82rem; line-height: 1.3; }
.ft-mode.on { border-color: var(--c); background: var(--cl); }
.ft-mode.on .fr-mode-check { display: grid; }
.ft-verbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ft-verb { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 38px 6px 6px; border: 2px solid transparent; border-radius: 18px; background: var(--cream); color: var(--ink); font: inherit; text-align: left; cursor: pointer; opacity: .6; transition: opacity .12s; }
.ft-verb img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.ft-verb > span { display: flex; flex-direction: column; min-width: 0; }
.ft-verb b { font: 700 1.05rem "Fredoka", sans-serif; }
.ft-verb small { font-weight: 800; font-size: .74rem; color: var(--muted); }
.ft-verb small.ok { color: var(--green); } .ft-verb small.mid { color: #b07a10; }
.ft-verb i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; }
.ft-verb i .ic { width: 12px; height: 12px; }
.ft-verb.on { opacity: 1; border-color: var(--blue); background: var(--blue-l); }
.ft-verb.on i { background: var(--blue); border-color: var(--blue); color: #fff; }
.ft-sum { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); border-top: 6px solid var(--coral); }
.ft-sum-h { margin: 0; font: 700 1.3rem "Fredoka", sans-serif; }
.ft-sum-row { display: flex; align-items: center; gap: 12px; }
.ft-sum-row > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ft-sum-row b { font: 700 1.05rem "Fredoka", sans-serif; }
.ft-sum-row small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.ft-sum-ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); }
.ft-sum-ic.coral { background: var(--coral-l); color: var(--coral); } .ft-sum-ic.gold { background: var(--amber-l); color: #b07a10; }
.ft-sum-ic .ic { width: 20px; height: 20px; }
.ft-ready { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 10px 12px; border-radius: 16px; background: var(--cream); font-weight: 700; font-size: .85rem; color: var(--muted); }
.ft-ready b { color: var(--ink); font: 700 1.05rem "Fredoka", sans-serif; }
.ft-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--card); overflow: hidden; }
.ft-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.ft-go { width: 100%; }
.ft-go:disabled { opacity: .5; }
.ft-need { margin: 0; text-align: center; color: var(--muted); font-weight: 700; font-size: .85rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ft-verb small.mid { color: #f2c04e; } }
:root[data-theme="dark"] .ft-verb small.mid { color: #f2c04e; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr; } .ft-sum { position: static; } }
@media (max-width: 820px) { .ft-hero .h-hero-img { height: auto; min-height: 0; aspect-ratio: 16/8; } }
@media (max-width: 560px) { .ft-modes { grid-template-columns: 1fr; } .ft-mode { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 12px; } .ft-mode small { width: 100%; padding-left: 58px; margin-top: -18px; } .ft-mode-ic { margin: 0; } .ft-verbs { grid-template-columns: 1fr 1fr; } .ft-quick { margin-left: 0; } }
.ft-verb { min-width: 0; } .ft-verb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .ft-verbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ft-verb { padding-right: 32px; } .ft-verb img { width: 38px; height: 38px; } .ft-step { padding: 14px 12px; } }

/* ---------- Verben-Test Fragen v2 ---------- */
.fq-card { max-width: 640px; margin-left: auto; margin-right: auto; }
.fq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--line); }
.fq-v { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fq-v img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.fq-v > span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.fq-v b { font: 700 1.15rem "Fredoka", sans-serif; }
.fq-v small { color: var(--muted); font-weight: 700; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fq-q { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--coral-l); color: var(--coral); font: 700 1.5rem "Fredoka", sans-serif; }
.fq-type { --c: var(--blue); --cl: var(--blue-l); flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--cl); color: var(--c); font-weight: 800; font-size: .82rem; }
.fq-type.c1 { --c: var(--coral); --cl: var(--coral-l); } .fq-type.c2 { --c: #b07a10; --cl: var(--amber-l); } .fq-type.c3 { --c: var(--green); --cl: var(--green-l); }
.fq-type .ic { width: 15px; height: 15px; }
.fq-card .q-stem { margin: 14px 0 18px; padding: 18px 12px; border-radius: 20px; background: var(--cream); font: 600 1.9rem/1.3 "Fredoka", sans-serif; color: var(--ink); text-align: center; }
.fq-card .q-stem:empty { display: none; }
.fq-card .q-stem .pron { color: var(--muted); font-size: inherit; font-weight: 600; }
.fq-card .q-stem .blank { display: inline-block; min-width: 110px; height: 1.1em; vertical-align: -0.12em; border-radius: 10px; border: 3px dashed var(--blue); background: var(--blue-l); color: transparent; }
.fq-card .q-stem .sentence { font-size: 1.5rem; }
.fq-card .q-stem .form-big { color: var(--blue); }
.fq-card .opt { min-height: 60px; }
.fq-card .opt-t { font: 600 1.25rem "Fredoka", sans-serif; }
.fq-given { display: block; font-weight: 700; font-size: .9rem; color: var(--muted); }
.fq-given s { color: var(--coral); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fq-type.c2 { --c: #f2c04e; } }
:root[data-theme="dark"] .fq-type.c2 { --c: #f2c04e; }
@media (max-width: 560px) { .fq-card .q-stem { font-size: 1.5rem; padding: 14px 8px; } .fq-card .q-stem .sentence { font-size: 1.2rem; } .fq-card .opt-t { font-size: 1.1rem; } }
.fq-card { width: 100%; box-sizing: border-box; }
.fq-card { max-width: 820px; }

/* ---------- Verben-Test Ergebnis v2 ---------- */
.fr3-res { --gc: var(--green); display: grid; grid-template-columns: 240px 1fr; border-radius: 32px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.fr3-res.g2 { --gc: #4a9d5b; } .fr3-res.g3 { --gc: #e3a52c; } .fr3-res.g4 { --gc: #e99a3c; } .fr3-res.g5 { --gc: var(--coral); } .fr3-res.g6 { --gc: #b23a3a; }
.fr3-grade { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 16px; color: #fff; text-align: center; background: linear-gradient(160deg, var(--gc), color-mix(in srgb, var(--gc) 78%, #000)); overflow: hidden; }
.fr3-grade::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.1); top: -90px; left: -70px; }
.fr3-grade small { position: relative; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; opacity: .9; }
.fr3-grade b { position: relative; font: 700 6rem/1 "Fredoka", sans-serif; }
.fr3-grade b i { font-size: .4em; font-style: normal; }
.fr3-grade span { position: relative; font: 700 1.3rem "Fredoka", sans-serif; }
.fr3-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; min-width: 0; }
.fr3-body h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.fr3-body .t-sum { margin: 0; }
.fr3-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.fr3-dots i { flex: 1; min-width: 10px; max-width: 26px; height: 8px; border-radius: 99px; background: var(--line); }
.fr3-dots .ok { background: var(--green); } .fr3-dots .half { background: #e3a52c; } .fr3-dots .no { background: var(--coral); }
.fr3-stats { padding: 10px 14px; border-radius: 18px; background: var(--cream); }
.fr3-cmp { margin: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--cream); font-weight: 800; color: var(--muted); }
.fr3-cmp .ic { width: 18px; height: 18px; flex: none; }
.fr3-cmp.up { background: var(--green-l); color: var(--green); } .fr3-cmp.down { background: var(--coral-l); color: var(--coral); }
.fr3-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.fr3-acts .btn { width: auto; flex: 1; min-width: 180px; }
.fr3-acts .btn small { opacity: .85; font-weight: 700; font-size: .8rem; margin-left: 4px; }
.fr3-verbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.fr3-verb { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.fr3-verb img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.fr3-verb > span { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fr3-verb b { font: 700 1.1rem "Fredoka", sans-serif; }
.fr3-verb .fr2-lbar { width: 100%; margin: 0; }
.fr3-verb em { font-style: normal; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.fr3-verb.ok em { background: var(--green-l); color: var(--green); } .fr3-verb.ok .fr2-lbar i { background: var(--green); }
.fr3-verb.mid em { background: var(--amber-l); color: #b07a10; }
.fr3-verb.no em { background: var(--coral-l); color: var(--coral); } .fr3-verb.no .fr2-lbar i { background: var(--coral); }
.fr3-wrong { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.fr3-w { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); border-left: 5px solid var(--coral); }
.fr3-w.half { border-left-color: #e3a52c; }
.fr3-w img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.fr3-w-b { display: flex; flex-direction: column; min-width: 0; }
.fr3-w-b b { font: 700 1.2rem "Fredoka", sans-serif; color: var(--green); }
.fr3-w-given { color: var(--muted); font-weight: 700; font-size: .82rem; }
.fr3-w-given s { color: var(--coral); }
.fr3-w-given em { font-style: normal; color: #b07a10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fr3-verb.mid em, :root:not([data-theme="light"]) .fr3-w-given em { color: #f2c04e; } }
:root[data-theme="dark"] .fr3-verb.mid em, :root[data-theme="dark"] .fr3-w-given em { color: #f2c04e; }
@media (max-width: 700px) {
  .fr3-res { grid-template-columns: 1fr; }
  .fr3-grade { flex-direction: row; gap: 14px; padding: 16px 20px; justify-content: flex-start; }
  .fr3-grade b { font-size: 4rem; } .fr3-grade small { position: absolute; top: 10px; right: 16px; }
  .fr3-body { padding: 16px; }
  .fr3-acts .btn { min-width: 100%; }
}
.fr3-w-given em { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 99px; background: var(--amber-l); font-size: .72rem; white-space: nowrap; }

/* ---------- Verben-Ergebnisse v2 ---------- */
.fr4-hic { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--cl); color: var(--c); }
.fr4-hic .ic { width: 26px; height: 26px; }
.fr4-verbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fr4-v { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.fr4-v img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.fr4-v:not(.ok):not(.mid) img { filter: saturate(.6); opacity: .8; }
.fr4-v b { font: 700 .95rem "Fredoka", sans-serif; }
.fr4-v .fr2-lbar { width: 80%; margin-top: 2px; }
.fr4-v.ok .fr2-lbar i { background: var(--green); }
.fr4-mic { --c: var(--blue); --cl: var(--blue-l); width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cl); color: var(--c); }
.fr4-mic.c1 { --c: var(--coral); --cl: var(--coral-l); } .fr4-mic.c2 { --c: #d99a1e; --cl: var(--amber-l); }
.fr4-mic .ic { width: 22px; height: 22px; }
.fr4-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.fr4-foot .btn { width: auto; }
@media (max-width: 760px) { .fr4-mic { width: 40px; height: 40px; } }

/* ---------- Arbeitsblätter-Übersicht v2 ---------- */
.wsl-hero .h-hero-img { height: 0; min-height: max(100%, 260px); background: #f6ead2; }
.wsl-sug { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 18px; margin-top: 16px; padding: 14px 18px 14px 14px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); border-left: 6px solid #e3a52c; color: var(--ink); text-decoration: none; }
.wsl-sug-img img { width: 120px; height: 120px; border-radius: 20px; object-fit: cover; display: block; }
.wsl-sug-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wsl-sug-b small { display: inline-flex; align-items: center; gap: 6px; color: #b07a10; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.wsl-sug-b small .ic { width: 15px; height: 15px; }
.wsl-sug-b b { font: 700 1.45rem/1.15 "Fredoka", sans-serif; }
.wsl-sug-b em { font-style: normal; color: var(--muted); font-weight: 700; font-size: .88rem; }
.wsl-sug .ws-types i { background: var(--cream); }
.wsl-go { width: auto; }
.wsl-group { margin-top: 14px; }
.wsl-gimg { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; }
.wsl-group .ws-topic-h { grid-template-columns: 54px 1fr minmax(120px, 220px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wsl-sug-b small { color: #f2c04e; } }
:root[data-theme="dark"] .wsl-sug-b small { color: #f2c04e; }
@media (max-width: 820px) { .wsl-hero .h-hero-img { height: auto; min-height: 0; aspect-ratio: 16/8; } }
@media (max-width: 640px) {
  .wsl-sug { grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; }
  .wsl-sug-img img { width: 84px; height: 84px; }
  .wsl-sug-b b { font-size: 1.15rem; }
  .wsl-go { grid-column: 1 / -1; justify-content: center; }
  .wsl-group .ws-topic-h { grid-template-columns: 46px 1fr; } .wsl-gimg { width: 46px; height: 46px; }
}
.wsl-more { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.wsl-more .ic { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .wsl-group .ws-row, .wsl-group .ws-row:has(.ws-row-img) { grid-template-columns: 56px 1fr; }
  .wsl-group .ws-row-img { width: 56px; height: 56px; }
}

/* ---------- Arbeitsblatt ausfüllen v2 ---------- */
.ws-merk2 { margin-bottom: 20px; padding: 14px 16px 4px; border-radius: 24px; background: var(--amber-l); }
.ws-merk2-h { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: #b07a10; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.ws-merk2-h .ic { width: 18px; height: 18px; }
.ws-merk2 .ws-intro { background: var(--card); box-shadow: none; border: 0; margin-bottom: 12px; line-height: 1.55; }
.ws-merk2-t { display: block; font: 700 1.25rem "Fredoka", sans-serif; margin-bottom: 4px; }
.ws-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ws-tt { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: var(--card); color: var(--c); font: 800 .76rem "Nunito", sans-serif; font-style: normal; }
.ws-tt .ic { width: 13px; height: 13px; }
.ws-num .ic { display: none; width: 22px; height: 22px; }
.ws-task.filled .ws-num { background: var(--green); }
.ws-task.filled .ws-num b { display: none; } .ws-task.filled .ws-num .ic { display: block; }
.ws-task.wrong .ws-num { background: var(--coral); }
.worksheet.designed .ws-sel { appearance: none; -webkit-appearance: none; padding-right: 36px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a82a3' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; border-radius: 14px; cursor: pointer; }
.worksheet.designed .ws-sel.small { width: 72px; padding-right: 26px; background-position: right 8px center; text-align: center; font-weight: 800; }
.worksheet.designed .ws-sel:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.worksheet.designed .ws-sel:not([value=""]):valid { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.worksheet.designed .ws-match-row { padding: 6px 8px 6px 12px; border-radius: 14px; background: var(--cream); }
.ws-map { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ws-map button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--muted); font: 800 .76rem "Nunito", sans-serif; cursor: pointer; padding: 0; display: grid; place-items: center; }
.ws-map button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ws-map button.ok { background: var(--green); border-color: var(--green); color: #fff; }
.ws-map button.no { background: var(--coral); border-color: var(--coral); color: #fff; }
.ws-bar-prog { flex: 1; min-width: 0; }
.ws-bar.done { border-radius: 26px; }
@media (max-width: 560px) { .ws-tt { display: none; } .ws-map button { width: 22px; height: 22px; font-size: .68rem; } .ws-bar { border-radius: 24px; } }
@media (max-width: 560px) {
  .ws-bar { padding: 8px 8px 8px 14px; gap: 8px; }
  .ws-bar:not(.done) #wsProgTxt { display: none; }
  .ws-bar #wsPrint { display: none; }
  .ws-bar .ws-map { flex-wrap: nowrap; gap: 3px; margin: 0; }
  .ws-bar.done .ws-map { flex-wrap: wrap; }
  .ws-bar #wsCheck { padding: 10px 14px; }
}
@media (max-width: 560px) {
  .worksheet.designed .ws-match-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .worksheet.designed .ws-match-row .ws-sel { width: 100%; min-width: 0; }
  .worksheet.designed .ws-match-row .ws-sel.small { width: 72px; align-self: flex-start; }
  .worksheet.designed .ws-match-row:has(.ws-sel.small) { flex-direction: row; align-items: center; }
}

/* ---------- Arbeitsblatt-Auswertung v2 ---------- */
#wsResult { margin-top: 24px; }
.wsr .fr3-body h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.wsr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.wsr-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-left: 5px solid var(--line); }
.wsr-row.ok { border-left-color: var(--green); } .wsr-row.mid { border-left-color: #e3a52c; } .wsr-row.no { border-left-color: var(--coral); } .wsr-row.free { border-left-color: var(--blue); }
.wsr-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; font: 700 1rem "Fredoka", sans-serif; }
.wsr-row.ok .wsr-n { background: var(--green); } .wsr-row.mid .wsr-n { background: #e3a52c; } .wsr-row.no .wsr-n { background: var(--coral); } .wsr-row.free .wsr-n { background: var(--blue); }
.wsr-n .ic { width: 16px; height: 16px; }
.wsr-t { font-weight: 700; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wsr-row em { font-style: normal; font-weight: 800; font-size: .85rem; padding: 3px 10px; border-radius: 99px; background: var(--cream); color: var(--muted); white-space: nowrap; }
.wsr-row.ok em { background: var(--green-l); color: var(--green); } .wsr-row.no em { background: var(--coral-l); color: var(--coral); } .wsr-row.mid em { background: var(--amber-l); color: #b07a10; } .wsr-row.free em { background: var(--blue-l); color: var(--blue); font-size: .72rem; }
.wsr-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; } .wsr-note .ic { width: 16px; height: 16px; }
.wsr-report { margin-top: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wsr-row.mid em { color: #f2c04e; } }
:root[data-theme="dark"] .wsr-row.mid em { color: #f2c04e; }
@media (max-width: 560px) { .wsr-list { grid-template-columns: 1fr; } }

/* ---------- Arbeitsblätter aus der Schule v2 ---------- */
.sh2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sh2-card { display: flex; flex-direction: column; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .15s; }
.sh2-card:hover { transform: translateY(-3px); }
.sh2-paper { position: relative; display: block; height: 170px; padding: 18px 26px 0; background: linear-gradient(160deg, var(--blue-l), var(--cream)); overflow: hidden; }
.sh2-paper img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 8px 8px 0 0; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); transform: rotate(var(--tilt, 0deg)); transform-origin: bottom center; transition: transform .2s; }
.sh2-card:hover .sh2-paper img { transform: rotate(0deg) translateY(-4px); }
.sh2-back { position: absolute; left: 34px; right: 18px; top: 24px; bottom: 0; border-radius: 8px 8px 0 0; background: #fff; opacity: .7; box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: rotate(calc(var(--tilt, 0deg) * -1.8)); }
.sh2-stamp { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 99px; background: var(--green); color: #fff; font-weight: 800; font-size: .8rem; transform: rotate(-6deg); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.sh2-stamp .ic { width: 14px; height: 14px; }
.sh2-card.done .sh2-paper img { filter: saturate(.6); }
.sh2-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px 14px; }
.sh2-subj { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 2px; border-radius: 99px; background: var(--cream); color: var(--muted); font-weight: 800; font-size: .76rem; }
.sh2-subj img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.sh2-body b { font: 700 1.1rem/1.2 "Fredoka", sans-serif; }
.sh2-body small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; font-size: .8rem; }
.sh2-body small .ic { width: 13px; height: 13px; }
.sh2-st { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 10px; border-radius: 99px; font-weight: 800; font-size: .78rem; background: var(--coral-l); color: var(--coral); }
.sh2-st .ic { width: 13px; height: 13px; }
.sh2-st.mid { background: var(--amber-l); color: #b07a10; } .sh2-st.ok { background: var(--green-l); color: var(--green); }
.sh2-add { width: min(560px, calc(100vw - 24px)); max-width: none; align-items: stretch; text-align: left; }
.sh2-add .ov-head { text-align: center; }
.sh2-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border-radius: 22px; border: 3px dashed var(--line); background: var(--cream); }
.sh2-drop.has { border-style: solid; border-color: var(--blue-l); }
.sh2-drop-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sh2-drop-acts .btn { width: auto; }
.sh2-info { margin: 0; text-align: center; font-weight: 700; font-size: .88rem; color: var(--muted); }
.sh2-thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sh2-thumbs:empty { display: none; }
.sh2-thumbs figure { position: relative; margin: 0; width: 84px; }
.sh2-thumbs img { width: 84px; height: 110px; object-fit: cover; object-position: top; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.16); display: block; }
.sh2-thumbs figcaption { position: absolute; left: 6px; bottom: 6px; min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: .75rem; }
.sh2-del { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--coral); color: #fff; cursor: pointer; box-shadow: 0 0 0 3px var(--card); }
.sh2-del .ic { width: 12px; height: 12px; }
.sh2-lbl { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink) !important; }
.sh2-subs { display: flex; flex-wrap: wrap; gap: 6px; max-height: 160px; overflow-y: auto; padding: 2px; }
.sh2-subs .nt-fchip { box-shadow: none; background: var(--cream); font-size: .85rem; }
.sh2-subs .nt-fchip img { width: 26px; height: 26px; }
.sh2-title { width: 100%; box-sizing: border-box; font: 600 1.05rem "Nunito", sans-serif; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); color: var(--ink); }
.sh2-title:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.sh2-hic { position: relative; padding: 0; overflow: visible; background: none; }
.sh2-hic img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.sh2-hic i { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 3px var(--card); }
.sh2-hic i .ic { width: 14px; height: 14px; }
.sh2-pages { display: inline-flex; gap: 4px; padding-left: 6px; border-left: 2px solid var(--line); }
.sh2-pages button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--cream); color: var(--muted); font: 800 .9rem "Nunito", sans-serif; cursor: pointer; }
.sh2-pages button.on { background: var(--blue); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh2-st.mid { color: #f2c04e; } }
:root[data-theme="dark"] .sh2-st.mid { color: #f2c04e; }
@media (max-width: 560px) { .sh2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .sh2-paper { height: 120px; padding: 12px 16px 0; } .sh2-body b { font-size: .98rem; } }
.sh2-add > * { flex-shrink: 0; }
@media (max-width: 600px) { .sh2-pages { display: none; } }

/* ---------- Hinzufügen von der Fachseite ---------- */
.sh2-banner { display: flex; align-items: center; gap: 14px; margin: -8px -4px 2px; padding-right: 40px; }
.sh2-banner img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.sh2-banner > span { display: flex; flex-direction: column; line-height: 1.2; }
.sh2-banner small { color: var(--muted); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.sh2-banner b { font: 700 1.5rem "Fredoka", sans-serif; }
.sh2-fixed b { color: var(--blue); }
.sh2-fixed .link-btn { margin-left: auto; padding: 2px 0; font-size: .85rem; }
.sh2-subs[hidden] { display: none; }
.sh2-tsug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -2px; }
.sh2-tsug small { color: var(--muted); font-weight: 800; font-size: .78rem; }
.sh2-tsug .chip { font-size: .8rem; padding: 4px 10px; min-height: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh2-tsug .chip.pin { border-color: var(--coral-l); }
.sh2-tsug .chip .ic { width: 12px; height: 12px; color: var(--coral); }
.sh2-empty { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; width: 100%; padding: 16px; border: 3px dashed var(--line); border-radius: 26px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sh2-empty:hover { border-color: var(--blue); }
.sh2-empty-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--blue-l); color: var(--blue); }
.sh2-empty-ic .ic { width: 30px; height: 30px; }
.sh2-empty > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.sh2-empty b { font: 700 1.15rem "Fredoka", sans-serif; }
.sh2-empty small { color: var(--muted); font-weight: 700; }
.sh2-empty .btn { width: auto; pointer-events: none; }
@media (max-width: 560px) { .sh2-empty { grid-template-columns: 52px 1fr; } .sh2-empty-ic { width: 52px; height: 52px; } .sh2-empty .btn { grid-column: 1 / -1; justify-content: center; } }


/* ---------- Farbthemen pro Kind (data-color auf <html>) ---------- */
:root[data-color="lila"] { --blue: #6a3fb5; --blue-d: #4b2a85; --blue-l: #efe8fa; --brand: #6a3fb5; --brand-d: #4b2a85; --chart: #6a3fb5; }
@media (prefers-color-scheme: dark) { :root[data-color="lila"]:not([data-theme="light"]) { --blue: #b196f0; --blue-d: #cdbaf7; --blue-l: #2e2548; --chart: #b196f0; } }
:root[data-color="lila"][data-theme="dark"] { --blue: #b196f0; --blue-d: #cdbaf7; --blue-l: #2e2548; --chart: #b196f0; }
:root[data-color="gruen"] { --blue: #2e7d4f; --blue-d: #1f5a38; --blue-l: #e3f3e9; --brand: #2e7d4f; --brand-d: #1f5a38; --chart: #2e7d4f; }
@media (prefers-color-scheme: dark) { :root[data-color="gruen"]:not([data-theme="light"]) { --blue: #6fd19a; --blue-d: #9fe3bb; --blue-l: #1d3a2b; --chart: #6fd19a; } }
:root[data-color="gruen"][data-theme="dark"] { --blue: #6fd19a; --blue-d: #9fe3bb; --blue-l: #1d3a2b; --chart: #6fd19a; }
:root[data-color="tuerkis"] { --blue: #0f7c8c; --blue-d: #0a5a66; --blue-l: #e0f3f5; --brand: #0f7c8c; --brand-d: #0a5a66; --chart: #0f7c8c; }
@media (prefers-color-scheme: dark) { :root[data-color="tuerkis"]:not([data-theme="light"]) { --blue: #5cc9d8; --blue-d: #93dde7; --blue-l: #173a40; --chart: #5cc9d8; } }
:root[data-color="tuerkis"][data-theme="dark"] { --blue: #5cc9d8; --blue-d: #93dde7; --blue-l: #173a40; --chart: #5cc9d8; }
:root[data-color="pink"] { --blue: #b8337a; --blue-d: #8a2359; --blue-l: #fae6f1; --brand: #b8337a; --brand-d: #8a2359; --chart: #b8337a; }
@media (prefers-color-scheme: dark) { :root[data-color="pink"]:not([data-theme="light"]) { --blue: #f08cc0; --blue-d: #f5b3d6; --blue-l: #3f2233; --chart: #f08cc0; } }
:root[data-color="pink"][data-theme="dark"] { --blue: #f08cc0; --blue-d: #f5b3d6; --blue-l: #3f2233; --chart: #f08cc0; }
:root[data-color="orange"] { --blue: #b85214; --blue-d: #8f3e11; --blue-l: #fcebdf; --brand: #b85214; --brand-d: #8f3e11; --chart: #b85214; }
@media (prefers-color-scheme: dark) { :root[data-color="orange"]:not([data-theme="light"]) { --blue: #f5a26c; --blue-d: #f8c29c; --blue-l: #402a1c; --chart: #f5a26c; } }
:root[data-color="orange"][data-theme="dark"] { --blue: #f5a26c; --blue-d: #f8c29c; --blue-l: #402a1c; --chart: #f5a26c; }

/* ---------- Aussehen-Auswahl ---------- */
.th-pick { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.th-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 18px; background: var(--cream); }
.th-modes button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: 0; border-radius: 14px; background: none; color: var(--muted); font: 800 .92rem "Nunito", sans-serif; cursor: pointer; }
.th-modes button .ic { width: 16px; height: 16px; }
.th-modes button.on { background: var(--card); color: var(--blue); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.th-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.th-colors button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--muted); font: 800 .76rem "Nunito", sans-serif; cursor: pointer; }
.th-colors i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sw); color: transparent; box-shadow: 0 3px 8px rgba(0,0,0,.18); transition: transform .12s; }
.th-colors i .ic { width: 20px; height: 20px; }
.th-colors button.on i { color: #fff; box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--sw); transform: scale(1.05); }
.th-colors button.on { color: var(--ink); }
.pf-theme { margin: 12px 18px 0; }
.pf-theme .pf-card-h small { margin-left: auto; color: var(--muted); font-weight: 700; font-size: .8rem; }
.th-dlg { width: min(460px, calc(100vw - 24px)); max-width: none; }
@media (max-width: 480px) { .th-colors { grid-template-columns: repeat(3, 1fr); row-gap: 12px; } .th-modes button span { font-size: .82rem; } }

/* ---------- Elternbereich v2 ---------- */
.pa2-hero .h-hero-body h1 { margin: 4px 0 6px; }
.pa2-today { display: flex; gap: 8px; align-items: flex-start; }
.pa2-today .ic { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand); }
.pa2-today b { color: var(--ink); }
.pa2-hero .pa-status { margin-top: 10px; }
.pa2-setup { margin: 18px 0 6px; padding: 18px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.pa2-setup-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.pa2-setup-h b { display: inline-flex; align-items: center; gap: 8px; font: 700 1.2rem "Fredoka", sans-serif; }
.pa2-setup-h b .ic { width: 22px; height: 22px; color: var(--brand); }
.pa2-setup-h > span:not(.pa2-bar) { color: var(--muted); font-weight: 800; font-size: .9rem; }
.pa2-bar { flex: 1 1 140px; height: 10px; border-radius: 99px; background: var(--cream); overflow: hidden; }
.pa2-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.pa2-todos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pa2-todo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 18px; background: var(--cream); color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.pa2-todo > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pa2-todo b { font-weight: 800; }
.pa2-todo small { color: var(--muted); font-weight: 700; font-size: .85rem; }
.pa2-todo > .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pa2-ti { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--card); color: var(--brand); flex: none; }
.pa2-ti .ic { width: 20px; height: 20px; }
.pa2-todo:not(.ok):hover { box-shadow: 0 0 0 2px var(--brand); }
.pa2-todo.ok { cursor: default; opacity: .75; }
.pa2-todo.ok .pa2-ti { background: var(--green-l); color: var(--green); }
.pa2-todo.ok b { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--muted); }
.pa2-sw { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px color-mix(in srgb, var(--sw) 35%, transparent); flex: none; margin-right: 4px; }
.pa-kid { position: relative; overflow: hidden; }
.pa2-kidst { display: flex; flex-wrap: wrap; gap: 6px; }
.pa2-kidst > span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; background: var(--cream); color: var(--muted); font-weight: 800; font-size: .82rem; }
.pa2-kidst .ic { width: 14px; height: 14px; }
.pa2-kidst .ok { background: var(--green-l); color: var(--green); }
.pa2-kidst .fire { background: var(--amber-l); color: var(--ink); }
.pa2-kidst .due { background: var(--coral-l); color: var(--coral); }
@media (max-width: 700px) { .pa2-todos { grid-template-columns: 1fr; } .pa2-setup { padding: 14px; } }

/* ---------- Einstellungen v3 ---------- */
.st3-nav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: -4px 0 6px; scrollbar-width: none; }
.st3-nav::-webkit-scrollbar { display: none; }
.st3-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.st3-nav a .ic { width: 16px; height: 16px; color: var(--brand); }
.st3-nav a i { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: #fff; font-size: .75rem; }
.st3-sub { margin: 14px 4px 10px; color: var(--muted); font-size: .8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; scroll-margin-top: 80px; }
.st3 .pa-tile { --c: var(--brand); --cl: color-mix(in srgb, var(--brand) 14%, var(--card)); position: relative; overflow: hidden; scroll-margin-top: 80px; }
.st3 .pa-tile.c1 { --c: var(--coral); --cl: var(--coral-l); }
.st3 .pa-tile.c2 { --c: #d99a1e; --cl: var(--amber-l); }
.st3 .pa-tile.c3 { --c: var(--green); --cl: var(--green-l); }
.st3 .pa-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); opacity: .85; }
.st3 .pa-tile.active { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.st3 .pa-tile-h .ov-icon { background: var(--cl); color: var(--c); border-radius: 18px; }
.st3 .pa-tile-h > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.st3-pill { flex: none; font-style: normal; padding: 6px 12px; border-radius: 99px; background: var(--cream); color: var(--muted); font-weight: 900; font-size: .8rem; }
.st3-pill.ok { background: var(--green-l); color: var(--green); }
.st3-pill.warn { background: var(--coral-l); color: var(--coral); }
.st3-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st3-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--cream); color: var(--muted); font-weight: 800; font-size: .92rem; }
.st3-steps li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--card); color: var(--muted); font-weight: 900; font-size: .85rem; flex: none; }
.st3-steps li > span .ic { width: 15px; height: 15px; }
.st3-steps li.done > span { background: var(--green); color: #fff; }
.st3-steps li.done { color: var(--ink); }
.st3-steps li.now { color: var(--ink); box-shadow: inset 0 0 0 2px var(--c); }
.st3-steps li.now > span { background: var(--c); color: #fff; }
.st3-voices { display: grid; gap: 8px; }
.st3-voice { align-items: center !important; padding: 10px 12px; border-radius: 18px; background: var(--cream); }
.st3-voice select { background: var(--card) !important; }
.st3-lang { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--cl); color: var(--c); font: 700 1rem "Fredoka", sans-serif; flex: none; align-self: flex-end; }
.st3-voice .icon-btn { align-self: flex-end; background: var(--card); }
.st3 .pa-acts .btn { flex: 1 1 auto; }
.st3 .report-list li { background: var(--cream); border-radius: 16px; border-left: 4px solid var(--coral); }
.st3 .pa-more summary { color: var(--c); }
@media (max-width: 700px) { .st3 .pa-tile-h .ov-icon { width: 44px; height: 44px; } .st3-pill { font-size: .72rem; padding: 5px 9px; } }
.pf-land select { width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 700 1rem "Nunito", sans-serif; }
.pf-land { margin-bottom: 4px; }

/* ---------- Tutorial ---------- */
.tut-ov { position: fixed; inset: 0; z-index: 400; animation: tutIn .2s ease; }
.tut-ov.out { opacity: 0; transition: opacity .2s; }
@keyframes tutIn { from { opacity: 0; } }
.tut-hole { position: fixed; border-radius: 22px; box-shadow: 0 0 0 4px var(--brand), 0 0 0 9999px rgba(10, 14, 30, .62); transition: top .3s, left .3s, width .3s, height .3s; pointer-events: none; }
.tut-hole[hidden] { display: block !important; top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(10, 14, 30, .62); }
.tut-card { position: fixed; width: min(420px, calc(100vw - 32px)); padding: 18px 18px 16px; border-radius: 26px; background: var(--card); color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.3); transition: top .3s, left .3s; }
.tut-card.center { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.tut-img { display: block; width: 100%; max-height: 150px; object-fit: cover; border-radius: 18px; margin-bottom: 12px; }
.tut-img.round { width: 96px; height: 96px; margin: -6px auto 10px; border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, var(--card)); }
.tut-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.tut-card.center .tut-top { justify-content: center; position: relative; }
.tut-card.center .tut-skip { position: absolute; right: 0; }
.tut-dots { display: inline-flex; gap: 5px; }
.tut-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .2s; }
.tut-dots i.done { background: color-mix(in srgb, var(--brand) 45%, var(--card)); }
.tut-dots i.on { width: 22px; background: var(--brand); }
.tut-skip { font-size: .9rem; }
.tut-card h3 { margin: 8px 0 6px; font: 700 1.35rem "Fredoka", sans-serif; }
.tut-card p { margin: 0; color: var(--muted); line-height: 1.5; font-weight: 600; }
.tut-ov.kid .tut-card p { font-size: 1.05rem; color: var(--ink); }
.tut-acts { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tut-acts .btn.primary { margin-left: auto; }
.tut-card.center .tut-acts { justify-content: center; }
.tut-card.center .tut-acts .btn.primary { margin-left: 0; }
.tut-read { flex: none; background: var(--cream); }
.tut-read.on { background: var(--brand); color: #fff; }
.pa2-tut { margin: 0 0 6px; padding: 8px 14px; font-size: .9rem; }
.pa2-lp { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 16px; background: var(--cream); }
.pa2-lp > .ic { width: 20px; height: 20px; flex: none; color: var(--brand); }
.pa2-lp.own > .ic { color: var(--green); }
.pa2-lp.none > .ic { color: var(--muted); }
.pa2-lp span { display: flex; flex-direction: column; min-width: 0; }
.pa2-lp small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.pa2-lp b { font-weight: 800; font-size: .92rem; }
.lp-basis { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: var(--cream); text-align: left; margin: 4px 0 12px; }
.lp-basis > .ic { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }
.lp-basis.own > .ic { color: var(--green); }
.lp-basis span { display: flex; flex-direction: column; gap: 4px; }
.lp-basis small { color: var(--muted); font-weight: 600; line-height: 1.45; }
.lp-src { text-align: left; margin: 10px 0; padding: 10px 14px; border-radius: 16px; background: var(--cream); }
.lp-src summary { cursor: pointer; font-weight: 800; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.lp-src summary .ic { width: 16px; height: 16px; }
.lp-src p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; font-size: .9rem; max-height: 260px; overflow: auto; }
.tc2-land { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: var(--amber-l); color: var(--ink); font-weight: 800; font-size: .72rem; }
.tc2-land.off { background: var(--cream); color: var(--muted); }
.gt-kid.off { opacity: .5; cursor: default; filter: grayscale(.4); }
.gt-kid small { display: block; color: var(--muted); font-weight: 800; font-size: .75rem; }
.gt-hint { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--cream); color: var(--muted); font-weight: 700; font-size: .88rem; text-align: left; }
.gt-hint .ic { width: 18px; height: 18px; flex: none; color: var(--brand); }
.gate-box { position: relative; }
.gt-x { position: absolute; top: 12px; right: 12px; z-index: 3; }
.fam2-avs { display: inline-flex; flex: none; }
.fam2-avs img + img { margin-left: -18px; }
#famAddKid { width: 100%; margin: 4px 0; }
.fam2-kidhead > .fam2-avs { flex-direction: row; gap: 0; }

/* ---------- LernSchule Plus: gesperrte Vorschau ---------- */
.tcard2.plus-locked .tc2-img img { filter: grayscale(.55) brightness(.92); }
.tcard2.plus-locked b { color: var(--muted); }
.tc2-status.plus { background: color-mix(in srgb, var(--gold) 22%, transparent); color: #9a6a00; }
.plus-hero .t-hero-img img { filter: grayscale(.4); }
.plus-lock { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); }
.plus-lock .ic { width: 26px; height: 26px; }
.plus-tag { background: color-mix(in srgb, var(--gold) 22%, transparent) !important; color: #9a6a00 !important; }
.plus-ghost { margin-top: 18px; background: var(--card); box-shadow: var(--shadow); }
.plus-ghost h2, .plus-offer h2, .plus-status h2 { margin: 0; font-size: 1.25rem; }
.plus-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.plus-cards li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--cream); color: var(--muted); font-weight: 700; min-width: 0; }
.plus-cards li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.plus-cards .ic { width: 18px; height: 18px; flex: none; opacity: .7; }
.plus-fake { display: grid; gap: 8px; filter: blur(5px); opacity: .5; pointer-events: none; user-select: none; }
.plus-fake i { display: block; height: 14px; border-radius: 99px; background: var(--muted); }
.plus-fake i:nth-child(2) { width: 85%; } .plus-fake i:nth-child(3) { width: 92%; } .plus-fake i:nth-child(4) { width: 60%; }
.plus-offer { margin-top: 18px; flex-direction: row; align-items: center; gap: 18px; background: linear-gradient(135deg, var(--blue-l), var(--cream)); }
.plus-offer-img { width: 120px; height: 120px; object-fit: cover; border-radius: 24px; flex: none; }
.plus-offer p { margin: 6px 0 12px; }
.plus-offer .row { display: flex; flex-wrap: wrap; gap: 10px; }
.plus-fine { display: block; margin-top: 8px; color: var(--muted); }
.plus-status { margin: 18px 0; background: var(--card); box-shadow: var(--shadow); }
.plus-status .plus-offer-img { display: none; }
@media (max-width: 640px) {
  .plus-offer { flex-direction: column; align-items: flex-start; }
  .plus-offer-img { width: 88px; height: 88px; }
}
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 24px 0 8px; font-size: .9rem; }
.legal-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
.legal-links a:hover { color: var(--blue); text-decoration: underline; }
.gt-legal { font-size: .85rem; color: var(--muted); margin: 0; }
.gt-legal a { color: var(--blue); font-weight: 700; }
