/* Zweisprachiger Fragen-Trainer (Deutsch original + englische Übersetzung) – nautik-trainer.de/en/ */

.bi-note {
  display: flex; gap: .85rem; align-items: flex-start;
  margin: 0 0 1.4rem; padding: .95rem 1.15rem;
  border: 1px solid rgba(240,184,64,.55); border-left: 4px solid #f0b840;
  border-radius: 12px; background: rgba(40,28,4,.72);
}
.bi-note svg { flex-shrink: 0; width: 32px; height: auto; margin-top: .2rem; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.bi-note strong { display: block; color: #f0b840; font-size: .93rem; margin-bottom: .2rem; }
.bi-note p { margin: 0; color: var(--text2); font-size: .85rem; line-height: 1.6; }

/* ── Zusatzkasten britische Prüfung (en/src.php) ── */
.bi-note.bi-uk { border-color: rgba(0,212,255,.45); border-left-color: var(--accent); background: rgba(2,12,26,.8); }
.bi-note.bi-uk svg { width: 36px; }
.bi-note.bi-uk strong { color: #fff; }
.bi-uk-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.bi-uk-links a { font-size: .78rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(0,212,255,.4); background: rgba(0,212,255,.08); color: var(--accent); text-decoration: none; }
.bi-uk-links a:hover { border-color: var(--accent); }
.bi-uk-links a.main { background: var(--accent); color: #001018; border-color: var(--accent); }

/* ── Startansicht: drei Stufen ── */
.bi-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.bi-step {
  background: rgba(2,12,26,.72); border: 1px solid rgba(0,212,255,.22); border-radius: 14px;
  padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .55rem;
}
.bi-step-head { display: flex; align-items: center; gap: .6rem; }
.bi-step-num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,212,255,.15); border: 1px solid rgba(0,212,255,.45); color: var(--accent); font-weight: 800;
}
.bi-step h2 { font-size: 1.02rem; color: #fff; margin: 0; }
.bi-step > p { font-size: .83rem; color: var(--text2); line-height: 1.55; margin: 0; }
.bi-step .bi-lang { font-size: .74rem; color: #f0b840; font-weight: 700; letter-spacing: .02em; }

.bi-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .3rem; }
.bi-list button, .bi-grid button {
  font: inherit; text-align: left; cursor: pointer;
  background: rgba(17,24,39,.6); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: .5rem .75rem; font-size: .82rem; line-height: 1.35;
  transition: border-color .15s, background .15s;
}
.bi-list button:hover, .bi-grid button:hover { border-color: var(--accent); background: rgba(0,212,255,.07); }
.bi-list button small { display: block; color: #d3dee9; font-size: .72rem; margin-top: .1rem; }
.bi-list button .bi-badge { float: right; font-size: .7rem; color: var(--accent); font-weight: 700; }
.bi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .4rem; margin-top: .3rem; }
.bi-grid button { text-align: center; font-weight: 700; }
.bi-setlabel { margin-top: .7rem; font-size: .84rem; font-weight: 700; color: #fff; }
.bi-setlabel:first-child { margin-top: .2rem; }
.bi-setlabel small { display: block; font-weight: 400; font-size: .72rem; color: #d3dee9; }
.bi-grid button.done-pass { border-color: var(--success); }
.bi-grid button.done-fail { border-color: var(--error); }
.bi-retry { border-color: rgba(239,68,68,.55) !important; }
.bi-retry:disabled { opacity: .45; cursor: default; }

/* ── Frage ── */
.bi-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; font-size: .8rem; color: #d3dee9; }
.bi-bar label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; color: var(--text2); }
.bi-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }
.bi-timer.low { color: var(--warning); }

.bi-q-de { font-size: 1.08rem; font-weight: 600; line-height: 1.5; color: #fff; }
.bi-en { display: block; margin-top: .25rem; font-size: inherit; line-height: 1.45; color: #d6f1fb; font-style: italic; }
.bi-q-en { margin-bottom: 1rem; font-size: 1.08rem; font-weight: 500; }
.bi-hide-en .bi-en { display: none; }
.bi-q-de + .bi-q-en { margin-top: .35rem; }
.bi-hide-en .bi-q-de { margin-bottom: 1rem; }

.bi-opt { align-items: flex-start !important; text-align: left; font: inherit; color: inherit; width: 100%; }
.bi-opt .option-letter { margin-top: .1rem; }
.bi-opt-de { display: block; font-size: .95rem; line-height: 1.42; color: #fff; }
.bi-opt[disabled] { cursor: default; }
.bi-opt.correct, .bi-opt.wrong { opacity: 1; }

.bi-reveal {
  font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
  background: rgba(240,184,64,.12); color: #f0b840; border: 1px solid rgba(240,184,64,.45);
  border-radius: 999px; padding: .25rem .8rem; margin: .1rem 0 .9rem;
}
.bi-reveal:hover { background: rgba(240,184,64,.22); }

.bi-expl {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 10px;
  background: rgba(0,212,255,.06); border: 1px solid rgba(0,212,255,.22); font-size: .86rem; line-height: 1.6; color: var(--text2);
}
.bi-expl strong { color: #fff; }
.bi-expl details { margin-top: .5rem; }
.bi-expl summary { cursor: pointer; color: var(--accent); font-size: .8rem; font-weight: 600; }
.bi-expl details p { margin-top: .35rem; color: #eaf5fc; }
.bi-verdict { font-weight: 800; margin-bottom: .3rem; }
.bi-verdict.ok { color: var(--success); }
.bi-verdict.no { color: var(--error); }

.bi-nav { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }

/* ── Glossar-Markierung in deutschen Texten ── */
.gl { border-bottom: 1px dotted rgba(240,184,64,.85); cursor: help; }
.gl:hover, .gl.on { background: rgba(240,184,64,.16); border-radius: 3px; }
.bi-pop {
  position: absolute; z-index: 10050; max-width: 280px;
  background: #0d1a2e; border: 1px solid #f0b840; border-radius: 9px;
  padding: .5rem .7rem; font-size: .82rem; line-height: 1.45; color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.6);
}
.bi-pop b { color: #f0b840; display: block; font-size: .78rem; }
.bi-pop a { display: block; margin-top: .3rem; font-size: .72rem; }
.bi-nogl .gl { border-bottom: none; cursor: inherit; }
.bi-nogl .gl:hover { background: none; }

/* ── Auswertung ── */
.bi-review { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.bi-review-item { background: rgba(17,24,39,.7); border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: 8px; padding: .8rem 1rem; }
.bi-review-item.no { border-left-color: var(--error); }
.bi-review-item .bi-q-de { font-size: .92rem; }
.bi-review-item .bi-en { font-size: .92rem; }
.bi-ans { margin-top: .45rem; font-size: .84rem; }
.bi-ans .ok { color: var(--success); font-weight: 600; }
.bi-ans .no { color: #ff8a8a; text-decoration: line-through; }

/* ── Glossar-Seite ── */
.gl-search { width: 100%; padding: .65rem .9rem; border-radius: 9px; border: 1px solid var(--border); background: rgba(17,24,39,.8); color: #fff; font: inherit; font-size: .95rem; margin-bottom: 1rem; }
.gl-group h2 { font-size: 1rem; color: #ec7a28; margin: 1.4rem 0 .5rem; }
.gl-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.gl-table th, .gl-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid rgba(30,58,95,.7); vertical-align: top; }
.gl-table th { color: #d3dee9; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.gl-table td:first-child { color: #fff; font-weight: 600; width: 46%; }
.gl-table td:last-child { color: #d6f1fb; }

@media (max-width: 640px) {
  .container { padding: 1.2rem 1rem; }
  .question-card { padding: 1.1rem 1rem; }
  .bi-q-de, .bi-q-en { font-size: 1rem; }
}

/* ── Offene Fragen (SKS): Musterantwort + Selbsteinschätzung ── */
.bi-show { margin-top: .4rem; }
.bi-model { margin-top: .4rem; padding: .85rem 1rem; border-radius: 10px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.35); }
.bi-model-label { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--success); margin-bottom: .3rem; }
.bi-model-de { font-size: .95rem; line-height: 1.55; color: #fff; }
.bi-rate-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .9rem; font-size: .85rem; color: var(--text2); }
.bi-rate { font: inherit; font-size: .82rem; cursor: pointer; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(17,24,39,.6); color: var(--text); }
.bi-rate:hover { border-color: var(--accent); }
.bi-rate.on.r2 { background: rgba(34,197,94,.2); border-color: var(--success); }
.bi-rate.on.r1 { background: rgba(245,158,11,.2); border-color: var(--warning); }
.bi-rate.on.r0 { background: rgba(239,68,68,.18); border-color: var(--error); }
.bi-grid button.done-done { border-color: var(--accent); }
