/* Übungsmodus Kursdreieck (ueben.php) */
.ngu-tool { cursor: move; touch-action: none; }
.ngu-tool .ngu-rot { cursor: grab; }
.ngu-tool.ngu-drag { cursor: grabbing; }
.ngu-tool.ngu-drag .ngu-body { fill-opacity: .26; }
svg.ngu-pen, svg.ngu-pen .ngu-tool { cursor: crosshair; touch-action: none; }

.ngu-bar { display: flex; flex-wrap: wrap; gap: .45rem .9rem; align-items: center; margin: .7rem 0 .2rem; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); line-height: 1; }
.ngu-grp { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ngu-l { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-right: .15rem; }
.ngu-bar .ng-b.on { background: #39ff14; color: #04140a; text-shadow: none; }
.ngu-bar .ng-b.sec.on { background: #00e5ff; color: #04121a; }
.ngu-bar .ng-b.warn { border-color: #f87171; color: #fff; background: #b91c1c; text-shadow: none; box-shadow: none; }
.ngu-mnote { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: .8rem; line-height: 1.45; color: var(--text2); }
.ngu-mnote span { flex: 1; min-width: 220px; }

/* Prüfungsausschnitt zum Ansehen */
body.ngu-pa-offen { overflow: hidden; }
.ngu-pa { position: fixed; inset: 0; z-index: 2147483000; background: rgba(2,8,20,.82); display: flex; align-items: center; justify-content: center; padding: 12px; }
.ngu-pa-box { display: flex; flex-direction: column; width: min(1100px, 100%); max-height: 100%; background: var(--card, #0f1c30); border: 1px solid var(--border, #2b4a6f); border-radius: 12px; overflow: hidden; }
.ngu-pa-kopf { display: flex; gap: .8rem; align-items: flex-start; justify-content: space-between; padding: .7rem .9rem; color: var(--text2, #cbd5e1); font-size: .82rem; line-height: 1.45; }
.ngu-pa-kopf strong { display: block; color: #fff; font-size: .95rem; }
.ngu-pa-karte { position: relative; flex: 1; min-height: 0; background: #fff; line-height: 0; }
.ngu-pa-karte svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 140px); touch-action: none; cursor: grab; }
.ngu-pa-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.ngu-mnote strong { color: #67e8f9; }
.ngu-ang { cursor: move; }
.ngu-help { flex-basis: 100%; font-size: .82rem; line-height: 1.55; color: var(--text2); }
.ngu-help summary { cursor: pointer; font-weight: 800; color: var(--accent); }
.ngu-help ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.ngu-help li { margin: .2rem 0; }
.ngu-help strong { color: #fff; }

/* verdeckte Musterlösung */
.ngu-zu .ng-a, .ngu-zu .ng-html, .ngu-zu .ng-calcwrap, .ngu-zu .ng-calc-note, .ngu-zu .ng-how, .ngu-zu .ng-merk, .ngu-zu .ng-tipp { display: none; }
.ngu-box { margin: .5rem 0 .7rem; padding: .6rem .8rem; border-radius: 8px; background: rgba(0,229,255,.06); border: 1px solid rgba(0,229,255,.35); border-left: 4px solid #00e5ff; }
.ngu-h { color: #67e8f9; font-weight: 800; margin-bottom: .2rem; }
.ngu-box p { margin: .2rem 0 .5rem; font-size: .86rem; }
.ngu-box strong { color: #fff; }
.ngu-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ngu-in { flex: 1; min-width: 160px; font: inherit; font-size: .9rem; padding: .4rem .6rem; border-radius: 8px; border: 1px solid #2b4a6f; background: #0b1626; color: #fff; }
.ngu-in:focus { outline: none; border-color: #00e5ff; }
.ngu-res { font-size: .86rem; font-weight: 700; }
.ngu-res:empty { display: none; }
.ngu-res.ok { margin-top: .45rem; color: #4ade80; }
.ngu-res.nok { margin-top: .45rem; color: #fca5a5; }
