/* =====================================================================
   Fortis – Theme V2: leuchtendes Gold · cremiges Weiss · HUD-Look
   Wird NACH style.css geladen und überschreibt Farben/Effekte.
   ===================================================================== */
:root {
  --gold: #D4AF37; --gold-hi: #F3DB7C; --gold-lo: #B38B12; --on-gold: #1b1405;
  --gold-grad: linear-gradient(135deg, #F6E08A 0%, #D4AF37 46%, #B38B12 100%);
  --cream: #F8F1DD;
  --text: #1b1405; --muted: rgba(27, 20, 5, .62);
  --card: rgba(248, 241, 221, .9); --line: rgba(190, 150, 20, .55); --accent: #8c6900;
  --sheet: rgba(246, 238, 216, .97); --sheet-solid: #f3ead2; --modal: #f8f1dd; --inputbg: rgba(255, 252, 240, .92);
  --ringbg: rgba(60, 40, 0, .13); --mbase: rgba(40, 25, 0, .2); --logo-op: .2;
  --glow: 0 0 16px rgba(212, 175, 55, .5);
  --shadow: 0 10px 26px rgba(35, 22, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
  --bg-solid: #c3a566;
  --bg-grad: radial-gradient(900px 520px at 50% -8%, rgba(255, 226, 130, .55), transparent 62%), radial-gradient(700px 500px at 100% 105%, rgba(90, 60, 5, .45), transparent 65%), linear-gradient(180deg, #c9ab6b 0%, #a98d52 55%, #8b7340 100%);
}
[data-theme=dark] {
  --text: #f4ecd6; --muted: rgba(244, 236, 214, .62);
  --card: rgba(255, 255, 255, .055); --line: rgba(212, 175, 55, .4); --accent: #EBCB6B;
  --sheet: rgba(11, 10, 7, .97); --sheet-solid: #0e0c08; --modal: #17140c; --inputbg: rgba(255, 255, 255, .07);
  --ringbg: rgba(255, 255, 255, .12); --mbase: rgba(255, 255, 255, .2); --logo-op: .13; --bg-solid: #0d0b07;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(212, 175, 55, .07);
  --bg-grad: radial-gradient(900px 560px at 50% -6%, rgba(212, 175, 55, .24), transparent 62%), radial-gradient(700px 520px at 100% 105%, rgba(212, 175, 55, .1), transparent 65%), #0a0907;
}
body, #main, .overlay, #auth, #splash { background: var(--bg-grad); background-attachment: fixed; }
.overlay.sheet, .overlay.sheet.sub { background: var(--sheet-solid); }
.overlay.sheet.settings { background: var(--sheet); backdrop-filter: blur(10px); }
.exdb-top, .seg.sticky { background: var(--bg-solid); }
.floatbar { background: linear-gradient(transparent, var(--bg-solid) 35%); }

/* ---------- Kopf- & Fusszeile ---------- */
.topbar { background: linear-gradient(180deg, #DDBB45 0%, #BF9720 100%); color: #fff; text-shadow: 0 1px 3px rgba(60, 40, 0, .45); position: relative; box-shadow: 0 2px 18px rgba(212, 175, 55, .45), 0 1px 0 rgba(255, 255, 255, .4) inset; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #fff8d0, transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: topscan 4.5s linear infinite; opacity: .9; }
.tb-btn .gear-ic { filter: drop-shadow(0 1px 2px rgba(60, 40, 0, .4)); }
.dot-badge { box-shadow: 0 0 0 2px #C9A227; }
.bottombar { background: #050403; border-top: 1px solid rgba(212, 175, 55, .65); box-shadow: 0 -6px 26px rgba(212, 175, 55, .2); }
.nb { transition: transform .25s cubic-bezier(.3, .9, .3, 1.4), opacity .2s, color .2s; }
.nb.on { color: var(--gold-hi); }
.nb.on .ic { filter: drop-shadow(0 0 7px rgba(243, 219, 124, .85)); animation: navpop .5s cubic-bezier(.3, 1.6, .4, 1); }
.nb.on::after { background: var(--gold-grad); box-shadow: 0 0 10px var(--gold); width: 34px; }
.side-arrow { color: var(--gold-hi); text-shadow: 0 0 14px rgba(212, 175, 55, .7); } [data-theme=dark] .side-arrow { color: var(--gold-hi); }

/* ---------- Hintergrund: Logo, Raster, Scan ---------- */
.bg-logo { opacity: var(--logo-op); background-size: min(84vw, 460px); animation: breathe 7s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(212, 175, 55, .35)); }
.stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(243, 219, 124, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 219, 124, .09) 1px, transparent 1px); background-size: 42px 42px; -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 15%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 38%, #000 15%, transparent 78%); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(243, 219, 124, .1), transparent); animation: scan 9s linear infinite; }
.viewport { z-index: 1; }

/* ---------- Karten im HUD-Stil ---------- */
.card, .tile, .exc, .folder, .qa { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.card::before, .card::after, .tile::before, .tile::after, .exc::before, .exc::after, .folder::before, .folder::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; border: 2px solid var(--gold); filter: drop-shadow(0 0 4px rgba(212, 175, 55, .7)); }
.card::before, .tile::before, .exc::before, .folder::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.card::after, .tile::after, .exc::after, .folder::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }
.card.flat::before, .card.flat::after { display: none; }
button.card, button.tile { transition: transform .15s, box-shadow .25s, border-color .25s; }
button.card:active, button.tile:active { transform: scale(.975); box-shadow: var(--glow), var(--shadow); border-color: var(--gold); }
.tile .t-top, .wo-stats small, .stat3 small, .tile small, .srow-h, .lbl { letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; }
.lbl { font-size: 12px; }
.tile .t-top { font-size: 12px; }
.card-h h3 .ic { color: var(--accent); filter: drop-shadow(0 0 5px rgba(212, 175, 55, .55)); }
.hello { text-shadow: 0 2px 10px rgba(40, 25, 0, .55); letter-spacing: .02em; }
.quote { color: #fff7da; text-shadow: 0 1px 6px rgba(40, 25, 0, .6); }
[data-theme=dark] .hello { text-shadow: 0 0 18px rgba(212, 175, 55, .45); color: var(--gold-hi); } [data-theme=dark] .quote { color: var(--muted); }
.pill { background: rgba(212, 175, 55, .22); color: var(--accent); border: 1px solid rgba(212, 175, 55, .45); }

/* ---------- Buttons: Gold mit dunkler Schrift ---------- */
.btn { position: relative; overflow: hidden; background: var(--gold-grad); color: var(--on-gold); border: 1px solid rgba(255, 245, 190, .55); box-shadow: 0 4px 16px rgba(212, 175, 55, .4), inset 0 1px 0 rgba(255, 255, 255, .55); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); letter-spacing: .02em; }
.btn:not(.ghost):not(.danger)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .55) 50%, transparent 68%); transform: translateX(-130%); animation: sheen 5s ease-in-out infinite; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--gold); box-shadow: inset 0 0 12px rgba(212, 175, 55, .12); text-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #e0574a, #b3261e); color: #fff; text-shadow: none; box-shadow: 0 4px 14px rgba(179, 38, 30, .4); }
.btn.ghost.danger-t { color: var(--danger); border-color: var(--danger); }
.chip { border-color: var(--gold); color: var(--accent); }
.chip.gold, .seg button.on, .plus-ic, .addb, .pf-in .ibtn, .datenav .ibtn, .add-ex .ic, .ex-chk, .exrow.sel .ex-chk, .resume, .wd.done i { background: var(--gold-grad); color: var(--on-gold); }
.chip.gold { border-color: rgba(255, 245, 190, .6); box-shadow: 0 2px 10px rgba(212, 175, 55, .4); }
.seg { border-color: var(--gold); box-shadow: inset 0 0 12px rgba(212, 175, 55, .12); }
.seg button { color: var(--text); } .seg button.on { text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.plus-ic, .addb, .datenav .ibtn { box-shadow: 0 0 14px rgba(212, 175, 55, .55); }
.ex-chk { background: transparent; } .exrow.sel .ex-chk { background: var(--gold-grad); }
.resume { color: var(--on-gold); border: 0; box-shadow: 0 0 22px rgba(212, 175, 55, .5); animation: glowpulse 2.6s ease-in-out infinite; }
.resume .ic { color: var(--on-gold); }
.add-ex .ic { color: var(--on-gold); }
.finish { background: #0d0a04; color: var(--gold-hi); border: 1px solid var(--gold); box-shadow: 0 0 12px rgba(212, 175, 55, .5); text-shadow: none; }
.wd.done i .ic { color: var(--on-gold); }
.sw.on { background: var(--gold-grad); box-shadow: 0 0 12px rgba(212, 175, 55, .55); }
.sw { background: rgba(40, 25, 0, .3); } [data-theme=dark] .sw { background: rgba(255, 255, 255, .18); }
.folder-plus i { color: var(--on-gold); }
.rest-card .chip.gold { color: var(--on-gold); }
.badge.got { box-shadow: 0 0 14px rgba(212, 175, 55, .35); border: 1px solid var(--line); }
.hm.l1 { background: rgba(212, 175, 55, .5); } .hm.l2 { background: rgba(212, 175, 55, .8); } .hm.l3 { background: var(--gold); box-shadow: 0 0 6px rgba(212, 175, 55, .8); }

/* ---------- Eingaben, Dialoge (Creme statt Weiss) ---------- */
.inp, .num:focus, .filters select, .searchbar { background: var(--inputbg); }
.inp:focus, .searchbar:focus-within { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25), 0 0 14px rgba(212, 175, 55, .3); }
.num { background: var(--ringbg); }
.modal { background: var(--modal); border: 1px solid var(--gold); box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 30px rgba(212, 175, 55, .22); }
.modal h2 { color: var(--accent); letter-spacing: .02em; }
.modal-wrap { backdrop-filter: blur(5px); background: rgba(8, 6, 2, .6); }
.auth-wrap .inp { background: #fffbed; }
.gbtn { background: #fffbed; }
.toast { background: rgba(10, 8, 3, .92); border: 1px solid var(--gold); box-shadow: 0 0 20px rgba(212, 175, 55, .35); }
.srow .si { color: var(--accent); }
.prev.light { background: linear-gradient(180deg, #c9ab6b, #8b7340); } .pv-card { background: rgba(248, 241, 221, .75); } .pv-top { background: #C9A227; }

/* ---------- Charts / Ringe ---------- */
.chart .ln { stroke: var(--gold); filter: drop-shadow(0 0 4px rgba(212, 175, 55, .8)); stroke-dasharray: 1000; stroke-dashoffset: 0; }
.enter .chart .ln { animation: draw 1.4s ease-out both; }
.chart .area { fill: var(--gold); } .chart .dot { fill: var(--gold-hi); }
.chart .cbar { fill: var(--gold); transform-origin: bottom; transform-box: fill-box; }
.enter .chart .cbar { animation: growy .9s cubic-bezier(.3, .9, .3, 1) both; }
.chart .gline { stroke: var(--accent); }
.ringfg { filter: drop-shadow(0 0 5px rgba(212, 175, 55, .75)); }
.enter .ringfg { animation: ringdraw 1.4s cubic-bezier(.3, .8, .3, 1) both; }
.ringw::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px dashed rgba(212, 175, 55, .55); animation: spin 26s linear infinite; pointer-events: none; }
.ringw::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 22px rgba(212, 175, 55, .18); pointer-events: none; }
.bar { background: var(--ringbg); } .bar i { background: var(--gold-grad); box-shadow: 0 0 10px rgba(212, 175, 55, .7); }
.hbar i, .mbar i { box-shadow: 0 0 8px rgba(212, 175, 55, .5); }
.hbar i { background: var(--gold-grad); }
.ringc strong { text-shadow: 0 0 12px rgba(212, 175, 55, .35); }

/* ---------- Einblenden beim Seitenwechsel ---------- */
.page-in.enter > * { animation: rise .6s cubic-bezier(.2, .9, .3, 1) both; }
.page-in.enter > *:nth-child(2) { animation-delay: .06s; } .page-in.enter > *:nth-child(3) { animation-delay: .12s; } .page-in.enter > *:nth-child(4) { animation-delay: .18s; }
.page-in.enter > *:nth-child(5) { animation-delay: .24s; } .page-in.enter > *:nth-child(6) { animation-delay: .3s; } .page-in.enter > *:nth-child(7) { animation-delay: .36s; }
.page-in.enter > *:nth-child(n+8) { animation-delay: .42s; }
.tiles.enter-t .tile, .page-in.enter .tiles .tile { animation: rise .6s cubic-bezier(.2, .9, .3, 1) both; }
.page-in.enter .tiles .tile:nth-child(2) { animation-delay: .1s; } .page-in.enter .tiles .tile:nth-child(3) { animation-delay: .2s; }
.overlay.fresh .ov-body > * { animation: rise .45s cubic-bezier(.2, .9, .3, 1) both; }
.overlay.fresh .ov-body > *:nth-child(2) { animation-delay: .05s; } .overlay.fresh .ov-body > *:nth-child(3) { animation-delay: .1s; } .overlay.fresh .ov-body > *:nth-child(n+4) { animation-delay: .15s; }
.overlay .topbar { animation: none; }
.overlay.fresh .slist .srow { animation: slidein .4s cubic-bezier(.2, .9, .3, 1) both; }
.overlay.fresh .slist .srow:nth-child(1) { animation-delay: .05s; } .overlay.fresh .slist .srow:nth-child(2) { animation-delay: .1s; } .overlay.fresh .slist .srow:nth-child(3) { animation-delay: .15s; } .overlay.fresh .slist .srow:nth-child(4) { animation-delay: .2s; } .overlay.fresh .slist .srow:nth-child(5) { animation-delay: .25s; } .overlay.fresh .slist .srow:nth-child(n+6) { animation-delay: .3s; }
.srow-s.just { animation: donepulse .6s ease-out; }
.srow-s.just .chk-b.on { animation: pop .35s cubic-bezier(.3, 1.8, .4, 1); } .chk-b.on { box-shadow: 0 0 14px rgba(46, 125, 50, .6); }
.overlay.fresh .exc { animation: rise .45s cubic-bezier(.2, .9, .3, 1) both; }
.wd.today i { box-shadow: 0 0 12px rgba(212, 175, 55, .8); }
.gl-i.on { filter: drop-shadow(0 0 6px rgba(59, 155, 224, .8)); animation: pop .35s cubic-bezier(.3, 1.8, .4, 1); }
.modal-wrap.in .modal { animation: modalin .35s cubic-bezier(.2, 1.1, .3, 1); }
.rest-time { text-shadow: 0 0 18px rgba(212, 175, 55, .7); }
.rest-card { border-color: var(--gold); box-shadow: 0 10px 34px rgba(0, 0, 0, .6), 0 0 26px rgba(212, 175, 55, .35); }

/* ---------- Anmeldung & Start (Arc-Reactor-Look) ---------- */
#auth { color: #1b1405; }
.auth-table { background: rgba(248, 241, 221, .78); border: 1px solid var(--line); backdrop-filter: blur(6px); box-shadow: var(--shadow); }
.auth-logo img { filter: drop-shadow(0 0 16px rgba(212, 175, 55, .6)); animation: breathe 5s ease-in-out infinite; }
#splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; overflow: hidden; }
#splash::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(243, 219, 124, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 219, 124, .12) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 5%, transparent 65%); mask-image: radial-gradient(circle at 50% 45%, #000 5%, transparent 65%); }
.reactor { position: relative; width: min(66vw, 320px); aspect-ratio: 1; display: grid; place-items: center; animation: reactorin 1.2s cubic-bezier(.2, .9, .3, 1) both; }
.reactor .logo { width: 70%; animation: none; filter: drop-shadow(0 0 24px rgba(255, 215, 90, .75)); position: relative; z-index: 2; }
.reactor i { position: absolute; border-radius: 50%; }
.reactor .r1 { inset: 0; border: 2px dashed rgba(255, 236, 160, .8); animation: spin 14s linear infinite; }
.reactor .r2 { inset: 7%; border: 3px solid transparent; border-top-color: #fff3b8; border-bottom-color: #F3DB7C; filter: drop-shadow(0 0 8px #F3DB7C); animation: spin 3.2s linear infinite reverse; }
.reactor .r3 { inset: -9%; border: 1px solid rgba(255, 236, 160, .45); animation: ringpulse 2.4s ease-out infinite; }
.reactor .r4 { inset: 14%; background: radial-gradient(circle, rgba(255, 220, 100, .55), transparent 68%); animation: glowpulse 2s ease-in-out infinite; }
.splash-t { margin: 0; font-weight: 700; letter-spacing: .5em; font-size: 15px; color: #fff4c4; text-shadow: 0 0 14px rgba(243, 219, 124, .9); animation: trackin 1.4s .4s cubic-bezier(.2, .9, .3, 1) both; padding-left: .5em; }
.splash-bar { width: min(56vw, 240px); height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, transparent, #fff3b8, #F3DB7C); box-shadow: 0 0 12px #F3DB7C; transform-origin: left; animation: loadbar 2.1s cubic-bezier(.4, 0, .2, 1) both; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes navpop { 0% { transform: scale(.7) translateY(4px); } 100% { transform: none; } }
@keyframes modalin { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { 0%, 55% { transform: translateX(-130%); } 80%, 100% { transform: translateX(130%); } }
@keyframes scan { 0% { transform: translateY(-160px); } 100% { transform: translateY(1300px); } }
@keyframes topscan { 0% { background-position: -50% 0; } 100% { background-position: 150% 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes glowpulse { 0%, 100% { box-shadow: 0 0 14px rgba(212, 175, 55, .4); opacity: .85; } 50% { box-shadow: 0 0 30px rgba(243, 219, 124, .85); opacity: 1; } }
@keyframes ringpulse { 0% { transform: scale(.88); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes ringdraw { from { stroke-dashoffset: var(--c); } }
@keyframes draw { from { stroke-dashoffset: 1000; } }
@keyframes growy { from { transform: scaleY(0); } }
@keyframes donepulse { 0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, .6); } 100% { box-shadow: 0 0 0 14px rgba(46, 125, 50, 0); } }
@keyframes reactorin { from { opacity: 0; transform: scale(.6) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes trackin { from { opacity: 0; letter-spacing: 1.2em; } to { opacity: 1; letter-spacing: .5em; } }
@keyframes loadbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .stage::after, .topbar::after, .bg-logo, .ringw::before, .btn::after, .reactor i { animation: none !important; } }

/* ---------- Barcode-Scanner & Video ---------- */
.scan-box { position: relative; width: 100%; aspect-ratio: 3/4; max-height: 56vh; border-radius: 18px; overflow: hidden; background: #000; border: 1.5px solid var(--gold); box-shadow: var(--glow); }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 22% 10%; border: 2px solid var(--gold-hi); border-radius: 14px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45), 0 0 18px var(--gold); }
.scan-frame::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, #ff5a4d, transparent); box-shadow: 0 0 10px #ff5a4d; animation: scanline 2s ease-in-out infinite alternate; }
@keyframes scanline { to { top: 88%; } }
.vid { width: 100%; border-radius: 16px; background: #000; border: 1px solid var(--line); max-height: 52vh; }
.vid-frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 16px; background: #000; }
.vid-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.food-r { display: flex; align-items: center; width: 100%; border-bottom: 1px solid var(--line); background: none; padding: 0; }
.fr-main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px; border: 0; background: none; text-align: left; color: var(--text); }
.fr-main small { display: block; color: var(--muted); font-size: 13px; } .fr-main .ic { color: var(--accent); }
.overlay.scan .ov-body { padding-top: 16px; }

/* Dialoge m�ssen �ber dem Anmeldebildschirm (z-index 400) liegen */
.modal-wrap { z-index: 450; }
.eximg { border-radius: 10px; object-fit: cover; flex: none; background: var(--ringbg); }
.exd-img { width: 100%; max-height: 46vh; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 8px; }
.past-h { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.past-h .lbl { margin-top: 0; }
.stat3.meas { grid-template-columns: repeat(4, 1fr); gap: 10px 4px; margin-bottom: 10px; } .stat3.meas b { font-size: 16px; }
.seen { color: var(--accent); font-weight: 600; } .note-1 { display: block; color: var(--muted); font-style: italic; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.li[data-act=appt-open]:active { background: var(--ringbg); border-radius: 12px; }
.wo-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 2px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); }
.wo-row:first-of-type { border-top: 0; } .wo-row .li-t { flex: 1; min-width: 0; } .wo-row .li-t b, .wo-row .li-t small { display: block; } .wo-row .li-t small { color: var(--muted); font-size: 13px; } .wo-row .chev { flex: none; }
.wo-row:active { background: var(--ringbg); border-radius: 10px; }
.det-row { display: grid; grid-template-columns: 40px 1fr auto 26px; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); } .det-row:first-of-type { border-top: 0; } .det-v { font-size: 16px; }
.rpe-pill { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 10px; white-space: nowrap; } .rpe-pill.lo { background: rgba(46, 125, 50, .2); color: var(--ok); } .rpe-pill.mid { background: rgba(230, 162, 60, .25); color: #b9770e; } .rpe-pill.hi { background: rgba(217, 83, 79, .22); color: var(--danger); }
[data-theme=dark] .rpe-pill.mid { color: #f0b04a; }
.det-v { white-space: nowrap; font-size: 15.5px; } .det-row { grid-template-columns: 38px 1fr auto 24px; gap: 6px; }
/* ---------- Einseitige Übungen (R/L), Verlauf, Seitendifferenz ---------- */
.side-b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 800; font-style: normal; color: #fff; margin-left: 3px; }
.side-b.s-R { background: #C98A1B; } .side-b.s-L { background: #3C8FD1; } .side-b.s-B { background: var(--ringbg); color: var(--text); }
button.side-b { cursor: pointer; height: 30px; min-width: 28px; }
.st-c { flex-wrap: wrap; row-gap: 2px; }
.uni-p { margin-left: 8px; font-size: 11px; padding: 1px 8px; vertical-align: middle; }
.srow-s.uni { border-left: 3px solid transparent; } .srow-s.uni:has(.s-R) { border-left-color: #C98A1B; } .srow-s.uni:has(.s-L) { border-left-color: #3C8FD1; }
.det-t { display: flex; align-items: center; gap: 2px; } .det-row { grid-template-columns: 62px 1fr auto 24px; }
.legend-row { display: flex; gap: 14px; font-size: 13px; margin: 4px 0; color: var(--muted); } .legend-row i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.prog-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 0; border-top: 1px solid var(--line); } .prog-row:first-of-type { border-top: 0; } .prog-row > b { min-width: 64px; } .prog-c { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; } .prog-c em { font-style: normal; }
.rtest { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; } .rtest:first-of-type { border-top: 0; margin-top: 0; } .rtest h4 { margin: 0 0 6px; font-size: 16px; color: var(--accent); }
.lsi-top { display: flex; gap: 12px; align-items: stretch; margin: 6px 0; } .lsi-big { flex: none; width: 118px; text-align: center; border-radius: 16px; padding: 10px 6px; border: 2px solid var(--line); } .lsi-big b { display: block; font-size: 30px; line-height: 1.1; } .lsi-big small { display: block; font-size: 12px; color: var(--muted); }
.lsi-big.ok { border-color: var(--ok); background: rgba(46, 125, 50, .12); } .lsi-big.mid { border-color: #e6a23c; background: rgba(230, 162, 60, .14); } .lsi-big.hi { border-color: var(--danger); background: rgba(217, 83, 79, .12); }
.lsi-nums { flex: 1; display: grid; gap: 6px; align-content: center; } .lsi-nums div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; } .lsi-nums small { color: var(--muted); font-size: 12.5px; order: -1; } .lsi-nums b { font-size: 15px; }
.sets.rpe-col .srow-h, .sets.rpe-col .srow-s { grid-template-columns: 46px 1fr 1fr 1fr 42px 50px; gap: 4px; } .num.rpe-in { font-size: 15px; }
.sidebox { border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px 4px; margin: 8px 0; background: var(--card2, rgba(255,255,255,.3)); } .sidebox h4 { margin: 0 0 2px; font-size: 14px; display: flex; align-items: center; gap: 6px; } .sidebox .inp { margin: 4px 0 6px; }
/* ---------- Ordner «Befund und Testungen», Messungen ---------- */
.folder-card { padding: 0; } .folder-h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; background: none; border: 0; color: var(--text); text-align: left; } .folder-t { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 17px; } .folder-t .ic { color: var(--accent); } .folder-h .chev { flex: none; margin: 0; }
.folder-card > .note { padding: 0 14px 12px; margin: 0; } .folder-b { padding: 0 10px 10px; } .folder-b .card { box-shadow: none; background: var(--card2, rgba(255, 255, 255, .25)); margin-bottom: 10px; }
.rom-now { font-size: 17px; margin: 4px 0; } .rom-chips { font-size: 14px; margin: 4px 0 6px; color: var(--muted); }
.rl { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; } .stat3.meas .rl .side-b { margin-left: 4px; height: 18px; min-width: 18px; font-size: 10.5px; padding: 0 3px; }
.seg.five button { font-size: 12.5px; padding: 11px 1px; } .ringc-w { flex: none; }
.li-t .rom-now { display: block; margin-top: 2px; font-size: 15.5px; }
.card-h { flex-wrap: wrap; row-gap: 6px; }
.invbox { margin-top: 8px; display: grid; gap: 6px; } .invcode { font-family: ui-monospace, Consolas, monospace; font-size: clamp(15px, 5vw, 19px); letter-spacing: 1px; white-space: nowrap; font-weight: 700; color: var(--gold); background: var(--card2, rgba(166,143,2,.12)); border: 1px dashed var(--gold); border-radius: 10px; padding: 8px 10px; display: inline-block; user-select: all; }
.reg-li { align-items: flex-start; } .reg-li .li-t { flex: 1; min-width: 0; } .invbox .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
