/* Test141 – Produktseite, Teilnahme und Akzente der Verwaltung (MudBlazor + devworld.css). Markenfarbe Violett. */

:root { --t141: #7c3aed; --t141-soft: #f5f3ff; --t141-ok: #16a34a; --t141-bad: #dc2626; }

/* ---------- test141.com ---------- */
.t141-site { background: #fff; }
.t141-site .mud-appbar.t141-site__bar { background-color: #fff !important; color: #111827 !important; border-bottom: 1px solid #e6e8ec; }
.t141-brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: #111827; }
.t141-brand__dot { width: 12px; height: 12px; border-radius: 3px; background: var(--t141); align-self: center; display: inline-block; }
.t141-brand__name { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.t141-brand__sub { color: #6b7280; font-size: .85rem; }
.t141-hero { background: linear-gradient(180deg, var(--t141-soft) 0%, #fff 100%); border-bottom: 1px solid #eef0f3; padding: 72px 0 56px; }
.t141-eyebrow { color: var(--t141); font-weight: 600; letter-spacing: .08em; }
.t141-hero__title { font-weight: 700; letter-spacing: -.02em; max-width: 860px; margin: 8px 0 16px; line-height: 1.15; }
.t141-hero__intro { color: #4b5563; max-width: 780px; line-height: 1.6; }
.t141-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.t141-feature { height: 100%; border-radius: 12px; }
.t141-band { background: #f8fafc; border-top: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; }
.t141-step { position: relative; padding-left: 52px; }
.t141-step__nr { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--t141); color: #fff;
                 display: flex; align-items: center; justify-content: center; font-weight: 700; }
.t141-footer { border-top: 1px solid #eef0f3; color: #6b7280; font-size: .9rem; }
.t141-footer a { color: #4b5563; text-decoration: none; }
.t141-footer a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .t141-hero { padding: 40px 0 32px; }
    .t141-hero__title { font-size: 2rem !important; }
}

/* ---------- Teilnahme ---------- */
.t141-body { background: #f6f7fb; }
.t141-frame .mud-appbar.t141-frame__bar { background-color: #fff !important; color: #111827 !important; border-bottom: 1px solid #e6e8ec; }
.t141-frame__bar .mud-toolbar { gap: 10px; }
.t141-frame__org { font-weight: 600; }
.t141-card { border-radius: 14px; }
.t141-link { color: inherit; }
.t141-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 16px; margin: 8px 0 4px; color: #374151; }
.t141-facts > div { display: flex; align-items: center; gap: 8px; }
.t141-facts .mud-icon-root { color: var(--t141); }
.t141-intro { white-space: pre-line; line-height: 1.6; color: #374151; background: #fafafa; border-left: 3px solid var(--t141); padding: 12px 14px; border-radius: 6px; }

.t141-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.t141-lang { border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; color: #111827; }
.t141-lang.is-active { border-color: var(--t141); background: var(--t141-soft); color: var(--t141); font-weight: 600; }

.t141-clock { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem;
              padding: 4px 12px; border-radius: 999px; background: var(--t141-soft); color: var(--t141); }
.t141-clock--low { background: #fef2f2; color: var(--t141-bad); animation: t141-pulse 1s ease-in-out infinite alternate; }
@keyframes t141-pulse { from { opacity: 1; } to { opacity: .65; } }

.t141-qtext { white-space: pre-line; line-height: 1.45; }
.t141-answers { display: flex; flex-direction: column; gap: 10px; }
.t141-answer { display: flex; align-items: flex-start; justify-content: flex-start; gap: 12px; width: 100%; text-align: left; font: inherit; color: #111827;
               background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.t141-answer:hover:not(:disabled) { border-color: #c4b5fd; }
.t141-answer.is-on { border-color: var(--t141); background: var(--t141-soft); }
.t141-answer:disabled { cursor: default; opacity: .7; }
.t141-answer:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }
.t141-answer__text { white-space: pre-line; line-height: 1.45; padding-top: 1px; }

.t141-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.t141-nav__btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; cursor: pointer; font: inherit; font-weight: 600; color: #374151; }
.t141-nav__btn.is-done { background: var(--t141-soft); border-color: #c4b5fd; color: var(--t141); }
.t141-nav__btn.is-current { outline: 2px solid var(--t141); outline-offset: 1px; }

.t141-result { display: flex; align-items: center; gap: 18px; }
.t141-result__icon { font-size: 64px !important; }
.t141-result.is-passed .t141-result__icon, .t141-result.is-passed .t141-result__verdict { color: var(--t141-ok); }
.t141-result.is-failed .t141-result__icon, .t141-result.is-failed .t141-result__verdict { color: var(--t141-bad); }
.t141-result__verdict { font-weight: 700 !important; }

.t141-sol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.t141-sol li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; white-space: pre-line; }
.t141-sol li.is-correct { background: #f0fdf4; }
.t141-sol li.is-wrong { background: #fef2f2; }

.t141-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; font-size: .9rem; color: #374151; }
.t141-field input { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; }
.t141-field input:focus { outline: 2px solid #c4b5fd; border-color: var(--t141); }
.t141-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Verwaltung ---------- */
.t141-langfields { display: flex; flex-direction: column; gap: 6px; }
.t141-langfields__row { display: flex; align-items: flex-start; gap: 8px; }
.t141-langtag { margin-top: 12px; min-width: 30px; text-align: center; font-size: .72rem; font-weight: 700; padding: 2px 4px; border-radius: 4px;
                background: var(--t141-soft); color: var(--t141); }
.t141-langtag.is-missing { background: #fff7ed; color: #c2410c; }
.t141-answeredit.is-correct { border-color: #86efac !important; background: #f8fffa; }
.t141-qnr { min-width: 28px; height: 28px; border-radius: 50%; background: var(--t141-soft); color: var(--t141); font-weight: 700;
            display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.t141-linkbox { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 6px; padding: 2px 4px 2px 10px; margin-top: 6px; }
.t141-mono { font-family: ui-monospace, Consolas, monospace; font-size: .8rem !important; word-break: break-all; }
.t141-small { font-size: .8rem; }

/* ---------- Video-Runden ---------- */
:root { --t141-red: #dc2626; --t141-blue: #2563eb; }
.t141-btn-red.mud-button-filled { background: var(--t141-red) !important; color: #fff !important; }
.t141-btn-blue.mud-button-filled { background: var(--t141-blue) !important; color: #fff !important; }
.t141-videodrop { border: 2px dashed #d1d5db; border-radius: 12px; padding: 32px 16px; text-align: center; color: #6b7280; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.t141-editvideo { width: 100%; max-height: 52vh; background: #000; border-radius: 8px; display: block; }

/* Zeitleiste: Beschriftungen links (Blazor), Spuren rechts (test141.js); Zeilenhöhen müssen übereinstimmen. */
.t141-lanes { display: flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: #fff; }
.t141-lanes__labels { flex: 0 0 132px; padding-top: 22px; border-right: 1px solid #e5e7eb; background: #fafafa; }
.t141-lanes__label { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 34px; padding: 0 8px; border: 0;
                     border-bottom: 1px solid #f0f0f0; background: transparent; font: inherit; font-size: .82rem; cursor: pointer; color: #374151; text-align: left; }
.t141-lanes__label small { color: #6b7280; font-variant-numeric: tabular-nums; }
.t141-lanes__label.is-ref { font-weight: 700; }
.t141-lanes__label.is-active { background: var(--t141-soft); color: var(--t141); box-shadow: inset 3px 0 0 var(--t141); }
.t141-lanes__timeline { flex: 1 1 auto; min-width: 0; }
.t141-tl { position: relative; transition: box-shadow .1s; }
.t141-tl.t141-flash--r { box-shadow: inset 0 0 0 3px var(--t141-red); }
.t141-tl.t141-flash--b { box-shadow: inset 0 0 0 3px var(--t141-blue); }
.t141-tl__scroll { overflow-x: auto; overflow-y: hidden; }
.t141-tl__inner { position: relative; min-height: 22px; }
.t141-tl__ruler { position: relative; height: 22px; border-bottom: 1px solid #e5e7eb; font-size: .7rem; color: #6b7280; }
.t141-tl__tick { position: absolute; top: 3px; padding-left: 3px; border-left: 1px solid #d1d5db; height: 16px; line-height: 16px; white-space: nowrap; }
.t141-tl__row { height: 34px; border-bottom: 1px solid #f0f0f0; }
.t141-tl__row.is-ref { background: #fcfcfd; }
.t141-tl__row.is-active { background: var(--t141-soft); }
.t141-tl__track { position: relative; height: 100%; cursor: crosshair; }
.t141-tl__mark { position: absolute; top: 7px; width: 8px; height: 20px; margin-left: -4px; border-radius: 3px; cursor: grab; touch-action: none; }
.t141-tl__mark--r { background: var(--t141-red); }
.t141-tl__mark--b { background: var(--t141-blue); top: 9px; height: 16px; }
.t141-tl__mark.is-sel { outline: 2px solid #111827; outline-offset: 1px; z-index: 2; }
.t141-tl__playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #f59e0b; pointer-events: none; z-index: 3; }

/* Rundenspieler */
.t141-round { position: relative; }
.t141-round video { width: 100%; max-height: 60vh; background: #000; border-radius: 10px; display: block; pointer-events: none; }
.t141-round__pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.t141-pad { border: 0; border-radius: 12px; min-height: 84px; font: inherit; font-size: 1.1rem; font-weight: 700; color: #fff; cursor: pointer;
            user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: transform .06s, filter .06s; }
.t141-pad--r { background: var(--t141-red); }
.t141-pad--b { background: var(--t141-blue); }
.t141-pad small { display: block; font-weight: 500; opacity: .85; font-size: .8rem; }
.t141-pad.is-hit { transform: scale(.97); filter: brightness(1.35); }
.t141-round:not(.is-running) .t141-pad { opacity: .45; }
.t141-scores { display: flex; flex-wrap: wrap; gap: 8px; }
.t141-score { border: 1.5px solid #e5e7eb; background: #fff; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.t141-score .r { color: var(--t141-red); }
.t141-score .b { color: var(--t141-blue); }
.t141-score.is-on { border-color: var(--t141); background: var(--t141-soft); }

/* Spuren-Vergleich (Ergebnis, Live) */
.t141-cmp { width: 100%; display: block; }
.t141-cmp text { font-size: 11px; fill: #6b7280; }
.t141-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: #4b5563; }
.t141-legend span { display: inline-flex; align-items: center; gap: 5px; }
.t141-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.t141-red { color: var(--t141-red); }
.t141-blue { color: var(--t141-blue); }
