/* Schrift Inter vom eigenen Server (Paket SF1, 11.11.2026) – gleiche Dateien wie die Website wallteq.com. Lizenz: wwwroot/fonts/Inter-LICENSE.txt (OFL). */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'), url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Crypto Access – Kundenansicht (Handy zuerst, dann Computer/Tablet)
   Farben: automatisch hell/dunkel nach Gerät. Menü unten (Handy) bzw. links (ab 960 px).
   ========================================================================== */
:root {
    --bg: #F4F6F8; --surface: #FFFFFF; --surface2: #EEF1F4; --text: #0E1114; --muted: #5A6470; --line: #E2E6EA;
    --accent: #0B6BCB; --accent-text: #FFFFFF; --pill-bg: #E3EEF9; --pill-text: #0A4F96; --link: #0A5EB3;
    --pos: #15803D; --pos-bg: #DCFCE7; --neg: #B42318; --neg-bg: #FDE7E5; --warn: #9A5B00; --warn-bg: #FFF1D6;
    --nav-bg: #FFFFFF; --shadow: 0 10px 30px rgba(14, 17, 20, .12);
    --r-card: 24px; --r-tile: 14px; --r-pill: 999px;
    --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0E1114; --surface: #171B20; --surface2: #232A31; --text: #F2F4F6; --muted: #A3ADB8; --line: #2A3138;
        --accent: #7CC4FF; --accent-text: #06121F; --pill-bg: #1C2A38; --pill-text: #9DD3FF; --link: #9DD3FF;
        --pos: #5EE08F; --pos-bg: rgba(94, 224, 143, .14); --neg: #FF8A80; --neg-bg: rgba(255, 138, 128, .14);
        --warn: #FFC56B; --warn-bg: rgba(255, 197, 107, .14);
        --nav-bg: #0E1114; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.45; font-size: 15px; }
a { color: var(--link); }
h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 0; line-height: 1.15; }
h2 { font-size: 17px; font-weight: 700; margin: 0; }
h3 { font-size: 15px; font-weight: 700; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App-Rahmen ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.app-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface2); color: var(--pill-text); font-weight: 700; font-size: 15px; display: grid; place-items: center; flex: 0 0 auto; }
.topbar .grow { flex: 1; }
.price-chip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-pill); background: var(--surface); font-size: 13px; color: var(--muted); }
.price-chip strong { color: var(--text); font-weight: 600; border-radius: 4px; padding: 0 2px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: 0 0 auto; }
.live-dot.on { background: var(--pos); }
.live-dot.slow { background: #d9a400; }
.content { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 4px 16px 112px; display: flex; flex-direction: column; gap: 16px; }

/* Menü unten (Handy) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
          padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--nav-bg); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar a.on { color: var(--link); }
.tabbar svg, .sidebar svg { width: 24px; height: 24px; }

/* Seitenleiste (Computer / Tablet quer) */
.sidebar { display: none; }
@media (min-width: 960px) {
    .app { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
    .tabbar { display: none; }
    .topbar .avatar { display: none; }
    .topbar { padding: 24px 40px 8px; }
    .content { max-width: 1040px; padding: 8px 40px 48px; }
    .sidebar { display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; border-right: 1px solid var(--line);
               position: sticky; top: 0; height: 100vh; height: 100dvh; }
    .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 24px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
    .sidebar .brand span.logo { width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
    .sidebar nav { display: flex; flex-direction: column; gap: 4px; }
    .sidebar nav a { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 14px; text-decoration: none; font-weight: 600; color: var(--muted); }
    .sidebar nav a.on { background: var(--pill-bg); color: var(--pill-text); font-weight: 700; }
    .sidebar .grow { flex: 1; }
    .sidebar .me { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--surface); text-align: left; width: 100%; }
    .sidebar .me .avatar { width: 36px; height: 36px; font-size: 13px; }
    .sidebar .me span.who { display: flex; flex-direction: column; min-width: 0; }
    .sidebar .me strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* zwei Spalten, wo eine Seite das will */
    .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
    .cols > div { display: flex; flex-direction: column; gap: 16px; }
}
.cols > div { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Kopf einer Seite ---------- */
.balance { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.balance .label { font-size: 15px; color: var(--muted); }
.balance .amount { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.balance .amount small { font-size: 20px; font-weight: 700; }
.balance .balance-note { font-size: 13px; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head > :first-child { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--link); text-decoration: none; }

/* ---------- Reiter (Untermenü), seitlich verschiebbar ---------- */
.pills { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; scroll-behavior: smooth; cursor: grab; user-select: none; -webkit-user-select: none; }
.pills::-webkit-scrollbar { display: none; }
.pills.more-r { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
.pills.more-l { -webkit-mask-image: linear-gradient(to left, #000 80%, transparent); mask-image: linear-gradient(to left, #000 80%, transparent); }
.pills.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
.pills.dragging { cursor: grabbing; scroll-behavior: auto; }
.pill { flex: 0 0 auto; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 0;
        font-weight: 700; font-size: 15px; white-space: nowrap; background: var(--pill-bg); color: var(--pill-text); text-decoration: none; }
.pill.on { background: var(--accent); color: var(--accent-text); }
@media (min-width: 960px) { .pills { margin: 0; padding: 0; } }

/* ---------- Karten, Listen, Kacheln ---------- */
.card { background: var(--surface); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.flat { padding: 8px 16px; gap: 0; }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-head > :first-child { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row > .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .end { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.list > * { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.coin { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.coin.usdc { background: #2775CA; color: #fff; font-size: 11px; }
.coin.btc { background: #F7931A; color: #1A1206; font-size: 16px; }
.coin.icon { background: var(--surface2); color: var(--muted); font-size: 18px; }
.tiles { display: grid; gap: 8px; font-size: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 960px) { .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-tile); background: var(--surface2); min-width: 0; }
.tile .label { color: var(--muted); }
.tile strong { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface2); color: var(--muted); white-space: nowrap; }
.badge.ok, .badge.long { background: var(--pos-bg); color: var(--pos); }
.badge.bad, .badge.short { background: var(--neg-bg); color: var(--neg); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.big { font-size: 20px; font-weight: 700; }
.note { padding: 12px 14px; border-radius: var(--r-tile); background: var(--surface2); font-size: 13px; line-height: 1.5; }
.note.warn { background: var(--warn-bg); color: var(--text); }
.note.bad { background: var(--neg-bg); color: var(--text); }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
details.more > summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 14px; list-style: none; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 8px; }
/* Anleitung in der Einrichtung (WA1): aufklappbar mit Pfeil, Inhalt in heller Box */
details.howto > summary::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
details.howto[open] > summary::before { transform: rotate(45deg); margin-bottom: 4px; }
details.howto[open] { padding: 12px 14px; border-radius: var(--r-tile); background: var(--surface2); }
details.howto[open] > summary { margin: -4px 0 10px; }
ol.howto { margin: 0 0 10px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
ol.howto li { padding-left: 2px; overflow-wrap: anywhere; }
.howto-sub { display: block; font-size: 14px; margin: 4px 0 6px; }
.howto-tip { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
details.howto .note { margin: 0; }
details.howto > :last-child { margin-bottom: 0; }
.checks { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.checks svg { flex: 0 0 auto; width: 20px; height: 20px; }

/* ---------- Knöpfe ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
       background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; }
.btn.sec { background: var(--surface2); color: var(--text); font-weight: 600; }
.btn.soft { background: var(--pill-bg); color: var(--pill-text); }
.btn.danger { background: var(--neg-bg); color: var(--neg); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > * { flex: 1 1 140px; }
.btn-row form { display: flex; }
.btn-row form .btn { flex: 1; }
.link { background: none; border: 0; color: var(--link); cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 0; text-decoration: none; }
form.inline { margin: 0; display: inline; }

/* ---------- Formulare ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea, .form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .form select {
    width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-tile); border: 1px solid var(--line); background: var(--surface2); color: var(--text); font-size: 16px; }
.field textarea { padding: 12px 16px; min-height: 96px; }
.field .with-btn { display: flex; gap: 8px; }
.field .with-btn input { flex: 1; min-width: 0; }
.field .with-btn .btn { min-height: 52px; border-radius: var(--r-tile); }
.amount-input { font-size: 18px !important; font-weight: 700; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
label.check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; }
.seg { display: flex; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
/* .form .seg label:not(.check): stärker als die Formular-Regel ".form label" weiter unten (sonst Text oben im Knopf) */
.form .seg label:not(.check), .seg label { flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 0; font-size: 15px; min-height: 44px; border-radius: var(--r-pill); background: var(--pill-bg); color: var(--pill-text); font-weight: 700; cursor: pointer; }
.form .seg input:checked + label:not(.check), .seg input:checked + label { background: var(--accent); color: var(--accent-text); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Umschalter "Fester Betrag | Prozent": das nicht gewählte Feld ausblenden (.field hat sonst display:flex) */
.form [data-when][hidden] { display: none; }
.error, .field-validation-error, .validation-summary-errors { color: var(--neg); font-size: 14px; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }

/* ---------- Meldungen ---------- */
.notice { background: var(--surface); border-radius: 18px; padding: 12px 16px; font-size: 14px; line-height: 1.5; border-left: 4px solid var(--accent); }
.notice.error { border-left-color: var(--neg); color: var(--text); }
.notice.alert { border-left-color: var(--neg); }

/* ---------- Blatt (Profil) ---------- */
dialog.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px; background: transparent; color: var(--text); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .5); }
dialog.sheet .sheet-body { background: var(--surface); border-radius: 28px 28px 0 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 960px) { dialog.sheet { margin: auto; } dialog.sheet .sheet-body { border-radius: 28px; } }
.sheet .who { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.sheet .who .avatar { width: 52px; height: 52px; font-size: 18px; }
.sheet .item { display: flex; align-items: center; min-height: 52px; width: 100%; border: 0; border-radius: 16px; background: var(--surface2); color: var(--text); text-align: left;
               padding: 0 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
.sheet .item.danger { background: var(--neg-bg); color: var(--neg); font-weight: 700; }
.sheet form { margin: 0; }

/* ---------- Einrichtung (Schritte) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps span { height: 6px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--accent); }
.step-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.wizard { display: flex; flex-direction: column; gap: 16px; }
.wizard .lead { font-size: 15px; line-height: 1.5; color: var(--muted); }
.done-mark { width: 88px; height: 88px; border-radius: 50%; background: var(--pos-bg); color: var(--pos); display: grid; place-items: center; margin: 24px auto 0; }
.qr { width: 196px; height: 196px; margin: 0 auto; padding: 10px; border-radius: 20px; background: #fff; display: grid; place-items: center; }
.qr svg, .qr img { width: 100%; height: 100%; }

/* ---------- Positionen (Live-Kurs) ---------- */
@keyframes flash-up { from { background: color-mix(in srgb, var(--pos) 30%, transparent); } to { background: transparent; } }
@keyframes flash-down { from { background: color-mix(in srgb, var(--neg) 30%, transparent); } to { background: transparent; } }
.flash-up { animation: flash-up .8s ease-out; }
.flash-down { animation: flash-down .8s ease-out; }
.position .pnl { font-size: 20px; font-weight: 700; }

/* ---------- Anmelden ---------- */
.bare { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: 48px 20px 32px; }
.bare .box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; }
.bare .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.bare .brand span.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; font-size: 14px; }

/* ==========================================================================
   Kompatibilität: Admin- und Test-Seiten (werden in Teil 2 neu gestaltet)
   ========================================================================== */
.container { max-width: 1040px; }
.panel { background: var(--surface); border-radius: 20px; padding: 16px; margin-bottom: 0; overflow-x: auto; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; border-radius: var(--r-pill); padding: 0 18px; background: var(--accent); color: var(--accent-text); font-weight: 700; cursor: pointer; text-decoration: none; }
.button.secondary { background: var(--surface2); color: var(--text); }
.button.danger { background: var(--neg-bg); color: var(--neg); }
.button.buy, .button.sell { flex: 1; font-size: 1.1rem; padding: 14px; }
.button.buy { background: var(--pos); color: #fff; } .button.sell { background: var(--neg); color: #fff; }
.button-row, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.button-row form, .actions form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 1.2rem; font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tr.muted td { opacity: .6; }
input, select { border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: var(--text); padding: 9px 10px; }
fieldset.form { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
fieldset.form legend { font-weight: 600; padding: 0 6px; }
.form label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
pre.mono { background: var(--surface2); border-radius: 12px; padding: 10px; white-space: pre-wrap; }
.key-once { outline: 2px solid var(--accent); }
.badge-ok { background: var(--pos-bg); color: var(--pos); }
.badge-bad { background: var(--neg-bg); color: var(--neg); }
.test-link { color: var(--neg); }
.est { font-size: 13px; min-height: 1.1em; font-weight: 400; color: var(--muted); }
.funds-warn { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text); background: var(--warn-bg); border-radius: 10px; padding: 8px 10px; }
.funds-warn[hidden] { display: none; }
.skipped { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* Aktivität: Trade aufklappen */
details.trade > summary::-webkit-details-marker { display: none; }
details.trade[open] { padding-bottom: 14px; }

/* ---------- Bots: Symbol, Risiko, Fakten, Folgen-Leiste ---------- */
:root { --sp-bg: #ECE6FF; --sp-fg: #4A2AA6; }
@media (prefers-color-scheme: dark) { :root { --sp-bg: #2A2440; --sp-fg: #D3C7FF; } }
.bot-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; }
.bot-icon svg { width: 24px; height: 24px; }
.bot-icon.ai { background: var(--pill-bg); color: var(--pill-text); }
.bot-icon.sp { background: var(--sp-bg); color: var(--sp-fg); }
.bot-icon.large { width: 60px; height: 60px; border-radius: 20px; }
.bot-icon.large svg { width: 30px; height: 30px; }
.risk-low { color: var(--pos); } .risk-medium { color: var(--warn); } .risk-high { color: var(--neg); }
.badge.risk-badge { font-size: 13px; padding: 6px 12px; }
.badge.risk-low { background: var(--pos-bg); } .badge.risk-medium { background: var(--warn-bg); } .badge.risk-high { background: var(--neg-bg); }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.facts > div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.facts > div span { width: 130px; flex: 0 0 auto; color: var(--muted); }
.facts > div strong { flex: 1; font-weight: 600; }
.sticky-cta { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column; gap: 6px;
              padding: 12px 0; background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
@media (min-width: 960px) { .sticky-cta { bottom: 0; max-width: 420px; } }

/* ---------- Anbieter-Bereich: violett ---------- */
body.provider { --accent: #5B34C7; --accent-text: #FFFFFF; --pill-bg: #ECE6FF; --pill-text: #4A2AA6; --link: #5B34C7; }
@media (prefers-color-scheme: dark) {
    body.provider { --accent: #BBA8FF; --accent-text: #150B33; --pill-bg: #2A2440; --pill-text: #D3C7FF; --link: #C9BAFF; }
}
.tabbar.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabbar.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabbar.five a { font-size: 11px; }

/* ---------- Admin-Bereich (Verwaltung): orange ---------- */
body.admin { --accent: #C2410C; --accent-text: #FFFFFF; --pill-bg: #FFEDD5; --pill-text: #9A3412; --link: #C2410C; }
@media (prefers-color-scheme: dark) {
    body.admin { --accent: #FDBA74; --accent-text: #2A1204; --pill-bg: #3A2416; --pill-text: #FED7AA; --link: #FDBA74; }
}
.totp { display: grid; gap: 16px; align-items: start; }
@media (min-width: 640px) { .totp { grid-template-columns: 200px minmax(0, 1fr); } }
.totp__qr { width: 200px; height: 200px; padding: 8px; background: #fff; border-radius: 12px; }
.totp__qr svg, .totp__qr img { display: block; width: 100%; height: 100%; }
.totp__key { font-family: var(--mono); font-size: 15px; letter-spacing: .04em; word-break: break-all; background: var(--surface2); padding: 10px 12px; border-radius: 10px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0; padding: 12px 16px; list-style: none; font-family: var(--mono); font-size: 15px; background: var(--surface2); border-radius: 12px; }
.code-input { font-family: var(--mono); font-size: 22px !important; letter-spacing: .3em; text-align: center; }
.bare .brand span.logo svg, .sidebar .brand span.logo svg { width: 20px; height: 20px; }
.diff { width: 100%; border-collapse: collapse; font-size: 14px; }
.diff th, .diff td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: normal; }
.diff td.changed { background: var(--warn-bg); }
.diff th { width: 150px; color: var(--muted); font-weight: 600; }

/* Einzahlen: Hinweis je nach Reiter USDC / BTC (gleiche Adresse) */
.deposit .only-btc { display: none !important; }
.deposit:has(#dep-btc:checked) .only-btc { display: flex !important; }
.deposit:has(#dep-btc:checked) .only-usdc { display: none !important; }
/* Auszahlen: Empfänger-Hinweis je nach Token */
.withdraw .only-btc { display: none; }
.withdraw:has(#tok-btc:checked) .only-btc { display: block; }
.withdraw:has(#tok-btc:checked) .only-usdc { display: none; }

/* Admin: Quellen nach Anbieter gruppiert */
.src-group { border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 14px; padding: 14px; margin: 12px 0; }
.src-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.src-group .table-wrap { margin-top: 10px; }

/* Anbieter: Art der Strategie – Überschrift und passender Hinweis zur Auswahl */
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.kind-hint { margin: 8px 0 4px; }
.form:has(#kind-ai:checked) .kind-hint-sp, .form:has(#kind-sp:checked) .kind-hint-ai { display: none; }

/* Sprache: Umschalter auf der Login-Seite (oben rechts) und im Profil */
.bare-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang-compact { display: flex; gap: 2px; }
.lang-compact a { font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 6px 7px; border-radius: 8px; }
.lang-compact a.on { color: var(--text); background: var(--surface2); }
.item-group { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.lang-pills { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }

/* Anbieter: Übersetzungen einer Strategie (eine aufklappbare Zeile pro Sprache) */
details.tr-lang { border-top: 1px solid var(--line); padding: 12px 0; }
details.tr-lang:last-of-type { padding-bottom: 0; }
details.tr-lang > summary { cursor: pointer; font-size: 15px; list-style: none; display: flex; gap: 6px; align-items: baseline; }
details.tr-lang > summary::-webkit-details-marker { display: none; }
details.tr-lang > summary::before { content: "›"; display: inline-block; width: 14px; color: var(--muted); transition: transform .15s; }
details.tr-lang[open] > summary::before { transform: rotate(90deg); }

/* ---------- Verwaltung Teil 2: Übersicht, Kunden, Protokoll (Paket R) ---------- */
.tile .big-num { font-size: 22px; font-weight: 700; }
.stack-notices { display: grid; gap: 8px; margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filters input, .filters select { min-height: 40px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 14px; }
td.wrap { white-space: normal; min-width: 220px; }

/* ---------- Abo (Plan) ---------- */
.plan-options { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .plan-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan-option { gap: 8px; }
.plan-option.best { box-shadow: inset 0 0 0 2px var(--accent); }
.plan-option .btn { margin-top: auto; }
.plan-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }

/* ---------- Affiliate (Paket AA): Bank | USDC im Formular ---------- */
.form fieldset[data-method] { display: flex; flex-direction: column; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.form fieldset[data-method][hidden] { display: none; }

/* ---------- Affiliate-Übersicht (AA5): Geldfluss und Karten statt breiter Tabelle ---------- */
.flow { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: stretch; }
.flow .flow-arrow { display: none; }
@media (min-width: 720px) {
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; }
  .flow .flow-arrow { display: flex; align-items: center; color: var(--muted); font-size: 20px; }
}
.aff-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aff-row:last-of-type { border-bottom: 0; }
.aff-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.aff-head .btn { white-space: nowrap; flex: 0 0 auto; }
.aff-nums { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }

/* ---------- Handeln (Paket MH): Chart, Formular Buy/Sell, TP/SL ---------- */
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.chart-card { gap: 10px; }
.chart { height: 340px; width: 100%; border-radius: var(--r-tile); overflow: hidden; }
@media (min-width: 960px) { .chart { height: 500px; } }
.chart-empty { text-align: center; }
/* Schilder TP / SL links im Chart (11.11.: rechts verdeckten sie die Kerzen) */
.chart { position: relative; }
.chart-tags { position: absolute; left: 0; top: 0; width: 0; height: 100%; pointer-events: none; z-index: 3; }
.chart-tag { position: absolute; left: 4px; top: 0; white-space: nowrap; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 5px; border-radius: 3px; }
.chart-tag.dashed { opacity: .85; }
.chart-tag[hidden] { display: none; }
/* Ansicht Handeln (11.11.): großer Kurs nur am PC, Hinweis TradingView klein unter dem Chart, Buy/Sell öffnen das Popup */
.trade-head { display: none; }
@media (min-width: 960px) { .trade-head { display: flex; } }
.chart-by { font-size: 11px; color: var(--muted); margin-top: -6px; align-self: flex-start; }
.trade-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trade-actions .btn { font-weight: 700; }
dialog.order-sheet { max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
.order-sheet .order-card { border-radius: 28px 28px 0 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .order-sheet .order-card { border-radius: 28px; padding: 24px; } }
.sheet-x { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.seg.tf { gap: 4px; flex: 0 0 auto; }
.seg.tf label { min-height: 34px !important; padding: 0 10px; font-size: 13px !important; }
/* 6 Zeiträume (M1 … W1): auf schmalen Handys enger, notfalls in die nächste Zeile */
.chart-card .card-head { flex-wrap: wrap; }
@media (max-width: 400px) { .seg.tf { gap: 3px; } .seg.tf label { padding: 0 7px; font-size: 12px !important; } }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.order-card.is-off { opacity: .6; }
.form .seg.side input#sd-buy:checked + label { background: var(--pos); color: #fff; }
.form .seg.side input#sd-sell:checked + label { background: var(--neg); color: #fff; }
.side-hint { margin-top: -6px; }
.quick { display: flex; gap: 8px; margin-top: -6px; }
.quick .btn { flex: 1; }
.order-btn.buy { background: var(--pos); color: #fff; }
.order-btn.sell { background: var(--neg); color: #fff; }
@media (prefers-color-scheme: dark) { .order-btn.buy, .order-btn.sell, .form .seg.side input:checked + label { color: #0E1114 !important; } }
.est.neg { color: var(--neg); font-weight: 600; }
/* Schätzung im Popup: Zeile 1 Menge + Kosten, Zeile 2 Gewinnschwelle – immer 2 Zeilen hoch, damit das Popup nicht springt */
#order-est { white-space: pre-line; line-height: 1.45; min-height: 2.9em; }
.warn-text { color: var(--warn); font-weight: 600; }
details.levels-edit .form { gap: 10px; }
.form [data-when-side][hidden], .side-hint[hidden], .form .seg.side[hidden] { display: none; }

/* ---------- Kunden-API (Paket MA) ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl td { padding: 6px 8px 6px 0; vertical-align: top; white-space: normal; border-bottom: 1px solid var(--line); line-height: 1.45; }
.tbl td:first-child { white-space: nowrap; width: 1%; }
.tbl tr:last-child td { border-bottom: 0; }

/* RA16: Hinweis „selbst zurückwechseln“ in der Statuszeile (Wallet am Handy) */
.wallet-back { display: block; margin-top: 8px; }

/* VK1: Kasten „Dein Geld unabhängig prüfen“ (Konto → Übersicht → Guthaben) */
.verify-box { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.verify-box p { margin: 0; }
.verify-link { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.verify-link .muted { font-size: 13px; }

/* Paket CA1: Logo „Crypto Access“ (Münze mit Schlüsselloch) + zweifarbiger Schriftzug */
.brand span.logo.ca { border-radius: 50%; }
.brand span.logo.ca svg { width: 100%; height: 100%; }
.brand .ac { color: var(--accent); }
