/* GKV-Monitor demo – DAK-Gesundheit corporate design (Styleguide B1a colours, B1b logo/Schwungbogen).
   Wild Berry only for interaction; brand orange only for logo, Schwungbogen and the DAK column line. */
@font-face { font-family: "Roboto Condensed"; src: url("/static/fonts/RobotoCondensed-wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --berry-dark: #8E0C4F; --berry-light: #BA0060; --orange: #EC7D28; --grad-a: #DB6501; --grad-b: #F6AC00;
  --black: #000; --black75: #4A4A4A; --dimmed: #ACB1BF; --grey-dark: #D3D7E0; --grey: #E4E7EF; --grey-light: #F0F2F7; --white: #FFF;
  --pale-red: #FDE0DB; --red: #F0300B; --yellow: #F8A300; --green: #399958;
  --green-t: #2B7A45; --red-t: #C42808;
  --radius: 10px; --radius-s: 6px;
  --shadow: 0 1px 2px rgba(17, 20, 45, .06), 0 2px 10px rgba(17, 20, 45, .04);
  --shadow-l: 0 10px 40px rgba(17, 20, 45, .14);
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; color: var(--black); background: var(--grey-light); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--berry-dark); text-underline-offset: 2px; }
a:hover { color: var(--berry-light); }
:focus-visible { outline: 3px solid var(--berry-light); outline-offset: 2px; border-radius: 3px; }
h1 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; margin: 0 0 6px; font-weight: 700; letter-spacing: -.2px; }
h2 { font-size: 21px; margin: 0 0 10px; font-weight: 700; }
h3 { font-size: 18px; margin: 0 0 6px; }
.muted { color: var(--black75); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.pos-t { color: var(--green-t); font-weight: 700; }
.neg-t { color: var(--red-t); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 26px 24px 40px; }
main { min-height: 60vh; outline: none; }

/* ---------------------------------------------------------------- header */
header.top { background: var(--white); border-bottom: 1px solid var(--grey-dark); position: sticky; top: 0; z-index: 40; }
header.top .in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 10px 24px; }
.logo { width: 96px; height: 54px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; display: flex; flex-direction: column; justify-content: center; padding-left: 11px; border-radius: 2px; text-decoration: none; flex: 0 0 auto; }
.logo:hover { color: #fff; }
.logo-dak { font-size: 25px; font-weight: 800; letter-spacing: .5px; line-height: 1; }
.logo-sub { font-size: 12.5px; line-height: 1.15; }
.apptitle a { font-size: 22px; font-weight: 700; color: var(--black); text-decoration: none; display: block; line-height: 1.1; }
.apptitle small { display: block; font-size: 13px; color: var(--black75); }
.mainnav { display: flex; gap: 4px; margin-left: 12px; }
.mainnav a { color: var(--black); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 16px; position: relative; }
.mainnav a:hover { background: var(--grey-light); color: var(--berry-dark); }
.mainnav a[aria-current="page"] { color: var(--berry-dark); font-weight: 700; }
.mainnav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--berry-dark); border-radius: 2px; }
.userchip { margin-left: auto; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--black); font-size: 14px; line-height: 1.15; padding: 6px 10px; border: 1px solid var(--grey-dark); border-radius: 22px; }
.userchip svg { width: 22px; height: 22px; fill: none; stroke: var(--berry-dark); stroke-width: 1.8; }
.userchip small { display: block; color: var(--black75); font-size: 12px; }
.demobar { background: var(--white); border-bottom: 1px solid var(--grey); font-size: 13.5px; color: var(--black75); }
.demobar .in { max-width: var(--wrap); margin: 0 auto; padding: 6px 24px; display: flex; gap: 8px; align-items: center; }
.demobar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: 0 0 8px; }

/* ---------------------------------------------------------------- buttons, chips */
.btn { background: var(--berry-light); color: #fff; border: 2px solid var(--berry-light); border-radius: var(--radius-s); padding: 10px 18px; font: inherit; font-weight: 700; font-size: 16.5px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--berry-dark); border-color: var(--berry-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.outline { background: var(--white); color: var(--berry-dark); border-color: var(--berry-dark); }
.btn.outline:hover { background: #FBEFF5; color: var(--berry-dark); }
.btn.big { font-size: 19px; padding: 14px 28px; }
.btn.small { font-size: 14.5px; padding: 6px 12px; }
.btn[disabled] { opacity: .5; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--grey-dark); background: var(--white); border-radius: 22px; padding: 7px 14px; font-size: 16px; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; user-select: none; transition: border-color .12s, background .12s; }
.chip:hover { border-color: var(--berry-dark); }
.chip small { color: var(--black75); font-size: 13px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--berry-light); border-color: var(--berry-light); color: #fff; }
.chip:has(input:checked) small { color: #FFE3EF; }
.chip:has(input:checked)::before { content: "✓"; font-weight: 700; }
.chip:has(input:focus-visible) { outline: 3px solid var(--berry-dark); outline-offset: 2px; }
.chip.fixed { background: var(--grey); color: var(--black75); cursor: default; border-color: var(--grey); }
.chip.fixed small { font-size: 12.5px; }
.chip.on { background: var(--white); border-color: var(--grey-dark); cursor: default; }
.chip .x { border: 0; background: none; font-size: 18px; line-height: 1; padding: 0 0 0 2px; cursor: pointer; color: var(--black75); }
.chip .x:hover { color: var(--red-t); }
.chips.small .chip { font-size: 14.5px; padding: 5px 11px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--c, var(--dimmed)); display: inline-block; flex: 0 0 12px; }
.swatch.dak { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }
.pill { display: inline-flex; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { padding: 6px 12px; border-radius: 18px; border: 1px solid var(--grey-dark); background: var(--white); font-size: 15px; }
.pill:hover span { border-color: var(--berry-dark); }
.pill input:checked + span { background: var(--berry-light); color: #fff; border-color: var(--berry-light); }
.pill input:focus-visible + span { outline: 3px solid var(--berry-dark); outline-offset: 2px; }
.switch { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 15.5px; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 12px; background: var(--dimmed); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--berry-light); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--berry-dark); outline-offset: 2px; }
input, select, textarea { font: inherit; }
.input-eur { display: flex; align-items: center; border: 1px solid var(--grey-dark); background: var(--grey); border-radius: var(--radius-s); overflow: hidden; }
.input-eur input { border: 0; background: transparent; padding: 9px 10px; width: 100%; min-width: 0; }
.input-eur span { padding: 0 10px; color: var(--black75); }
select, .param input, .param select, textarea { border: 1px solid var(--grey-dark); background: var(--grey); border-radius: var(--radius-s); padding: 8px 10px; width: 100%; }
.notice { background: #FFF6D9; border: 1px solid var(--yellow); padding: 10px 14px; border-radius: var(--radius-s); }
.notice.ok { background: #E9F5EE; border-color: var(--green); }

/* ---------------------------------------------------------------- cards, layout */
.card { background: var(--white); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.two-col > .card { margin-bottom: 0; }
.sub { color: var(--black75); margin: 2px 0 0; font-size: 17px; }
.crumbs { margin: 0 0 10px; font-size: 15px; }

/* ---------------------------------------------------------------- start page */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: center; margin-bottom: 22px; }
.lead { color: var(--black75); font-size: 19px; margin: 6px 0 0; max-width: 640px; }
.voice-hero { display: flex; align-items: center; gap: 16px; text-align: left; background: var(--white); border: 1px solid var(--grey-dark); border-radius: 16px; padding: 16px 20px; cursor: pointer; font: inherit; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.voice-hero:hover { border-color: var(--berry-light); box-shadow: 0 6px 24px rgba(186, 0, 96, .12); }
.voice-hero .mic { width: 58px; height: 58px; border-radius: 50%; background: var(--berry-light); display: grid; place-items: center; flex: 0 0 58px; box-shadow: 0 0 0 8px #FBEFF5; }
.voice-hero .mic svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.voice-hero-text b { display: block; font-size: 19px; }
.voice-hero-text span { color: var(--black75); font-size: 15.5px; font-style: italic; }
.query .step { padding: 22px 24px; }
.stepno { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: #fff; align-items: center; justify-content: center; font-size: 15px; margin-right: 8px; font-weight: 700; vertical-align: 2px; }
.optional { font-weight: 400; font-size: 15px; color: var(--black75); }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--grey-dark); background: var(--grey); border-radius: var(--radius-s); padding: 0 12px; margin-bottom: 12px; }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--black75); stroke-width: 2; }
.search input { border: 0; background: transparent; padding: 11px 0; width: 100%; outline: none; }
.more-insurers { margin-top: 12px; }
.more-insurers summary { cursor: pointer; color: var(--berry-dark); font-size: 15.5px; }
.more-insurers .chips { margin-top: 10px; max-height: 260px; overflow: auto; padding: 4px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { position: relative; border: 1px solid var(--grey-dark); border-radius: 10px; padding: 12px 14px 12px 50px; background: var(--white); cursor: pointer; transition: border-color .12s, background .12s; min-height: 82px; }
.tile:hover { border-color: var(--berry-dark); }
.tile input { position: absolute; opacity: 0; }
.tile b { display: block; font-size: 16.5px; line-height: 1.2; }
.tile span:not(.tile-icon) { font-size: 14px; color: var(--black75); line-height: 1.3; display: block; margin-top: 2px; }
.tile-icon { position: absolute; left: 12px; top: 13px; width: 28px; height: 28px; color: var(--berry-dark); }
.tile-icon svg { width: 28px; height: 28px; }
.tile:has(input:checked) { border: 2px solid var(--berry-light); background: #FBEFF5; padding: 11px 13px 11px 49px; }
.tile:has(input:checked)::after { content: "✓"; position: absolute; right: 10px; top: 8px; color: var(--berry-light); font-weight: 800; }
.tile:has(input:focus-visible) { outline: 3px solid var(--berry-dark); outline-offset: 2px; }
.profile-row { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.profile-row .chips { flex: 1; }
.chip.radio::before { content: none !important; }
.salary label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.salary label small { font-weight: 400; color: var(--black75); }
.salary .input-eur { width: 200px; }
.submit-row { display: flex; align-items: center; gap: 16px; margin: 6px 0 26px; }
.startinfo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card.mini { font-size: 15.5px; padding: 16px 18px; }
.card.mini b { display: block; font-size: 17px; }
.card.mini .muted { display: block; font-size: 14px; margin-top: 4px; }

/* ---------------------------------------------------------------- result page */
.result-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.compbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.compbar-label { font-size: 15px; color: var(--black75); }
.addk { width: auto; border-radius: 22px; padding: 6px 12px; background: var(--white); border: 1px dashed var(--berry-dark); color: var(--berry-dark); cursor: pointer; font-size: 15.5px; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.strip-card { background: var(--white); border-radius: var(--radius); padding: 16px 20px 14px; box-shadow: var(--shadow); border-top: 4px solid var(--c); }
.strip-title { font-size: 17px; margin: 0 0 8px; }
.strip-title .vs { color: var(--black75); font-weight: 400; }
.strip-body { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.strip-nums { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 8px; }
.strip-zb { background: var(--grey-light); border-radius: 10px; padding: 10px 14px; min-width: 220px; }
.strip-zb .zb-big { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.strip-zb .zb-big.pos { color: var(--green-t); } .strip-zb .zb-big.neg { color: var(--red-t); }
.strip-zb small { display: block; color: var(--black75); font-size: 13.5px; }
.strip.multi .strip-body { grid-template-columns: 1fr; }
.strip-nums .n b { display: block; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.5px; }
.strip-nums .n span { font-size: 14.5px; color: var(--black75); display: flex; gap: 5px; align-items: center; margin-top: 4px; }
.strip-nums .pos b { color: var(--green-t); } .strip-nums .neg b { color: var(--red-t); } .strip-nums .neu b { color: var(--black75); }
.bar { display: flex; height: 8px; border-radius: 5px; overflow: hidden; margin: 12px 0 8px; background: var(--grey); gap: 2px; }
.bar .b.pos { background: var(--green); } .bar .b.neu { background: var(--dimmed); } .bar .b.neg { background: var(--red); } .bar .b.unk { background: var(--grey-dark); }
.strip-foot { margin: 0; font-size: 14.5px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; box-shadow: var(--shadow); position: sticky; top: 76px; z-index: 30; }
.tb-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tb-link { font-size: 15px; margin-right: 6px; }
.two-col.after-table { margin-top: 22px; }
.tb-label { font-size: 14px; color: var(--black75); margin-right: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; font-size: 14.5px; }
.diffs { margin-bottom: 18px; }
.difflist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.diff a { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--black); box-shadow: var(--shadow); border-left: 4px solid var(--green); height: 100%; transition: transform .12s, box-shadow .12s; }
.diff.neg a { border-left-color: var(--red); }
.diff a:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(17,20,45,.1); color: var(--black); }
.diff-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--grey-light); color: var(--berry-dark); display: grid; place-items: center; }
.diff-icon svg { width: 24px; height: 24px; }
.diff-cat { display: block; font-size: 13.5px; color: var(--black75); }
.diff-text { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.diff-imp { text-align: right; }
.diff-imp .imp { font-size: 19px; font-weight: 800; display: block; white-space: nowrap; }
.diff.pos .imp { color: var(--green-t); } .diff.neg .imp { color: var(--red-t); }
.diff-imp .imp.q { font-size: 13px; font-weight: 700; color: var(--black75); text-transform: uppercase; letter-spacing: .3px; }
.diff-imp small { font-size: 12.5px; color: var(--black75); white-space: nowrap; }
.calc h2 .muted, .scen-teaser h2 .muted { font-weight: 400; font-size: 15px; }
.calc-form { display: grid; grid-template-columns: auto 160px auto 1fr auto; gap: 8px 10px; align-items: center; margin-bottom: 12px; font-size: 15px; }
.calc-form label { font-weight: 700; }
.calc-form select { width: auto; }
.calc-table, .plain, .scen-table, .bars-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.calc-table th, .calc-table td, .plain th, .plain td, .scen-table th, .scen-table td, .bars-table th, .bars-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--grey); vertical-align: top; }
.calc-table thead th, .plain thead th, .scen-table thead th, .bars-table thead th { font-size: 13.5px; color: var(--black75); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; border-bottom: 2px solid var(--grey-dark); }
.calc-table tr.dakrow { background: #FFFAF4; }
.calc-table th .swatch { margin-right: 6px; vertical-align: -1px; }
.formula { margin: 10px 0 0; }
.scen-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.scen-btn { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--grey-dark); border-radius: 10px; text-decoration: none; color: var(--black); font-size: 15.5px; transition: border-color .12s, background .12s; }
.scen-btn:hover { border-color: var(--berry-light); background: #FBEFF5; color: var(--black); }
.scen-btn span { width: 26px; height: 26px; color: var(--berry-dark); flex: 0 0 26px; }
.scen-btn svg { width: 26px; height: 26px; }
.scenario-panel { margin-top: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 22px 0 10px; font-size: 15px; }
.legend > span { display: inline-flex; gap: 6px; align-items: center; }
.legend-note { color: var(--black75); font-size: 13.5px; }

/* symbols */
.sym { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #fff; flex: 0 0 24px; line-height: 1; }
.sym.small { width: 17px; height: 17px; flex-basis: 17px; font-size: 12px; }
.sym.pos { background: var(--green); } .sym.neu { background: var(--dimmed); color: var(--black); } .sym.neg { background: var(--red); }
.sym.unk, .sym.unknown { background: var(--white); color: var(--black75); border: 1.5px dashed var(--dimmed); }
.lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-left: 6px; white-space: nowrap; }
.lbl.pos { color: var(--green-t); } .lbl.neu { color: var(--black75); } .lbl.neg { color: var(--red-t); } .lbl.unknown { color: var(--black75); }

/* comparison table */
.table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmp thead th { position: sticky; top: 146px; z-index: 20; background: var(--white); text-align: left; padding: 14px 14px 12px; border-bottom: 4px solid var(--c, var(--grey-dark)); vertical-align: bottom; }
.cmp thead th:first-child { border-top-left-radius: var(--radius); }
.cmp thead th:last-child { border-top-right-radius: var(--radius); }
.cmp thead th.dak { border-bottom-color: var(--orange); background: #FFF8F1; }
.cmp thead th.feat { border-bottom-color: var(--grey-dark); width: 23%; }
.ins-name { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; }
.hstand { display: block; font-size: 13px; font-weight: 400; color: var(--black75); margin-top: 2px; }
.grp-head th { background: var(--grey-light); text-align: left; padding: 14px 14px 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--black); font-weight: 700; border-top: 1px solid var(--grey); }
.grp-head .grp-icon { display: inline-flex; width: 22px; height: 22px; vertical-align: -5px; margin-right: 8px; color: var(--berry-dark); }
.grp-head .grp-icon svg { width: 22px; height: 22px; }
.grp-q { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--black75); margin-left: 10px; font-size: 14.5px; }
.focus-tag { margin-left: 10px; background: var(--berry-light); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; letter-spacing: .4px; }
.grp.focus .grp-head th { background: #FBEFF5; box-shadow: inset 4px 0 0 var(--berry-light); }
.cmp td, .cmp tbody th { border-bottom: 1px solid var(--grey); padding: 12px 14px; vertical-align: top; text-align: left; }
.cmp tbody th.feat { font-weight: 700; font-size: 16.5px; }
.feat-label { display: block; line-height: 1.25; }
.detail-link { display: inline-block; font-size: 13.5px; font-weight: 400; margin-top: 4px; }
.cmp td.dak { background: #FFFBF6; }
.cmp tr.hl th.feat { box-shadow: inset 4px 0 0 var(--berry-light); }
.cmp tr.hl td, .cmp tr.hl th { background-image: linear-gradient(0deg, rgba(186,0,96,.035), rgba(186,0,96,.035)); }
.cmp tr.flash td, .cmp tr.flash th { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background-color: #FFE7F2; } 100% { background-color: transparent; } }
.val { display: flex; gap: 8px; align-items: flex-start; }
.val-body { min-width: 0; }
.headline { font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.cell.neg .headline, .cell.unknown .headline { font-weight: 400; color: var(--black75); }
.cond { display: block; color: var(--black75); font-size: 14px; line-height: 1.3; margin-top: 3px; }
.tag { display: inline-block; font-size: 12px; border-radius: 10px; padding: 1px 7px; margin: 4px 4px 0 0; background: var(--grey); color: var(--black); white-space: nowrap; }
.tag.wait { background: #FFF1D6; }
.tag.budget { background: #EEE9FA; }
.tag.inferred { background: transparent; border: 1px dashed var(--dimmed); color: var(--black75); }
.nuance { margin-top: 6px; position: relative; }
.nuance summary { font-size: 13.5px; color: var(--berry-dark); cursor: pointer; list-style: none; display: inline-flex; gap: 5px; align-items: center; user-select: none; }
.nuance summary::-webkit-details-marker { display: none; }
.nuance summary::before { content: "i"; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; font-style: normal; }
.nuance[open] summary { font-weight: 700; }
.nuance-body { position: absolute; z-index: 25; left: -8px; top: 24px; width: min(400px, 80vw); background: var(--white); border: 1px solid var(--grey-dark); border-radius: 10px; box-shadow: var(--shadow-l); padding: 14px 16px; font-size: 14.5px; line-height: 1.4; }
.cell:last-child .nuance-body { left: auto; right: -8px; }
.nuance-body p { margin: 0 0 8px; }
.conds { margin: 0 0 8px; padding-left: 18px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0 0 8px; }
.facts dt { color: var(--black75); } .facts dd { margin: 0; }
blockquote { margin: 0 0 8px; padding: 6px 10px; border-left: 3px solid var(--grey-dark); background: var(--grey-light); font-size: 13.5px; color: var(--black75); border-radius: 0 6px 6px 0; }
.src { font-size: 13px; color: var(--black75); margin: 0; }
.status { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 9px; background: var(--grey); color: var(--black); margin-left: 2px; }
.status.st-verified { background: #E3F2E8; color: var(--green-t); }
.status.st-inferred { background: #FFF1D6; color: #7A5200; }
.status.st-not_found { background: var(--pale-red); color: var(--red-t); }
.status.ai-agree { background: #E3F2E8; color: var(--green-t); }
.status.ai-disagree { background: var(--pale-red); color: var(--red-t); }
.status.ai-unsure { background: #FFF1D6; color: #7A5200; }
.status.signed { background: #EEE9FA; color: #45308F; }
.contractor-note { font-size: 14px; color: var(--black75); margin: 14px 0 0; }

/* ---------------------------------------------------------------- scenario */
.scen-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.scen-tab { padding: 8px 14px; border-radius: 20px; background: var(--white); border: 1px solid var(--grey-dark); text-decoration: none; color: var(--black); font-size: 15.5px; }
.scen-tab:hover { border-color: var(--berry-dark); color: var(--berry-dark); }
.scen-tab.on { background: var(--berry-light); border-color: var(--berry-light); color: #fff; font-weight: 700; }
.scen-grid { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
.scen-form h2 { margin-bottom: 2px; }
.scen-ins { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.scen-ins .addk { font-size: 14px; padding: 4px 10px; }
.scen-ins legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.mini-chip { font-size: 14px; padding: 4px 10px; }
.situation { display: block; font-weight: 700; font-size: 15px; margin: 10px 0; }
.situation small { font-weight: 400; color: var(--black75); }
.situation textarea { margin-top: 4px; resize: vertical; font-weight: 400; }
.params { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 8px 0 14px; }
.param { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; }
.param > span { font-weight: 700; }
.param small { font-weight: 400; }
.param input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--berry-light); }
.scen-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.scen-out .card { margin-bottom: 14px; }
.scen-live { border-left: 4px solid var(--berry-light); }
.live-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.agent-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dimmed); }
.scen-live.running .agent-dot { background: var(--berry-light); animation: pulse 1s infinite; }
.scen-live.done .agent-dot { background: var(--green); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(186,0,96,.4); } 50% { box-shadow: 0 0 0 6px rgba(186,0,96,0); } }
.agent-steps { margin: 4px 0 8px; padding-left: 18px; color: var(--black75); }
.agent-steps li { margin: 2px 0; }
.agent-steps li.new { animation: fadein .4s; }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; } }
.agent-text ul { margin: 6px 0; padding-left: 20px; }
.agent-text li { margin: 3px 0; }
.agent-text p { margin: 0 0 6px; }
.agent-text.typing, .agent-text.plain { white-space: pre-wrap; }
.agent-text { font-size: 16.5px; line-height: 1.5; min-height: 10px; }
.agent-text.typing::after { content: "▍"; color: var(--berry-light); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.agent-check { margin: 10px 0 0; padding: 6px 10px; border-radius: 6px; background: #E3F2E8; color: var(--green-t); }
.agent-check.bad { background: #FFF1D6; color: #7A5200; }
.scen-res-head h3 { margin-bottom: 0; }
.scen-bars { margin: 14px 0; }
.sb-row { display: grid; grid-template-columns: 150px 1fr 150px; gap: 10px; align-items: center; margin: 7px 0; }
.sb-name { font-weight: 700; }
.sb-track { display: flex; height: 22px; background: var(--grey-light); border-radius: 5px; overflow: hidden; }
.sb-track.unk { font-size: 13px; color: var(--black75); align-items: center; padding-left: 8px; }
.sb-seg { height: 100%; transition: width .5s ease; }
.sb-seg.prem { background: #C9CEDA; }
.sb-seg.own { background: var(--berry-light); }
.sb-row.best .sb-seg.prem { background: #A9D4B8; }
.sb-val { font-size: 15.5px; text-align: right; }
.sb-val small { display: block; color: var(--black75); font-size: 13px; }
.sb-legend { color: var(--black75); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key.prem { background: #C9CEDA; } .key.own { background: var(--berry-light); margin-left: 10px; }
.scen-table-wrap { overflow-x: auto; }
.scen-table td small { display: block; color: var(--black75); font-size: 12.5px; }
.scen-table tr.sum td, .scen-table tr.sum th { border-top: 2px solid var(--grey-dark); }
.scen-table .flag { display: block; font-size: 12.5px; background: #FFF6D9; border-radius: 6px; padding: 2px 6px; margin: 2px 0; }
.scen-notes p { margin: 6px 0 0; color: var(--black75); }

/* ---------------------------------------------------------------- detail */
.detail-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(260px, 1fr)); gap: 16px; }
.dcard { border-top: 4px solid var(--c, var(--grey-dark)); }
.dcard.dak { border-top-color: var(--orange); }
.dcard header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dcard header h2 { margin: 0; }
.dcard .big { font-size: 24px; font-weight: 700; margin: 10px 0; line-height: 1.2; }
.dfacts { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; font-size: 15px; margin: 0 0 10px; }
.dfacts dt { color: var(--black75); } .dfacts dd { margin: 0; } .dfacts ul { margin: 0; padding-left: 16px; }
.nuance-text { font-size: 15.5px; }

/* ---------------------------------------------------------------- reports, data */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--white); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 30px; line-height: 1.05; font-weight: 800; }
.kpi span { display: block; font-weight: 700; }
.kpi small { display: block; color: var(--black75); font-size: 13.5px; }
.hbar { display: inline-block; height: 10px; width: var(--w); max-width: 70%; background: var(--berry-light); border-radius: 5px; margin-right: 8px; vertical-align: 0; opacity: .85; }
.qgrid { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; margin: 0 0 10px; }
.qgrid dt { color: var(--black75); } .qgrid dd { margin: 0; font-weight: 700; } .qgrid small { font-weight: 400; color: var(--black75); display: block; }
.flow-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: s; }
.flow-steps li { background: var(--grey-light); border-radius: 8px; padding: 10px 12px; position: relative; }
.flow-steps li b { display: block; color: var(--berry-dark); }
.flow-steps li span { font-size: 14px; color: var(--black75); }
.table-scroll { overflow-x: auto; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.run summary { cursor: pointer; padding: 8px 0; border-bottom: 1px solid var(--grey); }
.log { background: #14161F; color: #E4E7EF; padding: 12px; border-radius: 8px; font-size: 12.5px; max-height: 300px; overflow: auto; white-space: pre-wrap; }
.zb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.zb { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 6px 10px; background: var(--grey-light); border-radius: 6px; font-size: 14.5px; }
.zb small { grid-column: 1 / -1; color: var(--black75); font-size: 12px; }
.settings-form .row { display: flex; gap: 8px; margin-top: 6px; }
.settings-form input { flex: 1; border: 1px solid var(--grey-dark); background: var(--grey); border-radius: 6px; padding: 8px 10px; }
.sheet-row { display: grid; grid-template-columns: 240px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--grey); }
.sheet-row:last-child { border-bottom: 0; }
.sheet-val p { margin: 0 0 4px; }
.ticks, .dots { padding-left: 20px; margin: 0; }
.ticks li, .dots li { margin: 6px 0; }
.ticks li::marker { content: "✓  "; color: var(--green); font-weight: 800; }
.arch li { margin: 6px 0; }
.login-card .param { margin: 8px 0; }

/* ---------------------------------------------------------------- voice */
.voice-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--berry-light); color: #fff; border: 0; border-radius: 30px; padding: 10px 20px 10px 10px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; box-shadow: 0 8px 26px rgba(186,0,96,.35); }
.voice-fab:hover { background: var(--berry-dark); }
.voice-fab .mic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.voice-fab svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
body.voice-open .voice-fab { display: none; }
@media (min-width: 1240px) {
  body.voice-open main > .wrap, body.voice-open .foot-in { max-width: none; margin-left: max(16px, calc((100vw - 1280px) / 2 - 220px)); margin-right: 460px; }
  body.voice-open .voice-dock { top: 96px; bottom: 16px; max-height: none; }
}
.voice-dock[hidden] { display: none !important; }
.voice-dock { position: fixed; right: 24px; bottom: 24px; width: 420px; max-height: calc(100vh - 120px); z-index: 61; background: var(--white); border-radius: 16px; box-shadow: 0 20px 60px rgba(17,20,45,.28); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--grey-dark); }
.vd-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--grey); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dimmed); }
.voice-dock.listening .live-dot { background: var(--red); animation: pulse-red 1.2s infinite; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,48,11,.45); } 50% { box-shadow: 0 0 0 7px rgba(240,48,11,0); } }
.vd-close { margin-left: auto; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--black75); }
.vd-wave { display: flex; gap: 4px; align-items: center; justify-content: center; height: 28px; margin-top: 8px; opacity: .25; }
.voice-dock.listening .vd-wave { opacity: 1; }
.vd-wave span { width: 4px; height: 6px; border-radius: 2px; background: var(--berry-light); transition: height .08s; }
.voice-dock.listening .vd-wave span { animation: wave 1s ease-in-out infinite; }
.vd-wave span:nth-child(2) { animation-delay: .1s; } .vd-wave span:nth-child(3) { animation-delay: .2s; } .vd-wave span:nth-child(4) { animation-delay: .3s; } .vd-wave span:nth-child(5) { animation-delay: .4s; } .vd-wave span:nth-child(6) { animation-delay: .5s; } .vd-wave span:nth-child(7) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 22px; } }
.vd-transcript { margin: 6px 16px 8px; font-size: 18px; line-height: 1.35; min-height: 50px; }
.vd-transcript .interim { color: var(--black75); }
.vd-placeholder { color: var(--black75); font-size: 15px; font-style: italic; }
.vd-demos { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.vd-demo { border: 1px solid var(--grey-dark); background: var(--grey-light); border-radius: 14px; padding: 4px 10px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--berry-dark); }
.vd-demo:hover { border-color: var(--berry-light); background: #FBEFF5; }
.vd-log { list-style: none; margin: 0; padding: 0 16px; overflow: auto; flex: 1; font-size: 14px; max-height: 260px; }
.vd-log li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--grey); animation: fadein .3s; }
.vd-log .act { flex: 1; }
.vd-log .lat { font-size: 12px; white-space: nowrap; padding: 1px 7px; border-radius: 9px; background: var(--grey); font-variant-numeric: tabular-nums; }
.vd-log .lat.fast { background: #E3F2E8; color: var(--green-t); }
.vd-log .lat.slow { background: #FFF1D6; color: #7A5200; }
.vd-log .src { display: block; font-size: 12px; color: var(--black75); }
.vd-text { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--grey); }
.vd-text input { flex: 1; border: 1px solid var(--grey-dark); background: var(--grey); border-radius: 20px; padding: 8px 14px; }
.vd-mic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--berry-light); cursor: pointer; display: grid; place-items: center; flex: 0 0 40px; }
.vd-mic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.voice-dock.listening .vd-mic { background: var(--red); }
.vd-foot { margin: 0; padding: 0 16px 12px; color: var(--black75); font-size: 12.5px; }

/* ---------------------------------------------------------------- footer with Schwungbogen */
.foot { position: relative; margin-top: 40px; background: var(--white); }
.swoosh { position: relative; height: 120px; background: var(--grey-light); }
.swoosh svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; display: block; }
.swoosh-port { display: none !important; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px 90px; display: grid; gap: 6px; font-size: 14.5px; }

/* ---------------------------------------------------------------- loading state */
.result.loading { opacity: .55; transition: opacity .15s; pointer-events: none; }
.updated-badge { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); background: var(--black); color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 14px; z-index: 70; opacity: 0; transition: opacity .2s; pointer-events: none; }
.updated-badge.show { opacity: .92; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .mainnav a { padding: 8px 8px; font-size: 15px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .difflist { grid-template-columns: repeat(2, 1fr); }
  .scen-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
  .swoosh-land { display: none !important; }
  .swoosh-port { display: block !important; }
  .swoosh { height: 90px; }
  .mainnav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .cmp thead th { top: 74px; }
  .toolbar { position: static; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 18px 14px 30px; }
  header.top .in { padding: 8px 14px; gap: 12px; }
  .logo { width: 78px; height: 44px; }
  .logo-dak { font-size: 20px; }
  .apptitle small, .userchip span { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .startinfo { grid-template-columns: 1fr; }
  .difflist { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; }
  .head-actions { justify-content: flex-start; }
  .calc-form { grid-template-columns: 1fr 1fr; }
  .params { grid-template-columns: 1fr; }
  .sb-row { grid-template-columns: 90px 1fr 100px; }
  .scen-buttons { grid-template-columns: 1fr; }
  .sheet-row { grid-template-columns: 1fr; }
  /* table becomes stacked cards */
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td, .cmp th { display: block; width: 100%; }
  .cmp tr.brow { padding: 10px 12px; border-bottom: 1px solid var(--grey); }
  .cmp tbody th.feat { border: 0; padding: 0 0 6px; }
  .cmp td { border: 0; padding: 6px 0 6px 10px; border-left: 3px solid var(--grey-dark); margin: 4px 0; }
  .cmp td.dak { border-left-color: var(--orange); }
  .cmp td::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--black75); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
  .nuance-body { position: static; width: auto; box-shadow: none; margin-top: 6px; }
  .voice-dock { right: 8px; left: 8px; width: auto; bottom: 8px; }
  .voice-fab { right: 14px; bottom: 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .strip-nums .n b { font-size: 32px; }
  .strip-body { grid-template-columns: 1fr; }
  .strip-zb { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .voice-fab, .voice-dock, header.top nav, .toolbar, .compbar { display: none !important; } }
