/* Tunnl – CI · eckige Buttons & Tags */
/* Farben: hell (Standard) · dunkel folgt der Systemeinstellung (prefers-color-scheme) */
:root {
    color-scheme: light dark;
    --bg: #f7f3ee;
    --card: #ffffff;
    --field: #fbf8f5;
    --hover: #f3ede7;
    --ink: #1c1410;
    --on-ink: #ffffff;
    --muted: #6e625a;
    --line: #e5dcd3;
    --accent: #b8501a;
    --accent-dark: #9c4515;
    --on-accent: #ffffff;
    --ring: rgba(184, 80, 26, 0.16);
    --shadow: rgba(28, 20, 16, 0.05);
    --ok: #2f8a5a;
    --ok-bg: #e7f4ec;
    --warn: #8a5a00;
    --warn-bg: #fdf3e0;
    --info: #2b5876;
    --info-bg: #e9f1f7;
    --err: #b8352a;
    --err-bg: #fbe9e6;
    --note-bg: #fff6e6;
    --note-line: #efd9a8;
    --note-ink: #75560a;
    --tag-pw: #8a5a00; --tag-pw-bg: #fdf3e0; --tag-pw-line: #f0dcae;
    --tag-link: #2b5876; --tag-link-bg: #e9f3fb; --tag-link-line: #cfe4f4;
    --tag-love: #b02a4a; --tag-love-bg: #fdecef; --tag-love-line: #f4ccd6;
    --r: 4px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #120b07;
        --card: #1c140f;
        --field: #160f0b;
        --hover: #271c16;
        --ink: #f5ece4;
        --on-ink: #1c140f;
        --muted: #b0a194;
        --line: #3a2d24;
        --accent: #f99553;
        --accent-dark: #fbab74;
        --on-accent: #1b0e05;
        --ring: rgba(249, 149, 83, 0.22);
        --shadow: rgba(0, 0, 0, 0.35);
        --ok: #6fcf97;
        --ok-bg: #14301f;
        --warn: #f0c060;
        --warn-bg: #33270f;
        --info: #8fc1e3;
        --info-bg: #132736;
        --err: #ff8a7a;
        --err-bg: #3a1714;
        --note-bg: #2e2210;
        --note-line: #5c4619;
        --note-ink: #f0d27a;
        --tag-pw: #f0c060; --tag-pw-bg: #33270f; --tag-pw-line: #5c4619;
        --tag-link: #8fc1e3; --tag-link-bg: #132736; --tag-link-line: #24445c;
        --tag-love: #ff9bb3; --tag-love-bg: #3a1622; --tag-love-line: #6a2a3d;
    }
}
:root[data-theme="dark"] {
    --bg: #120b07;
    --card: #1c140f;
    --field: #160f0b;
    --hover: #271c16;
    --ink: #f5ece4;
    --on-ink: #1c140f;
    --muted: #b0a194;
    --line: #3a2d24;
    --accent: #f99553;
    --accent-dark: #fbab74;
    --on-accent: #1b0e05;
    --ring: rgba(249, 149, 83, 0.22);
    --shadow: rgba(0, 0, 0, 0.35);
    --ok: #6fcf97;
    --ok-bg: #14301f;
    --warn: #f0c060;
    --warn-bg: #33270f;
    --info: #8fc1e3;
    --info-bg: #132736;
    --err: #ff8a7a;
    --err-bg: #3a1714;
    --note-bg: #2e2210;
    --note-line: #5c4619;
    --note-ink: #f0d27a;
    --tag-pw: #f0c060; --tag-pw-bg: #33270f; --tag-pw-line: #5c4619;
    --tag-link: #8fc1e3; --tag-link-bg: #132736; --tag-link-line: #24445c;
    --tag-love: #ff9bb3; --tag-love-bg: #3a1622; --tag-love-line: #6a2a3d;
}
* { box-sizing: border-box; }
html,
body { margin: 0; }
body {
    background: var(--bg); color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55; min-height: 100vh;
}
.tr-wrap { max-width: 660px; margin: 0 auto; padding: 2rem 1.1rem 3rem; display: flex; flex-direction: column; min-height: 100vh; }
.tr-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.tr-brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; }
.tr-brand picture { display: block; }
.tr-logo { width: 2.1rem; height: 2.1rem; object-fit: contain; display: block; }
.tr-wordmark { height: 1.35rem; width: auto; display: block; }
/* Logo-Variante passend zum Modus */
img.tk-d { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) img.tk-l { display: none; }
    :root:not([data-theme="light"]) img.tk-d { display: block; }
}
:root[data-theme="dark"] img.tk-l { display: none; }
:root[data-theme="dark"] img.tk-d { display: block; }
/* Umschalter Auto / Hell / Dunkel */
.tk-navbtn.tk-themebtn { width: 2.1rem; padding-left: 0; padding-right: 0; }
.tk-themebtn:not([data-mode]) { visibility: hidden; }
.tk-themebtn svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: none; }
.tk-themebtn[data-mode="auto"] .tk-ico-auto,
.tk-themebtn[data-mode="light"] .tk-ico-light,
.tk-themebtn[data-mode="dark"] .tk-ico-dark { display: block; }
/* Beispiel-Tags im leeren Textfeld */
.tr-tag { display: inline-flex; align-items: center; padding: 0.05rem 0.45rem; border-radius: var(--r); font-size: 0.86rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.tr-tag--password { background: var(--tag-pw-bg); color: var(--tag-pw); border-color: var(--tag-pw-line); }
.tr-tag--link { background: var(--tag-link-bg); color: var(--tag-link); border-color: var(--tag-link-line); }
.tr-tag--love { background: var(--tag-love-bg); color: var(--tag-love); border-color: var(--tag-love-line); }
.tk-bodywrap { position: relative; }
.tk-bodywrap .tr-area { display: block; }
.tk-ph { position: absolute; top: 1px; left: 1px; right: 1px; padding: 0.7rem 0.8rem; color: var(--muted); font-size: 0.98rem; line-height: 1.9; pointer-events: none; }
.tk-ph .tr-tag { margin-right: 0.2rem; line-height: 1.5; }
.tk-bodywrap .tr-area:not(:placeholder-shown) + .tk-ph { display: none; }
.tr-main { flex: 1 0 auto; }
/* Sprach-Umschalter (verbunden, eckig) */
.tr-lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tr-lang-btn { padding: 0.3rem 0.7rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; background: var(--card); }
.tr-lang-btn + .tr-lang-btn { border-left: 1px solid var(--line); }
.tr-lang-btn:hover { background: var(--hover); color: var(--ink); }
.tr-lang-btn.is-on { background: var(--ink); color: var(--on-ink); }
.tr-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem 1.5rem; box-shadow: 0 8px 24px var(--shadow); }
.tr-card + .tr-card { margin-top: 1rem; }
.tr-center { text-align: center; }
h1 { font-size: 1.35rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.tr-muted { color: var(--muted); margin: 0 0 1.1rem; }
.tr-input { width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: var(--r); padding: 0.7rem 0.8rem; font-size: 0.98rem; color: var(--ink); font-family: inherit; }
.tr-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.tr-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; }
.tr-area { resize: vertical; min-height: 140px; }
select.tr-input { appearance: auto; }
.tr-row { display: flex; gap: 0.8rem; margin: 0.9rem 0 0; flex-wrap: wrap; }
.tr-field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 0.3rem; }
.tr-label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.tr-fieldhint { font-size: 0.78rem; color: var(--muted); }
.tr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; border: 1px solid transparent; border-radius: var(--r); padding: 0.7rem 1.1rem; font-size: 0.96rem; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; }
.tr-btn--primary { background: var(--accent); color: var(--on-accent); }
.tr-btn--primary:hover { background: var(--accent-dark); }
.tr-btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.tr-btn--ghost:hover { background: var(--hover); }
.tr-btn--wide { width: 100%; margin-top: 0.6rem; }
/* Copy-Icon (Standard, per Maske in Textfarbe) */
.tr-ico-copy { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; background: currentColor;
    -webkit-mask: var(--copy-svg) center/contain no-repeat; mask: var(--copy-svg) center/contain no-repeat; }
:root { --copy-svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2'%20stroke-linejoin='round'%3E%3Crect%20x='9'%20y='9'%20width='11'%20height='11'%20rx='2'/%3E%3Cpath%20d='M5%2015V5a2%202%200%200%201%202-2h10'/%3E%3C/svg%3E"); }
.tr-hint { color: var(--warn); background: var(--warn-bg); border-radius: var(--r); padding: 0.65rem 0.9rem; font-size: 0.86rem; margin: 1rem 0 0.4rem; }
.tr-err { color: var(--err); background: var(--err-bg); border-radius: var(--r); padding: 0.6rem 0.9rem; font-size: 0.9rem; margin: 0 0 1rem; }
.tr-bookmark { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: var(--r); padding: 0.6rem 0.9rem; font-size: 0.85rem; color: var(--note-ink); margin: 0 0 1rem; }
.tr-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--r); margin-bottom: 0.7rem; }
.tr-badge--ok { color: var(--ok); background: var(--ok-bg); }
.tr-linkrow { display: flex; gap: 0.5rem; align-items: stretch; margin: 0.4rem 0 0.2rem; flex-wrap: wrap; }
.tr-linkrow .tr-input { flex: 1 1 220px; }
.tr-lock-img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto 0.5rem; }
.tr-count { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; color: var(--accent); }
.tr-foot { flex-shrink: 0; text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 2rem; }
/* Toast */
.tr-toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%) translateY(1rem); background: var(--ink); color: var(--on-ink); padding: 0.6rem 1rem; border-radius: var(--r); font-size: 0.9rem; font-weight: 700; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; z-index: 50; }
.tr-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
/* ── Konversation / Threads (Phase 2) ──────────────────────────────── */
.tr-h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
/* ── Modus-Umschalter: ♾️ bleibt · 🔥 einmal (clean, kein Text) ───── */
.tr-mode { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tr-mode-opt { position: relative; cursor: pointer; }
.tr-mode-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.tr-mode-opt span { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 1.9rem; font-size: 1rem; background: var(--card); filter: grayscale(0.6) opacity(0.55); transition: filter 0.12s, background 0.12s; }
.tr-mode-opt + .tr-mode-opt span { border-left: 1px solid var(--line); }
.tr-mode-opt:hover span { filter: grayscale(0) opacity(0.9); }
.tr-mode-opt input:checked + span { filter: none; background: var(--tk-once-bg, var(--note-bg)); }
.tr-mode-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ── Hilfe ─────────────────────────────────────────────────────── */
.tk-help { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: var(--card); font-size: 0.72rem; font-weight: 800; line-height: 1; text-decoration: none; vertical-align: 0.05em; margin-left: 0.3rem; flex: none; }
.tk-help:hover { color: var(--accent); border-color: var(--accent); }
.tr-foot a { color: inherit; transition: color 0.15s; }
.tr-foot a:hover { color: var(--ink); }
.tk-helphead { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.4rem; }
.tk-helphead h1 { margin: 0; }
.tk-helpnav { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tk-helpnav a { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 0.2rem 0.7rem; background: var(--card); }
.tk-helpnav a:hover { color: var(--ink); border-color: var(--muted); }
.tk-helpsec { margin-bottom: 1.4rem; scroll-margin-top: 1rem; }
.tk-faq { scroll-margin-top: 1rem; }
.tk-faq + .tk-faq { border-top: 1px solid var(--tk-soft); }
.tk-faq summary { cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.8rem 0.95rem; font-weight: 700; font-size: 0.95rem; }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 1.1rem; line-height: 1.2; }
.tk-faq[open] summary::after { content: "–"; }
.tk-faq summary:hover { color: var(--accent); }
.tk-faq-a { padding: 0 0.95rem 0.9rem; font-size: 0.92rem; color: var(--ink); }
.tk-faq-a p, .tk-faq-a ul, .tk-faq-a ol { margin: 0 0 0.55rem; }
.tk-faq-a ul, .tk-faq-a ol { padding-left: 1.2rem; }
.tk-faq-a li + li { margin-top: 0.25rem; }
.tk-faq-a > :last-child { margin-bottom: 0; }
.tk-faq-a a { color: var(--accent); }
.tk-faq.is-target { box-shadow: inset 3px 0 0 var(--accent); }
.tk-helpback a { color: var(--accent); font-weight: 700; }
.tk-pkfirst { margin: -0.2rem 0 0; }
.tk-pkfirst a { color: var(--muted); }
.tk-pkfirst a:hover { color: var(--accent); }
/* ── Echo ─────────────────────────────────────────────────────── */
.tk-echo-mark { display: flex; justify-content: center; margin: 0.2rem 0 0.6rem; }
.tk-echo-logo { width: 64px; height: 64px; }
.tk-echo-mark img.tk-echo-logo { animation: tk-echo 2.8s ease-out infinite; border-radius: 16px; }
.tk-echo-mark.is-sent img.tk-echo-logo { animation: none; }
@keyframes tk-echo { 0% { box-shadow: 0 0 0 0 var(--ring); } 70% { box-shadow: 0 0 0 18px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .tk-echo-mark img.tk-echo-logo { animation: none; } }
.tk-echo form { margin-top: 0.4rem; }
.tk-echo-actions { justify-content: center; }
.tk-note a, #tkAccNote a { color: var(--accent); }
/* ── Datenschutz ──────────────────────────────────────────────── */
.tk-legal h1 { margin-bottom: 0.2rem; }
.tk-legal h2 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.tk-legal h3 { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }
.tk-legal p, .tk-legal li, .tk-legal td, .tk-legal th { font-size: 0.93rem; }
.tk-legal ul { padding-left: 1.2rem; margin: 0 0 0.8rem; }
.tk-legal li + li { margin-top: 0.3rem; }
.tk-legal a { color: var(--accent); }
.tk-legal-lead { background: var(--tk-soft); border-radius: var(--r); padding: 0.8rem 0.95rem; margin: 1rem 0; }
.tk-legal-table { width: 100%; border-collapse: collapse; margin: 0.4rem 0 0.8rem; }
.tk-legal-table th, .tk-legal-table td { text-align: left; vertical-align: top; padding: 0.45rem 0.5rem; border-top: 1px solid var(--line); }
.tk-legal-table th { color: var(--muted); font-size: 0.8rem; border-top: 0; }
.tk-legal-table td:first-child { font-weight: 700; width: 36%; }
.tk-legal code { font-size: 0.85em; background: var(--tk-soft); padding: 0 0.25rem; border-radius: 3px; }
@media (max-width: 520px) { .tk-legal-table td:first-child { width: 40%; } }
/* ── Hinweis auf neue Nachrichten ─────────────────────────────── */
#tkNavAcc { position: relative; }
.tk-navbadge-old { position: absolute; top: -0.45rem; right: -0.45rem; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 0.68rem; font-weight: 800; line-height: 1.15rem; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.tk-savelogin { margin-top: 0.4rem; }
/* Fusszeile zweireihig: Aussage oben, Links darunter */
.tr-foot-claim { margin: 0 0 0.35rem; }
.tr-foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3rem 2rem; font-size: 0.78rem; }
.tr-foot-links a { text-decoration: none; }
.tr-foot-links a:hover { text-decoration: underline; }
/* ── Admin-Cockpit ────────────────────────────────────────────── */
.tk-page-admin .tr-wrap { max-width: 1080px; }
.ta .tk-head { margin-bottom: 0.3rem; }
.ta-h2 { margin: 1.6rem 0 0.6rem; }
.ta-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; margin: 1rem 0; }
.ta-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0.75rem 0.85rem; }
.ta-tile-n { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ta-tile-l { font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.ta-tile-s { font-size: 0.74rem; color: var(--muted); }
.ta-tiles--small .ta-tile-n { font-size: 1.15rem; }
.ta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0.8rem; }
.ta-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ta-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0.85rem 0.95rem; margin: 0; min-width: 0; }
.ta-cap { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; }
.ta-svg { width: 100%; height: auto; display: block; }
.ta-bar { fill: var(--accent); }
.ta-hit { fill: transparent; }
.ta-hit:hover { fill: var(--ring); }
.ta-grid line, .ta-svg .ta-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.ta-svg .ta-axis { stroke: var(--line); stroke-width: 1; }
.ta-tick { fill: var(--muted); font-size: 10px; font-family: inherit; }
.ta-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 6px 18px var(--shadow); padding: 0.35rem 0.55rem; font-size: 0.78rem; display: flex; flex-direction: column; }
.ta-details { margin-top: 0.4rem; font-size: 0.78rem; color: var(--muted); }
.ta-details summary { cursor: pointer; }
.ta-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.ta-barrow { display: grid; grid-template-columns: minmax(0, 9rem) 1fr auto; gap: 0.5rem; align-items: center; font-size: 0.8rem; }
.ta-barlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-bartrack { height: 8px; background: var(--tk-soft); border-radius: 99px; overflow: hidden; }
.ta-bartrack i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.ta-num { text-align: right; font-variant-numeric: tabular-nums; }
.ta-switches { display: flex; flex-direction: column; gap: 0.7rem; }
.ta-tablewrap { overflow-x: auto; margin-top: 0.6rem; }
.ta-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.ta-table th { text-align: left; color: var(--muted); font-size: 0.74rem; font-weight: 700; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ta-table td { padding: 0.5rem; border-bottom: 1px solid var(--tk-soft); vertical-align: top; }
.ta-table--mini td { padding: 0.15rem 0.4rem; }
.ta-table tr.is-blocked td { opacity: 0.75; }
.ta-strong { font-weight: 700; word-break: break-all; }
.ta-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; min-width: 11rem; }
.ta-block { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.ta-note { padding: 0.3rem 0.5rem; font-size: 0.8rem; width: 11rem; }
.ta-flag { color: var(--tk-once); }
/* Kopf-Icon «Neue Nachricht», oranger Punkt für Ungelesenes, Firmengruppe, Drag & Drop */
.tk-navbtn.tk-iconnav { width: 2.1rem; padding-left: 0; padding-right: 0; }
.tk-iconnav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tk-navdot { position: absolute; top: -0.25rem; right: -0.25rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #f99553; box-shadow: 0 0 0 2px var(--bg); }
.tr-foot-group { margin: 0.6rem 0 0; font-size: 0.72rem; opacity: 0.85; }
.tr-foot-group a { color: inherit; text-decoration: none; font-weight: 600; }
.tr-foot-group a:hover { text-decoration: none; color: var(--accent); }
.tk-dropzone { position: relative; }
.tk-dropzone.is-drop { outline: 2px dashed var(--accent); outline-offset: 2px; }
.tk-dropzone.is-drop::after { content: attr(data-drop-text); position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--accent); font-weight: 700; font-size: 0.9rem; border-radius: var(--r); pointer-events: none; z-index: 2; }
textarea.tk-dropzone.is-drop { background: var(--hover); }
@media (max-width: 440px) {
    .tr-wordmark { display: none !important; }
    .tk-topnav { gap: 0.35rem; }
    .tr-top { gap: 0.5rem; }
}
/* Fusszeile: je ein eigenes Zeichen – Frage, Echo, Schild. Der orange Punkt ist in allen dreien das Licht am Ende des tunnl. */
.tr-foot-links a { display: inline-flex; align-items: center; gap: 0.35rem; }
.tk-fico { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tk-fico .tk-dot { fill: var(--accent); stroke: none; }
.tr-foot-links a:hover { text-decoration: none; color: var(--accent); }
.tr-foot-group a { font-weight: 400; }
/* Fusszeile läuft nach unten sanft aus (hell wie dunkel) */
.tr-foot-claim { opacity: 0.95; }
.tr-foot-links { opacity: 0.75; }
.tr-foot .tr-foot-group { opacity: 0.55; }
.tr-foot-links a:hover, .tr-foot-group a:hover { opacity: 1; }
.tr-foot-links:hover, .tr-foot .tr-foot-group:hover { opacity: 1; transition: opacity 0.15s; }

/* ── So funktioniert tunnl. (sicherheit.php) ── */
.tk-how-kicker { margin: 0 0 0.2rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tk-how-lead { font-size: 1.15rem !important; margin: 0.3rem 0 1.4rem; }
.tk-how-steps { counter-reset: how; list-style: none; padding: 0 !important; margin: 0 0 1.2rem !important; }
.tk-how-steps li { counter-increment: how; position: relative; padding: 0 0 0 2.4rem; }
.tk-how-steps li + li { margin-top: 0.8rem !important; }
.tk-how-steps li::before { content: counter(how); position: absolute; left: 0; top: -0.05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; background: var(--tk-soft); color: var(--ink); }
.tk-how-steps li:last-child::before { background: #f99553; color: #1c1410; }
.tk-how-flow { margin: 1.4rem 0 1.8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.tk-how-row { display: flex; align-items: stretch; gap: 0.4rem; }
.tk-how-node { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem; padding: 0.7rem 0.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 0.85rem; }
.tk-how-node span:last-child { color: var(--muted); font-size: 0.78rem; }
.tk-how-ico { font-size: 1.4rem; line-height: 1.2; }
.tk-how-server { border-style: dashed; }
.tk-how-arrow { flex: 0 0 3.6rem; display: flex; align-items: center; justify-content: center; position: relative; }
.tk-how-arrow::before { content: ""; position: absolute; left: 0; right: 0.3rem; top: 50%; border-top: 2px solid var(--line); }
.tk-how-arrow::after { content: ""; position: absolute; right: 0; top: calc(50% - 5px); border: 5px solid transparent; border-left: 7px solid var(--line); border-right: 0; }
.tk-how-arrow span { position: relative; z-index: 1; margin-top: -1.6rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.66rem; color: var(--muted); }
.tk-how-key { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 2px dashed #f99553; text-align: center; font-size: 0.88rem; }
.tk-how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 0.4rem 0 1rem; }
.tk-how-grid section { padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.tk-how-grid h3 { margin: 0 0 0.3rem !important; font-size: 0.93rem !important; }
.tk-how-grid h3::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin: 0 0.45rem 0.1rem 0; border-radius: 50%; background: #f99553; }
.tk-how-grid p { margin: 0; color: var(--muted); font-size: 0.88rem !important; }
.tk-how-table td:first-child::before { content: "✓ "; color: var(--muted); }
.tk-how-table td:last-child::before { content: "✗ "; color: var(--accent); }
.tk-how-detail { border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 0.5rem; background: var(--card); }
.tk-how-detail summary { cursor: pointer; padding: 0.7rem 0.9rem; font-weight: 700; font-size: 0.93rem; }
.tk-how-detail[open] summary { border-bottom: 1px solid var(--line); }
.tk-how-detail > *:not(summary) { margin-left: 0.9rem; margin-right: 0.9rem; }
.tk-how-detail > ol, .tk-how-detail > ul { padding-left: 2.1rem !important; margin-left: 0; margin-top: 0.7rem; }
.tk-how-detail > p:last-child { margin-bottom: 0.8rem; }
.tk-how-detail code { font-size: 0.82rem; background: var(--tk-soft); padding: 0.1rem 0.3rem; border-radius: 3px; word-break: break-all; }
.tk-how-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 1.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.tk-how-cta a.tr-btn { color: var(--on-accent); }
.tk-how-cta span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 600px) {
  .tk-how-row { flex-direction: column; }
  .tk-how-arrow { flex: 0 0 2rem; }
  .tk-how-arrow::before { left: 50%; right: auto; top: 0; bottom: 0.3rem; border-top: 0; border-left: 2px solid var(--line); }
  .tk-how-arrow::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 0; border: 5px solid transparent; border-top: 7px solid var(--line); border-bottom: 0; }
  .tk-how-arrow span { margin: 0 0 0 5.5rem; }
  .tk-how-grid { grid-template-columns: 1fr; }
}
.tk-how-table td:first-child { font-weight: 400; width: 50%; }
.tk-how-arrow::before { border-color: var(--muted); opacity: 0.45; }
.tk-how-arrow::after { opacity: 0.45; border-left-color: var(--muted); }
@media (max-width: 600px) { .tk-how-arrow::after { border-left-color: transparent; border-top-color: var(--muted); } }

/* Aussage und Firmen verhalten sich wie die Links dazwischen: orange, ohne Strich */
.tr-foot-claim a { color: inherit; text-decoration: none; }
.tr-foot-claim a:hover { text-decoration: none; color: var(--accent); }
.tk-what { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.tk-what:hover { color: var(--accent); }

.tr-tag svg { flex: none; width: 0.95em; height: 0.95em; margin-right: 0.3em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.tk-editbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-edit { display: flex; flex-direction: column; gap: 0.5rem; }
.tk-edit textarea { font-size: 0.95rem; resize: vertical; }
.tk-edit-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tk-edit-row .tk-sp { flex: 1; }
.tk-edit-row .tr-btn { padding: 0.45rem 0.8rem; font-size: 0.86rem; }
.tk-chip--edited { background: transparent; padding: 0.05rem 0; font-weight: 500; font-style: italic; }
.tk-meta .tk-chip--edited { background: transparent; padding: 0.05rem 0; font-weight: 500; font-style: italic; }

/* Anhang: Auswahl «schon hochgeladen» */
.tk-attmenu { position: fixed; z-index: 50; min-width: 240px; max-width: min(340px, calc(100vw - 16px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 0.3rem; }
.tk-attmenu-item { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; width: 100%; border: 0; background: none; color: var(--ink); font: inherit; font-size: 0.86rem; text-align: left; padding: 0.45rem 0.5rem; border-radius: var(--r); cursor: pointer; }
.tk-attmenu-item:hover, .tk-attmenu-item:focus-visible { background: var(--hover); outline: none; }
.tk-attmenu-dev { font-weight: 700; }
.tk-attmenu-head { font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0.5rem 0.5rem 0.2rem; border-top: 1px solid var(--line); margin-top: 0.2rem; }
.tk-attmenu .tk-fi { flex: none; width: 2rem; height: 2rem; font-size: 0.55rem; }
.tk-attmenu-name { display: flex; flex-direction: column; min-width: 0; }
.tk-attmenu-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-attmenu-name small { color: var(--muted); font-size: 0.72rem; }
.tk-pending-chip.is-reuse { border-style: dashed; }
.tk-edit .tk-pending { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tk-edit .tk-iconbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-edit .tk-attttl { font-size: 0.8rem; color: var(--muted); }
.ta-note { margin: -0.2rem 0 0.6rem; font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.ta-note code { font-size: 0.72rem; }
.ta-card .ta-note { margin: -0.2rem 0 0.6rem !important; padding: 0 !important; max-width: none !important; text-align: left; }

.ta-giftnew { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0 0.2rem; padding: 0.5rem 0.7rem; background: var(--note-bg); border: 1px solid var(--note-line); border-radius: var(--r); font-size: 0.86rem; }
.ta-giftnew b { font-size: 1rem; letter-spacing: 0.06em; }
.tk-planstate { margin: 0.2rem 0 0.6rem; font-size: 0.86rem; color: var(--muted); }
.tk-planstate.is-on { color: var(--ok); font-weight: 700; }
.tk-multi { margin: 0.2rem 0 0.9rem; }
.tk-multi span { display: block; }
.tk-multi small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.1rem; }

.tk-tunnelfig { margin: 0.9rem 0 1rem; }
.tk-tunnelfig svg { width: 100%; height: auto; display: block; }
.tk-tunnelfig .tk-tf-lab { font-size: 15px; font-weight: 700; fill: var(--ink); }
.tk-tunnelfig .tk-tf-in { font-size: 13px; font-weight: 700; fill: #ffe9cd; }
.tk-tunnelfig figcaption { margin-top: 0.4rem; font-size: 0.8rem; color: var(--muted); }

/* Abholfrist: Schieber mit Wert daneben */
.tk-slider { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.15rem; }
.tk-slider input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); height: 1.6rem; }
.tk-slider-out { flex: none; min-width: 6.5rem; text-align: right; font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Banner der Option neben dem Logo */
/* Banner der Option: randlos, an den Kanten ausgeblendet – es soll mit dem Kopf verschmelzen. */
.tk-planbanner { display: block; flex: 0 1 auto; min-width: 0; line-height: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 76%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 76%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
.tk-planbanner img { height: 3rem; width: auto; max-width: 100%; object-fit: cover; opacity: 0.92; transition: opacity 0.15s; }
.tk-planbanner:hover img { opacity: 1; }
@media (max-width: 860px) { .tk-planbanner img { height: 2.4rem; } }
@media (max-width: 560px) { .tk-planbanner { display: none; } }

/* ── Absender fürs gebrandete Mail (Konto) ───────────────────────── */
.tk-brandlogo { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.tk-brandlogo-box { display: grid; place-items: center; min-width: 8rem; height: 4.2rem; padding: 0.4rem 0.6rem; background: var(--field); border: 1px dashed var(--line); border-radius: var(--r); }
.tk-brandlogo-box img { max-height: 3.4rem; max-width: 12rem; display: block; }
.tk-brandlogo-side { flex: 1 1 14rem; }
.tk-brandlogo-side .tr-fieldhint { margin-top: 0.35rem; }

/* ── Rechnungslauf ───────────────────────────────────────────────── */
.tk-vsdrop { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--r); background: var(--field); text-align: center; }
.tk-vsdrop.is-drop { border-color: var(--accent); border-style: solid; background: var(--hover); }
.tk-vsdrop .tk-hint { margin: 0; }
.tk-vslist { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.tk-vsrow { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 0.8rem 0.9rem; }
.tk-vsrow.is-ok { border-color: var(--ok); }
.tk-vsrow.is-err { border-color: var(--err); }
.tk-vshead { display: flex; align-items: center; gap: 0.6rem; }
.tk-vshead .tk-fi { flex: none; }
.tk-vsname { flex: 1 1 auto; min-width: 0; }
.tk-vsname b { display: block; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-vsname small { color: var(--muted); font-size: 0.78rem; }
.tk-vsfields { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem 0.6rem; margin-top: 0.7rem; }
.tk-vsfields label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.tk-vsfields input { font-size: 0.92rem; padding: 0.45rem 0.55rem; }
.tk-vsfields .tk-vswide { grid-column: 1 / -1; }
.tk-vsfoot { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; font-size: 0.8rem; color: var(--muted); }
.tk-vsplain { color: var(--warn); }
.tk-vsstate { font-weight: 700; }
.tk-vsrow.is-ok .tk-vsstate { color: var(--ok); }
.tk-vsrow.is-err .tk-vsstate { color: var(--err); }
.tk-vsrow.is-ok .tk-vsfields, .tk-vsrow.is-busy .tk-vsfields { opacity: 0.55; }
.tk-vsbar { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.1rem; }
.tk-vslink { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.75rem; }
.tk-headbtns { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ── Vorschau des Mails ──────────────────────────────────────────── */
body.is-modal { overflow: hidden; }
.tk-modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
    padding: 1rem; background: color-mix(in srgb, var(--ink) 55%, transparent); }
.tk-modal[hidden] { display: none; }
.tk-modal-box { display: flex; flex-direction: column; width: min(46rem, 100%); max-height: min(46rem, 92vh);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem 1.1rem; box-shadow: 0 16px 48px var(--shadow); }
.tk-modal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.tk-modal-head .tr-h2 { margin: 0; }
.tk-modal-head .tk-linkbtn { font-size: 1.4rem; line-height: 1; }
.tk-modal-box .tk-hint { margin: 0.3rem 0 0.7rem; }
.tk-modal-frame { flex: 1 1 auto; width: 100%; min-height: 24rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
@media (max-width: 560px) { .tk-modal { padding: 0.5rem; } .tk-modal-frame { min-height: 18rem; } }

/* ── Tabellen-Anhang (CSV) in der Nachricht ──────────────────────── */
.tk-table { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); max-width: 100%; }
.tk-table-scroll { overflow-x: auto; max-height: 26rem; overflow-y: auto; }
.tk-table table { border-collapse: collapse; width: 100%; font-size: 0.82rem; }
.tk-table th, .tk-table td { padding: 0.32rem 0.6rem; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tk-table thead th { position: sticky; top: 0; background: var(--field); font-weight: 700; color: var(--ink); z-index: 1; }
.tk-table thead th::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px solid var(--line); }
.tk-table tbody tr:last-child td { border-bottom: 0; }
.tk-table tbody tr:nth-child(even) td { background: var(--field); }
.tk-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.tk-table figcaption { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; font-size: 0.74rem; color: var(--muted); padding: 0.35rem 0.55rem; border-top: 1px solid var(--line); }
.tk-table-h { font-weight: 700; font-size: 0.88rem; padding: 0.45rem 0.6rem 0.3rem; color: var(--ink); }
.tk-table .is-wide { white-space: normal; width: 100%; }
.tk-vshours { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.55rem; font-size: 0.8rem; color: var(--muted); }
.tk-vshours-info { display: inline-flex; align-items: center; gap: 0.3rem; }
.tk-vshours-name { font-weight: 700; color: var(--ink); }

/* ── Liste im Konto: die neuesten zuerst, der Rest auf Klick ─────── */
.tk-morerow { list-style: none; display: flex; justify-content: center; padding: 0.5rem 0 0.1rem; }
.tk-morerow .tk-linkbtn { font-size: 0.85rem; }

/* ── Einzelversand ──────────────────────────────────────────────── */
#sdForm > .tr-field, #sdForm > .tr-row, #sdForm > .tk-attrow { margin-bottom: 1rem; }
#sdForm > .tr-field > .tr-fieldhint { margin-bottom: 0.15rem; }
.tk-page-versand .tk-sdbody .tk-bodywrap { margin: 0; }
.tk-page-versand .tk-sdbody .tr-area { min-height: 9rem; }
.tk-sdkeep { margin-left: auto; font-size: 0.8rem; }
.tk-page-versand .tk-vsbar { margin-top: 1rem; }

/* ── Beta-Band über der rechten oberen Ecke ──────────────────────
 * Ein Band, das über der Ecke liegt: Verlauf statt Fläche, zwei Zeilen,
 * ein weicher Schatten darunter. Das Band ist absichtlich länger als die
 * Ecke breit ist – so laufen beide Enden aus dem Bild und man sieht kein
 * abgeschnittenes Eck. */
.tk-beta { position: fixed; top: 0; right: 0; width: 15rem; height: 15rem; overflow: hidden; z-index: 30; pointer-events: none; }
.tk-beta span { position: absolute; top: 3.6rem; left: -5.3rem; width: 30rem; padding: 0.42rem 0 0.5rem;
    display: block; text-align: center; transform: rotate(45deg); pointer-events: auto; text-decoration: none;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 42%, var(--accent) 58%, var(--accent-dark) 100%);
    color: var(--on-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.14);
    transition: filter 0.15s; }
.tk-beta b { display: block; font-size: 0.92rem; font-weight: 800; letter-spacing: 0.01em; line-height: 1.25; }
.tk-beta small { display: block; font-size: 0.66rem; font-weight: 600; line-height: 1.3; opacity: 0.88; }
.tk-beta:hover span { filter: brightness(1.06); }
/* Schmal: das Band käme den Knöpfen zu nahe – dann lieber eine kleine Marke über dem Kopf */
@media (max-width: 960px) {
  .tk-beta { position: static; width: auto; height: auto; overflow: visible; display: block; text-align: center; margin: -0.6rem 0 0.9rem; }
  .tk-beta span { position: static; transform: none; display: inline-block; width: auto; left: auto; top: auto;
      padding: 0.2rem 0.85rem; border-radius: 999px; box-shadow: 0 2px 8px var(--shadow); }
  .tk-beta b { display: inline; font-size: 0.7rem; }
  .tk-beta small { display: inline; font-size: 0.7rem; }
  .tk-beta small::before { content: " · "; }
}

/* ── Optionen als Marke ──────────────────────────────────────────── */
.tr-tag--plan { background: var(--field); color: var(--accent); border-color: var(--accent); font-size: 0.82rem; letter-spacing: 0.01em; }

/* ── Versenden: Vorlagen ─────────────────────────────────────────── */
.tk-tplsel { max-width: 14rem; font-size: 0.86rem; padding: 0.3rem 0.5rem; }
.tk-manyhint:empty { display: none; }
.tk-manyhint { margin: -0.4rem 0 0.6rem; color: var(--note-ink); }
.tk-tplrow { gap: 1rem; margin-top: 0.4rem; }
.tk-tplname { margin-top: 0.8rem; padding: 0.7rem 0.8rem; background: var(--field); border: 1px solid var(--line); border-radius: var(--r); align-items: flex-end; }
.tk-tplname-btns { flex: none; gap: 0.6rem; }
.tk-sendbtn svg { width: 0.9em; height: 0.9em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.1em; }
.tk-att--table { margin-top: 0.4rem; }
