@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Slab";
  src: url("fonts/RobotoSlab-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1c1f1f;
  --muted: #585857;
  --bg: #f4f4f1;
  --bg-2: #ececea;
  --panel: #ffffff;
  --panel-2: #f7f7f4;
  --line: #d7d7d2;
  --electric: #ffdd00;
  --electric-2: #ffe84a;
  --cyan: #607f91;
  --green: #2f8158;
  --red: #e2001a;
  --radius: 12px;
  --shadow: 0 2px 0 rgba(28,31,31,.08);
}
* { box-sizing: border-box; }
html { color-scheme: light; font-size: 16px; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); font-family: Roboto, Arial, ui-sans-serif, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(242,210,27,.5); outline-offset: 2px; }
.app-shell { min-height: 100vh; padding-bottom: 88px; display: flex; flex-direction: column; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 52px); border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.brand { display: flex; gap: 10px; align-items: center; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.brand span:last-child { display: grid; }
.brand strong { font-size: .95rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.eh-logo { width: 48px; height: 58px; object-fit: cover; flex: 0 0 auto; }
.onboarding-logo { width: 58px; height: 70px; object-fit: cover; margin: 0 auto 15px; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.streak-pill, .avatar { border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.streak-pill { border-radius: 999px; padding: 9px 13px; color: var(--muted); font-size: .82rem; }
.streak-pill span, .streak-pill b { color: var(--electric); }
.avatar { width: 38px; height: 38px; border-radius: 50%; font-size: .74rem; font-weight: 800; }
main { width: min(1180px, 100%); margin: 0 auto; padding: 28px clamp(18px,4vw,50px) 60px; flex: 1; }
main:focus { outline: none; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: "Roboto Slab", Roboto, Georgia, serif; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.02; letter-spacing: -.055em; margin-bottom: 14px; }
h2 { font-size: clamp(1.28rem, 2.5vw, 1.7rem); letter-spacing: -.025em; }
h3 { font-size: 1rem; }
p { line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 800; font-size: .75rem; letter-spacing: .13em; margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.muted { color: var(--muted); }
.view-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.view-head p { color: var(--muted); max-width: 640px; margin-bottom: 0; }
.dashboard-hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; align-items: stretch; margin-bottom: 18px; }
.hero-main { min-height: 300px; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(25px, 5vw, 52px); position: relative; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.hero-main::before, .hero-main::after { content: ""; position: absolute; pointer-events: none; }
.hero-main::before { width: 180px; height: 94px; right: 28px; bottom: 30px; border-top: 3px solid var(--electric); border-right: 3px solid var(--electric); }
.hero-main::after { width: 16px; height: 16px; right: 20px; bottom: 21px; border-radius: 50%; background: var(--red); }
.hero-main > * { position: relative; z-index: 1; }
.hero-main p { max-width: 590px; color: var(--muted); }
.hero-main h1 { display: inline; background: var(--electric); box-shadow: .22em 0 0 var(--electric), -.08em 0 0 var(--electric); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-main .eyebrow { display: flex; width: max-content; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.primary-btn, .secondary-btn, .ghost-btn, .text-btn { min-height: 48px; border-radius: 8px; padding: 0 18px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: .2s ease; }
.primary-btn { background: var(--electric); color: var(--ink); }
.primary-btn:hover { background: var(--electric-2); transform: translateY(-1px); }
.secondary-btn { background: rgba(255,255,255,.04); border-color: var(--line); }
.secondary-btn:hover, .ghost-btn:hover { border-color: rgba(242,210,27,.45); background: rgba(242,210,27,.07); }
.ghost-btn { background: none; border-color: var(--line); min-height: 42px; padding: 0 14px; }
.text-btn { background: none; color: var(--muted); padding-inline: 4px; }
.wide { width: 100%; }
.hero-side { display: grid; gap: 12px; }
.countdown-card, .suggestion-card, .surface-card, .topic-card, .stat-card, .source-card, .exam-card, .coach-panel, .question-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.countdown-card { padding: 25px; display: grid; align-content: center; }
.countdown-card strong { font-size: 3.3rem; line-height: 1; letter-spacing: -.06em; color: var(--electric); }
.countdown-card span { color: var(--muted); margin-top: 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mini-stat { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.mini-stat strong { display: block; font-size: 1.25rem; }
.mini-stat span { color: var(--muted); font-size: .76rem; }
.section-row { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 14px; }
.section-row h2 { margin: 0; }
.action-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.action-card { min-height: 160px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; cursor: pointer; position: relative; overflow: hidden; background: var(--panel); transition: .2s ease; }
.action-card:hover { transform: translateY(-3px); border-color: rgba(64,199,232,.35); background: var(--panel-2); }
.action-card strong { display: block; font-size: 1.05rem; margin: 17px 0 7px; }
.action-card p { color: var(--muted); font-size: .86rem; line-height: 1.45; margin: 0; }
.card-number { font-size: .75rem; color: var(--cyan); border: 1px solid rgba(64,199,232,.3); border-radius: 999px; padding: 4px 8px; }
.suggestion-card { margin-top: 14px; padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.suggestion-card h3 { margin-bottom: 5px; }
.suggestion-card p { margin: 0; color: var(--muted); }
.source-note { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid rgba(85,212,155,.2); border-radius: 14px; background: rgba(85,212,155,.055); color: #bdd1cb; font-size: .84rem; }
.source-dot { width: 9px; height: 9px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(85,212,155,.1); }
.topic-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.topic-card { padding: 20px; cursor: pointer; text-align: left; transition: .2s ease; }
.topic-card:hover { border-color: rgba(242,210,27,.4); transform: translateY(-2px); }
.topic-card .topic-top { display: flex; justify-content: space-between; gap: 10px; }
.topic-card h3 { font-size: 1.02rem; margin: 15px 0 9px; }
.topic-card p { color: var(--muted); font-size: .84rem; margin: 0; }
.progress { height: 8px; border-radius: 2px; background: #dfdfdb; overflow: hidden; margin-top: 17px; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--electric); }
.topic-percent { color: var(--muted); font-size: .76rem; }
.training-layout, .coach-layout, .profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; }
.question-card { padding: clamp(20px, 4vw, 34px); }
.question-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: rgba(64,199,232,.09); color: #8fe2f5; border: 1px solid rgba(64,199,232,.2); font-weight: 700; font-size: .75rem; }
.tag.demo { color: #e7d86e; background: rgba(242,210,27,.08); border-color: rgba(242,210,27,.25); }
.question-card h2 { font-size: clamp(1.3rem,3vw,1.85rem); line-height: 1.35; max-width: 800px; }
.answers { display: grid; gap: 10px; margin-top: 24px; }
.answer-btn { min-height: 58px; padding: 14px 16px; display: flex; gap: 13px; align-items: center; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.answer-btn:hover { border-color: rgba(64,199,232,.4); }
.answer-btn.selected { border-color: var(--electric); background: rgba(242,210,27,.07); }
.answer-btn.correct { border-color: var(--green); background: rgba(85,212,155,.08); }
.answer-btn.wrong { border-color: var(--red); background: rgba(255,124,124,.08); }
.answer-key { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-weight: 800; color: var(--muted); flex: 0 0 auto; }
.question-footer { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.explanation { margin-top: 20px; padding: 18px; border-left: 3px solid var(--cyan); background: rgba(64,199,232,.055); border-radius: 0 14px 14px 0; }
.explanation strong { display: block; margin-bottom: 6px; }
.side-stack { display: grid; gap: 12px; align-content: start; }
.surface-card { padding: 18px; }
.surface-card h3 { margin-bottom: 11px; }
.source-line { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); margin-top: 9px; }
.source-line b { color: var(--ink); }
.hint-list { display: grid; gap: 8px; }
.hint-btn { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 12px; text-align: left; padding: 12px; cursor: pointer; }
.hint-btn small { display: block; color: var(--muted); margin-top: 4px; }
.hint-content { margin-top: 8px; color: #d8e4ec; font-size: .86rem; line-height: 1.5; }
.coach-panel { min-height: 580px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.coach-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.coach-head h2 { font-size: 1.1rem; margin: 0; }
.coach-status { color: var(--green); font-size: .76rem; }
.chat-log { padding: 22px; overflow: auto; max-height: 500px; display: grid; align-content: start; gap: 12px; }
.bubble { max-width: 82%; padding: 14px 16px; border-radius: 16px; line-height: 1.55; font-size: .94rem; }
.bubble.coach { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.user { justify-self: end; background: var(--electric); color: #192000; border-bottom-right-radius: 5px; font-weight: 650; }
.bubble .bubble-source { display: block; margin-top: 8px; font-size: .75rem; opacity: .65; }
.chat-compose { border-top: 1px solid var(--line); padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-compose input { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: #07111c; padding: 0 14px; color: var(--ink); }
.quick-prompts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.quick-prompts button { padding: 8px 11px; font-size: .76rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.level-select { width: 100%; border: 1px solid var(--line); background: #07111c; color: var(--ink); padding: 11px; border-radius: 12px; }
.exam-card { padding: clamp(22px,4vw,36px); }
.exam-intro-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 24px 0; }
.exam-fact { padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 14px; }
.exam-fact strong { display: block; font-size: 1.2rem; }
.exam-fact span { color: var(--muted); font-size: .76rem; }
.exam-rules { color: var(--muted); padding-left: 20px; line-height: 1.8; }
.exam-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 15px; }
.timer { font-variant-numeric: tabular-nums; color: var(--electric); font-weight: 900; font-size: 1.15rem; }
.exam-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.exam-nav button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.exam-nav button.current { border-color: var(--electric); }
.exam-nav button.done { background: rgba(85,212,155,.13); }
.exam-nav button.flagged::after { content: ""; display: block; width: 6px; height: 6px; margin: -3px 0 0 24px; border-radius: 50%; background: var(--electric); }
.result-score { display: flex; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.score-ring { --score: 78; width: 118px; height: 118px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 10px solid var(--electric); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--panel); }
.score-ring strong { position: relative; z-index: 1; font-size: 1.75rem; }
.result-bars { display: grid; gap: 13px; margin-top: 24px; }
.result-row { display: grid; grid-template-columns: 180px 1fr 50px; gap: 10px; align-items: center; font-size: .86rem; }
.profile-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin-bottom: 18px; }
.stat-card { padding: 18px; }
.stat-card strong { font-size: 1.65rem; display: block; }
.stat-card span { color: var(--muted); font-size: .76rem; }
.recommend-list { display: grid; gap: 10px; }
.recommend-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; }
.recommend-item .rank { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(242,210,27,.08); color: var(--electric); font-weight: 900; }
.recommend-item p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.site-footer { width: 100%; border-top: 1px solid var(--line); color: var(--muted); background: rgba(7,17,28,.72); }
.footer-inner { width: min(1180px,100%); margin: 0 auto; min-height: 76px; padding: 18px clamp(18px,4vw,50px); display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: .8rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.footer-inner a { color: #bfd0dc; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer-inner a:hover { color: var(--electric); }
.legal-page { max-width: 920px; margin: 0 auto; }
.legal-back { margin-bottom: 18px; }
.legal-lead { max-width: 760px; color: var(--muted); }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.legal-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 22px; }
.legal-card h2 { font-size: 1.05rem; margin-bottom: 14px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card.full { grid-column: 1 / -1; }
.legal-card address { color: var(--muted); font-style: normal; line-height: 1.7; }
.legal-placeholder { display: inline-flex; margin-top: 4px; padding: 7px 9px; border-radius: 9px; border: 1px solid rgba(242,210,27,.25); background: rgba(242,210,27,.06); color: #e9dc83; font-size: .78rem; font-weight: 700; }
.legal-copy { display: grid; gap: 12px; color: #c4d3de; }
.legal-copy p { margin: 0; }
.legal-note { color: var(--muted); font-size: .85rem; }
.bottom-nav { position: fixed; z-index: 25; bottom: 0; left: 50%; transform: translateX(-50%); width: min(700px, calc(100% - 24px)); min-height: 70px; display: flex; justify-content: space-around; align-items: center; gap: 3px; padding: 7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)); background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -2px 0 rgba(28,31,31,.06); }
.nav-item { min-width: 62px; min-height: 52px; display: grid; place-items: center; gap: 2px; border: 0; background: none; color: var(--muted); font-size: .75rem; cursor: pointer; border-radius: 13px; }
.nav-icon { font-size: 1.15rem; }
.nav-item.active { color: var(--electric); background: rgba(242,210,27,.07); }
.nav-primary { margin-top: -23px; width: 64px; height: 64px; border-radius: 21px; color: #142000; background: var(--electric); box-shadow: 0 9px 22px rgba(242,210,27,.18); }
.nav-primary.active { color: #142000; background: var(--electric-2); }
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(28,31,31,.66); }
.onboarding-dialog { width: min(620px, calc(100% - 24px)); max-height: 92vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0; box-shadow: 0 12px 35px rgba(28,31,31,.18); }
.onboarding-dialog form { padding: clamp(22px,5vw,40px); }
.onboarding-head { text-align: center; }
.onboarding-head .brand-mark { margin: 0 auto 15px; }
.onboarding-head h1 { font-size: clamp(2rem,7vw,3rem); }
.onboarding-head p { color: var(--muted); }
.stepper { display: flex; gap: 7px; margin: 22px 0; }
.stepper span { flex: 1; height: 4px; background: #1b3041; border-radius: 999px; }
.stepper span.on { background: var(--electric); }
.onboard-step { display: none; }
.onboard-step.active { display: block; animation: rise .3s ease both; }
.onboard-step h2 { font-size: 1.15rem; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; margin-top: 9px; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card span { display: grid; flex: 1; }
.choice-card small { color: var(--muted); margin-top: 3px; }
.choice-card i { display: none; color: var(--electric); font-style: normal; }
.choice-card.selected { border-color: var(--electric); background: rgba(242,210,27,.05); }
.choice-card.selected i { display: block; }
.chip-select { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-select input { position: absolute; opacity: 0; }
.chip-select span { display: block; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; }
.chip-select input:checked + span { color: #172000; background: var(--electric); border-color: var(--electric); font-weight: 800; }
.onboarding-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.skip-link { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem; }
.report-dialog { width: min(470px,calc(100% - 24px)); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); padding: 26px; }
.report-dialog form { display: grid; gap: 13px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); cursor: pointer; }
.field-label { display: grid; gap: 7px; font-weight: 750; font-size: .83rem; }
select, textarea { width: 100%; border: 1px solid var(--line); background: #07111c; color: var(--ink); padding: 12px; border-radius: 12px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 95px; transform: translate(-50%,20px); opacity: 0; pointer-events: none; background: #e8f7ef; color: #0e3b26; border-radius: 12px; padding: 12px 16px; font-weight: 750; box-shadow: var(--shadow); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }
.pool-strip { margin: 14px 0 4px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-left: 7px solid var(--electric); border-radius: var(--radius); background: #fff; }
.pool-strip > div { min-height: 72px; display: grid; align-content: center; padding: 13px 20px; border-right: 1px solid var(--line); }
.pool-strip > div:last-child { border-right: 0; }
.pool-strip strong { font-family: "Roboto Slab", Roboto, Georgia, serif; font-size: 1.35rem; }
.pool-strip span { color: var(--muted); font-size: .78rem; }
.pool-strip.compact { grid-template-columns: repeat(4,1fr); }
.training-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 18px 0; }
.training-option { min-height: 112px; padding: 18px; display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: start; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.training-option:hover { border-color: var(--ink); background: #fffbea; }
.training-option strong { display: block; font-family: "Roboto Slab", Roboto, Georgia, serif; font-size: 1.05rem; }
.training-option p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.meta-stack { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.difficulty { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.difficulty.leicht { color: #276446; background: #eaf5ee; border-color: #b7d8c4; }
.difficulty.mittel { color: #6b5700; background: #fff8c9; border-color: #dfc84d; }
.difficulty.schwer { color: #8f1020; background: #fff0f2; border-color: #e7a9b1; }
.response-form { display: grid; gap: 14px; margin-top: 24px; }
.response-form fieldset { display: grid; gap: 9px; padding: 0; margin: 0; border: 0; }
.response-form legend { margin-bottom: 10px; color: var(--muted); font-weight: 700; }
.response-form > .primary-btn { justify-self: start; }
.choice-line { min-height: 58px; padding: 12px 14px; display: flex; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.choice-line:has(input:checked) { border-color: #c2a800; background: #fff8c4; }
.choice-line input { width: 19px; height: 19px; accent-color: var(--electric); }
.response-label { display: grid; gap: 8px; font-weight: 750; }
.response-input { min-height: 50px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.numeric-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.numeric-wrap .response-input { border: 0; border-radius: 0; }
.numeric-wrap b { padding: 0 14px; color: var(--muted); }
.order-grid, .match-grid { display: grid; gap: 9px; }
.order-grid label, .match-grid label { display: grid; grid-template-columns: minmax(90px,.55fr) minmax(0,1fr); gap: 12px; align-items: center; }
.order-grid label > span, .match-grid label > span { font-weight: 750; }
.order-grid select, .match-grid select { min-width: 0; }
.saved-answer { margin-top: 14px; padding: 10px 12px; border-left: 4px solid var(--electric); background: #fffbea; color: var(--muted); font-size: .82rem; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.view-enter { animation: rise .35s ease both; }
@media (max-width: 850px) {
  .dashboard-hero, .training-layout, .coach-layout, .profile-layout { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .action-grid, .topic-grid { grid-template-columns: repeat(2,1fr); }
  .side-stack { grid-template-columns: repeat(2,1fr); }
  .training-options { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .topbar { height: 64px; padding-inline: 16px; }
  .brand small, .streak-pill { display: none; }
  main { padding: 20px 14px 42px; }
  .dashboard-hero { gap: 11px; }
  .hero-main { min-height: 315px; padding: 26px 21px; border-radius: 22px; }
  .hero-main h1 { max-width: 300px; }
  .hero-side { grid-template-columns: 1fr; }
  .countdown-card { display: flex; align-items: baseline; gap: 10px; }
  .countdown-card strong { font-size: 2.5rem; }
  .action-grid, .topic-grid, .side-stack, .profile-stats { grid-template-columns: 1fr; }
  .training-options, .pool-strip, .pool-strip.compact { grid-template-columns: 1fr; }
  .pool-strip > div { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pool-strip > div:last-child { border-bottom: 0; }
  .training-option { min-height: 100px; }
  .meta-stack { justify-content: flex-start; }
  .order-grid label, .match-grid label { grid-template-columns: 1fr; gap: 6px; }
  .action-card { min-height: 138px; }
  .suggestion-card { grid-template-columns: 1fr; }
  .suggestion-card button { width: 100%; }
  .view-head { align-items: start; flex-direction: column; gap: 10px; }
  .view-head button { width: 100%; }
  .question-card { border-radius: 18px; }
  .question-footer > button { flex: 1; }
  .exam-intro-grid { grid-template-columns: 1fr 1fr; }
  .result-score { align-items: flex-start; }
  .result-row { grid-template-columns: 115px 1fr 38px; font-size: .76rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 7px; padding-bottom: 22px; }
  .footer-inner nav { justify-content: flex-start; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-card.full { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr; }
  .onboarding-dialog form { padding: 22px 18px; }
  .bottom-nav { width: 100%; border-radius: 17px 17px 0 0; }
  .nav-item { min-width: 51px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* EMIL – persönlicher Lernbegleiter */
.brand small { max-width: 300px; }

.emil-dashboard { grid-template-columns: minmax(0, 1fr) 280px; }
.emil-dashboard > * { min-width: 0; }
.hero-main.emil-hero { min-height: 390px; padding: 0 0 0 clamp(25px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(250px, .78fr); align-items: stretch; border-top: 5px solid var(--electric); }
.hero-main.emil-hero::before, .hero-main.emil-hero::after { display: none; }
.emil-hero-copy { min-width: 0; align-self: center; padding: 34px 0; position: relative; z-index: 2; overflow-wrap: anywhere; }
.emil-hero-copy .eyebrow { width: auto; max-width: 100%; white-space: normal; flex-wrap: wrap; }
.emil-hero-copy > p { max-width: 620px; }
.emil-hero-copy .hero-subtitle { color: var(--ink); font-size: 1.08rem; margin-top: 20px; }
.emil-hero-copy h1 { font-size: clamp(2.45rem, 5vw, 4.35rem); }
.exam-window { font-size: clamp(1.35rem, 3vw, 2rem) !important; line-height: 1.05; }

.emil-recommendation { margin: 18px 0; padding: 20px 22px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-left: 5px solid var(--electric); background: #fff; border-radius: var(--radius); }
.emil-recommendation h2 { margin: 3px 0 5px; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.emil-recommendation p { margin: 0; color: var(--muted); max-width: 760px; }
.daily-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 14px; margin: 18px 0; }
.today-card, .quick-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.today-card { background: linear-gradient(115deg, #fff 0 72%, #fff7b8 72%); border-top: 5px solid var(--electric); }
.today-card.compact { display: block; background: #fff; }
.today-card.compact .primary-btn { margin-top: 14px; }
.today-card h2, .quick-card h2 { margin: 5px 0 8px; font-size: 1.35rem; }
.today-card ul { margin: 10px 0 0; padding-left: 19px; color: var(--muted); line-height: 1.65; }
.quick-card { align-items: flex-start; flex-direction: column; }
.quick-card p { color: var(--muted); margin: 0; }

.emil-tip-box { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 15px; padding: 18px; border: 1px solid var(--line); border-left: 5px solid var(--electric); border-radius: var(--radius); background: #fff; }
.emil-tip-box h3 { margin: 0 0 5px; }
.emil-tip-box p { margin: 5px 0 12px; color: var(--muted); line-height: 1.55; }
.emil-tip-box .hint-btn { width: 100%; margin-top: 8px; }
.emil-tip-box.horizontal { grid-template-columns: auto minmax(0,1fr) auto; align-items: center; margin: 0 0 18px; }

.coach-title > div, .profile-emil-head > div, .exam-result-head > div { display: flex; align-items: center; gap: 18px; }
.coach-identity { display: flex; align-items: center; gap: 12px; }
.coach-identity h2 { margin: 0; }
.coach-identity small { color: var(--muted); display: block; margin-top: 2px; }
.bubble-row { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; }
.bubble-row.user { margin-left: auto; justify-content: flex-end; }
.bubble-row .bubble { max-width: none; }

.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.insight-card { min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.insight-card span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 9px; }
.insight-card strong { font-family: "Roboto Slab", Roboto, Georgia, serif; line-height: 1.35; }

.about-emil { max-width: 1060px; }
.about-emil-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.75fr); gap: clamp(26px,5vw,60px); align-items: center; }
.about-emil-grid > div > p { font-size: 1rem; line-height: 1.75; color: var(--muted); }
.about-publisher { margin-top: 24px; padding: 16px 18px; border-left: 5px solid var(--electric); background: #fff; }
.about-publisher span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.about-publisher strong { font-family: "Roboto Slab", Roboto, Georgia, serif; font-size: 1.25rem; }
.about-emil-figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.about-emil-figure img { width: 100%; max-height: 520px; object-fit: cover; object-position: 50% 16%; display: block; }
.about-emil-figure figcaption { padding: 14px 16px; color: var(--muted); font-size: .82rem; }
.about-emil-identity { min-height: 360px; display: grid; place-items: center; align-content: center; padding: 38px; text-align: center; background: radial-gradient(circle at 50% 42%, #fffbe0 0 25%, #fff 62%); }
.about-emil-identity figcaption { padding: 0; font-size: .9rem; line-height: 1.55; }
.about-emil-identity figcaption strong { color: var(--ink); }

.footer-brand { display: grid; gap: 2px; max-width: 430px; }
.footer-brand strong { color: var(--ink); font-family: "Roboto Slab", Roboto, Georgia, serif; font-size: 1rem; }
.footer-brand span { color: var(--ink); }
.footer-brand small { color: var(--muted); }


@media (max-width: 850px) {
  .emil-dashboard { grid-template-columns: minmax(0,1fr); }
  .hero-main.emil-hero { grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr); }
  .daily-grid { grid-template-columns: 1fr; }
  .about-emil-grid { grid-template-columns: 1fr; }
  .about-emil-figure { max-width: 520px; }
}

@media (max-width: 580px) {
  .brand small { max-width: 165px; }
  .hero-main.emil-hero { min-height: 0; padding: 0; grid-template-columns: 1fr; }
  .emil-hero-copy { padding: 24px 20px 8px; }
  .emil-hero-copy h1 { font-size: clamp(2.2rem, 12vw, 3.2rem); }
  .emil-hero-copy .hero-actions { margin-top: 22px; }
  .emil-hero-copy .hero-actions button { flex: 1 1 100%; }
  .emil-recommendation { grid-template-columns: auto 1fr; padding: 17px; }
  .emil-recommendation .primary-btn { grid-column: 1 / -1; width: 100%; }
  .today-card, .quick-card { align-items: stretch; flex-direction: column; }
  .today-card { background: #fff; }
  .emil-tip-box.horizontal { grid-template-columns: auto 1fr; }
  .emil-tip-box.horizontal .primary-btn, .emil-tip-box.horizontal .ghost-btn { grid-column: 1 / -1; width: 100%; }
  .coach-title > div, .profile-emil-head > div, .exam-result-head > div { align-items: flex-start; }
  .coach-head { align-items: flex-start; flex-direction: column; }
  .coach-identity small { font-size: .72rem; }
  .bubble-row { max-width: 100%; }
  .insight-grid { grid-template-columns: 1fr; }
  .about-emil-figure img { max-height: 390px; }
  .about-emil-identity { min-height: 290px; padding: 28px 20px; }
  .footer-inner { gap: 15px; }
  .bottom-nav .nav-item span:last-child { font-size: .65rem; }
}

/* E-Handwerk Corporate Design */
body { border-top: 5px solid var(--electric); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline-color: var(--red); }
.brand strong { font-family: "Roboto Slab", Roboto, Georgia, serif; font-size: 1.03rem; }
.topbar::after { content: ""; position: absolute; left: 0; bottom: -1px; width: clamp(56px, 10vw, 132px); height: 3px; background: var(--electric); }
.streak-pill, .avatar { border-radius: 8px; }
.streak-pill span, .streak-pill b { color: var(--ink); }
.avatar { background: var(--ink); color: #fff; }

.view-head > div { max-width: 780px; }
.view-head h1, .legal-page > h1 { display: table; width: fit-content; padding: .04em .14em .08em; background: var(--electric); line-height: 1.1; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.section-row h2 { position: relative; padding-left: 16px; }
.section-row h2::before { content: ""; position: absolute; left: 0; top: .1em; bottom: .1em; width: 5px; background: var(--electric); }
.eyebrow::before { background: var(--red); }

.hero-main { box-shadow: none; border-top: 5px solid var(--electric); }
.hero-main h1 { line-height: 1.22; }
.hero-main::before { border-color: var(--electric); border-radius: 0 14px 0 0; }
.hero-actions { margin-top: 30px; }
.primary-btn, .secondary-btn, .ghost-btn, .text-btn { box-shadow: none; }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover { transform: none; border-color: var(--ink); }
.secondary-btn { background: #fff; border-color: var(--ink); }
.ghost-btn { background: #fff; }
.primary-btn:disabled, .secondary-btn:disabled, .ghost-btn:disabled { opacity: .45; cursor: not-allowed; }

.countdown-card, .suggestion-card, .surface-card, .topic-card, .stat-card, .source-card, .exam-card, .coach-panel, .question-card, .action-card { box-shadow: none; }
.countdown-card { border-left: 7px solid var(--electric); }
.countdown-card strong { color: var(--ink); font-family: "Roboto Slab", Roboto, Georgia, serif; }
.mini-stat { border-radius: 8px; background: var(--panel-2); }
.action-card { border-radius: var(--radius); }
.action-card:hover, .topic-card:hover { transform: none; border-color: var(--ink); background: #fff; }
.card-number { display: inline-grid; place-items: center; min-width: 34px; min-height: 28px; padding: 4px 8px; color: var(--ink); background: var(--electric); border: 0; border-radius: 4px; font-weight: 900; }
.suggestion-card { border-left: 7px solid var(--electric); }
.source-note { border-radius: 8px; border-color: #b8d0c2; background: #eef6f1; color: #355443; }
.source-dot { box-shadow: none; }

.progress { height: 7px; border-radius: 2px; background: #dfdfdb; }
.progress > span { border-radius: 2px; background: var(--electric); }
.tag { border-radius: 4px; border-color: #b7c5cc; background: #edf2f4; color: #405d6c; }
.tag.demo { border-color: #d8bd00; background: #fff8c9; color: var(--ink); }
.answer-btn { border-radius: 8px; background: #fff; }
.answer-btn:hover { border-color: var(--ink); }
.answer-btn.selected { border-color: #c2a800; background: #fff8c4; }
.answer-btn.correct { border-color: var(--green); background: #eaf5ee; }
.answer-btn.wrong { border-color: var(--red); background: #fff0f2; }
.answer-key { border-radius: 4px; background: var(--panel-2); }
.explanation { border-left-color: var(--electric); border-radius: 0 8px 8px 0; background: #fffbea; }
.hint-btn { border-radius: 8px; background: #fff; }
.hint-btn:hover { border-color: var(--ink); }
.hint-content { color: var(--ink); }

.bubble { border-radius: 10px; }
.bubble.coach { border-bottom-left-radius: 2px; }
.bubble.user { color: var(--ink); border-bottom-right-radius: 2px; }
.chat-compose input, .level-select, select, textarea { border-radius: 8px; background: #fff; color: var(--ink); }
.quick-prompts button { border-radius: 7px; background: #fff; color: var(--ink); }
.quick-prompts button:hover { border-color: var(--ink); background: #fffbea; }
.coach-panel { border-top: 5px solid var(--electric); }

.exam-fact { border-radius: 8px; background: var(--panel-2); }
.exam-nav button { border-radius: 5px; background: #fff; }
.exam-nav button.current { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--electric); }
.exam-nav button.done { background: #eaf5ee; }
.exam-nav button.flagged::after { background: var(--red); }
.timer { color: var(--ink); background: var(--electric); padding: 7px 10px; border-radius: 4px; }
.score-ring { background: #fff; border: 10px solid var(--electric); }
.score-ring::after { display: none; }
.recommend-item { border-radius: 8px; background: #fff; }
.recommend-item .rank { border-radius: 4px; background: var(--electric); color: var(--ink); }

.site-footer { background: #eeeeeb; color: var(--muted); }
.footer-inner a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-inner a:hover { color: var(--ink); text-decoration-color: var(--red); }

.account-strip { margin: 18px 0 30px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d8d8d1; border-left: 5px solid var(--electric); background: #fffdf0; }
.account-strip > div { display: grid; gap: 3px; }
.account-strip span { color: var(--muted); font-size: .9rem; }
.account-strip.signed-in { border-left-color: #37885b; background: #f2faf5; }
.avatar.signed-in { box-shadow: inset 0 -4px 0 #37885b; }
.account-page { width: min(980px,100%); margin: 0 auto; padding: clamp(10px,3vw,35px) 0 50px; }
.account-page > .text-btn { margin-bottom: 32px; }
.account-page > h1 { max-width: 760px; }
.account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.account-card { padding: clamp(22px,4vw,34px); border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 28px rgba(28,31,31,.05); }
.account-card h2 { margin-top: 0; }
.account-card form { display: grid; gap: 18px; }
.account-details { display: grid; grid-template-columns: 120px 1fr; gap: 9px 18px; margin: 24px 0; }
.account-details dt { color: var(--muted); }
.account-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.privacy-short { margin-top: 20px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.privacy-short a { color: var(--ink); text-underline-offset: 3px; }
.guest-note { margin-top: 18px; padding: 18px 22px; display: grid; gap: 5px; background: #f1f1ee; }
.form-status { min-height: 1.5em; color: var(--muted); }
.sync-conflict { margin: 24px 0; padding: 24px; border: 2px solid var(--electric); background: #fffdf0; }
.sync-conflict h2 { margin-top: 0; }
.danger-zone { border-color: #e7b9b3; }
.danger-btn { min-height: 44px; padding: 0 18px; border: 1px solid #9d2e24; color: #8b2119; background: #fff; font-weight: 800; cursor: pointer; }
.danger-btn:hover { color: #fff; background: #8b2119; }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 30px; }
.admin-stats div { padding: 18px; display: grid; gap: 4px; background: #f1f1ee; }
.admin-stats strong { font-size: 1.8rem; font-family: "Roboto Slab",serif; }
.admin-list { display: grid; gap: 10px; margin-bottom: 30px; }
.admin-list article { padding: 18px; border: 1px solid var(--line); }
.admin-list article > span { margin-left: 10px; color: var(--muted); font-size: .8rem; }

@media (max-width: 720px) {
  .account-strip { align-items: flex-start; flex-direction: column; }
  .account-strip button { width: 100%; }
  .account-grid { grid-template-columns: 1fr; }
  .account-details { grid-template-columns: 1fr; gap: 2px; }
  .account-details dd { margin-bottom: 12px; }
  .admin-stats { grid-template-columns: 1fr; }
}
.legal-page { padding-top: 6px; }
.legal-card { background: #fff; border-radius: 8px; }
.legal-card.full { border-left: 5px solid var(--electric); }
.legal-copy { color: var(--ink); }
.legal-placeholder { border-radius: 4px; border-color: #d2b700; background: #fff7be; color: var(--ink); }

.bottom-nav { background: #fff; backdrop-filter: none; border-radius: 12px 12px 0 0; box-shadow: 0 -2px 0 rgba(28,31,31,.06); }
.nav-item { border-radius: 6px; }
.nav-item.active { color: var(--ink); background: #fff8c7; box-shadow: inset 0 -4px 0 var(--electric); }
.nav-primary, .nav-primary.active { margin-top: 0; width: auto; height: 52px; color: var(--ink); background: var(--electric); box-shadow: none; border-radius: 6px; }

dialog::backdrop { background: rgba(28,31,31,.66); backdrop-filter: none; }
.onboarding-dialog { border-radius: 12px; background: #fff; box-shadow: 0 12px 35px rgba(28,31,31,.18); }
.onboarding-head h1 { display: inline; padding: 0 .08em .05em; background: var(--electric); line-height: 1.2; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.onboarding-head .eyebrow { display: flex; width: max-content; margin-inline: auto; }
.stepper span { border-radius: 2px; background: #dfdfdb; }
.choice-card { border-radius: 8px; background: #fff; }
.choice-card.selected { border-color: #bda500; background: #fff9cf; }
.choice-card i { color: var(--ink); }
.chip-select span { border-radius: 7px; }
.chip-select input:checked + span { color: var(--ink); }
.report-dialog { border-radius: 12px; }
.dialog-close { background: var(--panel-2); }
.toast { border-radius: 8px; box-shadow: 0 2px 0 rgba(28,31,31,.12); }

@media (max-width: 580px) {
  body { border-top-width: 4px; }
  .topbar { height: 66px; }
  .eh-logo { width: 38px; height: 47px; }
  .avatar { width: 34px; height: 34px; }
  .hero-main { min-height: 290px; border-radius: 10px; }
  .hero-main::before { width: 100px; height: 60px; right: 20px; bottom: 24px; }
  .hero-main::after { right: 12px; bottom: 15px; }
  .question-card { border-radius: 10px; }
  .bottom-nav { border-radius: 10px 10px 0 0; }
  .nav-primary, .nav-primary.active { width: 56px; }
  .bottom-nav .nav-primary, .bottom-nav .nav-primary.active { width: auto; min-width: 64px; }
  .emil-hero-copy { min-width: 0; overflow-wrap: anywhere; }
  .emil-hero-copy .eyebrow { width: auto; max-width: 100%; white-space: normal; flex-wrap: wrap; }
  .emil-hero-copy h1, .emil-hero-copy p { max-width: 100%; }
  .emil-dashboard .hero-side { min-width: 0; width: 100%; grid-template-columns: minmax(0,1fr); }
  .emil-dashboard .countdown-card, .emil-dashboard .mini-stats { min-width: 0; width: 100%; }
  .emil-dashboard .countdown-card { flex-wrap: wrap; }
  .emil-dashboard .mini-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .emil-dashboard .mini-stat { min-width: 0; padding: 12px 8px; }
}

/* Offene Startseite – EMIL steht als digitales Werkzeug im Mittelpunkt */
.emil-dashboard { grid-template-columns: minmax(0,1fr) minmax(240px,290px); gap: clamp(28px,5vw,64px); align-items: stretch; margin: 6px 0 42px; }
.hero-main.emil-hero { min-height: 410px; padding: clamp(38px,6vw,72px) 0; display: grid; grid-template-columns: minmax(0,1fr) 210px; align-items: center; gap: clamp(22px,4vw,54px); overflow: visible; border: 0; border-radius: 0; background: transparent; }
.hero-main.emil-hero::before { display: block; width: 48%; height: 3px; inset: auto 0 22px auto; border: 0; border-radius: 0; background: linear-gradient(90deg,transparent,var(--electric)); }
.hero-main.emil-hero::after { display: block; width: 14px; height: 14px; right: 0; bottom: 16px; border: 3px solid var(--electric); background: var(--bg); }
.emil-hero-copy { padding: 0; }
.emil-hero-copy h1 { display: block; max-width: 720px; margin-bottom: 20px; padding: 0; background: none; box-shadow: none; font-size: clamp(3rem,6vw,5.5rem); line-height: .98; letter-spacing: -.065em; }
.emil-hero-copy .hero-subtitle { max-width: 540px; margin-top: 0; font-size: 1.2rem; }
.emil-hero-copy > p:not(.hero-subtitle) { max-width: 560px; font-size: 1rem; }
.emil-dashboard .hero-side { display: flex; flex-direction: column; justify-content: center; gap: 0; padding-left: clamp(22px,4vw,42px); border-left: 1px solid var(--line); }
.emil-dashboard .countdown-card { padding: 18px 0 28px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.emil-dashboard .countdown-card strong { margin: 8px 0 2px; font-size: clamp(2rem,4vw,3.3rem); }
.emil-dashboard .mini-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding-top: 24px; }
.emil-dashboard .mini-stat { padding: 0 10px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.emil-dashboard .mini-stat:first-child { padding-left: 0; }
.emil-dashboard .mini-stat:last-child { padding-right: 0; border-right: 0; }

.emil-recommendation { margin: 0 0 42px; padding: 28px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.daily-grid { gap: clamp(28px,6vw,72px); margin: 0 0 42px; }
.today-card, .quick-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.today-card { padding-left: 24px; border-left: 5px solid var(--electric); }
.quick-card { padding-top: 20px; border-top: 1px solid var(--line); }
.pool-strip { margin: 30px 0 46px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.pool-strip > div { min-height: 84px; padding: 15px 22px; }
.pool-strip strong { font-size: 1.7rem; }
.action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 clamp(34px,6vw,72px); }
.action-card { min-height: 138px; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; overflow: visible; }
.action-card:hover { padding-left: 10px; border-color: var(--ink); background: transparent; }
.action-card strong { margin: 14px 0 7px; font-size: 1.12rem; }
.action-card p { max-width: 430px; font-size: .9rem; }
.action-card .card-number { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 850px) {
  .emil-dashboard { grid-template-columns: minmax(0,1fr); gap: 0; }
  .emil-dashboard .hero-side { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); align-items: center; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); }
  .emil-dashboard .countdown-card { padding: 0 24px 0 0; border: 0; }
  .emil-dashboard .mini-stats { padding: 0 0 0 24px; border-left: 1px solid var(--line); }
}

@media (max-width: 580px) {
  .emil-dashboard { margin-top: 0; margin-bottom: 32px; }
  .hero-main.emil-hero { min-height: 0; padding: 40px 0 46px; grid-template-columns: minmax(0,1fr) 84px; gap: 14px; }
  .hero-main.emil-hero::before { bottom: 14px; }
  .hero-main.emil-hero::after { bottom: 8px; }
  .emil-hero-copy h1 { max-width: 265px; font-size: clamp(2.7rem,13vw,3.65rem); }
  .emil-hero-copy .hero-subtitle { font-size: 1.05rem; }
  .emil-hero-copy .hero-actions { margin-top: 24px; }
  .emil-hero-copy .hero-actions button { flex: 1 1 100%; }
  .emil-dashboard .hero-side { display: block; padding-top: 22px; }
  .emil-dashboard .countdown-card { display: grid; padding: 0 0 20px; }
  .emil-dashboard .mini-stats { padding: 20px 0 0; border-left: 0; }
  .emil-recommendation { grid-template-columns: auto 1fr; margin-bottom: 34px; padding: 24px 0; }
  .emil-recommendation .primary-btn { grid-column: 1 / -1; width: 100%; }
  .daily-grid { gap: 30px; margin-bottom: 34px; }
  .pool-strip, .pool-strip.compact { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 26px 0 36px; }
  .pool-strip > div { min-height: 74px; padding: 12px 8px; border-right: 1px solid var(--line); border-bottom: 0; }
  .pool-strip strong { font-size: 1.35rem; }
  .pool-strip span { font-size: .68rem; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 126px; }
}

/* EMIL Hybrid-Redesign: typografisches Produkt, klare E-Marken-Hierarchie */
:root {
  --bg: #ffffff;
  --bg-2: #f0f0ed;
  --panel: #ffffff;
  --panel-2: #f7f7f4;
  --line: #d9d9d4;
  --radius: 14px;
  --shadow: none;
}

body { background: #fff; }
main { width: min(1280px,100%); padding-top: 40px; }
h1, h2, h3 { text-wrap: balance; }

.topbar { height: 96px; padding-inline: clamp(20px,4vw,56px); background: #fff; }
.brand strong { font-size: 1.55rem; line-height: 1; letter-spacing: -.035em; }
.brand small { display: block; max-width: none; margin-top: 6px; font-size: .78rem; }
.top-actions { gap: 24px; }
.profile-actions { display: flex; align-items: center; gap: 10px; }
.eh-logo { width: 64px; height: 78px; margin-left: 4px; object-fit: cover; }

.view-head h1, .legal-page > h1 { display: block; width: auto; padding: 0; background: none; box-shadow: none; }
.view-head { margin-bottom: 32px; }
.view-head p { line-height: 1.65; }

.emil-voice-label { display: inline-flex; align-items: center; align-self: flex-start; flex: 0 0 auto; min-height: 28px; color: var(--ink); font-family: "Roboto Slab", Roboto, Georgia, serif; font-size: .82rem; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.emil-voice-label.small, .emil-voice-label.tiny { font-size: .76rem; }
.emil-voice-label.medium { font-size: 1rem; }

.emil-dashboard { grid-template-columns: minmax(0,2fr) minmax(300px,1fr); gap: 32px; align-items: stretch; margin: 4px 0 32px; }
.hero-main.emil-hero { min-height: 390px; padding: clamp(36px,5vw,64px) clamp(8px,2vw,24px); display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 32px; align-items: center; overflow: hidden; border: 0; border-radius: 0; background: #fff; }
.hero-main.emil-hero::before, .hero-main.emil-hero::after { display: none; }
.emil-hero-copy { padding: 0; overflow-wrap: normal; }
.emil-hero-copy h1 { display: block; max-width: 720px; margin-bottom: 20px; padding: 0; background: none; box-shadow: none; font-size: clamp(2.8rem,5vw,4.65rem); line-height: 1.03; letter-spacing: -.055em; hyphens: none; overflow-wrap: normal; word-break: normal; }
.emil-hero-copy .hero-subtitle { max-width: 570px; margin-top: 0; font-size: 1.16rem; }
.emil-hero-copy > p:not(.hero-subtitle) { max-width: 600px; font-size: 1rem; }
.emil-hero-tech { width: 180px; height: 190px; position: relative; justify-self: end; opacity: .72; }
.emil-hero-tech::before { content: ""; position: absolute; top: 24px; right: 0; width: 145px; height: 66px; border-top: 2px solid var(--electric); border-right: 2px solid var(--electric); }
.emil-hero-tech::after { content: ""; position: absolute; right: 55px; bottom: 24px; width: 105px; height: 54px; border-bottom: 2px solid var(--line); border-left: 2px solid var(--line); }
.emil-hero-tech span { position: absolute; width: 12px; height: 12px; border: 3px solid var(--electric); border-radius: 50%; background: #fff; }
.emil-hero-tech span:nth-child(1) { top: 18px; left: 24px; }
.emil-hero-tech span:nth-child(2) { top: 84px; right: -5px; border-color: var(--red); }
.emil-hero-tech span:nth-child(3) { right: 49px; bottom: 18px; border-color: #a8a8a3; }

.emil-dashboard .hero-side { display: grid; align-content: stretch; gap: 0; padding: 0; border: 0; }
.emil-dashboard .countdown-card { padding: 32px; border: 1px solid var(--line); border-top: 5px solid var(--electric); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--panel-2); }
.emil-dashboard .countdown-card strong { margin: 10px 0 4px; font-size: clamp(2.35rem,4vw,3.4rem); }
.emil-dashboard .mini-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 0 20px 24px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--panel-2); }
.emil-dashboard .mini-stat { min-width: 0; padding: 18px 12px 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.emil-dashboard .mini-stat:first-child { padding-left: 12px; }
.emil-dashboard .mini-stat:last-child { padding-right: 12px; border-right: 0; }

.emil-recommendation { margin: 0 0 32px; padding: 28px 30px; grid-template-columns: 72px minmax(0,1fr) auto; gap: 20px; border: 1px solid var(--line); border-left: 5px solid var(--electric); border-radius: var(--radius); background: #fff; }
.emil-recommendation .emil-voice-label { width: 56px; min-height: 34px; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); }
.emil-recommendation h2 { margin-bottom: 7px; }

.daily-grid { grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: 20px; margin: 0 0 28px; }
.today-card, .quick-card { min-height: 230px; padding: 28px; align-items: flex-end; border: 1px solid var(--line); border-top: 4px solid var(--electric); border-radius: var(--radius); background: #fff; }
.today-card { padding-left: 28px; border-left: 1px solid var(--line); }
.quick-card { padding-top: 28px; }
.today-card h2, .quick-card h2 { margin-top: 8px; }

.pool-strip { margin: 0 0 32px; border: 1px solid var(--line); border-left: 5px solid var(--electric); border-radius: var(--radius); background: var(--panel-2); }
.pool-strip > div { min-height: 82px; padding: 16px 22px; }
.pool-strip strong { font-size: 1.55rem; }

.action-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.action-card { min-height: 170px; padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--electric); border-radius: var(--radius); background: #fff; }
.action-card:hover { padding-left: 24px; border-color: #a7a7a1; background: var(--panel-2); }
.action-card strong { margin: 18px 0 8px; font-size: 1.08rem; }
.action-card .card-number { min-height: 26px; padding: 4px 8px; border-radius: 4px; background: #fff7b8; color: var(--ink); letter-spacing: .04em; }

.countdown-card, .suggestion-card, .surface-card, .topic-card, .stat-card, .source-card, .exam-card, .coach-panel, .question-card, .legal-card, .insight-card, .emil-tip-box { border-color: var(--line); background: #fff; border-radius: var(--radius); box-shadow: none; }
.topic-card, .stat-card, .surface-card, .insight-card { border-top: 3px solid var(--electric); }
.emil-tip-box { border-left: 5px solid var(--electric); }
.coach-panel, .exam-card, .question-card { border-top: 5px solid var(--electric); }
.source-note { background: #f1f7f3; }

.primary-btn, .secondary-btn, .ghost-btn, .text-btn { min-height: 48px; border-radius: 8px; }
.primary-btn { background: var(--electric); color: var(--ink); }
.secondary-btn, .ghost-btn { background: #fff; border-color: var(--ink); }

.nav-icon { width: 20px; height: 20px; display: grid; place-items: center; }
.nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-primary, .nav-primary.active { background: var(--electric); }

.onboarding-product { display: grid; justify-items: center; gap: 6px; margin-bottom: 22px; }
.onboarding-product strong { font-family: "Roboto Slab", Roboto, Georgia, serif; font-size: 2.5rem; letter-spacing: -.055em; }
.onboarding-product small { max-width: 330px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.about-emil-identity { background: var(--panel-2); }
.about-emil-wordmark { padding-bottom: 8px; border-bottom: 5px solid var(--electric); color: var(--ink); font-family: "Roboto Slab", Roboto, Georgia, serif; font-size: clamp(3.2rem,7vw,5.4rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; }

@media (max-width: 900px) {
  .emil-dashboard { grid-template-columns: minmax(0,1fr); }
  .hero-main.emil-hero { min-height: 340px; }
  .emil-dashboard .hero-side { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
  .emil-dashboard .countdown-card { border-right: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); }
  .emil-dashboard .mini-stats { align-content: center; padding: 20px; border-top: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
  .daily-grid { grid-template-columns: minmax(0,1.4fr) minmax(240px,.8fr); }
}

@media (max-width: 650px) {
  main { padding-top: 24px; }
  .topbar { height: 78px; padding-inline: 14px; }
  .brand strong { font-size: 1.28rem; }
  .brand small { display: block; max-width: 155px; margin-top: 4px; font-size: .66rem; line-height: 1.2; }
  .top-actions { gap: 12px; }
  .profile-actions { gap: 7px; }
  .streak-pill { display: none; }
  .eh-logo { width: 48px; height: 58px; margin-left: 2px; }
  .hero-main.emil-hero { min-height: 0; padding: 28px 0 16px; grid-template-columns: 1fr; gap: 10px; }
  .emil-hero-copy h1 { max-width: 100%; font-size: clamp(2.45rem,12vw,3.25rem); line-height: 1.04; }
  .emil-hero-copy .hero-actions { margin-top: 24px; }
  .emil-hero-copy .hero-actions button { flex: 1 1 100%; width: 100%; }
  .emil-hero-tech { width: 100%; height: 58px; margin-top: 4px; justify-self: stretch; }
  .emil-hero-tech::before { top: 12px; right: 8px; width: 60%; height: 20px; }
  .emil-hero-tech::after { display: none; }
  .emil-hero-tech span:nth-child(1) { top: 6px; left: 30%; }
  .emil-hero-tech span:nth-child(2) { top: 26px; right: 3px; }
  .emil-hero-tech span:nth-child(3) { display: none; }
  .emil-dashboard .hero-side { display: block; }
  .emil-dashboard .countdown-card { padding: 26px; border-right: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .emil-dashboard .mini-stats { padding: 0 14px 22px; border-top: 0; border-left: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
  .emil-recommendation { grid-template-columns: 1fr; padding: 24px; }
  .emil-recommendation .emil-voice-label { width: auto; justify-self: start; padding-inline: 10px; }
  .emil-recommendation .primary-btn { width: 100%; }
  .daily-grid, .action-grid { grid-template-columns: 1fr; }
  .today-card, .quick-card { min-height: 0; align-items: stretch; }
  .today-card button, .quick-card button { width: 100%; margin-top: 18px; }
  .pool-strip, .pool-strip.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pool-strip > div { min-height: 76px; padding: 12px 8px; border-right: 1px solid var(--line); border-bottom: 0; }
  .pool-strip strong { font-size: 1.25rem; }
  .pool-strip span { font-size: .66rem; }
  .action-card { min-height: 148px; }
  .coach-title > div, .profile-emil-head > div, .exam-result-head > div { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .emil-voice-label.medium { margin-bottom: 2px; }
}
