/*
 * OK-MARKED Kundenportal — Design aus dem freigegebenen Entwurf (09/2026).
 * Nur heller Modus. Roboto (lokal über /css/fonts.css), Brandblau #397cf2.
 * Farblogik: Verbesserung grün, Rückgang neutral grau, Rot nur im Admin.
 */
:root {
  --brand: #397cf2; --brand-d: #1c5dd0; --brand-dd: #174fb3; --brand-l: #6da0ff;
  --brand-soft: #edf3fe; --brand-line: #d6e3fb; --brand-chip: #eaf1fe;
  --text: #0f1b2d; --text-2: #22324a; --dim: #55657d; --muted: #9aa6b8;
  --border: #e2e8f1; --line: #eef1f6; --bg: #f5f7fb; --surface: #ffffff; --surface-2: #f6f8fb;
  --up: #13804a; --up-soft: #e6f4ec; --neutral: #6b7890;
  --warn: #9a5b00; --warn-soft: #fdf1dc; --bad: #b42318; --bad-soft: #fdecea;
  --gold: #e8a317;
  --radius: 16px; --shadow: 0 1px 2px rgba(15,27,45,.04), 0 2px 8px rgba(15,27,45,.04);
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { color: #123f94; }
h1 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
h2 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- Kopf */
.top { position: sticky; top: 0; z-index: 30; height: 72px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 28px; padding: 0 32px; }
.top__logo { display: flex; align-items: center; flex-shrink: 0; }
.top__logo svg { height: 24px; width: auto; }
.top__nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top__nav::-webkit-scrollbar { display: none; }
.top__who { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.top__who-name { font-size: 14px; font-weight: 500; text-align: right; }
.top__who-sub { font-size: 12.5px; color: var(--dim); text-align: right; }
.menu { position: relative; flex-shrink: 0; }
.menu__btn { list-style: none; display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; color: var(--dim); }
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn:hover, .menu[open] .menu__btn { background: #f1f4f9; border-color: var(--border); }
.menu__who { display: flex; flex-direction: column; color: var(--text); }
.avatar--sm { width: 36px; height: 36px; font-size: 13.5px; }
.menu__pop { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,27,45,.12); padding: 8px; display: flex; flex-direction: column; z-index: 40; }
.menu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu__item { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px; font-size: 15px; color: var(--text); }
.menu__item:hover { background: #f1f4f9; }
.menu__item.is-on { background: var(--brand-chip); color: var(--brand-d); font-weight: 500; }
.menu__item svg { color: var(--dim); }
.menu__sep { height: 1px; background: var(--line); margin: 6px 0; }
.navlink { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 15px; color: var(--dim); white-space: nowrap; }
.navlink:hover { background: #f1f4f9; color: var(--text); }
.navlink.is-on { background: var(--brand-chip); color: var(--brand-d); font-weight: 500; }
.navlink.is-off { color: var(--muted); }
.navlink__dot { width: 6px; height: 6px; border-radius: 99px; background: #c3ccd9; }
.top--admin { height: 64px; }
.badge-admin { display: inline-flex; padding: 3px 10px; border-radius: 99px; background: var(--text); color: #fff; font-size: 12.5px; font-weight: 500; }
.impersonate { background: #fff7e0; border-bottom: 1px solid #f3dfa6; color: #6b4b00; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px; }
.impersonate a { font-weight: 500; }

/* Handy: untere Tab-Leiste */
.tabbar { display: none; }

/* ---------------------------------------------------------------- Seite */
.page > *, .grid > *, .split > * { min-width: 0; }
.page { max-width: 1200px; margin: 0 auto; padding: 36px 40px 64px; display: flex; flex-direction: column; gap: 32px; }
.page--admin { gap: 24px; padding-top: 30px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head__text { display: flex; flex-direction: column; gap: 6px; }
.head__sub { color: var(--dim); font-size: 16px; }
.back { font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }
.section { display: flex; flex-direction: column; gap: 14px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section__sub { font-size: 14px; color: var(--dim); margin-top: 4px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.split { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; }
.split--profile { grid-template-columns: 1.4fr 1fr; align-items: start; }
.split--form { grid-template-columns: 1fr 1.9fr; align-items: start; gap: 20px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card--pad { padding: 24px 26px; }
.card--table { padding: 6px 8px 8px; overflow-x: auto; }
.card--dashed { background: #fafbfd; border-style: dashed; box-shadow: none; }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 6px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* Sortierbare Platzierungstabelle */
.more-row{display:none}
.show-all .more-row{display:table-row}
th.sortable{cursor:pointer;user-select:none;white-space:nowrap}
th.sortable::after{content:"↕";margin-left:4px;color:var(--muted);font-size:11px}
th.sortable[aria-sort=ascending]::after{content:"↑";color:inherit}
th.sortable[aria-sort=descending]::after{content:"↓";color:inherit}
th.sortable:focus-visible{outline:2px solid #397cf2;outline-offset:2px}
.table-scroll{overflow-x:auto}
/* Laufende Nummer per CSS-Zähler: zählt nach jedem Sortieren von oben, ausgeblendete Zeilen zählen nicht mit */
table.numbered tbody{counter-reset:row}
table.numbered tbody tr{counter-increment:row}
table.numbered td.rownum::before{content:counter(row);color:var(--dim);font-variant-numeric:tabular-nums}
table.numbered th.rownum,table.numbered td.rownum{width:1%;padding-right:4px;text-align:right;white-space:nowrap}
.rank-spark{display:block}

/* ---------------------------------------------------------------- Klartext */
.summary { display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.summary__icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--brand-d); flex-shrink: 0; }
.summary__kicker { font-size: 12.5px; font-weight: 500; color: var(--brand-d); letter-spacing: .04em; text-transform: uppercase; }
.summary__text { font-size: 18px; line-height: 1.55; text-wrap: pretty; margin-top: 4px; }
.summary__text b { font-weight: 500; }

/* ---------------------------------------------------------------- Kennzahl */
.kpi { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.kpi__top { display: flex; align-items: center; gap: 8px; }
.kpi__icon { color: var(--brand); display: flex; }
.kpi__label { font-size: 14px; color: var(--dim); font-weight: 500; flex: 1; }
.kpi__value { font-size: 34px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi__value small { font-size: 18px; color: var(--dim); font-weight: 400; }
.kpi__value--none { color: #b5bfcc; }
.kpi__value--text { font-size: 26px; }
.kpi__delta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.kpi .pill { max-width: 100%; white-space: normal; }
.kpi__vs { font-size: 13px; color: var(--dim); }
.kpi__hint { font-size: 13px; color: var(--dim); line-height: 1.45; }
.kpi__spark { margin-top: 4px; }
.kpi--off { opacity: .55; }
.dual { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.dual__sep { width: 1px; height: 40px; background: var(--border); }
.dual__second { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; color: #34445c; }
.dual__src { font-size: 12.5px; color: var(--dim); margin-top: 2px; }

.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 500; }
.delta--up { color: var(--up); }
.delta--down, .delta--flat { color: var(--neutral); }

/* ⓘ-Erklärung (details/summary = ohne JavaScript bedienbar) */
.tip { position: relative; display: inline-block; vertical-align: middle; }
.tip > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 99px; color: var(--dim); }
.tip > summary::-webkit-details-marker { display: none; }
.tip > summary:hover, .tip[open] > summary { background: var(--brand-chip); color: var(--brand-d); }
.tip__body { position: absolute; top: 34px; right: -6px; width: 300px; background: var(--text); color: #fff; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; z-index: 20; box-shadow: 0 8px 24px rgba(15,27,45,.25); font-weight: 400; }
.tip__body strong { display: block; font-weight: 500; margin-bottom: 4px; }
/* Nichts vom Tabellenkopf erben (Großbuchstaben, rechtsbündig, kein Umbruch) */
.tip__body { text-transform: none; letter-spacing: normal; text-align: left; white-space: normal; }

/* ---------------------------------------------------------------- Bedienelemente */
.periods { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--dim); border: 1px solid var(--border); background: #fff; font-family: inherit; cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: #cdd6e3; }
.chip.is-on { background: var(--text); color: #fff; border-color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; text-decoration: none; }
.btn--primary { background: var(--brand-d); color: #fff; }
.btn--primary:hover { background: var(--brand-dd); color: #fff; }
.btn--secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: #c8d2e0; color: var(--text); }
.btn--danger { background: #fff; color: var(--bad); border-color: #f1c8c4; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--dim); cursor: pointer; }
.iconbtn:hover { color: var(--text); border-color: #c8d2e0; }
.link-more { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill--ok { background: var(--up-soft); color: var(--up); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
.pill--idle { background: #eef1f6; color: var(--dim); }
.pill--brand { background: var(--brand-chip); color: var(--brand-d); }
.pill--dark { background: var(--text); color: #fff; }

.pos { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 8px; font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.pos--3 { background: #e3f3ea; color: #0f6e3e; } .pos--10 { background: #e6efff; color: #1a53bd; }
.pos--20 { background: #fdf3d8; color: #865300; } .pos--rest { background: #eef1f6; color: var(--dim); }
.pos--sm { min-width: 22px; height: 18px; font-size: 11px; padding: 0 4px; border-radius: 6px; }
.legend-pos { display: flex; gap: 14px; font-size: 12.5px; color: var(--dim); flex-wrap: wrap; }
.legend-pos span { display: inline-flex; gap: 6px; align-items: center; }

.yes, .no { display: inline-flex; width: 28px; height: 28px; border-radius: 99px; align-items: center; justify-content: center; }
.yes { background: #e3f3ea; color: var(--up); } .no { background: #f1f3f7; color: #a3aebe; }
.dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; flex-shrink: 0; }
.dot--ok { background: var(--up); } .dot--warn { background: #d08a00; } .dot--bad { background: var(--bad); } .dot--off { background: #c3ccd9; }
.srcchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dim); padding: 3px 8px; border-radius: 999px; background: #f5f7fa; white-space: nowrap; }

/* ---------------------------------------------------------------- Tabellen */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--dim); padding: 10px 14px; border-bottom: 1px solid var(--border); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.strong { font-weight: 500; }
.cell-sub { font-size: 13px; color: var(--dim); }

/* ---------------------------------------------------------------- Balken */
.bar { height: 10px; border-radius: 999px; background: #eef1f6; overflow: hidden; flex: 1; }
.bar > div { height: 100%; border-radius: 999px; background: var(--brand); }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-row .bar { flex: none; }
.bar-row__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.bar-line { display: flex; align-items: center; gap: 12px; }
.bar-line__label { width: 150px; font-size: 14.5px; flex-shrink: 0; }
.bar-line__val { width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #eef1f6; }

/* ---------------------------------------------------------------- Diagramm */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; font-size: 13.5px; color: var(--dim); margin-top: 12px; }

/* ---------------------------------------------------------------- Bereiche / Karten */
.area { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.area:hover { color: var(--text); border-color: #cdd6e3; }
.area__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ibox { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-d); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ibox--off { background: #eef1f6; color: var(--dim); }
.area__name { font-weight: 500; font-size: 16px; }
.area__line { font-size: 13.5px; color: var(--dim); flex: 1; line-height: 1.45; }
.area--off { opacity: .85; }

.quote { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.quote__text { font-size: 15.5px; line-height: 1.6; color: var(--text-2); padding-left: 14px; border-left: 3px solid var(--brand-line); }
.quote mark { background: #fff1b8; color: var(--text); padding: 0 3px; border-radius: 4px; }
.src-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 6px 10px; border-radius: 8px; background: #f3f5f9; color: var(--dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-link--own { background: var(--brand-chip); color: var(--brand-d); }

.post { overflow: hidden; display: flex; flex-direction: column; }
.post__img { height: 200px; background: #e9edf3; display: flex; align-items: center; justify-content: center; color: #98a4b6; position: relative; background-size: cover; background-position: center; }
.post__img .pill { position: absolute; top: 12px; }
.post__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.stats { display: flex; gap: 16px; font-size: 13.5px; color: var(--dim); flex-wrap: wrap; }
.stats span { display: inline-flex; gap: 5px; align-items: center; }

.review { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 99px; background: #e4ebf6; display: flex; align-items: center; justify-content: center; font-weight: 500; color: var(--brand-d); flex-shrink: 0; }
.stars { display: inline-flex; gap: 2px; }
.reply { padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 13.5px; color: var(--dim); }

.contact { padding: 22px 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.contact__text { flex: 1; min-width: 220px; }

.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); }
.empty__icon { width: 52px; height: 52px; border-radius: 16px; background: #eef1f6; display: flex; align-items: center; justify-content: center; color: var(--dim); }
.empty strong { color: var(--text); font-size: 16px; font-weight: 500; }
.nodata { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 500; align-self: flex-start; }

.upsell { padding: 48px 52px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.upsell h1 { font-size: 36px; }
.upsell__lead { font-size: 17px; line-height: 1.6; color: var(--dim); }
.benefit { display: flex; gap: 14px; }
.preview-dim { opacity: .45; filter: grayscale(.6); pointer-events: none; }

.alert { padding: 14px 18px; border-radius: 12px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert--ok { background: var(--up-soft); color: #0d5c35; }
.alert--bad { background: var(--bad-soft); color: #8a1b12; }
.alert--info { background: var(--brand-soft); color: #173f8a; }

/* ---------------------------------------------------------------- Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.field small { font-size: 12.5px; color: var(--dim); }
.input, select.input, textarea.input { height: 44px; border: 1px solid #cfd8e5; border-radius: 10px; padding: 0 14px; font-size: 15px; font-family: inherit; color: var(--text); background: #fff; width: 100%; }
textarea.input { height: auto; padding: 10px 14px; min-height: 90px; }
.input:focus { outline: 2px solid var(--brand-l); outline-offset: 0; border-color: var(--brand); }
.input--sm { height: 40px; border-color: var(--border); }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: none; }
.switch { position: relative; display: inline-block; vertical-align: middle; width: 44px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #cfd8e5; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.switch input:checked + span { background: var(--up); }
.switch input:checked + span::after { left: 21px; }
.switch input:focus-visible + span { outline: 2px solid var(--brand-l); outline-offset: 2px; }
.conn { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.conn__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conn__name { font-weight: 500; flex: 1; }

/* ---------------------------------------------------------------- Login */
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: #fff; }
.login__brand { background: var(--text); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.login__brand h1 { font-size: 40px; font-weight: 400; color: #fff; }
.login__brand p { font-size: 17px; line-height: 1.6; color: #b8c4d6; max-width: 420px; margin-top: 18px; }
.login__form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login__form form, .login__box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 20px; }

/* GEO: alle Antworten */
.qa { padding: 0; }
.qa summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .strong { flex: 1; min-width: 0; }
.qa__chev { display: flex; color: var(--dim); flex-shrink: 0; }
.qa__chev--up, .qa[open] .qa__chev { display: none; }
.qa[open] .qa__chev--up { display: flex; }
.qa__body { padding: 0 16px 16px; }
.answer { padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: none; }
.answer__text { font-size: 14px; line-height: 1.6; color: var(--text); max-height: 340px; overflow-y: auto; overflow-wrap: anywhere; padding-right: 4px; }
.answer__text mark, .quote__text mark { background: #fff1b8; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------------------------------------------------------------- Responsiv */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--form, .split--profile { grid-template-columns: 1fr; }
  .upsell { grid-template-columns: 1fr; padding: 36px 32px; gap: 32px; }
  .top__who-name, .top__who-sub { display: none; }
  .menu__who { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .top { height: 60px; padding: 0 16px; gap: 12px; }
  .top__nav { display: none; }
  .top__who, .menu { margin-left: auto; }
  .top--admin .top__nav { display: flex; }
  .page { padding: 20px 16px 110px; gap: 18px; }
  .page--admin { padding-bottom: 48px; }
  h1 { font-size: 25px; }
  .head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .head__sub { font-size: 14.5px; }
  .periods { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; align-self: stretch; max-width: none; width: calc(100% + 32px); }
  .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid--5, .grid--2, .grid--1m { grid-template-columns: 1fr; gap: 10px; }
  .summary { padding: 18px; flex-direction: column; gap: 10px; }
  .summary__icon { display: none; }
  .summary__text { font-size: 16px; }
  .card--pad { padding: 18px 16px; }
  .kpi { padding: 16px; border-radius: 14px; gap: 6px; }
  .kpi__value { font-size: 26px; }
  .kpi__value small { font-size: 14px; }
  .kpi__spark { display: none; }
  .dual__second { font-size: 18px; }
  .dual { gap: 14px; }
  .dual__sep { display: none; }
  .tip__body { right: auto; left: -200px; width: 260px; }
  .bar-line__label { width: 110px; font-size: 13.5px; }
  .hide-m { display: none !important; }
  .login { grid-template-columns: 1fr; }
  .login__brand { padding: 32px 24px; gap: 20px; }
  .login__brand h1 { font-size: 28px; }
  .contact { flex-direction: column; align-items: stretch; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 76px; background: #fff; border-top: 1px solid var(--border); justify-content: space-around; align-items: flex-start; padding-top: 10px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: var(--dim); min-width: 56px; min-height: 48px; }
  .tabbar a.is-on { color: var(--brand-d); font-weight: 500; }
  .upsell { padding: 26px 20px; }
  .upsell h1 { font-size: 27px; }
  .form-row { grid-template-columns: 1fr; }
  .qa summary { flex-wrap: wrap; padding: 14px 16px; }
  .qa__body { padding: 0 10px 10px; }
  th, td { padding: 10px 8px; }
  .card--table table { font-size: 14px; }
  .kpi__label { font-size: 13px; }
}
@media (min-width: 761px) { .show-m { display: none !important; } }
code, .mono { overflow-wrap: anywhere; }
