/* ==========================================================================
   KERTU ACADEMY — Online Exam Platform
   A modern, premium assessment UI. KERTU gold is the only signature carried
   over from the workbook; everything else is designed for an exam product:
   answer, compare, self-grade, review.
   ========================================================================== */

:root {
  /* surfaces */
  --bg:          #f5f2ec;
  --bg-2:        #efeae1;
  --surface:     #ffffff;
  --surface-2:   #faf8f4;

  /* ink & text */
  --ink:         #17171c;
  --ink-2:       #43434d;
  --muted:       #8b8676;
  --muted-2:     #b3ad9e;

  /* brand */
  --gold:        #a8926f;
  --gold-d:      #877152;
  --gold-soft:   #f2ebdf;
  --gold-grad:   linear-gradient(135deg, #c1a878 0%, #9a8259 100%);
  --ink-grad:    linear-gradient(160deg, #23232b 0%, #14141a 100%);

  /* semantic (self-grading) */
  --ok:    #2f9e6b;  --ok-soft:   #e7f4ec;  --ok-line:  #bfe3cd;
  --amber: #c5892a;  --amber-soft:#f9f0dc;  --amber-line:#ecdcb3;
  --redo:  #c05f4e;  --redo-soft: #f8e8e4;  --redo-line: #ecccc4;

  --line:    #e8e2d7;
  --line-2:  #ded7c9;

  --radius:    18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(20,20,26,.04), 0 14px 40px -18px rgba(20,20,26,.20);
  --shadow-sm: 0 1px 2px rgba(20,20,26,.05), 0 6px 18px -12px rgba(20,20,26,.18);
  --ring:      0 0 0 4px rgba(168,146,111,.18);

  --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans);
  background: var(--bg);
  color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--gold-soft); }

/* ---- atoms ------------------------------------------------------------ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-d); font-weight: 700; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---- top bar ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,242,236,.82); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink-grad);
  display: grid; place-items: center; color: var(--gold); font-weight: 800; font-size: 17px;
  box-shadow: var(--shadow-sm);
}
.brand b { font-size: 15px; letter-spacing: .22em; font-weight: 800; }
.brand span { font-size: 8px; letter-spacing: .24em; color: var(--muted); display: block; margin-top: 1px; }
.nav-links { display: flex; gap: 4px; margin-left: 14px; }
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: .15s;
}
.nav-links a:hover { background: var(--bg-2); }
.nav-links a.active { background: var(--ink); color: #fff; }

.learner-pill { display: flex; align-items: center; gap: 8px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 14px; box-shadow: var(--shadow-sm); }
.learner-pill .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; order: 2; }
.learner-pill .role { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); font-weight: 800; }
.learner-pill select { border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; outline: none; max-width: 120px; }
.learner-pill .add { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); color: var(--ink-2); font-size: 16px; line-height: 1; display: grid; place-items: center; order: 3; }
.learner-pill .add:hover { background: var(--gold-soft); color: var(--gold-d); }

/* ---- buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26262e; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-d); }
.btn-white { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-white:hover { border-color: var(--gold); }
.btn-sm { padding: 8px 15px; font-size: 13px; }

main { padding: 34px 0 100px; min-height: 60vh; }

/* ---- hero / page head ------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-grad); color: #fff; padding: 46px 46px 42px; margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.hero::before { content: ""; position: absolute; right: -80px; top: -100px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(193,168,120,.35), transparent 68%); }
.hero::after { content: ""; position: absolute; left: -60px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.05), transparent 70%); }
.hero .kicker { color: var(--gold); position: relative; }
.hero h1 { position: relative; font-size: 46px; line-height: 1.04; letter-spacing: -.025em; margin: 14px 0 12px; font-weight: 800; }
.hero p { position: relative; color: #cbc8bf; max-width: 500px; margin: 0; }
.hero-actions { position: relative; margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); text-align: center; }

.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 34px; letter-spacing: -.02em; margin: 8px 0 6px; font-weight: 800; }
.page-head p { color: var(--muted); max-width: 620px; margin: 0; }

/* ---- progress ring ---------------------------------------------------- */
.ring { position: relative; width: 118px; height: 118px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .val b { font-size: 26px; font-weight: 800; }
.ring .val small { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---- stat tiles ------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.tile .n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.tile .n small { font-size: 15px; color: var(--muted); font-weight: 600; }
.tile .l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.tile .spark { height: 6px; border-radius: 999px; background: var(--bg-2); margin-top: 12px; overflow: hidden; }
.tile .spark > i { display: block; height: 100%; background: var(--gold-grad); border-radius: 999px; }

/* ---- section label ---------------------------------------------------- */
.section-label { display: flex; align-items: center; gap: 14px; margin: 30px 0 16px; }
.section-label h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0; font-weight: 800; }
.section-label .line { flex: 1; height: 1px; background: var(--line); }

/* ---- module (chapter) cards ------------------------------------------ */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.module {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 22px 24px; box-shadow: var(--shadow-sm);
  display: flex; gap: 18px; align-items: flex-start; transition: .16s;
}
.module:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.module .idx { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 800; font-size: 17px; flex-shrink: 0; transition: .16s; }
.module.done .idx { background: var(--gold-grad); color: #fff; }
.module .body { flex: 1; min-width: 0; }
.module h3 { margin: 0 0 3px; font-size: 18px; letter-spacing: -.01em; }
.module .sub { font-size: 12px; color: var(--muted); }
.module .foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.module .track { flex: 1; height: 7px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.module .track > i { display: block; height: 100%; background: var(--gold-grad); border-radius: 999px; transition: width .3s; }
.module .pct { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 34px; text-align: right; }
.module .arrow { position: absolute; top: 22px; right: 22px; color: var(--muted-2); transition: .16s; }
.module:hover .arrow { color: var(--gold); transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.chip.craft         { color: #7a6636; background: #f5eede; }
.chip.communication { color: #3f5a66; background: #e8f1f4; }
.chip.leadership    { color: #5b4a5f; background: #f1eaf3; }
.chip.done          { color: #fff; background: var(--ok); }

/* ---- exam header ------------------------------------------------------ */
.exam-head {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-grad); color: #fff; padding: 34px 40px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.exam-head::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(193,168,120,.30), transparent 68%); }
.exam-head .top { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.exam-head .big-idx { font-size: 15px; font-weight: 800; letter-spacing: .1em; color: var(--gold); }
.exam-head h1 { position: relative; font-size: 34px; letter-spacing: -.02em; margin: 0 0 8px; font-weight: 800; }
.exam-head p { position: relative; color: #c9c6bd; max-width: 620px; margin: 0; }
.exam-head .meta { position: relative; display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.exam-head .meta .m { }
.exam-head .meta .m b { display: block; font-size: 20px; font-weight: 800; }
.exam-head .meta .m span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* ---- content / learning block ---------------------------------------- */
.learn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 34px; margin-bottom: 20px; }
.learn > .kicker { color: var(--gold-d); }
.learn h2 { font-size: 24px; letter-spacing: -.01em; margin: 8px 0 4px; }
.learn .lead { font-size: 17px; font-weight: 600; color: var(--ink); margin: 8px 0 14px; }
.learn p { color: var(--ink-2); }
.learn details { margin-top: 6px; }
.learn details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--gold-d); list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.learn details summary::-webkit-details-marker { display: none; }
.learn details[open] summary { margin-bottom: 8px; }

.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 4px; }
.concept { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 16px; }
.concept .label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-weight: 800; color: var(--gold-d); }
.concept .text { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ---- exam question card ---------------------------------------------- */
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 30px; margin-bottom: 16px; transition: border-color .16s, box-shadow .16s; }
.q-card.graded-ok   { border-color: var(--ok-line); }
.q-card.graded-part { border-color: var(--amber-line); }
.q-card.graded-redo { border-color: var(--redo-line); }
.q-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.q-num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.q-card.graded-ok   .q-num { background: var(--ok); }
.q-card.graded-part .q-num { background: var(--amber); }
.q-card.graded-redo .q-num { background: var(--redo); }
.q-head .q-text { font-size: 17px; font-weight: 700; padding-top: 4px; }
.q-head .q-tag { margin-left: auto; flex-shrink: 0; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); background: var(--bg-2); padding: 4px 10px; border-radius: 999px; }

.answer-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 4px 0 7px; display: flex; justify-content: space-between; align-items: center; }
.answer-label .saved { color: var(--ok); opacity: 0; transition: .2s; font-weight: 700; }
.answer-label .saved.show { opacity: 1; }
textarea.answer {
  width: 100%; min-height: 96px; resize: vertical; padding: 14px 16px; font-family: inherit; font-size: 15px; line-height: 1.6;
  color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: .15s;
}
textarea.answer:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: var(--ring); }
textarea.answer::placeholder { color: var(--muted-2); }

.q-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.compare-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--gold-d); background: var(--gold-soft); padding: 9px 16px; border-radius: 999px; transition: .15s; }
.compare-btn:hover { background: #ece2cf; }
.grade-group { display: flex; gap: 7px; margin-left: auto; }
.grade { font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); transition: .15s; display: inline-flex; align-items: center; gap: 6px; }
.grade:hover { border-color: var(--line-2); color: var(--ink-2); }
.grade[data-g="ok"].on   { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-line); }
.grade[data-g="part"].on { background: var(--amber-soft);color: var(--amber);border-color: var(--amber-line); }
.grade[data-g="redo"].on { background: var(--redo-soft); color: var(--redo); border-color: var(--redo-line); }

.model { margin-top: 14px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.model.open { max-height: 400px; }
.model-inner { background: var(--gold-soft); border: 1px solid var(--gold-line, #e6d8bd); border-radius: var(--radius-sm); padding: 16px 18px; }
.model-inner .mk { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.model-inner p { margin: 0; color: #4a4030; font-size: 14.5px; }

/* ---- assessment scale ------------------------------------------------- */
.assess-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 30px; margin-bottom: 16px; }
.assess-card h3 { font-size: 18px; margin: 0 0 3px; }
.assess-card .sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.dim { display: grid; grid-template-columns: 190px 1fr; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.dim:first-of-type { border-top: 0; }
.dim .dn { font-weight: 700; font-size: 14px; }
.dim .dq { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale button { padding: 11px 4px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 800; color: var(--muted); transition: .13s; position: relative; }
.scale button:hover { border-color: var(--gold); color: var(--gold-d); }
.scale button .lv { display: block; font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin-top: 3px; }
.scale button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.scale button.on .lv { color: var(--gold); }
.scale button.other::after { content: ""; position: absolute; inset: -1.5px; border-radius: var(--radius-sm); border: 2px solid var(--gold); pointer-events: none; }

/* ---- exam footer nav -------------------------------------------------- */
.exam-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* ---- review ("Meine Antworten") -------------------------------------- */
.review-group { margin-bottom: 26px; }
.review-group > h3 { font-size: 15px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.review-group > h3 .n { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-2); color: var(--ink-2); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px 24px; margin-top: 10px; }
.review-item .rq { font-weight: 700; font-size: 15px; margin-bottom: 10px; display: flex; gap: 10px; }
.review-item .rq .badge-g { flex-shrink: 0; }
.review-item textarea.answer { min-height: 74px; }
.review-item .model { max-height: none; margin-top: 12px; }
.review-item .model-inner { background: var(--surface-2); border-color: var(--line); }
.review-item .model-inner .mk { color: var(--muted); }
.review-item .model-inner p { color: var(--ink-2); }
.empty-note { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-md); padding: 40px; text-align: center; color: var(--muted); }

.badge-g { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-g.ok   { background: var(--ok-soft);   color: var(--ok); }
.badge-g.part { background: var(--amber-soft);color: var(--amber); }
.badge-g.redo { background: var(--redo-soft); color: var(--redo); }
.badge-g.none { background: var(--bg-2); color: var(--muted); }

/* ---- evaluation ------------------------------------------------------- */
.eval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 28px; }
.panel h3 { margin: 0 0 3px; font-size: 18px; }
.panel .sub { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }

.bar-row { display: grid; grid-template-columns: 130px 1fr 62px; gap: 14px; align-items: center; margin: 13px 0; }
.bar-row .bl { font-size: 13.5px; font-weight: 600; }
.track2 { height: 12px; background: var(--bg-2); border-radius: 999px; position: relative; overflow: hidden; }
.track2 > .self { position: absolute; inset: 0 auto 0 0; background: var(--gold-grad); border-radius: 999px; }
.track2 > .trainer { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 999px; opacity: .82; }
.bar-row .bv { text-align: right; font-weight: 800; font-size: 14px; }
.bar-row .bv small { color: var(--muted); font-weight: 500; font-size: 11px; }
.legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 14px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .s { background: var(--gold); } .legend .t { background: var(--ink); }

.ctable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctable th { text-align: left; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); font-weight: 800; }
.ctable td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
.ctable tr:hover td { background: var(--surface-2); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot.done { background: var(--ok); } .dot.part { background: var(--amber); } .dot.none { background: var(--muted-2); }

/* final scorer */
.score-part { border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.score-part > header { background: var(--ink); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.score-part > header .t { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; }
.score-part > header .pts { font-weight: 800; }
.score-body { padding: 6px 16px 12px; }
.score-line { display: grid; grid-template-columns: 1fr 96px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.score-line:last-child { border-bottom: 0; }
.score-line label { font-size: 13px; }
.score-line .inwrap { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.score-line input { width: 60px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; text-align: center; font-weight: 700; }
.score-line input:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.score-line .note { font-size: 11px; color: var(--muted); min-width: 34px; }

.total-band { background: var(--ink-grad); color: #fff; border-radius: var(--radius-md); padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.total-band .big { font-size: 40px; font-weight: 800; }
.total-band .big small { font-size: 18px; color: rgba(255,255,255,.5); font-weight: 600; }
.badge { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; padding: 7px 15px; border-radius: 999px; }
.badge.pass { background: var(--ok); color: #fff; }
.badge.fail { background: rgba(255,255,255,.12); color: #f0d9d3; border: 1px solid rgba(255,255,255,.2); }
.badge.open { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }

/* ---- onboarding modal ------------------------------------------------- */
.modal-back { position: fixed; inset: 0; background: rgba(20,20,26,.55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius); max-width: 440px; width: 100%; padding: 34px 36px 30px; box-shadow: 0 40px 90px rgba(0,0,0,.4); }
.modal .mark-lg { width: 48px; height: 48px; border-radius: 13px; background: var(--ink-grad); color: var(--gold); display: grid; place-items: center; font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.modal h2 { font-size: 24px; margin: 0 0 6px; }
.modal p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.field-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; display: block; font-weight: 700; }
.modal input[type=text] { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; margin-bottom: 16px; }
.modal input[type=text]:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.role-opts { display: flex; gap: 10px; margin-bottom: 22px; }
.role-opt { flex: 1; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; transition: .15s; }
.role-opt:hover { border-color: var(--line-2); }
.role-opt.on { border-color: var(--gold); background: var(--gold-soft); }
.role-opt b { font-size: 14px; display: block; }
.role-opt span { font-size: 11px; color: var(--muted); }
.modal .row { display: flex; gap: 10px; }

/* ---- footer ----------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 22px 0; margin-top: 30px; }
.foot .container { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); flex-wrap: wrap; gap: 10px; }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 820px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .modules, .eval-grid, .concept-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; } .hero-side { display: none; }
  .nav-links { display: none; }
  .dim { grid-template-columns: 1fr; gap: 10px; }
  .q-actions { }
  .grade-group { margin-left: 0; width: 100%; }
}

@media print {
  .nav, .hero-actions, .exam-foot, .btn, .compare-btn, .grade-group, .foot, .mode-hint { display: none !important; }
  body { background: #fff; }
  .panel, .learn, .q-card, .tile { box-shadow: none; }
  details.ans-chapter { open: true; }
}

/* ==========================================================================
   Wordmark (KERTU | ACADEMY · HAIR PROFESSIONALS)
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink-grad); display: grid; place-items: center; color: var(--gold); font-weight: 800; font-size: 17px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.wordmark { display: flex; align-items: baseline; flex-wrap: wrap; line-height: 1; gap: 5px; }
.wordmark b { font-size: 15px; letter-spacing: .16em; font-weight: 800; }
.wordmark i { color: var(--muted-2); font-style: normal; font-weight: 300; font-size: 15px; }
.wordmark .acad { font-size: 15px; letter-spacing: .16em; font-weight: 400; color: var(--ink-2); }
.wordmark small { flex-basis: 100%; font-size: 7.5px; letter-spacing: .28em; color: var(--muted); margin-top: 2px; }

/* ---- Learner/trainer pill name --------------------------------------- */
.learner-pill .pname { font-size: 13px; font-weight: 700; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Landing page
   ========================================================================== */
.landing { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.landing-hero { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-grad); color: #fff; padding: 54px 46px 48px; text-align: center; box-shadow: var(--shadow); }
.landing-hero::before { content: ""; position: absolute; left: 50%; top: -140px; transform: translateX(-50%); width: 420px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(193,168,120,.30), transparent 68%); }
.landing-hero .brand { position: relative; justify-content: center; margin-bottom: 26px; }
.landing-hero .brand .mark { background: rgba(255,255,255,.08); }
.landing-hero .wordmark b, .landing-hero .wordmark .acad { color: #fff; }
.landing-hero .wordmark i { color: rgba(255,255,255,.4); }
.landing-hero .wordmark small { color: rgba(255,255,255,.5); }
.lh-kicker { position: relative; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.landing-hero h1 { position: relative; font-size: 48px; letter-spacing: -.025em; margin: 12px 0 0; font-weight: 800; }
.lh-rule { position: relative; width: 60px; height: 3px; background: var(--gold-grad); border-radius: 2px; margin: 18px auto; }
.lh-tag { position: relative; color: #cbc8bf; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0; }

.landing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 30px 28px; }
.lcard.trainer { background: var(--surface-2); }
.lcard-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--gold-soft); color: var(--gold-d); display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; }
.lcard.trainer .lcard-ic { background: var(--ink); color: var(--gold); }
.lcard h2 { font-size: 22px; margin: 0 0 6px; }
.lcard p { color: var(--muted); font-size: 14px; margin: 0 0 18px; min-height: 60px; }
.lcard input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 15px; margin-bottom: 6px; letter-spacing: .04em; }
.lcard input:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.lcard .err { color: var(--redo); font-size: 12px; min-height: 18px; margin-bottom: 6px; }
.lcard .hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.landing-foot { text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-top: 30px; }

/* ==========================================================================
   Admin extras
   ========================================================================== */
.back-link { font-size: 13px; font-weight: 700; color: var(--gold-d); }
.back-link:hover { color: var(--ink); }
.fresh-code { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 16px 20px; background: var(--gold-soft); border: 1px solid #e6d8bd; border-radius: var(--radius-md); }
.code-big { font-size: 26px; font-weight: 800; letter-spacing: .04em; color: var(--ink); margin-top: 2px; }

.ans-chapter { border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; }
.ans-chapter summary { cursor: pointer; padding: 14px 18px; list-style: none; background: var(--surface-2); font-size: 14px; }
.ans-chapter summary::-webkit-details-marker { display: none; }
.ans-chapter[open] summary { border-bottom: 1px solid var(--line); }
.ans-row { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ans-row:last-child { border-bottom: 0; }
.ans-q { font-weight: 700; font-size: 14px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ans-a { background: var(--surface-2); border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 14px; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; }
.ans-m { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.ans-m b { color: var(--gold-d); }

/* ---- Notifications (bell, banner, list) ------------------------------ */
.nav-links a.bell { position: relative; font-size: 15px; padding: 8px 12px; }
.bell-badge { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--redo); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.notif-banner { display: block; background: var(--gold-soft); border: 1px solid #e6d8bd; color: var(--gold-d); border-radius: var(--radius-md); padding: 14px 20px; margin-bottom: 18px; font-size: 14px; font-weight: 600; transition: .15s; }
.notif-banner:hover { background: #ece2cf; }
.notif-banner b { color: var(--ink); }
.notif-item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--gold-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin: 4px 0; border-bottom: 0; }
.notif-item .ni-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.notif-item .ni-body { flex: 1; font-size: 14px; }

/* ---- Submit / completion card (student) ------------------------------ */
.submit-card { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 26px; margin-bottom: 8px; }
.submit-card.done { background: var(--ok-soft); border-color: var(--ok-line); }
.submit-card .sc-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--gold-soft); color: var(--gold-d); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.submit-card.done .sc-ic { background: var(--ok); color: #fff; }
.submit-card .sc-body { flex: 1; }
.submit-card h3 { margin: 0 0 4px; font-size: 18px; }
.submit-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.submit-card.done p { color: #3c5a48; }

/* ---- Delete actions (trainer) ---------------------------------------- */
.del-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; display: inline-grid; place-items: center; vertical-align: middle; transition: .15s; }
.del-btn:hover { border-color: var(--redo-line); background: var(--redo-soft); color: var(--redo); }
.btn-danger { background: #fff; color: var(--redo); border: 1px solid var(--redo-line); }
.btn-danger:hover { background: var(--redo-soft); }


/* ---- Server status: Toast & Ladeanzeige ----------------------------------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; max-width: min(92vw, 520px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.45); animation: toast-in .2s ease; }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--redo); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.boot { text-align: center; color: var(--muted); padding: 120px 20px; font-size: 15px; }
button:disabled { opacity: .55; cursor: wait; }
