/* 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;
    --plan-see: #1d6a8c; --plan-see-bg: #e6f2f8; --plan-see-line: #bcdcea;
    --plan-fels: #57534a; --plan-fels-bg: #efece7; --plan-fels-line: #d5cec3;
    --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;
        --plan-see: #7fc4e0; --plan-see-bg: #112c38; --plan-see-line: #27505f;
        --plan-fels: #c9c0b3; --plan-fels-bg: #2a2621; --plan-fels-line: #4a443b;
    }
}
: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;
    --plan-see: #7fc4e0; --plan-see-bg: #112c38; --plan-see-line: #27505f;
    --plan-fels: #c9c0b3; --plan-fels-bg: #2a2621; --plan-fels-line: #4a443b;
}
* { 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.55rem; margin: 0 0 0.6rem; letter-spacing: -0.015em; }
.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.15rem; margin: 1.8rem 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 ─────────────────────────────── */
/* Der Zähler sitzt absolut im Knopf – die Bezugsfläche gehört darum an die
   Klasse, nicht an eine einzelne id. */
.tk-navbtn { 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; }
/* Reiter: vier Bereiche statt einer endlosen Rolle */
.ta-tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.9rem 0 1.1rem;
  border-bottom: 1px solid var(--line); }
.ta-tab { appearance: none; background: none; border: 1px solid transparent; border-bottom: none;
  border-radius: var(--r) var(--r) 0 0; margin-bottom: -1px; padding: 0.5rem 0.95rem;
  font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.ta-tab:hover { color: var(--ink); }
.ta-tab.is-on { color: var(--ink); background: var(--card); border-color: var(--line); border-bottom: 1px solid var(--card); }
.ta-tab:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.ta-pane[hidden] { display: none; }
/* Neue Funktion anlegen: liegt zusammengeklappt unter der Tabelle */
.ta-neufeat { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.7rem; }
.ta-neufeat > summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.ta-neufeat-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem; align-items: end; margin-top: 0.7rem; }
.ta-neufeat-form .tk-row { grid-column: 1 / -1; }
.ta-featcode { display: inline-block; font-size: 0.74rem; font-weight: 700; padding: 0.1rem 0.5rem;
  border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.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-barrow:has(.ta-ignore) { grid-template-columns: minmax(0, 9rem) 1fr auto 1.2rem; }
.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; }

/* Das Menü im Kopf: drei Punkte übereinander – heute das Zeichen für «hier
   steckt mehr». Kein Rahmen, keine Fläche: es führt zu Dingen, die man zweimal
   im Leben braucht, und soll neben dem Nachrichten-Symbol nicht um
   Aufmerksamkeit bitten. Beides kommt beim Berühren dazu, dann aber deutlich. */
.tk-navmenu { position: relative; display: inline-flex; }
.tk-mehrbtn { width: 2.1rem; padding: 0.3rem; border: 0; background: none; color: var(--muted);
  border-radius: 999px; line-height: 0; cursor: pointer; transition: color 0.12s, background 0.12s; }
.tk-mehrbtn:hover, .tk-mehrbtn[aria-expanded="true"] { color: var(--ink); background: var(--line); }
.tk-mehrbtn:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; }
/* Höhere Genauigkeit als .tk-iconnav svg – sonst gewinnt dessen fill:none, und
   die Kreise kommen als Ringe heraus. Genau das war der Fall: bei r=1.7 mit
   Strichstärke 2 sehen Ringe aus wie dichte Kleckse, dunkler als gewollt. */
.tk-navbtn.tk-mehrbtn svg { width: 1.35rem; height: 1.35rem; display: block; margin: 0 auto;
  fill: currentColor; stroke: none; opacity: 0.68; transition: opacity 0.12s; }
.tk-navbtn.tk-mehrbtn:hover svg,
.tk-navbtn.tk-mehrbtn[aria-expanded="true"] svg { opacity: 1; }

/* Die Liste hängt am Knopf, nicht an berechneten Koordinaten – so läuft sie
   beim Rollen nicht davon. Rechtsbündig, weil der Knopf am rechten Rand steht. */
.tk-navmenu-box { position: absolute; top: calc(100% + 0.45rem); right: 0; z-index: 40;
  min-width: 11rem; padding: 0.35rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 0.7rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14); }
.tk-navmenu-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.55rem;
  border-radius: 0.45rem; font-size: 0.86rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
/* Das Zeichen vor der Beschriftung – etwas blasser als die Schrift, damit man
   die Zeile liest und nicht das Bild. Beim Überfahren kommt es mit. */
.tk-nico { width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7;
  transition: opacity 0.12s; }
.tk-nico .tk-dot { fill: var(--accent); stroke: none; }
.tk-navmenu-item:hover .tk-nico, .tk-navmenu-item:focus-visible .tk-nico { opacity: 1; }
.tk-navmenu-item:hover, .tk-navmenu-item:focus-visible { background: var(--hover); }
/* Das Menü am roten Knopf hängt an dessen Hülle, damit es beim Rollen nicht
   davonläuft – dieselbe Bauweise wie nebenan, nur der Bezugspunkt ist ein
   anderer. Vorher wurden hier Koordinaten gerechnet. */
.tk-split { position: relative; }
.tk-sendmenu-box { top: calc(100% + 0.45rem); }
.tk-navmenu-sep { height: 1px; margin: 0.35rem 0.2rem; background: var(--line); }
.tk-navmenu-head { padding: 0.2rem 0.55rem 0.3rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tk-navmenu-box .tr-lang { margin: 0 0.55rem 0.3rem; }
.tk-iconnav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Der Zähler am Nachrichten-Symbol: oranger Kreis mit der Zahl darin – dort,
   wo ihn jeder sucht. Der Ring in Hintergrundfarbe hebt ihn vom Symbol ab,
   damit die Zahl auch über einer Linie lesbar bleibt. */
.tk-navbadge { position: absolute; top: -0.3rem; right: -0.35rem;
  min-width: 1.05rem; height: 1.05rem; padding: 0 0.22rem; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #f99553; color: #2a1f18;
  font-size: 0.68rem; font-weight: 700; line-height: 1; letter-spacing: -0.01em;
  box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
/* «9+» braucht etwas mehr Luft als eine einzelne Ziffer. */
.tk-navbadge.is-viele { letter-spacing: -0.03em; }
.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-key .tk-mico { width: 1.25em; height: 1.25em; color: var(--accent); vertical-align: -0.2em; }
.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;
  width: auto !important; text-align: left; }   /* die 11rem oben gelten nur in der Kontentabelle */

.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-box i { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.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-vsdropbtns { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.tk-vslisthint { margin: 0.5rem 0 0; }
.tk-vslisthint .tk-linkbtn { margin-left: 0.3rem; }
.tk-vsrow.is-fromlist .tk-vsfields input { background: var(--field); }
.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; }

/* Der Absender auf der eigenen Domäne: Feld und Domäne wirken wie ein Stück,
   damit man sieht, dass man nur den Teil davor schreibt. */
.tk-absender { margin: 1.1rem 0 0.2rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.tk-absfeld { display: inline-flex; align-items: stretch; flex: 1 1 14rem; min-width: 0; }
.tk-absfeld .tr-input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
/* Beim Briefkasten steht der feste Teil vorn: man liest die Adresse von links
   nach rechts, tunnl.ch/an/ … und dann der eigene Name. */
.tk-bkfeld .tk-bkvor { border-left: 1px solid var(--line); border-right: 0;
  border-radius: var(--r) 0 0 var(--r); }
.tk-bkfeld .tr-input { border-radius: 0 var(--r) var(--r) 0; }
.tk-absdom { display: inline-flex; align-items: center; padding: 0 0.6rem;
  border: 1px solid var(--line); border-left: 0; border-top-right-radius: var(--r);
  border-bottom-right-radius: var(--r); background: var(--tk-soft); color: var(--muted);
  font-size: 0.9rem; white-space: nowrap; }

/* ── Die Einladung zum Echo ──────────────────────────────────────
 * Sie hat das schräge Beta-Band abgelöst. Aus einem Punkt laufen Wellen,
 * daraus wird die Sprechblase – dieselbe, die im Kopf den Posteingang
 * bezeichnet. Das ist tunnl. in drei Sekunden, ohne ein Wort.
 *
 * Die Reihenfolge ist der ganze Witz, darum trägt nicht der Kasten die
 * Bewegung, sondern seine Fläche: erst der Punkt in der Ecke, dann die
 * Wellen, daraus die Blase – und erst wenn sie steht, wächst der Kasten
 * mit dem Text nach links heraus. Läge die Zeichnung im Kasten und dieser
 * bliende als Ganzes ein, spielte das Schauspiel im Unsichtbaren.
 *
 * Darum steht das Zeichen rechts: dort ist die Ecke, von der die Rede ist.
 * Unter dem Kopf, nicht darin – die Zeile darüber gehört der Handlung, und
 * ein blinkendes Ding neben dem roten Knopf träte gegen ihn an.
 */
/* ── Das Band der Vorstufe ──────────────────────────────────────────
 *
 * Ganz oben, über die volle Breite, nicht wegzuklicken. Es schiebt die Seite
 * hinunter, statt über ihr zu schweben: ein Band, das etwas verdeckt, wird
 * irgendwann weggeklickt oder überklebt, und genau dann täuscht es.
 *
 * Der Warnton des Hauses, nicht Rot: Rot gehört dem roten Knopf, und die
 * Vorstufe ist keine Gefahr, sondern ein Hinweis, der nicht verschwinden darf.
 */
.tk-testband { display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.25rem 0.6rem; padding: 0.45rem 1rem;
  background: var(--warn-bg); color: var(--warn);
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em; text-align: center; }
.tk-testband-ico { width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Der Zusatz erklärt, das Erste benennt: darum leichter und, wenn es eng wird,
   auf einer eigenen Zeile. */
.tk-testband-zusatz { font-weight: 400; opacity: 0.85; }
@media (max-width: 420px) { .tk-testband { font-size: 0.76rem; padding: 0.4rem 0.7rem; } }
/* Das Band steht über der Seite und schiebt sie hinunter – ohne diese zwei
   Zeilen ergäbe 100vh plus Bandhöhe auf jeder Seite einen Rollbalken, der
   nirgends hinführt. Der Körper misst, die Hülle nimmt den Rest: das rechnet
   der Browser aus, und niemand muss eine Bandhöhe raten. */
body.is-test { display: flex; flex-direction: column; min-height: 100vh; }
body.is-test .tr-wrap { min-height: 0; flex: 1 0 auto; }
/* Die Echo-Einladung hängt am Fenster, nicht am Fluss – sie weiss vom Band
   nichts und legte sich sonst über den Kopf. */
body.is-test .tk-echoein { top: 6.9rem; }
/* Auf dem Ausdruck und im Protokoll bleibt es stehen – ein ausgedrucktes
   Testprotokoll, dem man es nicht ansieht, ist das nächste Missverständnis. */
@media print { .tk-testband { background: none; border-bottom: 1px solid currentColor; } }

.tk-echoein { position: fixed; top: 4.6rem; right: 1rem; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.2rem 0.7rem;
  align-items: center; width: min(21rem, calc(100vw - 2rem));
  padding: 0.85rem 0.95rem; }
/* Die Fläche liegt hinter dem Inhalt und kommt später – sie ist das, was
   «der Kasten wächst heraus» überhaupt zeigt. */
.tk-echoein::before { content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14); }
.tk-echoein > * { position: relative; z-index: 1; }
.tk-echoein-sig { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; flex: none; }
.tk-echoein-text { grid-column: 1; margin: 0; font-size: 0.84rem; line-height: 1.35; color: var(--ink); }
.tk-echoein-cta { grid-column: 1; justify-self: start; margin-top: 0.5rem;
  padding: 0.32rem 0.7rem; font-size: 0.8rem; }
.tk-echoein-zu { grid-column: 1; justify-self: start; margin-top: 0.15rem; font-size: 0.78rem; }

/* Der Punkt, die Wellen, die Blase. Eine Zeichnung, keine drei Bilder. */
.tk-echoein-punkt { fill: var(--accent); stroke: none; transform-origin: 24px 24px; }
.tk-echoein-w { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-origin: 24px 24px; }
.tk-echoein-blase { fill: none; stroke: var(--accent); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 120; stroke-dashoffset: 120; }

/* Auftauchen: Punkt (0), Wellen (0,25–0,65), Blase (0,85), Fläche und Text (1,5). */
.tk-echoein.is-auf::before { animation: tk-ein-flaeche 0.45s ease-out 1.5s backwards; }
.tk-echoein.is-auf .tk-echoein-text,
.tk-echoein.is-auf .tk-echoein-cta,
.tk-echoein.is-auf .tk-echoein-zu { animation: tk-ein-text 0.4s ease-out 1.6s backwards; }
.tk-echoein.is-auf .tk-echoein-punkt { animation: tk-ein-punkt 1.6s ease-out forwards; }
.tk-echoein.is-auf .tk-echoein-w1 { animation: tk-ein-welle 1.1s ease-out 0.25s; }
.tk-echoein.is-auf .tk-echoein-w2 { animation: tk-ein-welle 1.1s ease-out 0.45s; }
.tk-echoein.is-auf .tk-echoein-w3 { animation: tk-ein-welle 1.1s ease-out 0.65s; }
.tk-echoein.is-auf .tk-echoein-blase { animation: tk-ein-blase 0.8s ease-out 0.85s forwards; }

/* Und rückwärts: Text und Fläche gehen zuerst, dann löst sich die Blase in
   Wellen auf, die Wellen laufen in den Punkt zurück, der Punkt erlischt. */
.tk-echoein.is-zu::before { animation: tk-ein-flaeche 0.35s ease-in forwards reverse; }
.tk-echoein.is-zu .tk-echoein-text,
.tk-echoein.is-zu .tk-echoein-cta,
.tk-echoein.is-zu .tk-echoein-zu { animation: tk-ein-text 0.25s ease-in forwards reverse; }
.tk-echoein.is-zu .tk-echoein-blase { animation: tk-ein-blase 0.5s ease-in 0.35s forwards reverse; }
.tk-echoein.is-zu .tk-echoein-w1 { animation: tk-weg-welle 0.6s ease-in 0.6s; }
.tk-echoein.is-zu .tk-echoein-w2 { animation: tk-weg-welle 0.6s ease-in 0.72s; }
.tk-echoein.is-zu .tk-echoein-punkt { animation: tk-weg-punkt 0.5s ease-in 1.05s forwards; }

@keyframes tk-ein-flaeche { from { opacity: 0; transform: scaleX(0.55); transform-origin: right center; }
                            to   { opacity: 1; transform: none; } }
@keyframes tk-ein-text { from { opacity: 0; } to { opacity: 1; } }
@keyframes tk-ein-punkt {
  0%   { transform: scale(0); opacity: 0; }
  18%  { transform: scale(1); opacity: 1; }
  55%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.55); opacity: 0; }
}
@keyframes tk-ein-welle {
  from { transform: scale(0.35); opacity: 0.65; }
  to   { transform: scale(2.6); opacity: 0; }
}
@keyframes tk-ein-blase { to { stroke-dashoffset: 0; } }
@keyframes tk-weg-welle {
  from { transform: scale(2.6); opacity: 0; }
  60%  { opacity: 0.5; }
  to   { transform: scale(0.35); opacity: 0; }
}
@keyframes tk-weg-punkt {
  from { transform: scale(0.55); opacity: 0; }
  35%  { transform: scale(1); opacity: 1; }
  to   { transform: scale(0); opacity: 0; }
}

/* Wer Bewegung abgeschaltet hat, bekommt keine: dann steht die Blase einfach da.
   Die Einladung bleibt, nur das Schauspiel entfällt. */
@media (prefers-reduced-motion: reduce) {
  .tk-echoein.is-auf, .tk-echoein.is-zu,
  .tk-echoein.is-auf::before, .tk-echoein.is-zu::before,
  .tk-echoein.is-auf *, .tk-echoein.is-zu * { animation: none !important; }
  .tk-echoein .tk-echoein-blase { stroke-dashoffset: 0; }
  .tk-echoein .tk-echoein-punkt { opacity: 0; }
}

/* Schmal: sie legt sich unten über die Seite statt in die Ecke – oben rechts
   wäre sie dort genau über den Knöpfen. */
@media (max-width: 600px) {
  .tk-echoein { top: auto; bottom: 1rem; right: 1rem; left: 1rem; width: auto; }
}

/* ── Optionen als Marke ──────────────────────────────────────────── */
.tr-tag--seelisberg, .tr-tag--gotthard { font-size: 0.82rem; letter-spacing: 0.01em; gap: 0.3rem; }
.tr-tag--seelisberg svg, .tr-tag--gotthard svg { width: 0.95em; height: 0.95em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* seelisbrg: der See unter dem Berg */
.tr-tag--seelisberg { background: var(--plan-see-bg); color: var(--plan-see); border-color: var(--plan-see-line); }
/* gotthrd: Granit */
.tr-tag--gotthard { background: var(--plan-fels-bg); color: var(--plan-fels); border-color: var(--plan-fels-line); }

/* ── 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; }
.tk-subhead { margin-top: 0.9rem; }
.tk-fileblock { display: flex; flex-direction: column; gap: 0.45rem; }
.tk-fileblock > .tk-file { max-width: 560px; }
.tk-fileblock .tk-att-btn { flex: none; }
.tk-fileblock .tk-table { max-width: 100%; }
.tk-att-tbl { margin-left: auto; }
.tk-table tfoot td { font-weight: 700; border-top: 1px solid var(--line); background: var(--field); }
.tk-keepname { max-width: 12rem; margin-left: 0.4rem; padding: 0.2rem 0.45rem; font-size: 0.85rem; }
.tk-sdkeep { gap: 0.4rem; flex-wrap: wrap; }

/* ── Wofür tunnl. da ist: Vergleich, Alltagskarten, Technikzeile ───────── */
.tk-wf { background: none; border: 0; box-shadow: none; padding: 0.5rem 0 0; }
@media (max-width: 560px) { .tk-wf { padding-left: 0; padding-right: 0; } }
.tk-wf-test li { padding-top: 0.05rem; }
.tk-wf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1.2rem; }
.tk-wf-grid section { display: flex; flex-direction: column; }
.tk-wf-tech { margin-top: 0.5rem !important; padding-top: 0.5rem; border-top: 1px solid var(--line); font-size: 0.82rem !important; }
.tk-wf-tech b { color: var(--ink); }
.tk-wf-tech .tr-tag { font-size: 0.76rem; padding: 0 0.35rem; vertical-align: 0.03rem; }
.tk-wf-tech code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.tk-wf p i { color: var(--muted); font-style: normal; }
.tk-vs-scroll { overflow-x: auto; margin: 0.8rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--r); }
.tk-vs { width: 100%; min-width: 30rem; border-collapse: collapse; }
.tk-vs th, .tk-vs td { text-align: left; vertical-align: top; padding: 0.5rem 0.38rem; border-bottom: 1px solid var(--line); }
.tk-vs thead th { position: sticky; top: 0; background: var(--field); color: var(--muted); font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.tk-vs thead th.is-own { color: var(--accent); }
.tk-vs thead th:first-child { width: 8.2rem; }
.tk-vs tbody th { width: 8.6rem; font-size: 0.76rem; font-weight: 700; background: var(--field); }
.tk-vs tbody tr:last-child th, .tk-vs tbody tr:last-child td { border-bottom: 0; }
.tk-vs td.is-own { background: var(--tk-soft); }
.tk-vs small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.tk-mk { display: inline-block; font-size: 0.61rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.05rem 0.35rem; border-radius: 3px; }
.tk-mk--y { background: var(--ok-bg); color: var(--ok); }
.tk-mk--m { background: var(--warn-bg); color: var(--warn); }
.tk-mk--n { background: var(--err-bg); color: var(--err); }
@media (max-width: 640px) { .tk-wf-grid { grid-template-columns: 1fr; } }

/* ── Vergleich im Detail: je Werkzeug eine Tafel, druckbar ─────────────── */
.tk-vgl-tool { margin: 1.6rem 0 0; }
.tk-vgl-tool h2 { margin-bottom: 0.15rem; }
.tk-vgl-tool.is-own h2 { color: var(--accent); }
.tk-vgl-claim { color: var(--muted); font-size: 0.9rem !important; margin: 0 0 0.4rem; }
.tk-vgl-table { margin-bottom: 0.2rem; }
.tk-vgl-table th { width: 38%; font-weight: 700; color: var(--ink); font-size: 0.88rem; }
.tk-vgl-table td { color: var(--muted); }
.tk-vgl-table .tk-mk { margin-right: 0.35rem; vertical-align: 0.05rem; }
.tk-vgl-tool.is-own .tk-vgl-table { background: var(--tk-soft); }
.tk-vgl-note { color: var(--muted); font-size: 0.82rem !important; margin-top: 1.6rem; }
.tk-wf-dl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; margin: -0.6rem 0 1.4rem; font-size: 0.86rem; color: var(--muted); }
.tk-wf-dl a { white-space: nowrap; }

/* Backlog-Board im Admin-Cockpit: drei Spuren, Karten zum Ziehen */
.ta-boardbar { align-items: center; }
.ta-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 0.8rem; align-items: start; }
.ta-lane { background: var(--field); border: 1px solid var(--line); border-radius: var(--r); padding: 0.6rem; min-height: 6rem; }
.ta-lane.is-over { border-color: var(--accent); background: var(--hover); }
.ta-lane h3 { margin: 0 0 0.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; justify-content: space-between; }
.ta-lane-n { color: var(--muted); font-weight: 400; }
.ta-lane ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.ta-kachel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0.55rem 0.6rem; cursor: grab; }
.ta-kachel.is-drag { opacity: 0.45; }
.ta-kachel.is-over-top { box-shadow: 0 -3px 0 var(--accent); }
.ta-kachel.is-over-bottom { box-shadow: 0 3px 0 var(--accent); }
.ta-kachel--empty { color: var(--muted); font-size: 0.85rem; text-align: center; border-style: dashed; cursor: default; }
.ta-kachel-head b { font-size: 0.92rem; line-height: 1.35; }
.ta-kachel-body { margin: 0.3rem 0 0; font-size: 0.84rem; color: var(--muted); line-height: 1.45; white-space: pre-wrap; }
.ta-kachel-tools { display: flex; align-items: center; gap: 0.15rem; margin-top: 0.45rem; }
.ta-kachel-btn { width: 1.5rem; height: 1.5rem; font-size: 0.85rem; line-height: 1; padding: 0; }
.ta-kachel-btn.is-confirm { background: var(--err-bg); color: var(--err); }
.ta-kachelform { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.ta-kachelform .tr-input { font-size: 0.9rem; }
/* Rückfrage vor dem Überschreiben, und die Marke beim Ziehen einer CSV auf das Board */
.tk-saved { color: var(--ok, var(--accent)); opacity: 0; transition: opacity .25s; }
.tk-saved.is-on { opacity: 1; }
.ta-boardask { border: 1px solid var(--accent); border-radius: var(--r); padding: 0.6rem 0.7rem; margin: 0.6rem 0 0; background: var(--field); }
.ta-boardask p { margin: 0 0 0.5rem; font-size: 0.9rem; }
#aBoardFix { margin-top: 0.5rem; }
.ta-card.is-filedrop { outline: 2px dashed var(--accent); outline-offset: 3px; }
.ta-card.is-filedrop .ta-board { opacity: 0.55; }
@media (max-width: 720px) { .ta-board { grid-template-columns: 1fr; } }

/* Auftragsverarbeitung: Vorlage zum Ausdrucken und Unterschreiben */
.tk-avv-warn { margin: 1rem 0 1.4rem; }
.tk-avv-sign { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: 0.92rem; }
.tk-avv-sign td { width: 50%; padding: 0.35rem 1rem 0.35rem 0; vertical-align: bottom; color: var(--muted); }
.tk-avv-sign .tk-avv-line { border-bottom: 1px solid var(--ink); height: 2.2rem; }
.tk-avv-dl { margin-top: 1.4rem; }

/* Preise: drei Karten nebeneinander, auf dem Handy untereinander */
.tk-page-preise .tr-wrap { max-width: 880px; }
.tk-pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; margin: 1.4rem 0 1rem; align-items: start; }
.tk-pr { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.1rem 1.2rem; background: var(--field); }
.tk-pr.is-main { border-color: var(--accent); background: var(--card); }
.tk-pr h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.tk-pr-price { margin: 0 0 0.5rem; font-size: 1.05rem; }
.tk-pr-price b { font-size: 1.5rem; letter-spacing: -0.02em; }
.tk-pr-price span { color: var(--muted); font-size: 0.9rem; }
.tk-pr-price small { color: var(--muted); font-size: 0.85rem; }
.tk-pr-alt { color: var(--muted); font-weight: 400; font-size: 1rem; }
.tk-pr-aktion { display: inline-block; margin-top: 0.15rem; color: var(--accent); font-size: 0.85rem; font-weight: 700; }
.tk-pr-for { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.92rem; }
.tk-pr ul { margin: 0 0 1rem; padding-left: 1.1rem; font-size: 0.92rem; }
.tk-pr li { margin-bottom: 0.25rem; }
.tk-pr-cta { margin: 0; }
/* Innerhalb der Rechtstexte färbt .tk-legal alle Links – Knöpfe behalten ihre eigene Farbe */
.tk-legal .tr-btn--primary { color: var(--on-accent); }
.tk-legal .tr-btn--ghost { color: var(--ink); }
.tk-pr-note { margin-top: 0; }

/* Zustellprotokoll: am Bildschirm eine ruhige Karte, auf Papier eine Seite ohne Beiwerk */
.tk-protolink { margin: 1rem 0 0; text-align: right; }
.tk-share { margin-top: 1rem; }
.tk-share p { margin: 0 0 0.5rem; }
.tk-share .tr-linkrow { margin: 0.6rem 0; }
.tk-share .tk-share-warn { color: var(--ink); }
.tk-sessions { margin: 0.5rem 0 0; text-align: right; }
.tk-morelink { color: var(--accent); text-decoration: none; font-weight: 600; }
.tk-morelink:hover { text-decoration: underline; }
.tk-adr { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tk-adr h3 { margin: 0 0 0.3rem; }
.tk-listsearch { margin: 0 0 0.7rem; }
.tk-listsearch .tr-input { width: 100%; }
.tk-proto h1 { margin-bottom: 0.3rem; }
.tk-proto-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 1rem 0 1.4rem; font-size: 0.94rem; }
.tk-proto-facts dt { color: var(--muted); }
.tk-proto-facts dd { margin: 0; font-weight: 600; }
.tk-proto-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.tk-proto-table th, .tk-proto-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tk-proto-table td:nth-child(3), .tk-proto-table td:nth-child(4) { white-space: nowrap; }
.tk-proto-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.tk-proto-table td:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; color: var(--muted); }
.tk-proto-note { margin-top: 1.2rem; }
.tk-proto-btns { margin-top: 1.2rem; }

@media print {
  body.is-proto .tk-topnav, body.is-proto .tr-foot, body.is-proto .tk-echoein,
  body.is-proto .tk-planbanner, body.is-proto .tk-proto-btns, body.is-proto .tr-lang { display: none; }
  body.is-proto .tr-wrap { max-width: none; padding: 0; }
  body.is-proto .tr-card { border: 0; box-shadow: none; padding: 0; }
  body.is-proto .tk-proto-table tr { break-inside: avoid; page-break-inside: avoid; }
}

@media print {
  .tk-page-print .tk-topnav, .tk-page-print .tr-foot, .tk-page-print .tk-echoein,
  .tk-page-print .tk-how-cta { display: none; }
  .tk-page-print .tr-top { margin-bottom: 1.2rem; }
  .tk-page-print .tr-wrap { max-width: none; padding: 0; }
  .tk-page-print .tr-card { border: 0; box-shadow: none; padding: 0; }
  .tk-page-print .tk-vgl-tool { break-inside: avoid; page-break-inside: avoid; }
  .tk-page-print { background: #fff; }
}

/* Vorschläge beim Tippen (eigene Liste statt datalist) */
.tk-suggwrap { position: relative; display: block; }
.tk-sugg { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px); margin: 0; padding: 0.25rem; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 26px var(--shadow); max-height: 15rem; overflow: auto; }
.tk-sugg li { padding: 0.4rem 0.5rem; border-radius: var(--r); cursor: pointer; display: flex; flex-direction: column; gap: 0.05rem; }
.tk-sugg li b { font-size: 0.9rem; }
.tk-sugg li span { font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sugg li.is-on { background: var(--hover); }
.tk-sep { align-items: flex-start; gap: 0.5rem; margin: 0.5rem 0 0.7rem; }
.tk-sep .tr-fieldhint { display: block; }

/* Zeichen statt Wörter in der Konversationsliste */
.tk-iconbtn { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--card); color: var(--muted); cursor: pointer; text-decoration: none; }
.tk-iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-iconbtn:hover { color: var(--ink); border-color: var(--ink); }
a.tk-iconbtn:hover { color: var(--accent); border-color: var(--accent); }
.tk-iconbtn.tk-danger:hover { color: var(--err); border-color: var(--err); }
.tk-iconbtn.is-confirm { color: var(--on-accent); background: var(--err); border-color: var(--err); }
.tk-iconbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Gezeichnete Zeichen statt Emoji: gleiche Gestalt auf jedem System */
.tk-mico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.12em; }
.tk-mico .tk-dot { fill: currentColor; stroke: none; }
.tr-mode-opt .tk-mico { width: 1.15em; height: 1.15em; }
.tk-chip-ico { display: inline-flex; margin-right: 0.25rem; }
.tk-chip-ico svg { width: 0.95em; height: 0.95em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Zwei Blöcke, ein Blick: offenes Schloss = geht raus, geschlossenes = verschlüsselt */
.tk-blockhead { display: flex; align-items: center; gap: 0.4rem; margin: 1.4rem 0 0.2rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.86rem; }
.tk-blockhead b { font-size: 0.95rem; }
.tk-blockhead span { color: var(--muted); }
.tk-blockhead .tk-mico { width: 1.2em; height: 1.2em; }
.tk-blockhead--open .tk-mico { color: var(--warn); }
.tk-blockhead--shut .tk-mico { color: var(--ok); }
.tk-attmenu-sep { height: 1px; background: var(--line); margin: 0.35rem 0.2rem; }
.tk-faq summary .tk-mico, .tk-faq-a .tk-mico, .tk-how-grid .tk-mico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }

/* ── Mailversand im Cockpit ─────────────────────────────────────── */
.ta-mail { list-style: none; margin: 0 0 0.8rem; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.ta-mp { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.42rem 0.6rem; border-radius: 10px; font-size: 0.86rem; line-height: 1.4; }
.ta-mp > div { min-width: 0; }
.ta-mp b { font-weight: 600; }
.ta-mp-zeichen { flex: 0 0 1rem; text-align: center; font-weight: 700; }
.ta-mp-hinweis { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 0.1rem; overflow-wrap: anywhere; }
/* Der Eintrag, den man setzen muss – zum Herauskopieren statt zum Abtippen */
.ta-mp-tun { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; }
.ta-mp-tun code { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem; background: var(--field); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.3rem 0.5rem; overflow-wrap: anywhere; }
.ta-mp-tun button { flex: none; }
.ta-mp.is-gut { background: var(--ok-bg); }
.ta-mp.is-gut .ta-mp-zeichen { color: var(--ok); }
.ta-mp.is-warnung { background: var(--warn-bg); }
.ta-mp.is-warnung .ta-mp-zeichen { color: var(--warn); }
.ta-mp.is-schlecht { background: var(--err-bg); }
.ta-mp.is-schlecht .ta-mp-zeichen { color: var(--err); }
.ta-mp.is-aus { background: var(--info-bg); }
.ta-mp.is-aus .ta-mp-zeichen { color: var(--info); }
.ta-mp-trenner { color: var(--muted); }

/* ── Antwortadresse bestätigen ──────────────────────────────────── */
.tk-replystate { display: block; margin-top: 0.25rem; }
.tk-replystate.is-ok { color: var(--ok); }
.tk-replystate.is-wait { color: var(--warn); }
.tk-replycheck { background: var(--warn-bg); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.85rem; }
.tk-replycheck .tk-hint { margin: 0 0 0.55rem; }
.tk-replycheck .tk-code { max-width: 8.5rem; font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }
/* Funktionen und Pläne: viele schmale Spalten, Häkchen mittig */
.ta-feat th, .ta-feat td { text-align: center; vertical-align: middle; }
.ta-feat th:first-child, .ta-feat td:first-child { text-align: left; }
.ta-feat input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.ta-feat .ta-num { width: 6.5rem; padding: 0.25rem 0.4rem; }
/* Verweis-Spam wegklicken – und zurückholen */
.ta-ignore { appearance: none; background: none; border: none; cursor: pointer; padding: 0 0.2rem;
  font-size: 0.95rem; line-height: 1; color: var(--muted); opacity: 0; transition: opacity .12s; }
.ta-barrow:hover .ta-ignore, .ta-ignore:focus-visible { opacity: 1; }
.ta-ignore:hover { color: #b3261e; }
.ta-refign { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.ta-ignored { appearance: none; background: none; border: 1px dashed var(--line); border-radius: var(--r);
  padding: 0.1rem 0.5rem; font: inherit; font-size: 0.74rem; color: var(--muted); cursor: pointer; }
.ta-ignored:hover { color: var(--ink); border-style: solid; }
/* Codeformular: die beiden Auswahlfelder brauchen keine ganze Zeile */
#aGiftForm select { flex: 0 1 auto; width: auto; min-width: 11rem; }

/* ── Bilder mitten in der Nachricht ───────────────────────────────
 * Beim Schreiben teilt sich das Feld an der Schreibmarke: Text oben,
 * Bild dazwischen, Text darunter. Beim Lesen stehen sie an derselben Stelle. */
.tk-blocks { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.45rem; }
.tk-blocks[hidden] { display: none; }
.tk-blockimg { position: relative; margin: 0; align-self: flex-start; max-width: min(100%, 22rem);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--tk-soft); }
.tk-blockimg img { display: block; width: 100%; max-height: 13rem; object-fit: contain; background: var(--tk-soft); }
.tk-blockimg figcaption { padding: 0.25rem 0.5rem; font-size: 0.72rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-blockx { position: absolute; top: 0.3rem; right: 0.3rem; background: var(--card); border-radius: 999px;
  width: 1.5rem; height: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.tk-att--inline { max-width: min(100%, 26rem); margin: 0.4rem 0; }
/* Im Text ist das Bild eine Vorschau – gross wird es beim Klick */
.tk-att--inline .tk-img img { max-height: 16rem; object-fit: contain; }
/* Geteilte Nachricht: jedes Feld nur so hoch wie sein Text */
.tk-blockfirst, .tk-blocks textarea { min-height: 2.75rem !important; height: auto; resize: vertical; }

/* ── Grossansicht ─────────────────────────────────────────────────
 * Das Bild in der Nachricht ist eine Vorschau; ein Klick legt es über die
 * Seite. Der Blob liegt schon im Browser – es wird nichts nachgeladen. */
.tk-zoom { cursor: zoom-in; }
.tk-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-lightbox { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.6rem; padding: 3.4rem 1rem 1rem;
  background: rgba(16, 12, 10, 0.86); backdrop-filter: blur(3px); }
.tk-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r);
  background: #0c0a09; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); cursor: default; }
.tk-lb-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center;
  gap: 0.6rem; padding: 0.6rem 0.8rem; }
.tk-lb-name { flex: 1; min-width: 0; color: #f6f1ec; font-size: 0.85rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-lb-x { background: rgba(255, 255, 255, 0.12); color: #f6f1ec; border-color: transparent;
  width: 2.1rem; height: 2.1rem; font-size: 1.2rem; line-height: 1; }
.tk-lb-x:hover { background: rgba(255, 255, 255, 0.22); }
@media (max-width: 480px) {
  .tk-lb-dl { padding-left: 0.7rem; padding-right: 0.7rem; }
  .tk-lb-name { display: none; }
}

/* ── Empfänger-Marke in der Kachel ────────────────────────────────
 * Steht beim Betreff, nicht bei den Werkzeugen: die drehen sich um die
 * Konversation, der Empfänger ist eine Eigenschaft von ihr. */
.tk-item-title { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; overflow: visible; }
.tk-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-item-name.is-ohne { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.tk-wer { display: inline-flex; align-items: center; gap: 0.25rem; max-width: 14rem;
  padding: 0.05rem 0.45rem; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--tk-soft); font: inherit; font-size: 0.7rem; font-weight: 700;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.tk-wer { cursor: pointer; }
.tk-wer--kontakt { color: var(--akzent, #2f6f5e); border-color: currentColor; background: rgba(47, 111, 94, 0.08); }
.tk-wer--neu:hover { color: var(--ink); border-color: var(--ink); }
.tk-wer--link { font-weight: 600; font-style: italic; cursor: help; }
.tk-wer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Dein Name trägt die Marke, ihr eigener steht klein dahinter */
.tk-wer-o { font-weight: 600; opacity: 0.7; }
button.tk-wer:hover { border-color: currentColor; }
/* Das «+» hinter der Marke: sich diese Person merken. Gleich hoch wie die
   Marke, damit die beiden eine Zeile bilden und nicht zwei. Immer sichtbar,
   nicht erst beim Darüberfahren – auf dem Handy fährt niemand darüber. */
.tk-weradd { display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; margin-left: -0.15rem; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--tk-soft);
  color: var(--muted); cursor: pointer; flex: none; }
.tk-weradd svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tk-weradd:hover { color: var(--akzent, #2f6f5e); border-color: currentColor; }
.tk-weradd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-weradd[disabled] { opacity: 0.5; cursor: default; }
/* Die Liste auf eine Person eingeengt: wer, wie viel, und der Weg zurück */
.tk-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.7rem;
  padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--tk-soft); }
/* Rund ist im Haus, wo eine Person steht – nicht, was sie trägt. Der Streifen
   in der Gruppe macht es vor; hier war die Person bisher nur ein rundes Zeichen
   neben blossem Text. Als Namensschild ist sie dasselbe Ding wie dort. Die
   Leiste bleibt eckig: sie trägt Zahl, Verweis und Knopf, sie ist eine Fläche. */
.tk-filter-person { display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.12rem 0.6rem 0.12rem 0.12rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); }
.tk-filter-ico { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.tk-filter-ico svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tk-filter-name { font-size: 0.95rem; }
.tk-filter-n { color: var(--muted); font-size: 0.85rem; }
.tk-filter-off { margin-left: auto; }
/* Kontaktkarte: Pseudonym klein hinter dem Namen, sonst der Weg zum Namen */
.tk-item-orig { margin-left: 0.35rem; font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.tk-namegeben { margin-left: 0.5rem; font-size: 0.8rem; }
/* Auswahl des Tons steht neben dem Schieber, nicht in einer eigenen Zeile */
.tk-tonwahl { flex: 0 1 auto; width: auto; min-width: 7rem; padding-top: 0.25rem; padding-bottom: 0.25rem; font-size: 0.85rem; }
/* Der Text unter dem Schreibfeld – nur auf der Startseite */
.tk-start { margin-top: 1.1rem; }
.tk-start h2 { margin-top: 1.6rem !important; }
.tk-start h2:first-of-type { margin-top: 0 !important; }
.tk-start code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--tk-soft, #f1ebe5); padding: 0.05em 0.3em; border-radius: var(--r); font-size: 0.92em; }
.tk-start-links { margin-top: 1.6rem !important; padding-top: 0.9rem; border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted); }
/* Einladungen per Mail: Betreff und Begleittext einmal für alle Teilnehmer */
.tk-gmail { margin: 0.8rem 0; padding: 0.8rem 0.9rem; border: 1px dashed var(--line);
  border-radius: var(--r); background: var(--field); display: flex; flex-direction: column; gap: 0.5rem; }
.tk-gmail .tr-label { margin: 0; }
.tk-gmail .tk-hint { margin: 0; }
.tk-ginvite { flex: none; white-space: nowrap; }

/* Warum der Knopf gesperrt ist – leise, aber lesbar, direkt daneben. */
.tk-warum { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--muted); }
/* Eine Adresse, die ins Leere ginge, faellt hier auf – nicht erst beim Empfaenger */
.tk-grouprow.is-mailfehler .tk-gmail { border-color: var(--err); }
.tk-grouprow.is-mailfehler .tk-gmail:focus { outline-color: var(--err); }

/* Ein Punkt in der Hausfarbe – mehr braucht eine Zaesur nicht. */
.tk-punkt { display: block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin: 3rem auto; opacity: 0.9; }
@media (max-width: 640px) { .tk-punkt { margin: 2.2rem auto; } }

/* Antwortseiten: die kurze Antwort zuoberst, die Grenze am Schluss */
.tk-antwort-kurz { font-size: 1.02rem !important; padding: 0.85rem 1rem; margin: 0 0 1.4rem !important;
  border-left: 3px solid var(--accent); background: var(--field); border-radius: 0 var(--r) var(--r) 0; }
.tk-antwort-grenze { margin-top: 1.2rem !important; padding: 0.7rem 0.9rem; font-size: 0.9rem;
  border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }
.tk-antwort-grenze b { color: var(--ink); }
.tk-antwort-liste { list-style: none; padding: 0 !important; margin: 0.4rem 0 0 !important; }
.tk-antwort-liste li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.tk-antwort-liste li + li { margin-top: 0 !important; }
.tk-antwort-liste a { font-weight: 700; }
.tk-antwort-liste span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }

/* Der rote Knopf im Kopf: dieselbe Handlung wie im Cockpit, aber kleiner –
   er steht neben Symbolen, nicht neben einer Überschrift. */
.tk-navsplit .tr-btn { padding: 0.42rem 0.85rem; font-size: 0.86rem; }
.tk-navsplit .tk-split-arrow { padding-left: 0.4rem; padding-right: 0.4rem; }
/* Die Zeilen im Menü, in denen ein Regler neben seiner Beschriftung steht.
 *
 * Der Regler steht links, wie das Zeichen bei den Verweisen darüber und
 * darunter: eine Spalte, an der das Auge hinunterläuft, und rechts davon die
 * Wörter. Vorher hing er am rechten Rand, und die Zeile hatte zwei Kanten
 * statt einer.
 *
 * Die Spalte ist so breit wie das breiteste Bedienelement (die beiden
 * Sprachknöpfe). Darum beginnen «Darstellung» und «Sprache» auf derselben
 * Kante – untereinander. Mit den Verweisen darüber fluchten sie nicht, und das
 * ist richtig so: ein Knopf ist kein Zeichen, und diese beiden Zeilen sind
 * etwas anderes als ein Weg, der wegführt. */
.tk-navmenu-reihe { display: flex; align-items: center; justify-content: flex-start;
  gap: 0.7rem; padding: 0.15rem 0.55rem 0.3rem; }
.tk-navmenu-reihe .tk-navmenu-head { order: 2; padding: 0; }
.tk-navmenu-reihe .tk-regler { display: inline-flex; flex: none; align-items: center;
  justify-content: flex-start; min-width: 5.4rem; }
.tk-navmenu-reihe .tr-lang { margin: 0; }
/* Der Darstellungsknopf ist im Menü kein Navigationsknopf mehr, sondern ein
   Regler in einer Zeile – und zwar genau so gross wie ein Sprachknopf: gleiche
   Polsterung, gleicher Rahmen, gleiche Rundung. Zwei Schalter nebeneinander,
   die verschieden gross sind, liest man als zwei Wichtigkeiten. */
/* Drei Klassen, und das mit Absicht: weiter unten streckt .tk-topnav .tk-navbtn
   jeden Knopf im Kopf auf volle Höhe – gut für die Reihe oben, falsch für einen
   Knopf, der hier in einer Zeile steht. */
.tk-navmenu-reihe .tk-navbtn.tk-themebtn { box-sizing: border-box; align-self: center;
  width: 2.73rem; height: 2rem; padding: 0.3rem 0.7rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); color: var(--muted); justify-content: center; }
.tk-navmenu-reihe .tk-navbtn.tk-themebtn:hover { background: var(--hover); color: var(--ink); }
.tk-navmenu-reihe .tk-navbtn.tk-themebtn svg { width: 1.02rem; height: 1.02rem; }

/* Auf schmalen Geräten trägt der rote Knopf nur noch sein Zeichen: neben Logo
   und zwei Symbolen ist für zwei Wörter kein Platz. */
@media (max-width: 30rem) {
  .tk-navsplit .tk-split-main { padding-left: 0.6rem; padding-right: 0.6rem; font-size: 0.8rem; }
}

/* Die Handlung bricht nie um.
   Der Kopf ist eine Flex-Zeile: Marke, Options-Banner, Navigation. Ohne Regel
   gab die Navigation nach, und «Neue Nachricht» stand auf zwei Zeilen – schon
   bei 1200 px, weil das Banner bis zu 247 px nimmt. Was nachgeben soll, ist die
   Verzierung, nicht der Knopf, um den es geht. */
/* Eine Zeile gleich hoher Ziele: der rote Knopf gibt das Mass vor, die beiden
   Symbolknöpfe strecken sich darauf. Vorher waren es 37, 28 und 26 Pixel – drei
   Höhen nebeneinander, und das sieht man. */
.tk-topnav { display: flex; align-items: stretch; gap: 0.4rem; flex: 0 0 auto; }
/* Die Hüllen im Kopf strecken ihre Kinder – so ist der Pfeil am geteilten Knopf
   gleich hoch wie «Neue Nachricht», dessen Zeilenhöhe 21 Pixel misst, während
   das Pfeil-Symbol nur 16 hoch ist. Ein Knopf ist aber beides: Kind der Zeile
   und Hülle seines Symbols. Als Kind streckt er sich, als Hülle zentriert er –
   darum die zweite, genauere Regel. Ohne sie hing der Bogen oben im Feld. */
.tk-topnav > * { display: flex; align-items: stretch; }
.tk-topnav .tk-navbtn { height: auto; align-self: stretch; align-items: center; }
/* Der Menüknopf steckt in einer Hülle, die den Aufklapp-Kasten trägt – die
   Hülle muss sich mitstrecken, sonst bleibt der Knopf darin kleiner. */
.tk-topnav .tk-navmenu { align-self: stretch; }
.tk-topnav .tk-navmenu .tk-mehrbtn { height: 100%; }
.tk-navsplit .tk-split-main { white-space: nowrap; }
/* Und die Marke darf schrumpfen, statt die Zeile zu sprengen. */
.tr-brand { min-width: 0; flex: 0 1 auto; }
.tr-brand .tr-wordmark { flex: 0 1 auto; min-width: 0; }

/* ── Beta im Konto ──────────────────────────────────────────────────
 * Was dieses Konto vorab ausprobieren darf. Ein eigener Kasten, kein Hinweis
 * in Grau: es ist ein Vorsprung und keine Fussnote. Der Ton ist der des
 * Warnbands, nicht der des roten Knopfes – es ist nichts kaputt, es ist bloss
 * noch nicht fertig. */
.tk-vorab { margin: 0.6rem 0 0.2rem; padding: 0.7rem 0.85rem; border-radius: var(--r);
  background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent); }
.tk-vorab-kopf { margin: 0 0 0.35rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.9rem; }
.tk-vorab-tag { flex: none; padding: 0.1rem 0.45rem; border-radius: 999px;
  background: var(--warn); color: var(--warn-bg); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; }
.tk-vorab-liste { margin: 0 0 0.45rem; padding-left: 1.1rem; font-size: 0.9rem; }
.tk-vorab-liste li { margin: 0.15rem 0; }
.tk-vorab-name { font-weight: 600; }
.tk-vorab .tk-hint { margin: 0; }
/* Einzeln freigeschaltete Funktion in der Kontenliste des Cockpits */
.ta-feat { display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap; }
.ta-feat-tag { padding: 0 0.35rem; border-radius: 0.3rem; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.ta-tarif-tag { padding: 0 0.35rem; border-radius: 0.3rem; background: var(--hover); color: var(--ink); font-weight: 600; }

/* Wer sonst noch unter dieser Domäne senden darf */
.tk-domteil { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
/* Kein Aufzählungspunkt: die Zeilen sind Flex-Zeilen, und ein Punkt davor
   verschwände ohnehin. Die Einrückung übernimmt der Abstand. */
.tk-domleute { margin: 0.4rem 0 0.6rem; padding-left: 0; list-style: none; font-size: 0.9rem; }
.tk-domleute li { margin: 0.2rem 0; display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.tk-domleute-mail { font-weight: 600; }

/* Der Aufstieg: wem die Domäne gehört. Steht abgesetzt unter der Teilen-Liste,
   weil es eine Frage über die Domäne ist und keine über die Leute darauf. */
.tk-domauf { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.tk-domauf .tk-hint { margin-bottom: 0.55rem; }

/* Die Schlüsselkette in der Firmenkarte. Abgesetzt, weil sie das Einzige ist,
   was die Firma an die Post ihrer Leute bringt – das soll man sehen. */
.tk-kette { margin: 0.9rem 0; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 0.5rem; }
.tk-kette .tr-label { margin-top: 0; }
.tk-kette .tk-hint { margin-bottom: 0.55rem; }

/* Das Protokoll: wer die eigene Post geöffnet hat. Steht abgesetzt und ohne
   Rahmen – es ist kein Werkzeug, sondern eine Auskunft. */
.tk-protokoll { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.tk-protokoll .tr-label { margin-top: 0; }

/* Der Auftritt: wem er gehört. Steht oben in der Absenderkarte, vor den
   Feldern – was hier steht, entscheidet, wer die Felder darunter ändern darf. */
.tk-markeauf { margin: 0 0 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.tk-markeauf .tk-hint { margin-bottom: 0.55rem; }

/* Die Firma im Konto */
.tk-orgstate { margin: 0.5rem 0 0.3rem; font-weight: 600; }
.tk-orgwarn { margin: 0 0 0.6rem; padding: 0.55rem 0.7rem; border-radius: var(--r);
  background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 28%, transparent); }
.tk-orgleute { margin: 0.3rem 0 0.7rem; padding-left: 0; list-style: none; font-size: 0.9rem; }
.tk-orgleute li { margin: 0.25rem 0; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.tk-orgleute-mail { font-weight: 600; }
