/* TraceInkMarksOrigin (TIMO) Frontend */
.tbti { max-width: 1080px; margin: 0 auto; padding: 1rem 0 3rem; font-family: system-ui, -apple-system, sans-serif; line-height: 1.55; color: #222; }
.tbti a { color: #1919C8; }

/* Logo (Symbol-Marke) */
.tbti-logo { margin: 0 0 .8rem; }
.tbti-logo img { display: block; width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 2px 10px rgba(25,25,200,.18); }

/* Cover */
.tbti-cover { margin: 0 0 1.4rem; }
.tbti-cover img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid #e5e8f2; }

/* Hero */
.tbti-hero { margin-bottom: 1.5rem; }
.tbti-hero__badge { display: inline-block; background: #eef1fb; color: #1919C8; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; }
.tbti-hero h1 { font-size: 2.2rem; margin: .6rem 0 .4rem; color: #1919C8; line-height: 1.15; }
.tbti-hero__lead { color: #333; max-width: 760px; margin: 0 0 1rem; }
.tbti-hero__mock { background: #fff8e6; border-left: 4px solid #eab308; border-radius: 8px; padding: .8rem 1rem; color: #6b5300; font-size: .9rem; margin-bottom: 1rem; }
.tbti-hero__mock em { font-style: normal; text-decoration: underline; }

.tbti-wallet { display: inline-flex; align-items: center; gap: .6rem; background: #0f172a; color: #fff; border-radius: 999px; padding: .4rem 1rem; font-size: .9rem; }
.tbti-wallet__coin { opacity: .7; }
.tbti-wallet__bal { font-weight: 800; font-size: 1.1rem; }
.tbti-wallet__hint { opacity: .6; font-size: .78rem; }

/* Grid */
.tbti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.tbti-card { background: #fff; border: 1px solid #e5e8f2; border-radius: 12px; padding: 1.2rem 1.3rem; }
.tbti-card--wide { grid-column: 1 / -1; }
.tbti-card h2 { margin: 0 0 .3rem; color: #1919C8; font-size: 1.2rem; }
.tbti-card__sub { color: #555; font-size: .9rem; margin: 0 0 .9rem; }
@media (max-width: 720px) { .tbti-grid { grid-template-columns: 1fr; } .tbti-hero h1 { font-size: 1.7rem; } }

/* File input */
.tbti-file { display: block; margin-bottom: .7rem; }
.tbti-file input { position: absolute; left: -9999px; }
.tbti-file span { display: inline-block; padding: .5rem .9rem; background: #f4f6fb; border: 1px dashed #cfd4e6; border-radius: 8px; cursor: pointer; font-size: .9rem; color: #444; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.tbti-file span:hover { border-color: #1919C8; }

.tbti-id { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; color: #555; margin-bottom: .7rem; }
.tbti-id input { font: inherit; padding: .45rem .6rem; border: 1px solid #cfd4e6; border-radius: 6px; text-transform: uppercase; letter-spacing: .1em; }

/* Vorschaubilder (Upload + markiertes Ergebnis) */
.tbti-thumb { margin: 0 0 .7rem; }
.tbti-thumb img { display: block; max-width: 100%; max-height: 220px; width: auto; border-radius: 8px; border: 1px solid #e5e8f2; background: #0f172a; }
.tbti-thumb figcaption { font-size: .78rem; color: #777; margin-top: .3rem; }
.tbti-result .tbti-thumb { margin: .6rem 0 .4rem; }
.tbti-result .tbti-thumb img { max-height: 180px; border-color: rgba(0,0,0,.12); }
.tbti-result .tbti-thumb figcaption { color: inherit; opacity: .75; }

/* Buttons */
.tbti-btn { padding: .55rem 1.1rem; border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; background: #f4f6fb; color: #1919C8; }
.tbti-btn:hover:not(:disabled) { background: #eef1fb; }
.tbti-btn:disabled { opacity: .6; cursor: default; }
.tbti-btn--primary { background: #1919C8; color: #fff; }
.tbti-btn--primary:hover:not(:disabled) { background: #1414a8; }
.tbti-btn--ghost { background: transparent; border: 1.5px solid #cfd4e6; color: #555; }

/* Result */
.tbti-result { margin-top: .8rem; padding: .7rem .9rem; border-radius: 8px; font-size: .9rem; }
.tbti-result.is-ok { background: #ecfdf5; border-left: 4px solid #16a34a; color: #14532d; }
.tbti-result.is-warn { background: #fff8e6; border-left: 4px solid #eab308; color: #6b5300; }
.tbti-result.is-err { background: #fef2f2; border-left: 4px solid #dc2626; color: #991b1b; }
.tbti-result code { background: rgba(0,0,0,.08); padding: .05em .4em; border-radius: 4px; font-weight: 700; }
.tbti-tag { background: #eab308; color: #fff; font-size: .7rem; padding: .1em .45em; border-radius: 4px; margin-left: .3em; }
.tbti-dl { display: inline-block; margin-top: .4rem; font-weight: 600; }

/* Demo-Galerie */
.tbti-demo { background: linear-gradient(180deg, #f7f9ff, #fff); }
.tbti-demo__gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-bottom: 1rem; }
@media (max-width: 620px) { .tbti-demo__gallery { grid-template-columns: repeat(3, 1fr); } }
.tbti-demo__thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #0f172a; line-height: 0; }
.tbti-demo__thumb img { width: 100%; height: 64px; object-fit: cover; display: block; }
.tbti-demo__thumb:hover { border-color: #cfd4e6; }
.tbti-demo__thumb.is-active { border-color: #1919C8; box-shadow: 0 0 0 3px rgba(25,25,200,.15); }
.tbti-demo__note { color: #666; font-size: .85rem; margin-top: .8rem; }
.tbti-demo__step { margin: .2rem 0 .1rem; font-size: .85rem; color: #444; }
.tbti-demo__step strong { color: #1919C8; }

/* Lab / Draw */
.tbti-lab { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 620px) { .tbti-lab { grid-template-columns: 1fr; } }
.tbti-lab__canvas-wrap { background: #0f172a; border-radius: 10px; padding: .5rem; display: inline-block; }
.tbti-lab__canvas-wrap canvas { display: block; max-width: 100%; border-radius: 6px; background: #0f172a; touch-action: none; cursor: crosshair; }
.tbti-lab__controls { display: flex; flex-direction: column; gap: .6rem; }
.tbti-lab__controls label { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; color: #555; }
.tbti-lab__controls input[type=range] { width: 100%; }

.tbti-live { padding: .6rem .8rem; border-radius: 8px; background: #f4f6fb; color: #555; font-size: .9rem; font-weight: 600; }
.tbti-live.is-ok { background: #ecfdf5; color: #14532d; }
.tbti-live.is-lost { background: #fef2f2; color: #991b1b; }

/* How / Preise */
.tbti-how { padding-left: 1.2rem; margin: 0; }
.tbti-how li { margin: .4rem 0; color: #333; font-size: .92rem; }
.tbti-price { list-style: none; padding: 0; margin: 0; }
.tbti-price li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid #eef1fb; }
.tbti-price li:last-child { border-bottom: 0; }
.tbti-price strong { color: #1919C8; }
.tbti-price__note { color: #666; font-size: .82rem; margin-top: .6rem; }

/* Status-Zeile: TIMO-Server + Wallet */
.tbti-status { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .3rem; }
.tbti-server { display: inline-flex; align-items: center; gap: .5rem; background: #f4f6fb; border: 1px solid #e5e8f2; border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; color: #444; }
.tbti-server__dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa3b8; flex: 0 0 auto; }
.tbti-server.is-online .tbti-server__dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.tbti-server.is-offline .tbti-server__dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.tbti-server.is-offline { color: #8a1c1c; }

/* Fortschritts-Zustaende */
.tbti-result.is-pending { background: #eef2ff; border-left: 4px solid #6366f1; color: #3730a3; }
.tbti-result.is-wait { background: #fff8e6; border-left: 4px solid #eab308; color: #6b5300; }
.tbti-spin { display: inline-block; width: .85em; height: .85em; margin-right: .35em; vertical-align: -.1em; border: 2px solid rgba(99,102,241,.35); border-top-color: #6366f1; border-radius: 50%; animation: tbti-spin .7s linear infinite; }
@keyframes tbti-spin { to { transform: rotate(360deg); } }
.tbti-ok { color: #16a34a; font-weight: 700; }
.tbti-warn { color: #b45309; font-weight: 700; }

/* ID-Hinweis */
.tbti-id__hint { color: #6366f1; font-size: .78rem; min-height: 1em; }

/* ID-Live-Vorschau (was eingebettet wird) */
.tbti-idprev { margin: -.3rem 0 .9rem; padding: .55rem .8rem; background: #f4f6fb; border: 1px solid #e5e8f2; border-radius: 8px; font-size: .9rem; color: #555; }
.tbti-idprev.is-changed { background: #eef2ff; border-color: #c7d0f5; }
.tbti-idprev__main strong { font-size: 1.2rem; letter-spacing: .12em; color: #1919C8; margin-left: .2em; }
.tbti-idprev__main mark { background: #ffe08a; color: #5a4600; padding: 0 .14em; border-radius: 3px; }
.tbti-idprev__chg { margin-top: .4rem; font-size: .82rem; color: #555; }
.tbti-idprev__chg code { background: rgba(0,0,0,.07); padding: .05em .35em; border-radius: 4px; font-weight: 700; }

/* Konto / Login / Einwilligung */
.tbti-acct { display: inline-flex; align-items: center; gap: .5rem; background: #f4f6fb; border: 1px solid #e5e8f2; border-radius: 999px; padding: .3rem .5rem .3rem .9rem; font-size: .82rem; color: #444; }
.tbti-acct__mail { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbti-acct__out { border: 0; background: #eef1fb; color: #1919C8; border-radius: 999px; padding: .25rem .7rem; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.tbti-acct__out:hover { background: #e0e5fb; }
.tbti-auth__tabs { display: flex; gap: .4rem; margin-bottom: .9rem; }
.tbti-auth__tabs button { flex: 1; padding: .5rem; border: 1px solid #cfd4e6; background: #f4f6fb; color: #555; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.tbti-auth__tabs button.is-active { background: #1919C8; color: #fff; border-color: #1919C8; }
.tbti-check { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: #444; margin: .7rem 0 .9rem; line-height: 1.45; }
.tbti-check input { margin-top: .2rem; flex: 0 0 auto; }
.tbti-consent p { font-size: .9rem; color: #444; line-height: 1.55; }
.tbti-consent__more { margin: .5rem 0 .2rem; font-size: .85rem; }
.tbti-consent__more summary { cursor: pointer; color: #1919C8; font-weight: 600; }
.tbti-consent__more p { margin: .5rem 0; }

/* Batch-Ergebnisliste */
.tbti-batch { margin-top: .8rem; display: flex; flex-direction: column; gap: .35rem; }
.tbti-batchrow { display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: #f7f9ff; border: 1px solid #e5e8f2; border-radius: 8px; padding: .45rem .7rem; font-size: .85rem; }
.tbti-batchrow .fn { color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.tbti-batchrow .st { color: #555; text-align: right; }
.tbti-batchrow .st.ok { color: #16a34a; font-weight: 700; }
.tbti-batchrow .st.warn { color: #b45309; font-weight: 700; }
.tbti-batchrow .st.bad { color: #dc2626; font-weight: 700; }
.tbti-batchrow .st code { background: rgba(0,0,0,.08); padding: .05em .35em; border-radius: 4px; }
.tbti-batchrow .st a { color: #1919C8; margin-left: .3em; }

/* Upload-Hinweis (Format, Grösse) */
.tbti-hint { display: block; color: #8a93b2; font-size: .78rem; margin: -.4rem 0 .7rem; }

/* Einordnung / SEO-Textabschnitt */
.tbti-info { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid #e5e8f2; color: #333; }
.tbti-info h2 { color: #1919C8; font-size: 1.35rem; margin: 0 0 .7rem; }
.tbti-info h3 { color: #1a2340; font-size: 1.1rem; margin: 1.6rem 0 .6rem; }
.tbti-info h4 { color: #1a2340; font-size: .98rem; margin: 1rem 0 .2rem; }
.tbti-info p { margin: 0 0 .9rem; max-width: 70ch; line-height: 1.6; }
.tbti-info a { color: #1919C8; }
.tbti-related { margin: 0 0 1rem; padding-left: 1.2rem; }
.tbti-related li { margin: .5rem 0; max-width: 70ch; line-height: 1.55; }
.tbti-faq h4 { color: #1919C8; }
.tbti-faq p { color: #444; }

.tbti-footer { text-align: center; color: #888; font-size: .85rem; margin-top: 2rem; }
