/* RECHENLEVEL VISUAL DESIGN SYSTEM 2026
   Presentation-only layer. No learning, storage, profile, XP or collection logic. */
:root{
  --rl-navy:#082b65;
  --rl-ink:#12345b;
  --rl-cyan:#19c9d5;
  --rl-aqua:#48ddff;
  --rl-blue:#1477f2;
  --rl-violet:#7c3aed;
  --rl-paper:#f7f9fc;
  --rl-ice:#eef8ff;
  --rl-white:#fff;
  --rl-muted:#5d6f88;
  --rl-line:#d8e5f2;
  --rl-line-strong:#b9cee5;
  --rl-radius-sm:10px;
  --rl-radius-md:16px;
  --rl-radius-lg:22px;
  --rl-shadow-1:0 4px 12px rgba(8,43,101,.07);
  --rl-shadow-2:0 10px 28px rgba(8,43,101,.10);
  --rl-glow:0 0 0 4px rgba(25,201,213,.10);
  --rl-line-width:2px;
  --rl-progress:linear-gradient(90deg,var(--rl-cyan),var(--rl-blue) 58%,var(--rl-violet));
}

/* One surface language across learning, profile and reward UI. */
.panel,.class4-card,.c4-real,.profile-summary,.avatar-panel,.collection-tile,.hub-main-card{
  border-color:var(--rl-line);
  border-radius:var(--rl-radius-lg);
  box-shadow:var(--rl-shadow-1);
}
button,.primary,.secondary,.row-choice,.c4-choice-row button{
  border-radius:var(--rl-radius-md);
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{
  outline:3px solid var(--rl-blue);outline-offset:3px;
}

/* Learning mode: restrained, precise, functional. */
.class4-page,.numbers-page,.families-page,.large-page,.fractions-page{--rl-local-effect:1}
.c4-real,.c4-explain,.c4-worksheet,.number-zoom,.analog-learning-panel{
  background:linear-gradient(145deg,#fff,#fbfdff);
}
.c4-real svg,.numbers-page svg,.families-page svg,.large-page svg{
  shape-rendering:geometricPrecision;
}
.c4-size-visual svg,.c4-prob-bag,.prob-wheel,.c4-mini-building,.c4-view-option,
.c4-compose-main,.c4-net-options svg{
  filter:drop-shadow(0 5px 8px rgba(8,43,101,.09));
}
.c4-size-visual{border-radius:var(--rl-radius-lg);background:linear-gradient(145deg,#fff,#f3f9ff);border:1px solid var(--rl-line)}
.c4-size-visual small{color:var(--rl-muted);font-weight:700;letter-spacing:.01em}

/* Exact mathematical instruments: orthogonal, no decorative interference. */
.c4-analog-clock,.learning-analog{filter:drop-shadow(0 7px 12px rgba(8,43,101,.12))}
.c4-analog-clock .clockface,.learning-analog .face{fill:#fbfdff;stroke:var(--rl-blue);stroke-width:3}
.c4-analog-clock .minor,.learning-analog .minor{stroke:#a9bdd3;stroke-width:1}
.c4-analog-clock .major,.learning-analog .major{stroke:var(--rl-navy);stroke-width:2}
.c4-analog-clock .hournum,.learning-analog .hournum{fill:var(--rl-navy);font-weight:800}
.c4-analog-clock .minnum,.learning-analog .minute-ring{fill:var(--rl-violet);font-weight:750}
/* accessibility: hour/minute differ by colour AND length */
.c4-analog-clock .hour,.learning-analog .hourhand{stroke:var(--rl-violet);stroke-width:7;stroke-linecap:round}
.c4-analog-clock .minute,.learning-analog .minutehand{stroke:var(--rl-cyan);stroke-width:5;stroke-linecap:round}
.c4-analog-clock .pin,.learning-analog .pin{fill:var(--rl-navy);stroke:#fff;stroke-width:2}
.analog-legend span:first-child::before{content:'';display:inline-block;width:14px;height:4px;border-radius:4px;background:var(--rl-violet);margin-right:6px;vertical-align:middle}
.analog-legend span:last-child::before{content:'';display:inline-block;width:20px;height:4px;border-radius:4px;background:var(--rl-cyan);margin-right:6px;vertical-align:middle}

.c4-ruler rect,.c4-onecm rect{fill:#effbff;stroke:var(--rl-blue);stroke-width:2}
.c4-ruler line,.c4-onecm line{stroke:var(--rl-navy)}
.c4-ruler text,.c4-onecm text{fill:var(--rl-navy)}
.c4-ruler .ruler-unit,.c4-onecm .caption{fill:var(--rl-violet)}

/* Functional geometry palette. */
.c4-compose-main rect,.c4-net-options rect,.c4-view-option rect{stroke:var(--rl-navy)}
.c4-compose-main .given{fill:rgba(25,201,213,.24)}
.c4-compose-main .target{fill:#fff}
.c4-fold-compare svg{fill:rgba(25,201,213,.16);stroke:var(--rl-navy)}

/* Probability: strong outlines, colour never the only cue. */
.prob-card,.prob-mini,.c4-prob-bag{border-color:var(--rl-line-strong)}
.prob-card{box-shadow:var(--rl-shadow-1);font-weight:800}
.prob-compare{gap:16px}

/* Reward / collect mode: same DNA, one step more depth. */
.collection-page,.collection-hub,.workshop-page,.my-level{--rl-local-effect:4}
.collection-tile,.hub-main-card,.workshop-card,.my-award-grid button{
  box-shadow:var(--rl-shadow-2);
}
.collection-tile:hover,.workshop-card:hover,.avatar-choice:hover{transform:translateY(-2px)}
.collection-tile,.workshop-card,.avatar-choice{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}

/* Shared illustration treatment: soft top-left light, controlled depth. */
.hub-symbol,.hub-mascot,.avatar-portrait img,.hub-object-preview img,.hub-card-preview img,
.workshop-art img,.my-award-grid img,.journey-object img{
  filter:drop-shadow(5px 8px 9px rgba(8,43,101,.13));
}

/* Icons: consistent visual box even when source artwork differs. */
.nav-symbol{display:inline-grid;place-items:center;min-width:28px;min-height:28px;border-radius:9px}
nav a.active .nav-symbol{background:rgba(25,201,213,.12);box-shadow:inset 0 0 0 1px rgba(20,119,242,.15)}

/* Compact whitespace: cards should fit content, not create empty stages. */
.c4-real{padding:clamp(16px,2.2vw,24px)}
.c4-question{max-width:760px;margin-left:auto;margin-right:auto}

/* Responsive graphics keep mathematical proportions. */
.c4-real svg,.c4-size-visual svg,.learning-analog,.c4-analog-clock,.prob-wheel,.c4-prob-bag{
  max-width:100%;height:auto;
}
@media(max-width:600px){
  .panel,.class4-card,.c4-real{border-radius:18px}
  .c4-size-visual{border-radius:18px}
  .learning-analog{width:min(100%,280px)}
  .c4-choice-row button{min-height:48px}
}
@media(prefers-reduced-motion:reduce){
  .collection-tile,.workshop-card,.avatar-choice{transition:none}
  .collection-tile:hover,.workshop-card:hover,.avatar-choice:hover{transform:none}
}
/* Compass illustration cards — actual topic graphics, not UI glyphs */
.compass-area-illustration{width:120px;min-width:120px;display:grid;place-items:center}.compass-area-illustration img{display:block;width:118px;height:auto;filter:drop-shadow(0 8px 12px rgba(12,52,117,.08))}.compass-topic-illustration{width:112px;min-width:112px;display:grid;place-items:center}.compass-topic-illustration img{display:block;width:108px;height:auto}.compass-topic-card{min-height:142px}.compass-topic-card:hover .compass-topic-illustration img,.compass-area-card:hover .compass-area-illustration img{transform:translateY(-2px);transition:transform .18s ease}@media(max-width:700px){.compass-area-illustration{width:76px;min-width:76px}.compass-area-illustration img{width:74px}.compass-topic-illustration{width:70px;min-width:70px}.compass-topic-illustration img{width:68px}.compass-topic-card{min-height:92px}}

/* 2026-10-15 · Kleine Einmaleins-Lerntafel — visual-only refinement */
.times-table-page{max-width:1160px;margin:0 auto}.times-table-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:16px;color:#173b67;font-size:12px;font-weight:800;text-decoration:none}.times-table-hero{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:28px;padding:24px 28px;margin-bottom:20px;border:1px solid #dbe6ef;border-radius:24px;background:linear-gradient(135deg,#fff 0%,#f5fbff 55%,#f7f5ff 100%);box-shadow:0 10px 28px rgba(18,58,105,.06)}.times-table-hero h1{margin:5px 0 8px;font-size:clamp(30px,4.5vw,48px);letter-spacing:-.045em}.times-table-hero p{margin:0;color:var(--muted);font-size:14px}.times-table-hero-art{justify-self:end;width:150px;height:104px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;place-items:center;border:1px solid #cce4ef;border-radius:22px;background:linear-gradient(145deg,#eefcff,#f2efff);box-shadow:inset 0 1px 0 #fff,0 9px 20px rgba(20,83,137,.08);transform:rotate(-1deg)}.times-table-hero-art span,.times-table-hero-art small{font-weight:800;color:#174d83}.times-table-hero-art strong{grid-row:1/3;grid-column:2;font-size:34px;color:#6a4fb0}.times-table-overview,.times-table-family-section{margin:20px 0 30px}.times-table-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:0 2px 14px}.times-table-section-head h2{margin:4px 0 0;font-size:clamp(22px,3vw,29px)}.times-table-section-head>p{max-width:390px;margin:0;color:var(--muted);font-size:12px}.times-table-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.times-table-row{margin:0;border:1px solid #dce6ef;border-radius:17px;background:#fff;box-shadow:0 5px 16px rgba(19,56,94,.04);overflow:hidden}.times-table-row[open]{border-color:#b9d7e8;box-shadow:0 8px 22px rgba(19,70,120,.07)}.times-table-row summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:13px 16px;color:#173b67;cursor:pointer}.times-table-row summary::-webkit-details-marker{display:none}.times-table-title{font-size:15px;font-weight:800}.times-table-meta{display:flex;align-items:center;gap:10px}.times-table-status{padding:5px 8px;border-radius:999px;background:#f0f3f7;color:#667489;font-size:9px;font-weight:800;letter-spacing:.04em}.times-table-status.is-practice{background:#eef1ff;color:#5848a3}.times-table-status.is-safe{background:#e4f7f1;color:#176a59}.times-table-arrow{font-size:18px;transition:transform .18s ease}.times-table-row[open] .times-table-arrow{transform:rotate(180deg)}.times-table-progress{height:4px;margin:0 16px 12px;border-radius:99px;background:#edf1f5;overflow:hidden}.times-table-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#18bfd0,#557cf1,#7b5bc5)}.times-table-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:4px 16px 16px;border-top:1px solid #edf2f6}.times-table-facts span{padding:8px 4px;border-bottom:1px solid #f0f3f6;color:#243f61;font-size:13px;font-weight:700}.times-table-family-section>.panel{max-width:760px;margin-left:auto;margin-right:auto}.times-table-family-section>.primary{display:flex;width:max-content;margin:18px auto 0}.times-table-row summary:focus-visible,.times-table-back:focus-visible{outline:3px solid #1477f2;outline-offset:3px}
@media(max-width:720px){.times-table-hero{grid-template-columns:1fr auto;padding:18px}.times-table-hero-art{width:108px;height:82px;border-radius:18px}.times-table-hero-art strong{font-size:27px}.times-table-grid{grid-template-columns:1fr}.times-table-section-head{align-items:flex-start;flex-direction:column;gap:5px}.times-table-section-head>p{max-width:none}.times-table-row summary{min-height:58px}.times-table-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.times-table-hero{grid-template-columns:1fr;padding:17px}.times-table-hero-art{display:none}.times-table-hero h1{font-size:31px}.times-table-status{font-size:8px}.times-table-facts{grid-template-columns:1fr 1fr;gap:4px 8px}.times-table-facts span{font-size:12px}}

/* 2026-10-15 · Einmaleins-Lerntafel — echte Lernansicht */
.times-table-hero-art{width:164px;height:116px;padding:10px;transform:none;background:linear-gradient(145deg,#f4fdff,#f4f1ff);overflow:hidden}
.times-table-hero-art img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(22,70,120,.09))}
.times-table-row summary{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px}
.times-table-number{display:grid;place-items:center;width:34px;height:34px;border:1px solid #d9e7f0;border-radius:11px;background:#f5f9fc;color:#7a8b9f;font-size:10px;font-weight:900;letter-spacing:.05em}
.times-table-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.times-table-title strong{font-size:15px;color:#173b67}
.times-table-title small{font-size:10px;color:#7a8797;font-weight:650}
.times-table-open-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 16px;padding:11px 0 8px;border-top:1px solid #edf2f6;color:#42617f}
.times-table-open-head span{font-size:10px;font-weight:900;letter-spacing:.08em}
.times-table-open-head small{font-size:10px;color:#8290a0}
.times-table-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 9px;padding:0 16px 16px;border-top:0}
.times-fact{display:grid;grid-template-columns:28px 1fr;align-items:center;min-height:44px;border:1px solid #e3ebf2;border-radius:12px;background:linear-gradient(180deg,#fff,#fbfdff);overflow:hidden}
.times-fact-step{display:grid;place-items:center;align-self:stretch;background:#f4f8fb;color:#94a0ad;font-size:9px;font-weight:850}
.times-fact-equation{display:grid;grid-template-columns:minmax(18px,auto) 14px minmax(18px,auto) 14px minmax(28px,auto);align-items:center;justify-content:center;gap:3px;padding:7px 8px;color:#233f60;font-style:normal;font-variant-numeric:tabular-nums}
.times-fact-equation b{font-size:14px;font-weight:800}.times-fact-equation i{font-size:12px;font-style:normal;color:#8290a0}.times-fact-equation .times-fact-rowfactor{color:#137d99}.times-fact-equation strong{display:grid;place-items:center;min-width:32px;min-height:28px;padding:2px 7px;border-radius:9px;background:linear-gradient(135deg,#e8fbff,#f0edff);color:#5948a8;font-size:15px;font-weight:900}
.times-table-row[open] .times-table-title strong{color:#0e6f8c}
@media(max-width:720px){.times-table-hero-art{width:112px;height:86px;padding:7px}.times-table-row summary{grid-template-columns:34px minmax(0,1fr) auto}.times-table-number{width:31px;height:31px}.times-table-open-head{align-items:flex-start;flex-direction:column;gap:2px}.times-table-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.times-table-row summary{grid-template-columns:32px minmax(0,1fr) auto;padding:11px 12px}.times-table-title small{display:none}.times-table-meta{gap:6px}.times-table-status{padding:4px 6px}.times-table-facts{grid-template-columns:1fr;padding:0 12px 13px}.times-table-open-head{margin:0 12px}.times-fact{min-height:40px}.times-table-hero-art{display:none}}

/* 2026-10-15 · Lerntafel — Zusammenhänge bewusst kompakt */
.times-table-family-section{margin-top:24px}
.times-family-compact{display:grid;grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--rl-line,#dbe6ef);border-radius:18px;background:linear-gradient(135deg,#fff,#f8fcff 62%,#f8f6ff);box-shadow:0 5px 16px rgba(19,56,94,.04)}
.times-family-core{display:flex;flex-direction:column;gap:5px;padding-right:15px;border-right:1px solid #e5edf3}.times-family-label{font-size:9px;font-weight:900;letter-spacing:.09em;color:#73849a}.times-family-core strong{font-size:20px;color:#173b67;font-variant-numeric:tabular-nums}
.times-family-links{display:flex;align-items:center;gap:22px}.times-family-links>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.times-family-links span{font-size:9px;font-weight:900;letter-spacing:.07em;color:#6f8094}.times-family-links b{padding:6px 9px;border-radius:9px;background:#eefaff;color:#176b83;font-size:12px;font-variant-numeric:tabular-nums}.times-family-links>div:last-child b{background:#f2efff;color:#5b4ba2}
.times-family-note{grid-column:1/3;margin:0;color:#66788b;font-size:11px;line-height:1.45}.times-family-note strong{color:#344f6d}.times-family-link{grid-column:3;grid-row:1/3;align-self:center;white-space:nowrap;text-decoration:none;font-size:10px}.times-family-link span{margin-left:6px}
@media(max-width:820px){.times-family-compact{grid-template-columns:125px minmax(0,1fr)}.times-family-link{grid-column:1/3;grid-row:auto;justify-self:start}.times-family-note{grid-column:1/3}.times-family-links{gap:10px;align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.times-family-compact{grid-template-columns:1fr;padding:14px}.times-family-core{padding:0 0 10px;border-right:0;border-bottom:1px solid #e5edf3}.times-family-links{grid-column:1}.times-family-note,.times-family-link{grid-column:1}.times-family-core strong{font-size:18px}}
