
:root {
--bg-body:        #f0f3f7;
--surface:        #ffffff;
--surface-alt:    #f7f9fc;
--surface-sunken: #eef2f7;
--border-subtle: #e1e6ee;
--border:        #c8d1e0;
--border-strong: #9aa6ba;
--text-headline: #0f2a4d;
--text-primary:  #1a1f2e;
--text-secondary:#5a6478;
--text-muted:    #8a93a3;
--text-on-accent:#ffffff;
--accent:        #1d4f8b;
--accent-hover:  #2d6dba;
--accent-dark:   #143a68;
--accent-soft:   #e8eef7;
--accent-line:   #93b5d8;
--success:       #2e9d57;
--success-soft:  #e7f5ec;
--success-dark:  #1f6f3d;
--warning:       #d97706;
--warning-soft:  #fdf0dc;
--warning-dark:  #92510a;
--error:         #c43c3c;
--error-soft:    #fceaea;
--error-dark:    #8a2b2b;
--shadow-soft:  0 1px 2px  rgba(15,42,77,.04);
--shadow-pop:   0 3px 0    rgba(20,40,80,.18);
--shadow-pop-press: 0 1px 0 rgba(20,40,80,.18);
--shadow-modal: 0 8px 40px rgba(15,42,77,.22);
--radius:    12px;
--radius-sm:  8px;
--radius-pill: 999px;
--tap-min:  44px;
--tap-pref: 48px;
--font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif;
--font-mono: ui-monospace, "SF Mono", "Cascadia Mono",
Menlo, Consolas, "Liberation Mono", monospace;
--fs-xs:   .75rem;
--fs-sm:   .875rem;
--fs-base: 1rem;
--fs-md:   1.125rem;
--fs-lg:   1.375rem;
--lh-base:  1.5;
--lh-loose: 1.65;
--lh-tight: 1.25;
--fw-normal: 400;
--fw-medium: 500;
--fw-bold:   700;
--sp-1:  4px;
--sp-2:  8px;
--sp-3: 12px;
--sp-4: 16px;
--sp-5: 24px;
--sp-6: 32px;
--t-fast: 100ms ease;
--z-overlay: 900;
--z-modal:  1000;
--container-narrow: 720px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: .01ms !important;
transition-duration: .01ms !important;
}
}
html { -webkit-text-size-adjust: 100%; }
body {
font-family: var(--font-main);
font-size:   var(--fs-base);
line-height: var(--lh-base);
color:       var(--text-primary);
background:  var(--bg-body);
-webkit-font-smoothing: antialiased;
min-height: 100vh;
padding:
env(safe-area-inset-top,    0)
env(safe-area-inset-right,  0)
env(safe-area-inset-bottom, 0)
env(safe-area-inset-left,   0);
}
sub, sup {
font-size: .7em;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub { bottom: -.25em; }
sup { top:    -.5em; }
input, select, textarea, button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible {
outline: 2px solid var(--accent-hover);
outline-offset: 2px;
border-radius: 2px;
}
.sim-container-narrow {
width: 100%;
max-width: var(--container-narrow);
margin: 0 auto;
padding: var(--sp-3);
}
@media (min-width: 768px) {
.sim-container-narrow { padding: var(--sp-4); }
}
.sim-header {
background: var(--surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius);
padding: var(--sp-3) var(--sp-4);
margin-bottom: var(--sp-3);
text-align: center;
box-shadow: var(--shadow-soft);
}
.sim-header h1 {
font-size: clamp(1rem, 3.5vw, var(--fs-lg));
font-weight: var(--fw-bold);
color: var(--accent);
line-height: var(--lh-tight);
margin-bottom: var(--sp-1);
}
.sim-header p { font-size: var(--fs-sm); color: var(--text-secondary); }
.task-section {
background: var(--surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius);
padding: var(--sp-4);
margin-bottom: var(--sp-3);
box-shadow: var(--shadow-soft);
}
.task-header {
display: flex;
align-items: center;
gap: var(--sp-4);
margin-bottom: var(--sp-3);
flex-wrap: wrap;
}
.task-section-title {
font-size: var(--fs-md);
font-weight: var(--fw-bold);
color: var(--accent);
}
.task-nav {
display: flex;
align-items: center;
gap: var(--sp-2);
}
.task-nav-btn {
min-width: var(--tap-min);
min-height: var(--tap-min);
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--surface);
color: var(--accent);
border: 1.5px solid var(--accent-line);
border-radius: var(--radius-sm);
font-family: inherit;
font-size: var(--fs-md);
font-weight: var(--fw-bold);
cursor: pointer;
padding: 0 var(--sp-3);
transition: background var(--t-fast), border-color var(--t-fast);
}
@media (hover: hover) {
.task-nav-btn:hover:not(:disabled) {
background: var(--accent-soft);
border-color: var(--accent);
}
}
.task-nav-btn:disabled { opacity: .35; cursor: not-allowed; }
.task-counter {
font-family: var(--font-mono);
font-size: var(--fs-sm);
color: var(--text-secondary);
font-variant-numeric: tabular-nums;
min-width: 56px;
text-align: center;
}
.task-prompt {
margin: 0 0 var(--sp-2);
font-size: var(--fs-base);
font-weight: 600;
color: var(--text-primary);
line-height: var(--lh-base);
}
.task-hint {
font-size: var(--fs-xs);
color: var(--text-muted);
margin: 0 0 var(--sp-3);
}
.hint-toggle-btn {
display: inline-block;
font-family: var(--font-main);
font-size: var(--fs-sm);
color: var(--accent);
background: var(--accent-soft);
border: 1px solid var(--accent-line);
border-radius: var(--radius-sm);
padding: var(--sp-1) var(--sp-2);
margin: 0 0 var(--sp-3);
cursor: pointer;
}
@media (hover: hover) {
.hint-toggle-btn:hover { background: #dde7f4; border-color: var(--accent); }
}
.hint-toggle-btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.task-options { margin: 0 0 var(--sp-3); }
.task-actions {
display: flex;
gap: var(--sp-2);
flex-wrap: wrap;
margin-top: var(--sp-3);
}
.task-actions .func-btn { flex: 1; min-width: 140px; }
.option-btn {
display: flex;
align-items: center;
gap: var(--sp-3);
width: 100%;
min-height: var(--tap-pref);
background: var(--surface);
border: 1.5px solid var(--border-subtle);
border-radius: var(--radius-sm);
padding: var(--sp-3) var(--sp-4);
font-family: inherit;
font-size: var(--fs-base);
color: var(--text-primary);
text-align: left;
cursor: pointer;
transition: background var(--t-fast), border-color var(--t-fast);
margin-bottom: var(--sp-2);
}
.option-btn:last-child { margin-bottom: 0; }
@media (hover: hover) {
.option-btn:hover:not(.disabled) {
background: var(--surface-alt);
border-color: var(--accent-line);
}
}
.option-btn.selected        { background: var(--accent-soft);  border-color: var(--accent); }
.option-btn.correct-selected{ background: var(--success-soft); border-color: var(--success); }
.option-btn.wrong-selected  { background: var(--error-soft);   border-color: var(--error); }
.option-btn.missed          { background: var(--warning-soft); border-color: var(--warning); border-style: dashed; }
.option-btn.disabled        { cursor: not-allowed; opacity: .8; }
.option-marker {
width: 22px;
height: 22px;
border: 2px solid var(--border);
border-radius: 4px;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--surface);
transition: background var(--t-fast), border-color var(--t-fast);
}
.option-btn.selected         .option-marker { background: var(--accent);  border-color: var(--accent); }
.option-btn.correct-selected .option-marker { background: var(--success); border-color: var(--success); }
.option-btn.wrong-selected   .option-marker { background: var(--error);   border-color: var(--error); }
.option-btn.missed           .option-marker { border-color: var(--warning); }
.option-marker svg { display: none; width: 14px; height: 14px; }
.option-btn.selected         .option-marker svg,
.option-btn.correct-selected .option-marker svg,
.option-btn.wrong-selected   .option-marker svg,
.option-btn.missed           .option-marker svg { display: block; }
.feedback-box {
display: none;
padding: var(--sp-3) var(--sp-4);
border-radius: var(--radius-sm);
border-left: 3px solid var(--accent);
background: var(--accent-soft);
margin-top: var(--sp-3);
font-size: var(--fs-sm);
line-height: var(--lh-loose);
}
.feedback-box.visible { display: block; }
.feedback-box.success { background: var(--success-soft); border-left-color: var(--success); }
.feedback-box.error   { background: var(--error-soft);   border-left-color: var(--error); }
.func-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--sp-2);
min-height: var(--tap-pref);
padding: var(--sp-2) var(--sp-5);
background: var(--accent);
color: var(--text-on-accent);
border: none;
border-radius: var(--radius-sm);
font-family: inherit;
font-size: var(--fs-base);
font-weight: var(--fw-bold);
cursor: pointer;
box-shadow: var(--shadow-pop);
transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
@media (hover: hover) { .func-btn:hover:not(:disabled) { background: var(--accent-hover); } }
.func-btn:active { transform: translateY(2px); box-shadow: var(--shadow-pop-press); }
.func-btn:disabled {
background: var(--border);
color: var(--text-muted);
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.func-btn--secondary {
background: var(--surface);
color: var(--accent);
border: 1.5px solid var(--accent);
box-shadow: var(--shadow-soft);
}
@media (hover: hover) { .func-btn--secondary:hover:not(:disabled) { background: var(--accent-soft); } }
.func-btn--secondary:active { box-shadow: var(--shadow-soft); }
.sim-footer {
display: flex;
align-items: center;
gap: var(--sp-3);
flex-wrap: wrap;
margin-top: var(--sp-4);
padding: var(--sp-3) var(--sp-4);
border-top: 1px solid var(--border-subtle);
font-size: var(--fs-xs);
color: var(--text-secondary);
}
.sim-footer-brand {
display: inline-flex;
align-items: center;
gap: var(--sp-2);
font-weight: var(--fw-bold);
color: var(--accent);
}
.sim-footer-logo { width: 22px; height: 22px; flex-shrink: 0; }
.sim-footer-domain {
font-weight: var(--fw-bold);
color: var(--accent);
text-decoration: none;
}
@media (hover: hover) { .sim-footer-domain:hover { text-decoration: underline; } }
.sim-footer-meta { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
.sim-footer { justify-content: center; text-align: center; }
.sim-footer-meta { margin-left: 0; width: 100%; }
}
.sim-header { position: relative; }
.sim-back,
.sim-home {
position: absolute;
top: 50%;
transform: translateY(calc(-50% - 2px));
display: inline-flex;
align-items: center;
gap: 7px;
text-decoration: none;
font-size: var(--fs-sm);
font-weight: var(--fw-medium);
white-space: nowrap;
border-radius: var(--radius-sm);
padding: 4px 6px;
}
.sim-back { left: var(--sp-4); right: auto; color: var(--accent); }
.sim-home { right: var(--sp-4); left: auto; color: var(--text-secondary); }
.sim-back:hover,
.sim-home:hover { background: var(--surface-alt); }
.sim-back:focus-visible,
.sim-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sim-header h1,
.sim-header > p { padding-left: 160px; padding-right: 160px; }
@media (max-width: 720px) {
.sim-back { left: var(--sp-2); }
.sim-home { right: var(--sp-2); }
.sim-home-text,
.sim-back-text { display: none; }
.sim-header h1,
.sim-header > p { padding-left: 46px; padding-right: 46px; }
}
.ue-weiter {
box-sizing: border-box;
width: 100%;
max-width: var(--container-narrow);
margin: var(--sp-4) auto 0;
padding: var(--sp-4);
background: var(--surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius);
box-shadow: var(--shadow-soft);
font-size: var(--fs-sm);
color: var(--text-secondary);
overflow-wrap: break-word;
}
.ue-weiter-titel {
margin: 0 0 var(--sp-2);
font-weight: var(--fw-bold);
color: var(--text-headline);
font-size: var(--fs-base);
}
.ue-weiter ul { margin: 0; padding-left: 20px; }
.ue-weiter li { margin: 4px 0; }
.ue-weiter a { color: var(--accent); text-decoration: none; }
.ue-weiter a:hover { text-decoration: underline; }
.ue-weiter-thema {
margin: var(--sp-3) 0 0;
padding-top: var(--sp-3);
border-top: 1px solid var(--border-subtle);
font-size: var(--fs-xs);
}
.ue-info {
box-sizing: border-box;
width: 100%;
max-width: var(--container-narrow);
margin: var(--sp-5) auto var(--sp-6);
padding: 0 var(--sp-4);
font-size: var(--fs-xs);
line-height: 1.55;
color: var(--text-muted);
overflow-wrap: break-word;
}
.ue-info h2 {
font-size: var(--fs-xs);
font-weight: var(--fw-bold);
color: var(--text-secondary);
margin: var(--sp-4) 0 var(--sp-2);
}
.ue-info-lead { margin: 0; }
@media (max-width: 640px) {
.ue-info { padding: 0 var(--sp-3); }
}
.ue-info ul { margin: 0; padding-left: 18px; }
.ue-info li { margin: 2px 0; }
.task-section-title::before,
.ue-info h2::before {
content: "";
display: inline-block;
width: 8px;
height: 8px;
margin-right: 9px;
vertical-align: 0.1em;
border-radius: 50%;
background: #ff2d2d;
}
.ue-info h2::before { width: 6px; height: 6px; margin-right: 7px; }
.sim-back { min-width: 44px; min-height: 44px; }
.sim-home { min-height: var(--tap-min); }
@media (max-width: 720px) { .sim-home { min-width: var(--tap-min); justify-content: center; } }
.sim-footer-domain { display: inline-flex; align-items: center; min-height: var(--tap-min); }
.sim-back > span[aria-hidden] {
font-size: 0;
line-height: 0;
width: 22px;
height: 22px;
display: inline-block;
flex-shrink: 0;
background: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20d=%22M15,4.5L7.5,12L15,19.5%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%223.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3C/svg%3E") center/22px 22px no-repeat;
mask: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%3E%3Cpath%20d=%22M15,4.5L7.5,12L15,19.5%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%223.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3C/svg%3E") center/22px 22px no-repeat;
}
.sim-footer { flex-wrap: wrap; }
.sim-footer .sim-footer-recht { display: inline-flex; align-items: center; gap: var(--sp-1); }
.sim-footer .sim-footer-recht a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-1); color: var(--text-secondary); font-weight: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) { .sim-footer .sim-footer-recht a:hover { color: var(--accent); } }
