/* TQS TourProfit – Styles. Nutzt die TQS-Tokens (Schwarz, Gold #c8a96e, Syne/DM Sans, 2–3 px Radius).
   Schriften werden lokal ausgeliefert (kein Abruf bei Google). */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Syne'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/syne-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-weight: 800; font-style: normal; font-display: swap; src: url('fonts/syne-latin-800-normal.woff2') format('woff2'); }

.tp { --tp-ok: #3f7a57; --tp-warn: #b8862b; --tp-bad: #b3453a; --tp-line: #e2e2e2; --tp-soft: #f7f7f5; --tp-max: 1180px; color: #0a0a0a; font-family: 'DM Sans', sans-serif; }
.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp-wrap { max-width: var(--tp-max); margin: 0 auto; padding: 0 20px; }
.tp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp button { font-family: inherit; }
.tp-trust { margin-top: 14px; color: rgba(255,255,255,.82); font-size: .9rem; display: flex; gap: 8px; flex-wrap: wrap; }
.tp-trust span { display: inline-flex; gap: 6px; align-items: center; }
.tp-trust span::before { content: '✓'; color: var(--accent); }

/* ---------- Schrittleiste ---------- */
.tp-steps { position: sticky; top: var(--header-h, 64px); z-index: 40; background: #fff; border-bottom: 1px solid var(--tp-line); }
.tp-steps ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--tp-max); margin: 0 auto; padding: 0 20px; gap: 0; }
.tp-steps li { min-width: 0; }
.tp-step { width: 100%; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 6px 10px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 56px; color: #5f5f5f; }
.tp-step b { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.tp-step span { font-size: .95rem; font-weight: 600; color: #0a0a0a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-step[aria-current="step"] { border-bottom-color: var(--accent); }
.tp-step[aria-current="step"] b { color: #7d5f1f; }
.tp-step.done b::after { content: ' ✓'; color: var(--tp-ok); }
.tp-step:hover span { color: #7d5f1f; }
@media (max-width: 640px) { .tp-step span { font-size: .8rem; white-space: normal; line-height: 1.2; } .tp-step b { letter-spacing: .08em; font-size: 10px; } }

.tp-main { padding: 28px 0 120px; }
.tp-panel[hidden] { display: none; }
.tp-h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; text-wrap: balance; }
.tp-lead { color: #444; max-width: 70ch; line-height: 1.6; margin-bottom: 20px; }
.tp-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #7d5f1f; font-weight: 500; margin-bottom: 8px; display: flex; gap: 12px; align-items: center; }
.tp-eyebrow::before { content: ''; width: 24px; height: 1px; background: #7d5f1f; }

/* ---------- Karten / Formular ---------- */
.tp-card { background: #fff; border: 1px solid var(--tp-line); border-radius: 3px; padding: 20px; margin-bottom: 16px; }
.tp-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.tp-card .tp-sub { color: #5f5f5f; font-size: .9rem; margin-bottom: 14px; line-height: 1.5; max-width: 70ch; }
.tp-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; }
.tp-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tp-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tp-field > label, .tp-legend { font-size: .85rem; font-weight: 600; color: #222; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tp-field .tp-opt { font-weight: 400; color: #5f5f5f; }
.tp-inputwrap { position: relative; display: flex; align-items: center; }
.tp-input, .tp-select, .tp-text { width: 100%; font: inherit; font-size: 1rem; color: #0a0a0a; background: #fff; border: 1px solid #c9c9c9; border-radius: 2px; padding: 11px 12px; min-height: 46px; transition: border-color .2s, box-shadow .2s; }
.tp-inputwrap .tp-input { padding-right: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.tp-unit { position: absolute; right: 12px; color: #5f5f5f; font-size: .8rem; pointer-events: none; max-width: 64px; white-space: nowrap; overflow: hidden; }
.tp-input:hover, .tp-select:hover, .tp-text:hover { border-color: #8a8a8a; }
.tp-input:focus, .tp-select:focus, .tp-text:focus { outline: 2px solid #0a0a0a; outline-offset: 1px; box-shadow: 0 0 0 4px rgba(200,169,110,.55); border-color: #0a0a0a; }
.tp-input[aria-invalid="true"] { border-color: var(--tp-bad); background: #fff7f6; }
.tp-err { color: var(--tp-bad); font-size: .8rem; min-height: 0; line-height: 1.35; }
.tp-err:empty { display: none; }
.tp-hint { font-size: .82rem; color: #444; background: var(--tp-soft); border-left: 2px solid var(--accent); padding: 8px 10px; line-height: 1.5; }
.tp-hint[hidden] { display: none; }
.tp-help { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid #8a8a8a; background: #fff; color: #444; font-size: .75rem; font-weight: 700; cursor: pointer; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tp-help[aria-expanded="true"] { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.tp-help:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(200,169,110,.55); }
.tp-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.tp-check input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; accent-color: #0a0a0a; }
.tp-radios { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border: 0; padding: 0; margin: 0; }
.tp-radio { border: 1px solid #c9c9c9; border-radius: 2px; padding: 11px 12px; display: flex; gap: 10px; align-items: center; cursor: pointer; min-height: 46px; font-size: .93rem; }
.tp-radio:has(input:checked) { border-color: #0a0a0a; background: #0a0a0a; color: #fff; }
.tp-radio input { accent-color: var(--accent); width: 18px; height: 18px; }
.tp-radio:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(200,169,110,.7); }
.tp-note { font-size: .88rem; color: #444; background: var(--tp-soft); border-left: 3px solid var(--accent); padding: 10px 12px; line-height: 1.5; margin: 10px 0; max-width: 80ch; }
.tp-note.warn { border-left-color: var(--tp-warn); background: #fbf6ea; }
.tp-note.bad { border-left-color: var(--tp-bad); background: #fbf0ee; }
.tp-note.ok { border-left-color: var(--tp-ok); background: #eff6f1; }
.tp-note ul { margin: 6px 0 0 18px; }
.tp-sep { height: 1px; background: var(--tp-line); margin: 18px 0; }

/* ---------- Buttons ---------- */
.tp-btn { font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 14px 24px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.tp-btn.primary { background: var(--accent); color: #0a0a0a; }
.tp-btn.primary:hover { background: #dbbf85; transform: translateY(-1px); }
.tp-btn.dark { background: #0a0a0a; color: #fff; }
.tp-btn.dark:hover { background: #222; }
.tp-btn.ghost { background: #fff; color: #0a0a0a; border-color: #c9c9c9; }
.tp-btn.ghost:hover { border-color: var(--accent); color: #7d5f1f; }
.tp-btn.sm { min-height: 40px; padding: 8px 14px; font-size: 12px; }
.tp-btn[disabled], .tp-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.tp-btn:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }
.tp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.tp-link { background: none; border: 0; padding: 4px 0; color: #7d5f1f; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; min-height: 32px; }

/* ---------- Touren ---------- */
.tp-tour { border: 1px solid var(--tp-line); border-left-width: 4px; border-radius: 3px; margin-bottom: 14px; background: #fff; }
.tp-tour[data-st="gruen"] { border-left-color: var(--tp-ok); } .tp-tour[data-st="gelb"] { border-left-color: var(--tp-warn); }
.tp-tour[data-st="rot"] { border-left-color: var(--tp-bad); } .tp-tour[data-st="unvollstaendig"] { border-left-color: #8c8c8c; }
.tp-tour.off { opacity: .62; }
.tp-tour-head { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 16px; align-items: center; }
.tp-tour-title { background: none; border: 0; text-align: left; cursor: pointer; padding: 0; display: flex; gap: 10px; align-items: baseline; min-width: 0; flex-wrap: wrap; color: inherit; }
.tp-tour-title .no { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7d5f1f; font-weight: 500; }
.tp-tour-title .nm { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tp-tour-title .chev { margin-left: auto; transition: transform .2s; }
.tp-tour-title[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tp-tour-title:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; box-shadow: 0 0 0 5px var(--accent); }
.tp-tour-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tp-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: #444; }
.tp-chips b { color: #0a0a0a; font-variant-numeric: tabular-nums; }
.tp-badge { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; border: 1px solid currentColor; }
.tp-badge[data-st="gruen"] { color: var(--tp-ok); } .tp-badge[data-st="gelb"] { color: #8a6300; } .tp-badge[data-st="rot"] { color: var(--tp-bad); } .tp-badge[data-st="unvollstaendig"] { color: #5f5f5f; }
.tp-badge::before { font-size: .7rem; }
.tp-badge[data-st="gruen"]::before { content: '▲'; } .tp-badge[data-st="gelb"]::before { content: '■'; } .tp-badge[data-st="rot"]::before { content: '▼'; } .tp-badge[data-st="unvollstaendig"]::before { content: '○'; }
.tp-tour-body { border-top: 1px solid var(--tp-line); padding: 16px; }
.tp-tour-body[hidden] { display: none; }
.tp-sec { margin-bottom: 20px; }
.tp-sec > h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #7d5f1f; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.tp-sec > h4::after { content: ''; flex: 1; height: 1px; background: var(--tp-line); }
.tp-adv { border: 1px dashed #b5b5b5; border-radius: 3px; padding: 0 14px; margin-top: 8px; }
.tp-adv > summary { cursor: pointer; padding: 13px 0; font-weight: 600; font-size: .92rem; min-height: 44px; list-style-position: inside; }
.tp-adv[open] { padding-bottom: 14px; }
.tp-adv > summary:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; box-shadow: 0 0 0 4px var(--accent); }
.tp-list-row { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(130px, 1.4fr) minmax(110px, 1fr) minmax(120px, 1fr) auto; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid #efefef; }
.tp-list-row .tp-field > label { font-size: .75rem; }
@media (max-width: 760px) { .tp-list-row { grid-template-columns: 1fr 1fr; } .tp-list-row > :last-child { grid-column: 1 / -1; justify-self: end; } }
.tp-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 14px; }
.tp-mini div { background: var(--tp-soft); padding: 8px 10px; border-radius: 2px; }
.tp-mini small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #5f5f5f; }
.tp-mini b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tp-tour-warn { margin-top: 12px; }

.tp-live { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #0a0a0a; color: #fff; border-top: 2px solid var(--accent); padding: 10px 20px; }
.tp-live-in { max-width: var(--tp-max); margin: 0 auto; display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: center; font-size: .92rem; }
.tp-live b { font-variant-numeric: tabular-nums; }
.tp-live .lab { color: #b5b5b5; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.tp-live .go { margin-left: auto; }
.tp-live .tp-badge { background: #fff; }
@media (max-width: 640px) { .tp-live { padding: 8px 12px; } .tp-live .lab { display: none; } .tp-live-in { font-size: .85rem; gap: 4px 14px; } }

/* ---------- Ergebnisse ---------- */
.tp-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 18px 0; }
.tp-kpi { background: #fff; border: 1px solid var(--tp-line); border-top: 3px solid var(--accent); border-radius: 3px; padding: 14px 16px; }
.tp-kpi small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #5f5f5f; font-weight: 500; }
.tp-kpi strong { display: block; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tp-kpi span { font-size: .82rem; color: #5f5f5f; }
.tp-kpi[data-st="gruen"] { border-top-color: var(--tp-ok); } .tp-kpi[data-st="gelb"] { border-top-color: var(--tp-warn); } .tp-kpi[data-st="rot"] { border-top-color: var(--tp-bad); }
.tp-kpi[data-st="rot"] strong { color: var(--tp-bad); }
.tp-charts { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .tp-charts.two { grid-template-columns: 1fr 1fr; } }
.tp-chart { background: #fff; border: 1px solid var(--tp-line); border-radius: 3px; padding: 16px; margin: 0; min-width: 0; }
.tp-chart h3 { font-size: 1.02rem; margin-bottom: 2px; }
.tp-chart .cap { color: #5f5f5f; font-size: .85rem; margin-bottom: 10px; }
.tp-svgwrap { position: relative; width: 100%; overflow: hidden; }
.tp-svgwrap svg { width: 100%; height: auto; display: block; }
.tp-svgwrap [data-tip] { cursor: pointer; transition: opacity .15s; }
.tp-svgwrap [data-tip]:hover { opacity: .82; }
.tp-tip { position: fixed; z-index: 200; background: #0a0a0a; color: #fff; padding: 7px 10px; font-size: .82rem; border-radius: 2px; pointer-events: none; max-width: 280px; line-height: 1.35; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.tp-tip[hidden] { display: none; }
.tp-seg { display: inline-flex; border: 1px solid #c9c9c9; border-radius: 2px; overflow: hidden; margin-bottom: 8px; flex-wrap: wrap; }
.tp-seg button { border: 0; background: #fff; padding: 8px 12px; font-size: .82rem; cursor: pointer; min-height: 38px; border-right: 1px solid #e2e2e2; }
.tp-seg button[aria-pressed="true"] { background: #0a0a0a; color: #fff; }
.tp-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.tp-slider { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.tp-slider input[type=range] { flex: 1 1 220px; accent-color: #0a0a0a; min-height: 32px; }
.tp-slider output { font-weight: 700; min-width: 70px; font-variant-numeric: tabular-nums; }
details.tp-data { margin-top: 10px; font-size: .88rem; }
details.tp-data > summary { cursor: pointer; color: #7d5f1f; min-height: 36px; display: flex; align-items: center; }

.tp-tablewrap { overflow-x: auto; border: 1px solid var(--tp-line); border-radius: 3px; background: #fff; -webkit-overflow-scrolling: touch; }
.tp-table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
.tp-table th, .tp-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid #efefef; white-space: nowrap; }
.tp-table th:first-child, .tp-table td:first-child { text-align: left; }
.tp-table thead th { background: #0a0a0a; color: #fff; font-weight: 500; font-size: .78rem; letter-spacing: .04em; position: sticky; top: 0; }
.tp-table thead th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.tp-table thead th button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tp-table tbody tr:nth-child(even) { background: #fafafa; }
.tp-table tbody th { font-weight: 600; text-align: left; white-space: normal; min-width: 150px; }
.tp-table tr.sum td, .tp-table tr.sum th { background: #ece7db; font-weight: 700; }
.tp-table tr.off td, .tp-table tr.off th { color: #8a8a8a; }
.tp-table .neg { color: var(--tp-bad); font-weight: 700; }
.tp-datatable { font-size: .85rem; margin-top: 8px; }
.tp-datatable thead th { background: #444; }
.tp-scroll-hint { font-size: .8rem; color: #5f5f5f; margin: 6px 0 0; }
.tp-calc summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; }
.tp-calc .tp-table td:nth-child(2) { text-align: left; white-space: normal; color: #5f5f5f; }

/* ---------- Bericht ---------- */
.tp-report { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tp-report { grid-template-columns: 1.15fr 1fr; } }
.tp-status { padding: 12px 14px; border-radius: 2px; font-size: .92rem; line-height: 1.45; margin-top: 12px; }
.tp-status.info { background: #f5f5f5; } .tp-status.ok { background: #eff6f1; border-left: 3px solid var(--tp-ok); }
.tp-status.err { background: #fbf0ee; border-left: 3px solid var(--tp-bad); }
.tp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tp-spin { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.2); border-top-color: #0a0a0a; border-radius: 50%; animation: tp-spin .8s linear infinite; display: inline-block; vertical-align: -3px; margin-right: 8px; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tp-spin { animation-duration: 3s; } .tp * { transition: none !important; } }

.tp-foot { margin-top: 28px; color: #5f5f5f; font-size: .82rem; line-height: 1.55; max-width: 90ch; }

/* ---------- Druck ---------- */
#tpPrint { display: none; }
@page { size: A4; margin: 14mm 12mm 16mm; }
/* Freiwilliger Telematik-Hinweis (v6.1): Link, keine Datenübertragung */
.tp-tele { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 36px 0 8px; padding: 20px 22px; background: var(--tp-soft); border: 1px solid var(--tp-line); border-left: 3px solid var(--accent); border-radius: 3px; }
.tp-tele h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.tp-tele p { color: #444; font-size: .9rem; line-height: 1.5; max-width: 62ch; margin: 0; }
.tp-tele .tp-btn { flex: 0 0 auto; }
@media (max-width: 640px) { .tp-tele { flex-direction: column; align-items: stretch; } .tp-tele .tp-btn { width: 100%; } }
/* ===== v6.2: Verständlichkeit (Begriffserklärungen) und filigrane Diagramme – nur Darstellung ===== */
.tp-glance { margin: 14px 0 4px; }
.tp-kpi { position: relative; }
.tp-kpi small { display: flex; align-items: center; gap: 6px; }
.tp-kpi > span { display: block; line-height: 1.35; }
.tp-kpi > span.x { margin-top: 2px; font-size: .76rem; color: #7a7a7a; }
.tp-tipwrap { display: inline-flex; vertical-align: middle; }
.tp-i { width: 18px; height: 18px; min-width: 18px; padding: 0; border-radius: 50%; border: 1px solid #a5a5a5; background: #fff; color: #555; font: 700 11px/1 'DM Sans', sans-serif; text-transform: none; letter-spacing: 0; font-style: italic; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s; }
.tp-i:hover, .tp-i[aria-expanded="true"] { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.tp-i:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(200,169,110,.55); }
.tp-i::after { content: ''; position: absolute; width: 36px; height: 36px; margin: -9px; } /* größere Tippfläche */
.tp-i { position: relative; }
.tp-tipbox { position: absolute; z-index: 40; left: 8px; right: 8px; top: calc(100% - 4px); background: #0a0a0a; color: #fff; font: 400 .8rem/1.45 'DM Sans', sans-serif; text-transform: none; letter-spacing: 0; padding: 10px 12px; border-radius: 3px; box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.tp-kpi .tp-tipbox, .tp-tipbox { color: #fff; font-size: .8rem; line-height: 1.45; }
.tp-tipbox[hidden] { display: none; }
@media (hover: hover) { .tp-tipwrap:hover .tp-tipbox[hidden] { display: block; } }
h3 .tp-tipwrap, h4 .tp-tipwrap { position: relative; margin-left: 8px; }
h3 .tp-tipbox, h4 .tp-tipbox { left: 0; right: auto; top: calc(100% + 6px); width: min(300px, 76vw); font-weight: 400; }
.tp-sec-intro { margin: -2px 0 10px; }
.tp-gloss { border: 1px solid var(--tp-line); border-radius: 3px; background: #fff; margin: 0 0 18px; }
.tp-gloss > summary { cursor: pointer; padding: 10px 16px; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: .92rem; color: #0a0a0a; }
.tp-gloss > summary::marker { color: #7d5f1f; }
.tp-gloss .tp-sub { margin: 0 16px 8px; }
.tp-gloss dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0 16px 12px; }
@media (min-width: 900px) { .tp-gloss dl { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.tp-gloss dl > div { padding: 8px 0; border-top: 1px solid #eee; }
.tp-gloss dt { font-weight: 700; font-size: .86rem; }
.tp-gloss dd { margin: 2px 0 0; color: #444; font-size: .86rem; line-height: 1.5; }
.tp-calc-h { font-size: .98rem; margin: 4px 0 2px; }
.tp-calc > .tp-sub { margin-bottom: 10px; }
.tp-calc .tp-table tr.step th { background: var(--tp-soft); color: #0a0a0a; text-align: left; font-size: .8rem; font-weight: 700; padding: 8px 10px; border-top: 1px solid var(--tp-line); }
.tp-calc .tp-table tr.step th .n { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #0a0a0a; color: #fff; font-size: .7rem; align-items: center; justify-content: center; margin-right: 8px; }
.tp-calc .tp-table tr.step th small { font-weight: 400; color: #5f5f5f; margin-left: 10px; font-size: .78rem; }
/* Diagramme: kleiner, leichter, ruhiger */
.tp-chart { padding: 12px 14px 10px; }
.tp-chart h3 { font-size: .92rem; font-weight: 600; margin-bottom: 1px; display: flex; align-items: center; }
.tp-chart .cap { font-size: .76rem; color: #6b6b6b; margin-bottom: 6px; line-height: 1.4; }
.tp-chart .tp-seg { margin-bottom: 4px; } .tp-chart .tp-seg button { min-height: 30px; padding: 4px 10px; font-size: .74rem; }
.tp-chart .tp-svgwrap svg { max-width: 600px; margin: 0 auto; }
details.tp-data { margin-top: 4px; font-size: .8rem; }
details.tp-data > summary { min-height: 30px; font-size: .76rem; color: #8a6d2b; opacity: .85; }
@media (min-width: 1000px) { .tp-charts.two { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 699px) { .tp-chart { padding: 10px 10px 8px; } .tp-kpi { padding: 12px 14px; } }
/* ===== v6.3: ruhigere Typografie, vollständig lesbare Tabellen, kompakter Schritt 4 ===== */
.tp-main { padding-top: 22px; }
.tp-h2 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); margin-bottom: 6px; }
#panel3 h3.tp-h2, #panel2 h3.tp-h2 { font-size: 1.05rem !important; margin-top: 26px !important; letter-spacing: -.01em; display: flex; align-items: center; }
.tp-lead { font-size: .94rem; line-height: 1.55; margin-bottom: 14px; color: #3d3d3d; }
.tp-sub { font-size: .84rem; }
.tp-eyebrow { font-size: 10.5px; margin-bottom: 6px; }
.tp-note { font-size: .83rem; padding: 8px 12px; margin: 8px 0; }
.tp-kpis { gap: 10px; margin: 14px 0; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); }
.tp-kpi { padding: 12px 14px; }
.tp-kpi small { font-size: .66rem; letter-spacing: .1em; line-height: 1.3; }
.tp-kpi strong { font-size: 1.3rem; margin: 3px 0 1px; }
.tp-kpi > span { font-size: .77rem; }
.tp-kpi > span.x { font-size: .72rem; }
.tp-gloss > summary { font-size: .88rem; min-height: 40px; }
.tp-gloss dt { font-size: .82rem; } .tp-gloss dd { font-size: .82rem; }
.tp-glance { font-size: .9rem; margin: 10px 0 2px; }
.tp-chart h3 { font-size: .86rem; }
.tp-chart .cap { font-size: .72rem; margin-bottom: 4px; }
details.tp-data > summary { font-size: .72rem; }
details.tp-data { font-size: .78rem; }
.tp-datatable { font-size: .78rem; }
/* Tabellen */
.tp-tablewrap { background: linear-gradient(to right, #fff 24px, rgba(255,255,255,0)) 0 0 / 48px 100% no-repeat local, linear-gradient(to left, #fff 24px, rgba(255,255,255,0)) 100% 0 / 48px 100% no-repeat local, linear-gradient(to right, rgba(0,0,0,.14), rgba(0,0,0,0)) 0 0 / 14px 100% no-repeat scroll, linear-gradient(to left, rgba(0,0,0,.14), rgba(0,0,0,0)) 100% 0 / 14px 100% no-repeat scroll, #fff; scrollbar-width: thin; scrollbar-color: #8a8a8a #eee; }
.tp-tablewrap::-webkit-scrollbar { height: 9px; } .tp-tablewrap::-webkit-scrollbar-track { background: #eee; } .tp-tablewrap::-webkit-scrollbar-thumb { background: #8a8a8a; border-radius: 5px; }
.tp-table { font-size: .8rem; }
.tp-table th, .tp-table td { padding: 8px 9px; }
.tp-table thead th { font-size: .72rem; letter-spacing: .02em; white-space: normal; line-height: 1.25; vertical-align: bottom; font-weight: 600; }
.tp-table thead th button { text-align: inherit; justify-content: flex-end; }
.tp-table thead th:first-child button, .tp-table thead th:nth-child(2) button { justify-content: flex-start; }
.tp-t-gesamt { font-size: .78rem; }
.tp-t-gesamt th, .tp-t-gesamt td { padding: 7px 6px; }
.tp-t-gesamt thead th { min-width: 56px; }
.tp-t-gesamt thead th:first-child { min-width: 0; width: 44px; text-align: center; }
.tp-t-gesamt tbody td:first-child { text-align: center; }
.tp-t-gesamt tbody th[scope="row"], .tp-t-gesamt thead th:nth-child(2) { min-width: 112px; max-width: 140px; }
.tp-t-gesamt .tp-badge { white-space: nowrap; font-size: .68rem; padding: 3px 7px; }
.tp-t-min { font-size: .78rem; }
.tp-t-min th, .tp-t-min td { white-space: normal; padding: 8px 8px; vertical-align: top; }
.tp-t-min td:not([colspan]) { white-space: nowrap; }
.tp-t-min thead th:nth-child(2) { text-align: right; min-width: 0; }
.tp-t-min tbody th[scope="row"], .tp-t-min thead th:first-child { min-width: 128px; max-width: 160px; text-align: left; }
.tp-t-min td:nth-child(6), .tp-t-min thead th:nth-child(6) { text-align: left; white-space: normal; min-width: 190px; }
.tp-t-min td:nth-child(6) { color: #555; font-size: .74rem; }
.tp-scroll-hint { font-size: .76rem; }
/* Schritt 4 */
.tp-mailnote { margin: 0 0 12px; }
.tp-s4 { padding: 16px 18px; margin-bottom: 0; }
.tp-s4 h3 { font-size: .98rem; margin-bottom: 2px; }
.tp-s4 .tp-sub { margin-bottom: 12px; font-size: .82rem; }
.tp-mailrow { display: flex; gap: 10px; align-items: flex-end; }
.tp-mailrow .tp-field { flex: 1 1 auto; }
.tp-mailrow .tp-btn { flex: 0 0 auto; }
.tp-s4 .tp-field > label { font-size: .78rem; }
.tp-s4 .tp-text { min-height: 44px; font-size: .95rem; padding: 9px 12px; }
.tp-s4-chk { margin-top: 10px; font-size: .8rem; }
.tp-s4-chk .tp-check { font-size: .8rem; line-height: 1.45; }
.tp-s4 .tp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-s4 .tp-hint { margin-top: 10px; font-size: .78rem; }
.tp-s4-contact { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 12px 16px; background: var(--tp-soft); border: 1px solid var(--tp-line); border-left: 3px solid var(--accent); border-radius: 3px; }
.tp-s4-contact b { display: block; font-size: .88rem; } .tp-s4-contact span { font-size: .8rem; color: #444; }
.tp-report { gap: 14px; }
@media (min-width: 900px) { .tp-report { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }
@media (max-width: 640px) { .tp-mailrow { flex-direction: column; align-items: stretch; } .tp-s4-contact { flex-direction: column; align-items: stretch; } .tp-s4 .tp-btn, .tp-s4-contact .tp-btn { width: 100%; } }
.tp-btn { font-size: 12.5px; padding: 12px 20px; min-height: 44px; }
.tp-btn.sm { min-height: 38px; padding: 7px 12px; font-size: 11.5px; }
/* v6.4: Typografie nochmals ruhiger */
.tp-h2 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -.015em; }
h3.tp-h2 { font-size: 1rem !important; letter-spacing: 0; margin-top: 26px !important; }
.tp-lead { font-size: .88rem; }
.tp-sub, .tp-sec-intro { font-size: .8rem; }
.tp-note { font-size: .79rem; }
.tp-kpi strong { font-size: 1.15rem; }
.tp-kpi small { font-size: .62rem; }
.tp-kpi > span { font-size: .73rem; } .tp-kpi > span.x { font-size: .68rem; }
.tp-chart h3 { font-size: .8rem; }
.tp-t-gesamt th, .tp-t-min th { font-size: .66rem; } .tp-t-gesamt td, .tp-t-min td { font-size: .74rem; }
@media (min-width: 960px) { .tp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

h3.tp-h2 { font-weight: 700; font-size: .95rem !important; }
@media (max-width: 1180px) {
  .tp-t-gesamt th, .tp-t-gesamt td { padding: 6px 2px; }
  .tp-t-gesamt td { font-size: .71rem; }
  .tp-t-gesamt thead th { min-width: 0; }
  .tp-t-gesamt thead th:first-child { width: 34px; }
  .tp-t-gesamt tbody th[scope="row"], .tp-t-gesamt thead th:nth-child(2) { min-width: 92px; max-width: 110px; }
  .tp-t-gesamt .tp-badge { font-size: .62rem; padding: 2px 5px; }
  .tp-t-min th, .tp-t-min td { padding: 6px 5px; }
  .tp-t-min td:nth-child(6), .tp-t-min thead th:nth-child(6) { min-width: 150px; }
}
.tp-calc summary { font-size: .84rem; padding: 6px 0; min-height: 36px; }
.tp-calc { padding-top: 2px; padding-bottom: 2px; }
@media print {
  body.tp-printing > *:not(#tpPrint) { display: none !important; }
  body.tp-printing #tpPrint { display: block !important; color: #000; font-family: 'DM Sans', Arial, sans-serif; font-size: 10pt; line-height: 1.4; }
  body.tp-printing { background: #fff !important; }
  #tpPrint h1 { font-family: 'Syne', sans-serif; font-size: 26pt; margin: 0 0 4pt; }
  #tpPrint h2 { font-family: 'Syne', sans-serif; font-size: 15pt; margin: 14pt 0 6pt; padding-bottom: 3pt; border-bottom: 1.5pt solid #c8a96e; break-after: avoid; }
  #tpPrint h3 { font-size: 11pt; margin: 10pt 0 4pt; break-after: avoid; }
  #tpPrint .pr-cover { background: #0a0a0a !important; color: #fff; padding: 18mm 12mm; margin: -2mm -2mm 8mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #tpPrint .pr-cover p { color: #ddd; margin: 2pt 0; }
  #tpPrint .pr-logo { height: 12mm; width: auto; margin-bottom: 8mm; }
  #tpPrint .pr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4mm; margin: 4mm 0; }
  #tpPrint .pr-kpi { border: .5pt solid #bbb; border-top: 2pt solid #c8a96e; padding: 3mm; break-inside: avoid; }
  #tpPrint .pr-kpi small { display: block; font-size: 7pt; letter-spacing: .08em; text-transform: uppercase; color: #555; }
  #tpPrint .pr-kpi b { font-size: 13pt; }
  #tpPrint table { width: 100%; border-collapse: collapse; font-size: 8.5pt; break-inside: auto; }
  #tpPrint thead { display: table-header-group; }
  #tpPrint tr { break-inside: avoid; }
  #tpPrint th, #tpPrint td { padding: 1.6mm 2mm; border-bottom: .4pt solid #ccc; text-align: right; }
  #tpPrint th:first-child, #tpPrint td:first-child { text-align: left; }
  #tpPrint thead th { background: #0a0a0a !important; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #tpPrint .pr-tour { break-inside: avoid; margin-bottom: 6mm; border: .5pt solid #bbb; padding: 3mm; }
  #tpPrint .pr-chart { break-inside: avoid; margin: 4mm 0; }
  #tpPrint .pr-chart svg { width: 100%; height: auto; }
  #tpPrint .pr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
  #tpPrint .pr-note { font-size: 8.5pt; color: #444; }
  #tpPrint .pr-end { background: #0a0a0a !important; color: #fff; padding: 8mm; margin-top: 8mm; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #tpPrint .pr-end a { color: #c8a96e; }
  #tpPrint .pb { break-before: page; }
}
.tp-table tbody th[scope="row"], .tp-table thead th:nth-child(2) { text-align: left; min-width: 170px; }
.tp-table thead th:nth-child(2) button { text-align: left; }
@media (max-width: 760px) {
  .tp-tour-head { grid-template-columns: 1fr; }
  .tp-tour-tools { justify-content: flex-start; }
  .tp-tour-title { width: 100%; }
  .tp-tour-title .nm { flex: 1 1 60%; min-width: 0; }
  .tp-tour-title .chev { flex: 0 0 auto; }
}
