/* Unternehmerschein exam-prep site. Mobile first, no external fonts, no frameworks. */
:root {
  --ink: #14213D; --ink-2: #3A4764; --bg: #FFFFFF; --bg-alt: #F3F5FA; --line: #CBD3E3;
  --accent: #FCA311; --accent-dk: #E8920A; --link: #0B4F9C;
  --ok: #0A6B3D; --ok-bg: #E4F4EA; --bad: #A3162A; --bad-bg: #FCEBED;
  --warn-bg: #FFF3CF; --warn-line: #C08A00; --warn-ink: #4F3400;
  --radius: 12px; --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 1.0625rem/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-wrap: anywhere; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { inset-inline-start: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.section-in { margin-top: 2rem; }
h1 { font-size: 1.65rem; line-height: 1.2; margin: .6rem 0 .8rem; letter-spacing: -.01em; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 1.8rem 0 .6rem; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 1.2rem 0 .4rem; }
h4 { font-size: 1rem; margin: .8rem 0 .3rem; }
p { margin: 0 0 1rem; }
.prose { max-width: 72ch; }
.prose.narrow { max-width: 72ch; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 70ch; }
.muted { color: var(--ink-2); font-size: .95rem; }

/* header */
.stage-bar { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 2px solid var(--warn-line); font-size: .9rem; padding: .4rem 16px; text-align: center; }
.site-header { background: var(--ink); color: #fff; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.site-footer .logo { color: #fff; }
.logo-mark { flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: .1rem .2rem; }
.nav a { color: #fff; text-decoration: none; padding: .55rem .7rem; border-radius: 8px; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: rgba(255,255,255,.14); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--ink); font-weight: 700; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

/* breadcrumbs */
.crumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0 auto; padding: .55rem 16px; display: flex; flex-wrap: wrap; gap: .1rem .4rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--ink-2); }

/* hero, tiles, cards */
.hero { background: linear-gradient(180deg, var(--bg-alt), #fff); border-bottom: 1px solid var(--line); padding: 1.2rem 0 1.4rem; }
.hero h1 { font-size: 1.75rem; }
.cta-row { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tiles, .cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: 1fr; }
.tile, .card-link { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; height: 100%; }
.tile:hover, .card-link:hover { border-color: var(--ink); }
.tile strong, .card-link strong { display: block; font-size: 1.08rem; }
.tile span, .card-link span { display: block; color: var(--ink-2); font-size: .95rem; margin-top: .2rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .55rem 1.1rem; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--bg-alt); }
.btn-primary { background: var(--accent); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent-dk); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: .35rem .8rem; font-size: .95rem; }
.btn-link { background: none; border: 0; color: var(--link); text-decoration: underline; padding: .4rem .2rem; min-height: 44px; font: inherit; cursor: pointer; }

/* notes, placeholders, badges */
.note-box { background: var(--bg-alt); border: 1px solid var(--line); border-left: 5px solid var(--ink); border-radius: 8px; padding: .7rem .9rem; margin: 1rem 0; font-size: .95rem; }
.placeholder { background: var(--warn-bg); color: var(--warn-ink); border: 2px dashed var(--warn-line); border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0; }
span.verify-note { color: var(--ink-2); font-size: .85em; white-space: nowrap; }
mark.verify { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); border-radius: 4px; padding: 0 .3rem; font-weight: 700; font-size: .85em; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; vertical-align: middle; line-height: 1.4; white-space: normal; }
.badge-pending { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.cta-box { background: var(--bg-alt); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 2rem 0 1rem; }
.cta-box h2 { margin-top: 0; font-size: 1.15rem; }
.cta-box p:last-child { margin-bottom: 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table.data { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.data th, table.data td { border: 1px solid var(--line); padding: .5rem .6rem; text-align: left; vertical-align: top; }
table.data thead th { background: var(--bg-alt); }
table.kv th { width: 40%; background: var(--bg-alt); }

/* static question list */
.qs { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1rem; background: #fff; }
.qs h3 { margin-top: 0; }
.qmeta { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.opts li { margin: .3rem 0; }
.optid { font-weight: 700; }
details { margin: .5rem 0; }
summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
details[open] > summary { margin-bottom: .4rem; }
.src { font-size: .9rem; color: var(--ink-2); }
.src span:first-child { font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); }

/* ---------- quiz engine ---------- */
.ue-app { margin: 1rem 0; }
.ue-bar { display: grid; gap: .8rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; margin-bottom: 1rem; }
.ue-bar h2 { font-size: 1rem; margin: 0 0 .3rem; }
.fgroup { border: 0; padding: 0; margin: 0; min-width: 0; }
.fgroup legend { font-weight: 700; font-size: .95rem; margin-bottom: .3rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font: inherit; font-size: .92rem; min-height: 44px; padding: .35rem .8rem; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip .n { font-weight: 400; opacity: .85; }
.ue-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .95rem; margin-bottom: .8rem; }
progress { width: 100%; max-width: 360px; height: 14px; accent-color: var(--ok); }
.qnav { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.qnav button { min-width: 44px; min-height: 44px; border-radius: 8px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.qnav button[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--accent); }
.qnav button.s-c { background: var(--ok-bg); border-color: var(--ok); }
.qnav button.s-w { background: var(--bad-bg); border-color: var(--bad); }
.qnav button.s-p { background: var(--warn-bg); border-color: var(--warn-line); }

.qcard { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem; background: #fff; }
.qhead { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; font-size: .9rem; color: var(--ink-2); margin-bottom: .6rem; }
.qhead strong { color: var(--ink); }
.qtext { font-size: 1.12rem; font-weight: 600; margin: 0 0 .9rem; }
.qintro { margin: 0 0 .6rem; }
.qparts { margin: 0 0 1rem; padding-left: 0; list-style: none; }
.qparts li { margin: .35rem 0; }
.opts-list { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.opts-list legend { position: absolute; inset-inline-start: -9999px; }
.opt { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .8rem; margin: 0 0 .5rem; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; min-height: 48px; }
.opt:hover { border-color: var(--ink); }
.opt input { margin: .25rem 0 0; width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--ink); }
.opt .optid { flex: none; min-width: 1.4rem; }
.opt.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt .tag { display: block; font-size: .85rem; font-weight: 700; margin-top: .15rem; }
.opt.is-correct .tag { color: var(--ok); }
.opt.is-wrong .tag { color: var(--bad); }
.fb { border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0 .6rem; border: 2px solid var(--line); }
.fb.ok { border-color: var(--ok); background: var(--ok-bg); }
.fb.bad { border-color: var(--bad); background: var(--bad-bg); }
.fb.part { border-color: var(--warn-line); background: var(--warn-bg); }
.fb h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.fb p:last-child { margin-bottom: 0; }
.qactions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.field { display: grid; gap: .25rem; margin: 0 0 .8rem; }
.field label { font-weight: 600; font-size: .98rem; }
.inwrap { display: flex; align-items: center; gap: .5rem; }
.field input[type="text"], .field input[type="number"], textarea.ans { font: inherit; padding: .6rem .7rem; border: 2px solid var(--ink-2); border-radius: 8px; width: 100%; max-width: 15rem; min-height: 46px; background: #fff; color: var(--ink); }
textarea.ans { max-width: 100%; min-height: 110px; resize: vertical; }
.unit { color: var(--ink-2); }
.field.is-ok input { border-color: var(--ok); background: var(--ok-bg); }
.field.is-bad input { border-color: var(--bad); background: var(--bad-bg); }
.field .res { font-size: .92rem; font-weight: 600; }
.field.is-ok .res { color: var(--ok); }
.field.is-bad .res { color: var(--bad); }
.checklist { list-style: none; padding: 0; margin: .4rem 0 1rem; }
.checklist label { display: flex; gap: .6rem; align-items: flex-start; padding: .4rem 0; min-height: 44px; cursor: pointer; }
.checklist input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; }
.model { background: var(--bg-alt); border-radius: 10px; padding: .7rem .9rem; margin: .8rem 0; }
.solution { background: var(--bg-alt); border-radius: 10px; padding: .7rem .9rem; margin: .8rem 0; }
.solution ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.summary { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem; background: #fff; }
.summary h2 { margin-top: 0; }
.bars { list-style: none; padding: 0; margin: .6rem 0; }
.bars li { margin: .5rem 0; }
.bars .bar { display: block; height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--ok); }

/* exam */
.exam-bar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; border-radius: 0 0 var(--radius) var(--radius); padding: .5rem .8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: 0 -16px 1rem; }
.exam-bar .timer { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.exam-bar .timer.low { color: #FFD27A; }
.exam-bar .spacer { flex: 1 1 auto; }
.exam-bar .btn { background: var(--accent); }
.exam-bar :focus-visible { outline-color: #fff; }
.exam-q { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin: 0 0 1rem; background: #fff; }
.exam-q .qtext { font-size: 1.05rem; }
/* contact form */
.contact-form { max-width: 640px; margin: 1rem 0; }
.contact-form .field input[type="text"], .contact-form .field input[type="email"] { max-width: 100%; }
.contact-form textarea.ans { min-height: 160px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; cursor: pointer; min-height: 44px; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; flex: none; accent-color: var(--ink); }
.form-error { color: var(--bad); font-weight: 600; font-size: .95rem; margin: .2rem 0 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad) !important; background: var(--bad-bg) !important; }
.form-status.ok { border-left-color: var(--ok); background: var(--ok-bg); }
.form-status.warn { border-left-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.field input[type="email"] { font: inherit; padding: .6rem .7rem; border: 2px solid var(--ink-2); border-radius: 8px; width: 100%; max-width: 15rem; min-height: 46px; background: #fff; color: var(--ink); }
select { font: inherit; padding: .5rem .6rem; border: 2px solid var(--ink-2); border-radius: 8px; min-height: 46px; background: #fff; color: var(--ink); max-width: 100%; }
.exam-case { margin: 0 0 1.5rem; }
.exam-case > h2 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; padding: .5rem .7rem; background: var(--bg-alt); border-left: 5px solid var(--ink); border-radius: 6px; }
.confirm { background: var(--warn-bg); border: 2px solid var(--warn-line); border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0; }
.confirm p { margin: 0 0 .6rem; }
.kv-list { display: grid; gap: .3rem 1rem; grid-template-columns: 1fr; margin: .6rem 0; padding: 0; list-style: none; }
.pass-rule { border: 2px solid var(--ink); border-radius: var(--radius); padding: .8rem 1rem; background: #fff; margin: 1rem 0; }
.pass-rule p { margin: 0 0 .5rem; }
.pass-rule p:last-child { margin-bottom: 0; }
.result-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.review-item { border-top: 1px solid var(--line); padding: 1rem 0; }
.review-item h3 { margin-top: 0; }
.ua { font-weight: 700; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* footer */
.site-footer { background: var(--ink); color: #E6EAF4; margin-top: 2.5rem; padding: 1.6rem 0 1.4rem; }
.site-footer a { color: #fff; }
.foot { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.foot a { display: block; padding: .45rem 0; text-decoration: none; min-height: 44px; }
.foot a:hover { text-decoration: underline; }
.foot .logo { display: inline-flex; padding: 0; min-height: 44px; align-items: center; }
.foot-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .3rem; color: #FFD27A; }
.foot-brand p { font-size: .95rem; margin: .6rem 0 0; max-width: 40ch; }
.fine { font-size: .92rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1rem; margin: 1.2rem 0 0; }

@media (max-width: 479px) {
  .nav { gap: 0; margin: 0 -.4rem; }
  .nav a { padding: .55rem .4rem; font-size: .875rem; }
  .head { gap: .2rem 1rem; }
}
@media (min-width: 640px) {
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.3rem; }
  .tiles, .cards { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .ue-bar { grid-template-columns: 1fr 1fr; }
  .kv-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .exam-bar { margin: 0 0 1rem; border-radius: var(--radius); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer .foot, .stage-bar, .exam-bar, .qactions { display: none; } body { font-size: 11pt; } }

/* language switcher in the header */

.lang-switch { color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 6px; padding: .35rem .7rem; text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.lang-switch:hover, .lang-switch:focus-visible { background: rgba(255,255,255,.14); }

/* flashcards */
.fc-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .4rem 1rem; align-items: end; margin-bottom: .8rem; }
.fc-filters select { font: inherit; min-height: 44px; padding: .4rem .6rem; border: 2px solid var(--ink-2); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.fc-shuffle .check { min-height: 44px; align-items: center; }
.fc-meta { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: center; font-size: .92rem; color: var(--ink-2); margin: .4rem 0 .6rem; }
.fc-card { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 12px; padding: 1.1rem 1.2rem 1.3rem; min-height: 14rem; cursor: pointer; }
.fc-card.is-flipped { background: var(--bg-alt); }
.fc-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fc-label { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .5rem; }
.fc-text { font-size: 1.2rem; line-height: 1.55; margin: 0 0 .8rem; white-space: pre-line; }
.fc-actions .btn { flex: 1 1 8.5rem; min-height: 48px; }
.fc-hint { margin: .6rem 0 0; }
.fc-progress { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fc-boxes { margin: .3rem 0 .8rem; }
.fc-done { margin-bottom: .8rem; }
@media (max-width: 520px) { .fc-card { padding: .9rem .9rem 1.1rem; } .fc-text { font-size: 1.1rem; } }

/* VAT calculator and practice */
.ust-inwrap { display: flex; align-items: center; gap: .5rem; max-width: 16rem; }
.ust-inwrap input { flex: 1 1 auto; min-height: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.ust-suffix { font-weight: 700; color: var(--ink-2); }
.ust-options { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: .6rem 0; }
.ust-radios { border: 0; padding: 0; margin: 0; min-width: 0; }
.ust-radios legend { font-weight: 600; padding: 0; margin-bottom: .2rem; }
.ust-radio { min-height: 44px; align-items: center; }
.ust-result td { font-variant-numeric: tabular-nums; font-weight: 600; }
.ust-calc, .ust-practice { margin: 1.2rem 0 2rem; }
.ust-seg { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1rem; }
.ust-seg-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ust-card { border: 2px solid var(--line); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 0 0 1rem; background: var(--bg); }
.ust-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.ust-desc { margin: 0 0 .3rem; }
.ust-given { margin: 0 0 .6rem; color: var(--ink-2); }
.ust-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .2rem 1.2rem; }
.ust-fields .field { margin-bottom: .4rem; }
.ust-fields .res { display: block; min-height: 1.3em; }
.ust-score { font-weight: 700; font-size: 1.1rem; margin: .8rem 0 0; }
@media (max-width: 520px) { .ust-inwrap { max-width: none; } }

/* practice session (/ueben/sitzung/): setup, active question, results. Uses the site tokens: slate (--ink) borders, amber (--accent) for the bar and the main button. */
.sq-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem; background: #fff; }
.sq-card h2 { margin-top: 0; font-size: 1.25rem; }
.sq-card h2:focus { outline: none; }
.sq-card h2:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sq-field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.sq-field legend, .sq-label { display: block; font-weight: 700; font-size: 1rem; margin: 0 0 .4rem; padding: 0; }
.sq-choice { display: flex; gap: .7rem; align-items: center; padding: .6rem .8rem; margin: 0 0 .45rem; border: 2px solid var(--line); border-radius: 10px; min-height: 48px; cursor: pointer; background: #fff; }
.sq-choice:hover, .sq-choice:focus-within { border-color: var(--ink); }
.sq-choice input { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--ink); margin: 0; }
.sq-choice .n { color: var(--ink-2); }
.sq-hint { margin: .3rem 0 0; }
.sq-field select { font: inherit; min-height: 48px; padding: .4rem .6rem; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; max-width: 28rem; }
.sq-sum { font-size: 1.02rem; margin: .4rem 0 .2rem; }
.sq-go { min-width: 12rem; }
.sq-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; justify-content: space-between; }
.sq-top .qhead { margin: 0; }
.sq-progress { height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; margin: .5rem 0 1rem; }
.sq-progress span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.sq-opts { margin: 0 0 .8rem; }
.sq-opt { display: flex; gap: .7rem; align-items: flex-start; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink-2); border-radius: 10px; padding: .75rem .85rem; margin: 0 0 .55rem; min-height: 52px; cursor: pointer; }
.sq-opt:hover { border-color: var(--ink); background: var(--bg-alt); }
.sq-optkey { flex: none; min-width: 1.5rem; height: 1.5rem; border: 2px solid var(--ink); border-radius: 6px; font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: .1rem; }
.sq-opttext { flex: 1 1 auto; }
.sq-opt .tag { flex: 0 0 100%; font-size: .88rem; font-weight: 700; }
.sq-opt .tag:empty { display: none; }
.sq-opt { flex-wrap: wrap; }
.sq-opt[aria-disabled="true"] { cursor: default; }
.sq-opt[aria-disabled="true"]:hover { background: #fff; border-color: var(--ink-2); }
.sq-opt.is-correct, .sq-opt.is-correct[aria-disabled="true"], .sq-opt.is-correct[aria-disabled="true"]:hover { border-color: var(--ok); background: var(--ok-bg); }
.sq-opt.is-wrong, .sq-opt.is-wrong[aria-disabled="true"], .sq-opt.is-wrong[aria-disabled="true"]:hover { border-color: var(--bad); background: var(--bad-bg); }
.sq-opt.is-correct .tag { color: var(--ok); }
.sq-opt.is-wrong .tag { color: var(--bad); }
.sq-keys { margin: .2rem 0 .6rem; }
.sq-fb { border: 2px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin: .8rem 0 .6rem; }
.sq-fb.ok { border-color: var(--ok); background: var(--ok-bg); }
.sq-fb.bad { border-color: var(--bad); background: var(--bad-bg); }
.sq-fb h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.sq-fb p:last-child { margin-bottom: 0; }
.sq-big { font-size: 1.3rem; margin: .2rem 0 .8rem; }
.sq-meter { position: relative; height: 18px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; margin: .6rem 0 .3rem; overflow: visible; }
.sq-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 999px 0 0 999px; }
.sq-meter-mark { position: absolute; top: -7px; bottom: -7px; width: 4px; margin-left: -2px; background: var(--accent); border: 1px solid var(--ink); border-radius: 2px; }
.sq-mark-label { margin: 0 0 .6rem; }
.sq-verdict { font-weight: 700; margin: 0 0 1rem; }
.sq-verdict.ok { color: var(--ok); }
.sq-verdict.bad { color: var(--bad); }
.sq-note p { margin: 0 0 .6rem; }
.sq-note p:last-child { margin-bottom: 0; }
.sq-review { margin-top: 1.6rem; }
.sq-rev-list { list-style: decimal; padding-left: 1.4rem; margin: 0; }
.sq-rev { border-top: 1px solid var(--line); padding: .8rem 0 .6rem; }
.sq-rev p { margin: 0 0 .4rem; }
.sq-rev-head { font-weight: 700; }
.sq-rev.is-ok .sq-rev-mark { color: var(--ok); }
.sq-rev.is-bad .sq-rev-mark { color: var(--bad); }
.sq-rev-q { font-weight: 600; }
.sq-rev summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
@media (max-width: 520px) { .sq-card { padding: .85rem .8rem; } .sq-big { font-size: 1.15rem; } .sq-go { width: 100%; } .sq-card .qactions .btn { flex: 1 1 100%; } }
@media print { .sq-opt, .sq-card .qactions { break-inside: avoid; } }

/* Turkish and Arabic glossary pages (/tr/, /ar/): logical properties so the Arabic page mirrors by itself; the German terms are marked lang=de dir=ltr in the HTML */
.ml-page { line-height: 1.7; }
[dir="rtl"] .ml-page { line-height: 1.85; font-family: "Geeza Pro", "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", system-ui, -apple-system, Arial, sans-serif; }
.ml-page h1, .ml-page h2 { text-align: start; }
.ml-lead { font-size: 1.12rem; max-width: 72ch; }
.ml-page p { max-width: 72ch; }
.ml-page .table-wrap { max-width: 100%; overflow-x: auto; margin: 1rem 0; }
.ml-page table.data th, .ml-page table.data td { text-align: start; vertical-align: top; }
.ml-search { margin: 1rem 0 .6rem; }
.ml-search label { display: block; font-weight: 700; margin-bottom: .3rem; }
.ml-search input { font: inherit; min-height: 48px; width: 100%; max-width: 28rem; padding: .4rem .7rem; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
.ml-terms .ml-de { font-weight: 700; display: inline-block; }
.ml-terms .ml-say, .ml-terms .ml-src, .ml-terms .ml-area { font-size: .92rem; }
.ml-hear { font: inherit; font-size: .9rem; min-height: 44px; min-width: 44px; padding: .25rem .8rem; margin-inline-start: .5rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.ml-hear:hover { background: var(--accent); }
.ml-pair { margin: .2rem 0; }
.ml-pair summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--link); }
.ml-pair p { margin: .3rem 0 .6rem; font-size: .92rem; }
.ml-related { margin-top: 1.5rem; }
.site-header .lang-switch + .lang-switch { margin-inline-start: .4rem; }
@media (max-width: 720px) {
  .ml-terms thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ml-terms, .ml-terms tbody, .ml-terms tr, .ml-terms th, .ml-terms td { display: block; width: 100%; }
  .ml-terms tr { border: 2px solid var(--line); border-radius: 12px; padding: .6rem .8rem; margin: 0 0 .8rem; background: #fff; }
  .ml-terms tr[hidden] { display: none; }
  .ml-terms th.ml-term { border: 0; padding: 0 0 .4rem; font-size: 1.1rem; background: transparent; }
  .ml-terms td { border: 0; padding: .25rem 0; }
  .ml-terms td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
  .ml-terms td:empty { display: none; }
  .ml-page .table-wrap.ml-wrap { overflow-x: visible; }
}
details.faq summary { min-height: 44px; display: flex; align-items: center; }
