/* =========================================================================
   Onboarding fuer neue Besucher (09.08.2026)
   Drei Schritte: Breite -> Look -> Zahnrad. Eigene Datei, damit nichts am
   bestehenden Dashboard-CSS haengt.
   ========================================================================= */

.tbob-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 9, 18, .78);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .18s ease;
}
.tbob-overlay.is-open { opacity: 1; }

/* Echte Server-Vorschau hinter dem transparenten Assistenten. Standard und
   Cyber haben getrenntes Markup; ein CSS-Skin auf dem falschen Layout ist
   keine gueltige Vorschau. */
.tbob-vorschau {
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    border: 0;
    background: #040912;
    pointer-events: none;
}

.tbob-karte {
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: linear-gradient(180deg, #0e1726 0%, #0a1120 100%);
    border: 1px solid rgba(46, 230, 197, .28);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset;
    color: #dbe7f5;
    padding: 26px 28px 22px;
    transform: translateY(10px);
    transition: transform .18s ease;
}
.tbob-overlay.is-open .tbob-karte { transform: none; }

.tbob-schritte {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.tbob-punkt {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, .12);
}
.tbob-punkt.is-aktiv { background: #2ee6c5; }
.tbob-punkt.is-fertig { background: rgba(46, 230, 197, .45); }

.tbob-titel {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #fff;
}
.tbob-text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.55;
    color: #9fb3c8;
}

.tbob-auswahl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 640px) {
    .tbob-auswahl { grid-template-columns: 1fr; }
}

.tbob-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    color: inherit;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.tbob-option:hover,
.tbob-option:focus-visible {
    border-color: rgba(46, 230, 197, .55);
    background: rgba(46, 230, 197, .07);
    transform: translateY(-2px);
    outline: none;
}
.tbob-option.is-gewaehlt {
    border-color: #2ee6c5;
    background: rgba(46, 230, 197, .12);
}
.tbob-option svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
}
.tbob-option-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}
.tbob-option-info {
    display: block;
    font-size: 12.5px;
    line-height: 1.5;
    color: #93a7bd;
}

.tbob-hinweis {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid rgba(46, 230, 197, .22);
    border-radius: 14px;
    background: rgba(46, 230, 197, .06);
}
.tbob-hinweis-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 22px;
    border-radius: 50%;
    border: 1px solid rgba(46, 230, 197, .45);
    background: rgba(4, 12, 22, .8);
}
.tbob-hinweis ul {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: #9fb3c8;
}

.tbob-fuss {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.tbob-fuss .tbob-luecke { flex: 1; }

.tbob-nicht-mehr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9fb3c8;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
}
.tbob-nicht-mehr input {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, .55);
    border-radius: 4px;
    background: rgba(255, 255, 255, .04);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.tbob-nicht-mehr input::before {
    content: '✓';
    color: #04121a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    transform: scale(0);
    transition: transform .12s ease;
}
.tbob-nicht-mehr input:checked {
    border-color: #2ee6c5;
    background: #2ee6c5;
}
.tbob-nicht-mehr input:checked::before { transform: scale(1); }
.tbob-nicht-mehr input:focus-visible {
    outline: 2px solid #2ee6c5;
    outline-offset: 2px;
}
body.tb-look-standard .tbob-nicht-mehr input:checked {
    border-color: #4a9eff;
    background: #4a9eff;
}

@media (max-width: 640px) {
    .tbob-fuss { flex-wrap: wrap; }
    .tbob-nicht-mehr { order: 3; width: 100%; }
}

.tbob-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: #cfe0f0;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
    white-space: nowrap; /* 24.09.2026: "Jetzt anpassen"/"Los geht’s" brachen um */
}
.tbob-btn:hover { background: rgba(255, 255, 255, .1); }
.tbob-btn.is-haupt {
    border-color: transparent;
    background: linear-gradient(135deg, #2ee6c5, #1ba9c9);
    color: #04121a;
    font-weight: 700;
}
.tbob-btn.is-haupt:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.tbob-btn.is-leise {
    border-color: transparent;
    background: none;
    color: #7d90a5;
}

/* Der Zeigefinger auf das Zahnrad im letzten Schritt. */
.tbob-zeiger {
    position: fixed;
    z-index: 100001;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid #2ee6c5;
    box-shadow: 0 0 0 6px rgba(46, 230, 197, .18);
    pointer-events: none;
    animation: tbob-puls 1.6s ease-in-out infinite;
}
@keyframes tbob-puls {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(1.12); opacity: .65; }
}

/* Im Standard-Look etwas nuechterner, damit es zur Seite passt. */
body.tb-look-standard .tbob-karte { border-color: rgba(255, 255, 255, .14); }
body.tb-look-standard .tbob-punkt.is-aktiv,
body.tb-look-standard .tbob-option.is-gewaehlt { border-color: #4a9eff; }
body.tb-look-standard .tbob-punkt.is-aktiv { background: #4a9eff; }
body.tb-look-standard .tbob-btn.is-haupt { background: linear-gradient(135deg, #4a9eff, #2f7ad6); color: #fff; }

/* Eigenstaendige Einfuehrung fuer das Zahnrad-Werkzeugmenue. */
.tbmt-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    background: rgba(2, 7, 15, .56);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .16s ease;
}
.tbmt-overlay.is-open { opacity: 1; }
.tbmt-spot {
    position: fixed;
    z-index: 2;
    border: 2px solid #2ee6c5;
    border-radius: 12px;
    box-shadow: 0 0 0 6px rgba(46, 230, 197, .2), 0 0 24px rgba(46, 230, 197, .55);
    pointer-events: none;
    animation: tbmtPuls 1.4s ease-in-out infinite;
}
@keyframes tbmtPuls {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.tbmt-karte {
    position: fixed;
    z-index: 3;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid rgba(46, 230, 197, .4);
    border-radius: 16px;
    color: #dbe7f5;
    background: linear-gradient(180deg, #0e1726, #09111e);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .65);
}
.tbmt-schliessen {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: none;
    color: #8fa4ba;
    font-size: 24px;
    cursor: pointer;
}
.tbmt-fortschritt { display: flex; gap: 5px; margin: 0 34px 16px 0; }
.tbmt-fortschritt i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.12); }
.tbmt-fortschritt i.is-aktiv { background: #2ee6c5; }
.tbmt-fortschritt i.is-fertig { background: rgba(46,230,197,.42); }
.tbmt-symbol {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border: 1px solid rgba(46, 230, 197, .45);
    border-radius: 12px;
    background: rgba(46, 230, 197, .09);
    color: #2ee6c5;
    font-size: 25px;
}
.tbmt-titel { margin: 0 0 8px; color: #fff; font-size: 20px; }
.tbmt-text { margin: 0; color: #a9bbcd; font-size: 14px; line-height: 1.6; }
.tbmt-fuss { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.tbmt-luecke { flex: 1; }
.tbmt-nicht-mehr {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #91a6ba;
    font-size: 12px;
    cursor: pointer;
}
.tbmt-nicht-mehr input { accent-color: #2ee6c5; }
.tbdw-tour-btn {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
}
.tbmt-btn {
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    padding: 8px 15px;
    background: rgba(255,255,255,.05);
    color: #d6e4f2;
    cursor: pointer;
}
.tbmt-btn.is-haupt {
    border-color: transparent;
    background: linear-gradient(135deg, #2ee6c5, #1ba9c9);
    color: #04121a;
    font-weight: 700;
}
body.tb-look-standard .tbmt-spot { border-color: #4a9eff; box-shadow: 0 0 0 6px rgba(74,158,255,.2), 0 0 24px rgba(74,158,255,.5); }
body.tb-look-standard .tbmt-karte { border-color: rgba(74,158,255,.4); }
body.tb-look-standard .tbmt-symbol { color: #4a9eff; border-color: rgba(74,158,255,.45); background: rgba(74,158,255,.09); }
body.tb-look-standard .tbmt-fortschritt i.is-aktiv { background: #4a9eff; }
body.tb-look-standard .tbmt-btn.is-haupt { background: linear-gradient(135deg, #4a9eff, #2f7ad6); color: #fff; }
body.tb-look-standard .tbmt-nicht-mehr input { accent-color: #4a9eff; }
@media (max-width: 640px) {
    .tbmt-fuss { flex-wrap: wrap; }
    .tbmt-nicht-mehr { order: 4; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tbmt-spot { animation: none; } }

/* ── Ati, 10.08.2026 ───────────────────────────────────────────────
   1. „beim onboarding bleibt die auswahl nicht markiert"
      Die Markierung WURDE gesetzt, sah aber fast aus wie der
      Hover-Zustand (beide nur Rahmenfarbe + schwacher Grund). Jetzt
      dicker Rahmen, Schein und ein Haken — auch ohne Farbsehen
      unterscheidbar.
   2. „da sollte ein dicker pfeil nach oben rechts in die ecke zeigen"
   ─────────────────────────────────────────────────────────────────── */

.tbob-option.is-gewaehlt {
	position: relative;
	border-color: #2ee6c5 !important;
	border-width: 2px !important;
	background: rgba(46, 230, 197, .16) !important;
	box-shadow: 0 0 0 3px rgba(46, 230, 197, .18), 0 6px 18px rgba(0, 0, 0, .3);
	transform: none;
}

/* Abzeichen unten rechts entfernt — der Kreis oben rechts zeigt die
   Auswahl (Ati, 10.08.2026). */

body.tb-look-standard .tbob-option.is-gewaehlt {
	border-color: #4a9eff !important;
	background: rgba(74, 158, 255, .16) !important;
	box-shadow: 0 0 0 3px rgba(74, 158, 255, .18), 0 6px 18px rgba(0, 0, 0, .3);
}



/* Zeigt auf das Zahnrad in der oberen rechten Fensterecke. */
.tbob-pfeil {
	position: fixed;
	top: 34px;
	right: 22px;
	z-index: 2147482600;
	color: #2ee6c5;
	pointer-events: none;
	filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .55));
	animation: tbobPfeilTupfen 1.5s ease-in-out infinite;
}

body.tb-look-standard .tbob-pfeil {
	color: #4a9eff;
}

@keyframes tbobPfeilTupfen {
	0%, 100% { transform: translate(0, 0); }
	50%      { transform: translate(6px, -6px); }
}

@media (prefers-reduced-motion: reduce) {
	.tbob-pfeil { animation: none; }
}


/* Der Kreis oben rechts in der Skizze ist die Auswahlanzeige.
   CSS schlaegt die fill/stroke-Attribute im SVG. */
.tbob-option .tbob-kreis {
	transition: fill .15s ease, stroke-opacity .15s ease;
}

.tbob-option .tbob-haken {
	opacity: 0;
	transition: opacity .15s ease;
}

.tbob-option.is-gewaehlt .tbob-kreis {
	fill: #2ee6c5;
	stroke: #2ee6c5;
	stroke-opacity: 1;
}

.tbob-option.is-gewaehlt .tbob-haken {
	opacity: 1;
}

body.tb-look-standard .tbob-option.is-gewaehlt .tbob-kreis {
	fill: #4a9eff;
	stroke: #4a9eff;
}

/* Schritt 3 („Dein Dashboard gehört dir") rückt nach oben rechts an den
   Pfeil heran — sonst zeigt der Pfeil ins Leere, während die Karte in der
   Bildmitte steht. Ati, 10.08.2026. */
.tbob-overlay.hat-pfeil {
	align-items: flex-start;
	justify-content: flex-end;
	padding-top: 132px;
	padding-right: 48px;
}

.tbob-overlay.hat-pfeil .tbob-karte {
	margin: 0;
}

/* Auf schmalen Fenstern bleibt die Karte mittig — dort wäre sie sonst
   halb außerhalb. */
@media (max-width: 900px) {
	.tbob-overlay.hat-pfeil {
		align-items: center;
		justify-content: center;
		padding-top: 16px;
		padding-right: 16px;
	}
}

/* Bewegte Zieh-Skizze in Onboarding-Schritt 3.
   Ati, 10.08.2026: die Leute sollen sehen, dass sich die Module schieben
   lassen. */
.tbob-zieh {
	margin: 0 0 16px;
	padding: 12px 14px 10px;
	border: 1px solid rgba(148, 163, 184, .18);
	border-radius: 12px;
	background: rgba(8, 18, 32, .45);
}

.tbob-zieh svg {
	display: block;
	width: 100%;
	height: auto;
	max-height: 120px;
}

.tbob-zieh p {
	margin: 8px 0 0;
	color: #8b96a5;
	font-size: 13px;
	line-height: 1.5;
}

.tbob-zieh-ruhig {
	fill: rgba(148, 163, 184, .14);
	stroke: rgba(148, 163, 184, .3);
	stroke-width: 1;
}

.tbob-zieh-ziel {
	fill: none;
	stroke: rgba(46, 230, 197, .55);
	stroke-width: 1.5;
	stroke-dasharray: 5 4;
}

.tbob-zieh-aktiv rect {
	fill: rgba(46, 230, 197, .22);
	stroke: #2ee6c5;
	stroke-width: 1.6;
}

.tbob-zieh-zeiger path {
	fill: #f3f5f7;
	stroke: #0b1424;
	stroke-width: 1;
	stroke-linejoin: round;
}

body.tb-look-standard .tbob-zieh-ziel {
	stroke: rgba(74, 158, 255, .55);
}

body.tb-look-standard .tbob-zieh-aktiv rect {
	fill: rgba(74, 158, 255, .22);
	stroke: #4a9eff;
}

/* Bewegung aus: die Skizze steht still, die Bildunterschrift traegt die
   Aussage. */
@media (prefers-reduced-motion: reduce) {
	.tbob-zieh animateTransform {
		display: none;
	}
}
