/* Tierretter Academy – Design im Stil Tiernotruf Saarland (Navy, Hi-Vis-Gelb, Rettungsrot) */
:root {
  --tr-navy: #12274a; --tr-navy-d: #0b1b36; --tr-navy-l: #1f3b6b;
  --tr-yellow: #ffd400; --tr-yellow-l: #fff6c2;
  --tr-red: #d7263d; --tr-red-l: #fde8eb;
  --tr-green: #1e8e5a; --tr-green-l: #e3f5ec;
  --tr-bg: #f3f5f9; --tr-card: #ffffff; --tr-line: #dfe4ee; --tr-muted: #5d6b82; --tr-text: #17223b;
  --bs-primary: #12274a; --bs-primary-rgb: 18,39,74; --bs-link-color: #1f4fa3; --bs-link-hover-color: #12274a;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--tr-bg); color: var(--tr-text); font-size: 1.02rem; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.btn-primary { --bs-btn-bg: var(--tr-navy); --bs-btn-border-color: var(--tr-navy); --bs-btn-hover-bg: var(--tr-navy-l); --bs-btn-hover-border-color: var(--tr-navy-l); --bs-btn-active-bg: var(--tr-navy-d); --bs-btn-disabled-bg: #6c7a93; --bs-btn-disabled-border-color: #6c7a93; }
.btn-outline-primary { --bs-btn-color: var(--tr-navy); --bs-btn-border-color: var(--tr-navy); --bs-btn-hover-bg: var(--tr-navy); --bs-btn-hover-border-color: var(--tr-navy); }
.btn-warning { --bs-btn-bg: var(--tr-yellow); --bs-btn-border-color: var(--tr-yellow); --bs-btn-color: var(--tr-navy-d); --bs-btn-hover-bg: #ffe14d; --bs-btn-hover-color: var(--tr-navy-d); }
.text-bg-danger { background: var(--tr-red) !important; }

/* Navigation */
.tr-nav { background: var(--tr-navy); border-bottom: 4px solid var(--tr-yellow); }
.tr-nav .nav-link { color: rgba(255,255,255,.82); font-weight: 500; white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199px) { .tr-nav .nav-link { font-size: .9rem; padding-left: .4rem !important; padding-right: .4rem !important; } .tr-nav .nav-link i { display: none; } }
.tr-nav .nav-link.active, .tr-nav .nav-link:hover { color: #fff; }
.tr-nav .nav-link.active { box-shadow: inset 0 -3px 0 var(--tr-yellow); }
.tr-logo { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tr-red); color: #fff; font-size: 1.1rem; }
.tr-logo-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; }
.tr-admin-link { color: var(--tr-yellow) !important; }
.tr-subnav { background: #fff; border-bottom: 1px solid var(--tr-line); }
.tr-subnav .container-xl { display: flex; gap: .25rem; overflow-x: auto; }
.tr-subnav a { padding: .7rem .9rem; white-space: nowrap; color: var(--tr-muted); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.tr-subnav a.active, .tr-subnav a:hover { color: var(--tr-navy); border-bottom-color: var(--tr-red); }
.tr-footer { background: var(--tr-navy-d); color: rgba(255,255,255,.7); padding: 1.2rem 0; margin-top: 3rem; }
.tr-footer a { color: rgba(255,255,255,.85); }

/* Allgemein */
.tr-card { border: 1px solid var(--tr-line); border-radius: 14px; background: var(--tr-card); }
.tr-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--tr-red); }
.tr-progress { height: 10px; border-radius: 6px; background: #e6eaf2; }
.tr-progress .progress-bar { background: linear-gradient(90deg, var(--tr-navy-l), var(--tr-navy)); border-radius: 6px; }
.tr-progress-lg { height: 14px; }
.tr-auth main { display: flex; align-items: center; }
.tr-privacy { background: var(--tr-bg); border: 1px solid var(--tr-line); border-radius: 10px; padding: 1rem; }
.tr-table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tr-muted); }
.tr-stat-inline { text-align: right; } .tr-stat-inline span { display: block; font-size: .8rem; color: var(--tr-muted); } .tr-stat-inline strong { font-size: 1.4rem; color: var(--tr-navy); }

/* Dashboard */
.tr-hero { background: var(--tr-navy); color: #fff; border-radius: 18px; padding: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.tr-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,212,0,.12); }
.tr-hero .tr-kicker { color: var(--tr-yellow); }
.tr-hero .btn { position: relative; z-index: 1; text-align: left; }
.tr-stat { background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; padding: 1rem 1.2rem; height: 100%; }
.tr-stat span { display: block; font-size: .82rem; color: var(--tr-muted); } .tr-stat strong { font-size: 1.45rem; color: var(--tr-navy); }
.tr-path { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.tr-path li { background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; padding: 1rem; display: flex; gap: .8rem; align-items: flex-start; }
.tr-path li > i { font-size: 1.5rem; color: #9aa6ba; }
.tr-path li strong { display: block; } .tr-path li span { font-size: .85rem; color: var(--tr-muted); }
.tr-path li.current { border-color: var(--tr-yellow); box-shadow: 0 0 0 3px var(--tr-yellow-l); } .tr-path li.current > i { color: var(--tr-navy); }
.tr-path li.done { background: var(--tr-green-l); border-color: #b9e2cd; } .tr-path li.done > i { color: var(--tr-green); }
.tr-course-card { display: block; background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; padding: 1.2rem; color: inherit; text-decoration: none; height: 100%; transition: transform .12s, box-shadow .12s; }
.tr-course-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18,39,74,.1); color: inherit; }
.tr-course-icon { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tr-navy); color: var(--tr-yellow); font-size: 1.4rem; }
.tr-course-icon-lg { width: 72px; height: 72px; font-size: 2rem; border-radius: 18px; }
.tr-course-head { display: flex; gap: 1.2rem; align-items: center; background: #fff; border: 1px solid var(--tr-line); border-radius: 18px; padding: 1.5rem; }
.tr-lesson-list { list-style: none; padding: 0; }
.tr-lesson-list li a, .tr-lesson-list li > span { display: flex; gap: .7rem; align-items: center; padding: .6rem .8rem; border-radius: 10px; color: inherit; text-decoration: none; }
.tr-lesson-list li a:hover { background: var(--tr-bg); }
.tr-lesson-list li i { color: #9aa6ba; font-size: 1.1rem; }
.tr-lesson-list li.done i { color: var(--tr-green); } .tr-lesson-list li.started i { color: var(--tr-navy-l); }
.tr-quiz-item { border-top: 1px dashed var(--tr-line); margin-top: .4rem; padding-top: .4rem; }
.tr-quiz-item i { color: var(--tr-red) !important; } .tr-quiz-item.done i { color: var(--tr-green) !important; } .tr-quiz-item.locked { opacity: .6; }
.tr-mod-done { border-color: #b9e2cd; }

/* Lektion */
.tr-side { top: 90px; background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; padding: 1rem; }
.tr-side-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.tr-side-list a { display: flex; gap: .5rem; padding: .45rem .5rem; border-radius: 8px; color: inherit; text-decoration: none; }
.tr-side-list li.active a { background: var(--tr-navy); color: #fff; } .tr-side-list li.done i { color: var(--tr-green); }
.tr-side-list li.active.done i { color: var(--tr-yellow); }
.tr-side-quiz { border-top: 1px dashed var(--tr-line); margin-top: .4rem; padding-top: .4rem; }
.tr-lesson-head { background: #fff; border: 1px solid var(--tr-line); border-left: 0; border-radius: 18px; padding: 1.8rem; box-shadow: inset 6px 0 0 var(--tr-red); }
.tr-block { margin: 0 0 1.6rem; }
.tr-prose { line-height: 1.7; }
.tr-prose p { margin-bottom: .9rem; }
.tr-prose h3 { font-size: 1.15rem; color: var(--tr-navy); margin: 1.4rem 0 .6rem; }
.tr-prose ul, .tr-prose ol { padding-left: 1.3rem; } .tr-prose li { margin-bottom: .35rem; }
.tr-prose strong { color: var(--tr-navy-d); }
.tr-h2 { font-size: 1.45rem; color: var(--tr-navy); border-bottom: 3px solid var(--tr-yellow); padding-bottom: .35rem; margin-top: 2.2rem; }
.tr-h3 { font-size: 1.18rem; color: var(--tr-navy); margin-top: 1.6rem; }
.tr-caption { font-size: .88rem; color: var(--tr-muted); margin-top: .5rem; }
.tr-ig-title { font-size: 1.08rem; font-weight: 700; color: var(--tr-navy); margin-bottom: .8rem; }

/* Hinweisboxen */
.tr-callout { border-radius: 14px; padding: 1rem 1.2rem; border: 1px solid; }
.tr-callout-head { font-weight: 700; margin-bottom: .35rem; display: flex; gap: .5rem; align-items: center; }
.tr-callout .tr-prose p:last-child { margin-bottom: 0; }
.tr-callout-merke { background: var(--tr-yellow-l); border-color: #f0d65a; } .tr-callout-merke .tr-callout-head { color: #6b5600; }
.tr-callout-warn { background: #fff1e0; border-color: #f4c38b; } .tr-callout-warn .tr-callout-head { color: #9a4b00; }
.tr-callout-stop { background: var(--tr-red-l); border-color: #f2a7b2; } .tr-callout-stop .tr-callout-head { color: var(--tr-red); }
.tr-callout-info { background: #e9f1ff; border-color: #b9cdf3; } .tr-callout-info .tr-callout-head { color: var(--tr-navy-l); }
.tr-callout-law { background: #f1f0fb; border-color: #cbc7ec; } .tr-callout-law .tr-callout-head { color: #3e3887; }
.tr-callout-praxis { background: var(--tr-green-l); border-color: #b9e2cd; } .tr-callout-praxis .tr-callout-head { color: var(--tr-green); }

/* Infografiken */
.tr-ig-cards { display: grid; gap: .9rem; }
.tr-ig-cards.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tr-ig-cards.cols-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tr-ig-cards.cols-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tr-ig-cards.cols-1 { grid-template-columns: 1fr; }
.tr-ig-card { display: flex; gap: .8rem; background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; padding: 1rem; }
.tr-ig-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tr-navy); color: var(--tr-yellow); font-size: 1.15rem; }
.tr-ig-card-t { font-weight: 700; color: var(--tr-navy-d); margin-bottom: .2rem; }
.tr-ig-card-d { font-size: .93rem; color: #33405a; }
.tr-ig-card.tone-red { background: var(--tr-red-l); border-color: #f2a7b2; } .tr-ig-card.tone-red .tr-ig-icon { background: var(--tr-red); color: #fff; }
.tr-ig-card.tone-green { background: var(--tr-green-l); border-color: #b9e2cd; } .tr-ig-card.tone-green .tr-ig-icon { background: var(--tr-green); color: #fff; }
.tr-ig-card.tone-yellow { background: var(--tr-yellow-l); border-color: #f0d65a; } .tr-ig-card.tone-yellow .tr-ig-icon { background: var(--tr-yellow); color: var(--tr-navy-d); }
.tr-ig-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; }
.tr-ig-stat { background: var(--tr-navy); color: #fff; border-radius: 14px; padding: 1.1rem; }
.tr-ig-stat strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--tr-yellow); }
.tr-ig-stat span { font-size: .9rem; opacity: .9; }
.tr-ig-stat.tone-1 { background: var(--tr-navy-l); } .tr-ig-stat.tone-2 { background: var(--tr-red); } .tr-ig-stat.tone-2 strong { color: #fff; }
.tr-ig-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; counter-reset: s; }
.tr-ig-steps li { counter-increment: s; background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; padding: 2.4rem .9rem .9rem; position: relative; }
.tr-ig-steps li::before { content: counter(s); position: absolute; top: .7rem; left: .9rem; width: 28px; height: 28px; border-radius: 50%; background: var(--tr-red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.tr-ig-step-t { font-weight: 700; color: var(--tr-navy-d); } .tr-ig-step-d { font-size: .9rem; color: #33405a; margin-top: .2rem; }
.tr-ig-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.tr-ig-col { border-radius: 14px; padding: 1rem 1.1rem; border: 1px solid var(--tr-line); background: #fff; }
.tr-ig-col ul { margin: .4rem 0 0; padding-left: 1.1rem; } .tr-ig-col li { margin-bottom: .3rem; }
.tr-ig-col-head { font-weight: 700; }
.tr-ig-col.tone-good { background: var(--tr-green-l); border-color: #b9e2cd; } .tr-ig-col.tone-good .tr-ig-col-head { color: var(--tr-green); }
.tr-ig-col.tone-bad { background: var(--tr-red-l); border-color: #f2a7b2; } .tr-ig-col.tone-bad .tr-ig-col-head { color: var(--tr-red); }
.tr-ig-timeline { border-left: 3px solid var(--tr-navy); margin-left: .5rem; }
.tr-ig-tl-item { display: flex; gap: 1rem; padding: 0 0 1rem 1.2rem; position: relative; }
.tr-ig-tl-item::before { content: ""; position: absolute; left: -9px; top: .3rem; width: 15px; height: 15px; border-radius: 50%; background: var(--tr-yellow); border: 3px solid var(--tr-navy); }
.tr-ig-tl-when { flex: none; width: 110px; font-weight: 700; color: var(--tr-red); font-size: .9rem; }
.tr-ig-tl-item p { margin: .2rem 0 0; font-size: .92rem; }

/* Ablaufdiagramm */
.tr-flow { background: #fff; border: 1px solid var(--tr-line); border-radius: 18px; padding: 1.3rem; }
.tr-flow-node { display: flex; gap: .8rem; position: relative; padding: .85rem 1rem; border-radius: 12px; border: 2px solid var(--tr-navy); background: #fff; margin-bottom: 1.6rem; }
.tr-flow-node:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -1.6rem; height: 1.6rem; border-left: 3px solid var(--tr-navy); }
.tr-flow-node:not(:last-child)::before { content: ""; position: absolute; left: calc(50% - 6px); bottom: -.55rem; border: 7px solid transparent; border-top-color: var(--tr-navy); z-index: 1; }
.tr-flow-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--tr-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.tr-flow-title { font-weight: 700; color: var(--tr-navy-d); } .tr-flow-text { font-size: .93rem; color: #33405a; margin-top: .15rem; }
.tr-flow-node.t-start, .tr-flow-node.t-end { background: var(--tr-navy); border-color: var(--tr-navy); border-radius: 40px; justify-content: center; text-align: center; }
.tr-flow-node.t-start .tr-flow-title, .tr-flow-node.t-end .tr-flow-title { color: #fff; } .tr-flow-node.t-start .tr-flow-text, .tr-flow-node.t-end .tr-flow-text { color: rgba(255,255,255,.85); }
.tr-flow-node.t-end { background: var(--tr-green); border-color: var(--tr-green); }
.tr-flow-node.t-decision { border-color: var(--tr-yellow); background: var(--tr-yellow-l); border-style: dashed; }
.tr-flow-node.t-alarm { border-color: var(--tr-red); background: var(--tr-red-l); } .tr-flow-node.t-alarm .tr-flow-num { background: var(--tr-red); }
.tr-flow-branches { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem; font-size: .9rem; }
.tr-flow-branches > div { background: #fff; border-radius: 8px; padding: .45rem .6rem; border: 1px solid var(--tr-line); }
.tr-flow-branches .yes b { color: var(--tr-green); } .tr-flow-branches .no b { color: var(--tr-red); }
.tr-flow-body { flex: 1; }

/* Handgriff-Anleitung */
.tr-proc { background: #fff; border: 1px solid var(--tr-line); border-radius: 18px; overflow: hidden; }
.tr-proc-head { display: flex; gap: 1rem; align-items: center; background: var(--tr-navy); color: #fff; padding: 1.1rem 1.3rem; }
.tr-proc-head > i { font-size: 1.8rem; color: var(--tr-yellow); } .tr-proc-head h3 { font-size: 1.15rem; margin: 0; } .tr-proc-head p { margin: .2rem 0 0; opacity: .85; font-size: .93rem; }
.tr-proc-equip { padding: .8rem 1.3rem; background: var(--tr-bg); border-bottom: 1px solid var(--tr-line); font-size: .93rem; }
.tr-proc-warn { padding: .8rem 1.3rem; background: var(--tr-red-l); border-bottom: 1px solid #f2a7b2; font-size: .93rem; }
.tr-proc-warn strong { color: var(--tr-red); } .tr-proc-warn ul { margin: .3rem 0 0; }
.tr-proc-steps { list-style: none; counter-reset: p; padding: .5rem 1.3rem 1rem; margin: 0; }
.tr-proc-steps > li { counter-increment: p; display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1rem 0 1rem 3rem; border-bottom: 1px solid var(--tr-line); position: relative; }
.tr-proc-steps > li:last-child { border-bottom: 0; }
.tr-proc-steps > li::before { content: counter(p); position: absolute; left: 0; top: 1rem; width: 36px; height: 36px; border-radius: 50%; background: var(--tr-yellow); color: var(--tr-navy-d); display: grid; place-items: center; font-weight: 800; }
.tr-proc-steps > li.has-img { grid-template-columns: minmax(180px, 280px) 1fr; }
.tr-proc-steps figure { margin: 0; } .tr-proc-steps img { width: 100%; border-radius: 10px; border: 1px solid var(--tr-line); }
.tr-proc-st { font-weight: 700; color: var(--tr-navy-d); } .tr-proc-sd { margin-top: .2rem; }
.tr-proc-tip { margin-top: .5rem; font-size: .9rem; background: var(--tr-green-l); border-radius: 8px; padding: .4rem .6rem; color: #145c3b; }
.tr-proc-mis { margin-top: .4rem; font-size: .9rem; background: var(--tr-red-l); border-radius: 8px; padding: .4rem .6rem; color: #8f1526; }
@media (max-width: 640px) { .tr-proc-steps > li.has-img { grid-template-columns: 1fr; } }

/* Anatomie */
.tr-anatomy { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.2rem; background: #fff; border: 1px solid var(--tr-line); border-radius: 18px; padding: 1.2rem; }
.tr-anatomy-stage { position: relative; } .tr-anatomy-stage img { width: 100%; display: block; }
.tr-hs { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: var(--tr-red); color: #fff; font-weight: 700; font-size: .8rem; box-shadow: 0 2px 6px rgba(0,0,0,.3); cursor: pointer; padding: 0; }
.tr-hs.on, .tr-hs:hover { background: var(--tr-yellow); color: var(--tr-navy-d); }
.tr-anatomy-legend { margin: 0; padding-left: 1.4rem; font-size: .93rem; max-height: 520px; overflow: auto; }
.tr-anatomy-legend li { padding: .4rem .5rem; border-radius: 8px; cursor: pointer; }
.tr-anatomy-legend li span { display: block; color: #33405a; font-size: .88rem; }
.tr-anatomy-legend li.on { background: var(--tr-yellow-l); }
@media (max-width: 768px) { .tr-anatomy { grid-template-columns: 1fr; } }

/* Mindmap */
.tr-mindmap { background: #fff; border: 1px solid var(--tr-line); border-radius: 18px; padding: .5rem; }
.tr-mindmap svg { width: 100%; height: auto; display: block; }
.tr-mindmap-list { display: none; background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; padding: 1rem; }
.tr-mindmap-list ul { padding-left: 1.1rem; margin: .3rem 0; }
@media (max-width: 720px) { .tr-mindmap { display: none; } .tr-mindmap-list { display: block; } }

/* Video, Gesetze, Checkliste, Bild */
.tr-video { border-radius: 16px; overflow: hidden; background: var(--tr-navy-d); color: #fff; aspect-ratio: 16 / 9; position: relative; }
.tr-video-consent { position: absolute; inset: 0; display: flex; gap: 1rem; align-items: center; padding: 1.5rem; background: linear-gradient(135deg, var(--tr-navy-d), var(--tr-navy-l)); }
.tr-video-consent > i { font-size: 3rem; color: #ff3b3b; }
.tr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tr-law { background: #f1f0fb; border: 1px solid #cbc7ec; border-radius: 14px; padding: 1rem 1.2rem; }
.tr-law-head { font-weight: 700; color: #3e3887; margin-bottom: .4rem; }
.tr-law ul { list-style: none; padding: 0; margin: 0; } .tr-law li { padding: .35rem 0; border-top: 1px solid #dddaf3; } .tr-law li:first-child { border-top: 0; }
.tr-law a { font-weight: 600; } .tr-law li span { display: block; font-size: .88rem; color: var(--tr-muted); }
.tr-checklist { background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; padding: 1rem 1.2rem; }
.tr-checklist-head { font-weight: 700; color: var(--tr-navy); margin-bottom: .4rem; }
.tr-checklist ul { list-style: none; padding: 0; margin: 0; columns: 2 280px; } .tr-checklist li { break-inside: avoid; padding: .25rem 0; }
.tr-checklist label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.tr-figure img { width: 100%; border-radius: 14px; border: 1px solid var(--tr-line); }
.tr-figure figcaption { font-size: .88rem; color: var(--tr-muted); margin-top: .4rem; }
.tr-content-table { background: #fff; border-radius: 12px; overflow: hidden; }
.tr-content-table thead th { background: var(--tr-navy); color: #fff; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.tr-content-table caption { caption-side: top; font-weight: 700; color: var(--tr-navy); }

/* Wissens-Check und Quiz */
.tr-check { background: #fff; border: 2px solid var(--tr-navy); border-radius: 16px; padding: 1.1rem 1.2rem; }
.tr-check-head { font-weight: 700; color: var(--tr-red); margin-bottom: .3rem; }
.tr-check-q { font-weight: 600; font-size: 1.05rem; }
.tr-opt { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .8rem; border: 1px solid var(--tr-line); border-radius: 10px; margin-bottom: .45rem; cursor: pointer; background: #fff; }
.tr-opt:hover { border-color: var(--tr-navy-l); }
.tr-opt.correct { background: var(--tr-green-l); border-color: var(--tr-green); }
.tr-opt.wrong { background: var(--tr-red-l); border-color: var(--tr-red); }
.tr-check-expl { margin-top: .6rem; padding: .7rem .9rem; border-radius: 10px; background: var(--tr-bg); font-size: .95rem; }
.tr-check.answered { border-color: var(--tr-green); }
.tr-req { list-style: none; padding: 0; } .tr-req li.ok { color: var(--tr-green); } .tr-req li.ok i::before { content: "\f26a"; }
.tr-quiz-q { background: #fff; border: 1px solid var(--tr-line); border-radius: 16px; padding: 1.2rem; margin-bottom: 1rem; }
.tr-quiz-q .tr-qnum { font-weight: 700; color: var(--tr-red); font-size: .85rem; }
.tr-timer { position: sticky; top: 74px; z-index: 5; background: var(--tr-navy); color: #fff; border-radius: 12px; padding: .6rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.tr-timer strong { font-size: 1.3rem; color: var(--tr-yellow); font-variant-numeric: tabular-nums; }
.tr-result { border-radius: 18px; padding: 1.6rem; color: #fff; }
.tr-result.pass { background: var(--tr-green); } .tr-result.fail { background: var(--tr-red); }
.tr-ev { font-size: .82rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; background: var(--tr-bg); white-space: nowrap; }
.tr-ev-lesson_complete, .tr-ev-certificate_issued { background: var(--tr-green-l); color: var(--tr-green); }
.tr-ev-quiz_submit, .tr-ev-exam_submit { background: var(--tr-yellow-l); color: #6b5600; }
.tr-ev-login_failed, .tr-ev-exam_timeout { background: var(--tr-red-l); color: var(--tr-red); }

/* Admin */
.is-admin .tr-card .table { margin-bottom: 0; }
.tr-block-row { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--tr-line); border-radius: 12px; padding: .8rem; margin-bottom: .6rem; }
.tr-block-row .tr-block-type { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--tr-navy); color: var(--tr-yellow); display: grid; place-items: center; font-size: 1.2rem; }
.tr-block-preview { max-height: 220px; overflow: hidden; position: relative; font-size: .9rem; }
.tr-block-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(transparent, #fff); }
.tr-json { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.tr-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.tr-media-grid figure { background: #fff; border: 1px solid var(--tr-line); border-radius: 10px; padding: .4rem; margin: 0; font-size: .78rem; }
.tr-media-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }

/* Druck (Zertifikat) */
@media print { .tr-nav, .tr-footer, .tr-subnav, .no-print { display: none !important; } body { background: #fff; } main { padding: 0 !important; } }

.tr-missing { border: 2px dashed #c5cbd8; border-radius: 12px; padding: 1rem; color: var(--tr-muted); background: #fff; font-size: .9rem; }

/* Quellen am Ende einer Lektion */
.tr-sources { margin-top: 2.5rem; padding: 1.1rem 1.25rem; border-top: 3px solid var(--tr-navy, #12274a); background: #f6f8fb; border-radius: .5rem; font-size: .9rem; }
.tr-sources-head { font-weight: 700; color: var(--tr-navy, #12274a); margin-bottom: .5rem; }
.tr-sources ol { margin: 0; padding-left: 1.4rem; }
.tr-sources li { margin-bottom: .3rem; word-break: break-word; }
.tr-sources a { color: #12274a; }
.tr-sources-note { color: #5b6b80; }
.tr-sources-foot { margin: .6rem 0 0; color: #5b6b80; font-size: .82rem; }
