/* benjaminmoritz.de, second stylesheet (loaded after site.css): details and terms, home extras and all interactive
   figures of the section "Vom Ziel zum Portfolio". Split from site.css so that each file stays readable. */

/* Geldanlage: depth on request, terms explained on tap, calculator ------------------------------- */
details.deep { margin-top: 1.5rem; max-width: 46rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.deep > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; padding: .8rem 0;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--teal); }
details.deep > summary::-webkit-details-marker { display: none; }
details.deep > summary::before { content: "+"; display: inline-grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem;
  border: 1.5px solid var(--teal); border-radius: 2px; font-size: 1.15rem; line-height: 1; }
details.deep[open] > summary::before { content: "\2212"; background: var(--teal); color: #fff; }
details.deep > summary:hover { color: var(--teal-dark); }
.deep-body { padding: .25rem 0 1.25rem; }
.deep-body > figure.tbl:first-child { margin-top: .5rem; }
.step .deep-body > p { max-width: var(--measure); }

.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit;
  text-decoration: underline dotted var(--teal); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.term:hover { color: var(--teal-dark); background: var(--wash); }
.pop { width: min(24rem, calc(100vw - 2.5rem)); padding: 1.1rem 3rem 1.15rem 1.25rem; margin: auto; border: 1px solid var(--rule);
  border-top: 4px solid var(--teal); border-radius: 3px; background: #fff; color: var(--ink); box-shadow: 0 12px 40px rgba(23, 35, 42, .18);
  font-family: var(--sans); font-size: .9688rem; line-height: 1.5; }
.pop::backdrop { background: rgba(23, 35, 42, .2); }
.pop p { margin: 0; }
.pop .pop-h { font-weight: 650; margin-bottom: .3rem; }
.pop-close { position: absolute; top: .4rem; right: .4rem; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 2px; background: none;
  color: var(--slate); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pop-close:hover { background: var(--wash); color: var(--ink); }

.grow .control label { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.grow .control output { color: var(--teal); font-variant-numeric: tabular-nums; }
.grow .bar-rows { margin-top: .9rem; }
.grow .bbar { position: relative; overflow: visible; }
.grow .bbar i { transition: width .25s ease; }
.grow .bbar::after { content: ""; position: absolute; left: var(--ref); top: -.3rem; bottom: -.3rem; border-left: 1.5px dashed var(--ink); }
.grow-note { font-family: var(--sans); font-size: .9688rem; margin: 1rem 0 0; max-width: var(--measure); }
@media (prefers-reduced-motion: reduce) { .grow .bbar i { transition: none; } }

.glossary { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2.25rem;
  font-family: var(--sans); font-size: .9375rem; line-height: 1.5; }
.glossary dt { font-weight: 650; }
.glossary dd { margin: .15rem 0 0; color: var(--slate); }
.glossary dt:target { color: var(--teal); }
@media (max-width: 40rem) { .glossary { grid-template-columns: minmax(0, 1fr); } }
.nw { white-space: nowrap; }
details.same-title .deep-body > figure.tbl:first-child > .tbl-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.df-rate { margin-left: .4rem; font-size: .8125rem; font-weight: 400; color: var(--slate); font-variant-numeric: tabular-nums; }
.paper details.deep { margin-bottom: 1.25rem; }

/* Home: portrait next to the name, the author's line as a quote, two addresses ----------------- */
.hero-id { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: 1.4rem; }
.hero-id h1 { margin: 0; }
.hero-portrait { display: block; width: clamp(4.75rem, 10vw, 9.5rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.hero-quote { margin: 0 0 1.25rem; padding-left: 1rem; border-left: 3px solid var(--teal); max-width: 34rem; }
.hero-quote p { margin: 0; font-style: italic; font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.45; color: var(--ink); }
.contact-finvia { margin: 1.25rem 0 1.5rem; }
.contact-finvia a { white-space: nowrap; }
.profiles-h { margin-bottom: .5rem; }
@media (max-width: 34rem) {
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
}
@media (min-width: 54.01rem) and (max-width: 72rem) {
  .hero h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
}

/* Interactive figures: network, bakery, bank or partner, interest rates, setbacks ---------------- */
.fig-say { font-family: var(--sans); font-size: .9688rem; line-height: 1.5; margin: 1rem 0 0; max-width: var(--measure); min-height: 3em; }
.loan .control label, .bond .control label { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.loan .control output, .bond .control output { color: var(--teal); font-variant-numeric: tabular-nums; }
.loan .bar-rows, .bond .stress-rows { margin-top: .9rem; }
.loan .brow { grid-template-columns: 11rem minmax(0, 1fr) 6rem; }
.loan .bbar i.loss { background: var(--plum); }
.loan .bbar i, .bond .sbar i { transition: width .25s ease; }
.bond .srow { grid-template-columns: 11rem minmax(0, 1fr) 4.5rem; }
@media (max-width: 34rem) {
  .loan .brow { grid-template-columns: minmax(0, 1fr) 5.25rem; }
  .loan .brow .blabel { grid-column: 1 / -1; }
  .loan .brow .bbar { grid-row: 2; }
  .bond .srow { grid-template-columns: minmax(0, 1fr) 4rem; }
}

/* segmented buttons */
.seg { display: inline-flex; gap: 0; border: 1.5px solid var(--teal); border-radius: 3px; overflow: hidden; margin-bottom: 1rem; }
.seg-b { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--teal); background: #fff; border: 0; padding: .55rem 1rem;
  min-height: 2.5rem; cursor: pointer; }
.seg-b + .seg-b { border-left: 1.5px solid var(--teal); }
.seg-b[aria-pressed="true"] { background: var(--teal); color: #fff; }
@media (max-width: 25rem) { .seg-b { font-size: .8125rem; padding: .5rem .55rem; } }
.seg-b:hover:not([aria-pressed="true"]) { background: var(--wash); }

/* four ways into the same bakery (since 2.11.2026 instead of the garden) */
.bk-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1.5rem; }
.bk-col + .bk-col { min-width: 0; }
@media (max-width: 40rem) { .bk-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-col { margin-bottom: 1.25rem; } }
.bk-col { font-family: var(--sans); display: grid; grid-row: span 6; grid-template-rows: subgrid; align-content: start; }  /* rows line up across columns */
.bk-pic { display: block; width: 100%; max-width: 5.5rem; height: auto; margin-bottom: .5rem; overflow: visible; transition: opacity .4s ease; }
.bk-pie { fill: #DCE9E7; stroke: var(--teal); stroke-width: 2; }
.bk-slice { fill: var(--teal); }
.bk-doc { fill: #fff; stroke: var(--slate); stroke-width: 2; stroke-linejoin: round; }
.bk-fold { fill: none; stroke: var(--slate); stroke-width: 2; stroke-linejoin: round; }
.bk-lines { stroke: var(--slate); stroke-opacity: .5; stroke-width: 2; stroke-linecap: round; }
.bk-pct { font: 700 17px var(--sans); fill: var(--teal); text-anchor: middle; }
.bk-house { fill: #F1EEE6; stroke: var(--slate); stroke-width: 2; stroke-linejoin: round; }
.bk-awn { fill: var(--plum); }
.bk-stripes { stroke: #fff; stroke-width: 3; }
.bk-door { fill: var(--slate); }
.bk-bar { fill: #D9C08A; stroke: #8C7240; stroke-width: 1.5; stroke-linejoin: round; }
.bk-h { font-weight: 650; font-size: .9375rem; line-height: 1.3; margin: 0; }
.bk-like { font-size: .8125rem; color: var(--slate); margin: .1rem 0 .5rem; }
.bk-coins { display: block; width: 7.5rem; max-width: 100%; height: auto; overflow: visible; }
.bk-coin { fill: var(--teal); transition: opacity .35s ease, transform .35s ease; transform-box: fill-box; transform-origin: center; }
.bk-coin.off { opacity: 0; transform: scale(.4); }
.bk-v { font-weight: 650; font-size: .9375rem; font-variant-numeric: tabular-nums; margin: .45rem 0 .15rem; }
.bk-say { font-size: .875rem; line-height: 1.45; margin: 0; }
.bakery.broke .bk-col[data-k="own"] .bk-pic, .bakery.broke .bk-col[data-k="loan"] .bk-pic { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .bk-coin, .bk-pic { transition: none; } }

/* setbacks: how deep, how long */
.dd-heads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 0 0 .25rem;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--slate); }
.dd-rows { list-style: none; margin: 0; padding: 0; }
.dd-row { border-top: 1px solid var(--rule); padding: .7rem 0 .75rem; font-family: var(--sans); }
.dd-row:first-child { border-top: 1.5px solid var(--ink); }
.dd-h { margin: 0 0 .4rem; font-size: .9375rem; line-height: 1.35; }
.dd-h span { color: var(--slate); white-space: nowrap; }
.dd-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.dd-k { display: none; }
.dd-bar { display: block; height: .8rem; background: var(--wash); border-radius: 1px; overflow: hidden; }
.dd-bar i { display: block; height: 100%; width: var(--w); transition: width 1.1s cubic-bezier(.3, .1, .25, 1); }
.dd-bar.loss i { background: var(--plum); }
.dd-bar.time i { background: var(--slate); }
.dd.wait:not(.run) .dd-bar i { width: 0; }
.dd-row:nth-child(2) i { transition-delay: .08s; } .dd-row:nth-child(3) i { transition-delay: .16s; }
.dd-row:nth-child(4) i { transition-delay: .24s; } .dd-row:nth-child(5) i { transition-delay: .32s; }
.dd-row:nth-child(6) i { transition-delay: .4s; }
.dd-v { display: block; margin-top: .25rem; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) {
  .dd-heads { display: none; }
  .dd-bars { gap: .9rem; }
  .dd-k { display: block; font-size: .75rem; font-weight: 600; color: var(--slate); margin-bottom: .2rem; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) { .dd-bar i { transition: none; } }

/* network */
.net { container-type: inline-size; }
.step .net, .sec-body > .net { max-width: 52rem; }
.net-q { font-family: var(--sans); font-size: .9063rem; color: var(--slate); margin: -.35rem 0 .6rem; }
.net-occs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.net-occ { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--teal); background: #fff; border: 1.5px solid var(--teal);
  border-radius: 999px; padding: .45rem .95rem; min-height: 2.5rem; cursor: pointer; }
.net-occ:hover { background: var(--wash); }
.net-occ[aria-pressed="true"] { background: var(--teal); color: #fff; }
.net-map { display: grid; grid-template-columns: minmax(0, 1fr) 10.5rem minmax(0, 1fr); column-gap: 2.25rem; align-items: center; }
.net-left, .net-right { display: grid; gap: 1rem; padding-block: .25rem; }
.net-left { border-right: 2px solid var(--rule); padding-right: 1rem; }
.net-right { border-left: 2px solid var(--rule); padding-left: 1rem; }
.net-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.net-gh { font-family: var(--sans); font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); margin: 0 0 .35rem; }
.net-node { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: .5rem .7rem .55rem;
  font-family: var(--sans); line-height: 1.35; transition: opacity .35s ease, border-color .35s ease, box-shadow .35s ease; }
.net-node strong { display: block; font-size: .9063rem; font-weight: 650; }
.net-node span { display: block; font-size: .8125rem; color: var(--slate); margin-top: .1rem; }
.net-node::after { content: ""; position: absolute; top: 50%; width: 1rem; border-top: 2px solid var(--rule); transition: border-color .35s ease; }
.net-left .net-node::after { left: 100%; }
.net-right .net-node::after { right: 100%; }
.net.picked .net-node { opacity: .35; }
.net.picked .net-node.on { opacity: 1; border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.net.picked .net-node.on::after { border-color: var(--teal); }
.net-hub { position: relative; display: grid; gap: .6rem; text-align: center; font-family: var(--sans); }
.net-hub::before, .net-hub::after { content: ""; position: absolute; top: 50%; width: 2.25rem; border-top: 2px solid var(--rule); }
.net-hub::before { right: 100%; }
.net-hub::after { left: 100%; }
.net-family, .net-me { display: grid; place-content: center; }
.net-family { margin: 0; padding: .6rem .5rem; border: 2px solid var(--ink); border-radius: 3px; font-weight: 650; font-size: .9688rem; background: #fff; }
.net-me { margin: 0; padding: .6rem .5rem .65rem; border-radius: 3px; background: var(--teal); color: #fff; line-height: 1.3; }
.net-me strong { display: block; font-size: 1rem; }
.net-me span { display: block; font-size: .8125rem; opacity: .92; margin-top: .1rem; }
.net-say { font-family: var(--sans); font-size: .9688rem; line-height: 1.5; margin: 1.25rem 0 0; max-width: var(--measure); min-height: 3em;
  padding-left: .9rem; border-left: 3px solid var(--teal); }
@container (max-width: 38rem) {
  .net-map { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .net-hub { order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.25rem; }
  .net-hub::before { display: none; }
  .net-hub::after { left: 1px; top: 100%; width: 0; height: 1.25rem; border-top: 0; border-left: 2px solid var(--rule); }
  .net-left, .net-right { border: 0; border-left: 2px solid var(--rule); padding: 0 0 0 1rem; }
  .net-left { padding-bottom: 1rem; }
  .net-left .net-node::after { left: auto; right: 100%; }
}
@media (prefers-reduced-motion: reduce) { .net-node, .net-node::after { transition: none; } }

/* What moves markets: news and their effect, four kinds of weather ------------------------------------ */
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.pill { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--teal); background: #fff; border: 1.5px solid var(--teal);
  border-radius: 999px; padding: .45rem .95rem; min-height: 2.5rem; cursor: pointer; text-align: left; }
.pill:hover { background: var(--wash); }
.pill[aria-pressed="true"] { background: var(--teal); color: #fff; }
.mx-rows { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.mx-row { display: grid; grid-template-columns: 13rem 2rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .55rem 0;
  border-bottom: 1px solid var(--rule); font-family: var(--sans); font-size: .9375rem; line-height: 1.4; }
.mx-a { font-weight: 600; }
.mx-r { color: var(--ink); }
.mx-d { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; font-family: var(--sans);
  font-weight: 700; font-size: 1rem; line-height: 1; }
.mx-d i { font-style: normal; }
.mx-d.up { background: var(--teal); color: #fff; }
.mx-d.down { background: var(--plum); color: #fff; }
.mx-d.mixed { background: var(--wash); color: var(--slate); border: 1px solid var(--rule); }
.mx-row.flash { animation: mxflash .5s ease both; }
@keyframes mxflash { from { opacity: .25; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.mx-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .75rem 0 0; font-family: var(--sans); font-size: .8125rem; color: var(--slate); }
.mx-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.mx-legend .mx-d { width: 1.25rem; height: 1.25rem; font-size: .75rem; }
.macro .fig-say { padding-left: .9rem; border-left: 3px solid var(--teal); }
@media (max-width: 34rem) {
  .mx-row { grid-template-columns: minmax(0, 1fr) 2rem; row-gap: .15rem; }
  .mx-r { grid-column: 1 / -1; color: var(--slate); font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { .mx-row.flash { animation: none; } }

.reg-box { display: grid; grid-template-columns: 6rem repeat(2, minmax(0, 1fr)); gap: .5rem; align-items: stretch; max-width: 34rem; }
.reg-yh, .reg-yl { align-self: center; font-family: var(--sans); font-size: .8125rem; line-height: 1.35; color: var(--slate); text-align: right; padding-right: .25rem; }
.reg-x { font-family: var(--sans); font-size: .8125rem; color: var(--slate); text-align: center; }
.reg-q { display: grid; align-content: center; gap: .15rem; min-height: 5.5rem; padding: .6rem .7rem; border: 1.5px solid var(--rule);
  border-radius: 3px; cursor: pointer; text-align: left; font-family: var(--sans); color: var(--ink); }
.reg-q strong { font-size: 1rem; font-weight: 650; }
.reg-q span { font-size: .8125rem; color: var(--slate); }
.reg-stag { background: #F4E8ED; } .reg-heat { background: #F6EEE4; } .reg-slump { background: #ECEFF1; } .reg-boom { background: #E3F0EE; }
.reg-q:hover { border-color: var(--slate); }
.reg-q[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.reg-panels { margin-top: 1rem; max-width: var(--measure); font-family: var(--sans); font-size: .9375rem; line-height: 1.5; }
.reg-p + .reg-p { margin-top: 1rem; }
.one .reg-p { margin-top: 0; }
.reg-p p { margin: 0 0 .4rem; }
.reg-ph { font-weight: 650; }
.reg-l { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .5rem; align-items: start; }
.reg-l .mx-d { width: 1.4rem; height: 1.4rem; font-size: .8125rem; margin-top: .05rem; }
@media (max-width: 34rem) {
  .reg-box { grid-template-columns: 4.25rem repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .reg-q { min-height: 4.75rem; padding: .5rem .55rem; }
  .reg-q strong { font-size: .9375rem; }
}

/* Research on every stage of the investment process ------------------------------------------------- */
.part .proc { margin-top: 2rem; max-width: 66rem; }
.proc-stages { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.proc-b { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .5rem; align-items: center;
  text-align: left; padding: .6rem .65rem; min-height: 3.5rem; border: 1.5px solid var(--rule); border-radius: 3px; background: #fff;
  font-family: var(--sans); color: var(--ink); cursor: pointer; }
.proc-b:hover { border-color: var(--slate); }
.proc-b[aria-pressed="true"] { border-color: var(--teal); box-shadow: inset 0 -4px 0 var(--teal); }
.proc-n { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1.5px solid var(--teal); border-radius: 2px;
  font-size: .8125rem; font-weight: 650; color: var(--teal); font-variant-numeric: tabular-nums; }
.proc-b .proc-n { grid-row: 1 / span 2; }
.proc-t { font-size: .875rem; font-weight: 650; line-height: 1.25; }
.proc-c { font-size: .75rem; color: var(--slate); }
.proc-c::after { content: " Projekte"; }
:lang(en) .proc-c::after { content: " projects"; }
.proc-panels { font-family: var(--sans); font-size: .9375rem; line-height: 1.5; max-width: 52rem; }
.proc-p + .proc-p { margin-top: 1.5rem; }
.one .proc-p { margin-top: 0; }
.proc-h { display: flex; align-items: center; gap: .6rem; font-weight: 650; font-size: 1.0625rem; margin: 0 0 .3rem; }
.proc-q { color: var(--slate); margin: 0 0 .6rem; }
.proc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.proc-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.proc-list a { display: inline-block; padding-block: .25rem; font-weight: 600; }
.proc-list span { color: var(--slate); font-size: .875rem; padding-top: .3rem; }
.proc-to { margin: .75rem 0 0; font-weight: 600; }
.proc-to a { display: inline-block; padding-block: .3rem; }
.proc figcaption a { white-space: nowrap; }
@media (max-width: 64rem) { .proc-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .proc-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc-list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .proc-list span { padding-top: 0; }
}

/* seven pillars */
.pil-pic { display: block; width: 100%; max-width: 26rem; height: auto; margin: 0 0 1rem; }
.pil-roof { fill: var(--teal); stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; transition: fill .4s ease, stroke .4s ease; }
.pil-rt { font-family: var(--sans); font-size: 14px; font-weight: 650; letter-spacing: .03em; fill: #fff; text-anchor: middle; transition: fill .4s ease; }
.pil-beam, .pil-base { fill: var(--slate); }
.pil-col { fill: var(--teal); stroke: var(--teal); stroke-width: 1.5; transform-box: fill-box; transform-origin: 50% 100%;
  transition: fill .3s ease, stroke .3s ease; }
.pil-cn { font-family: var(--sans); font-size: 14px; font-weight: 650; fill: #fff; text-anchor: middle; pointer-events: none; }
.check .pil-roof { fill: var(--wash); stroke: var(--slate); }
.check .pil-rt { fill: var(--slate); }
.check.full .pil-roof { fill: var(--teal); stroke: var(--teal); }
.check.full .pil-rt { fill: #fff; }
.check .pil-col { fill: #fff; stroke: var(--slate); stroke-dasharray: 4 3; cursor: pointer; }
.check .pil-col.on { fill: var(--teal); stroke: var(--teal); stroke-dasharray: none; animation: pil-rise .45s ease; }
.check .pil-cn { fill: var(--slate); }
.check .pil-col.on + .pil-cn { fill: #fff; }
@keyframes pil-rise { from { transform: scaleY(.55); } to { transform: none; } }
.pil-ask { font-family: var(--sans); font-size: .9063rem; color: var(--slate); margin: 0 0 .5rem; }
.pil-list { list-style: none; margin: 0; padding: 0; }
.pil-i { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: .9rem; align-items: start;
  border-top: 1px solid var(--rule); padding: .75rem 0; font-family: var(--sans); }
.pil-i:first-child { border-top: 1.5px solid var(--ink); }
.pil-n { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1.5px solid var(--teal); border-radius: 2px;
  font-size: .8125rem; font-weight: 650; color: var(--teal); margin-top: .05rem; transition: background .3s ease, color .3s ease; }
.pil-i.on .pil-n { background: var(--teal); color: #fff; }
.pil-h { font-size: 1rem; font-weight: 650; line-height: 1.3; margin: 0 0 .15rem; }
.pil-d { font-size: .9375rem; line-height: 1.45; margin: 0; }
.pil-to { font-size: .875rem; color: var(--slate); margin: .2rem 0 0; }
.pil-to a { display: inline-block; padding-block: .3rem; font-weight: 600; }
.pil-b { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sans); font-size: 1rem; font-weight: 650; line-height: 1.3;
  color: var(--ink); text-align: left; background: none; border: 0; padding: .25rem .4rem .25rem 0; margin: -.25rem 0 0; min-height: 2.25rem;
  cursor: pointer; }
.pil-b svg { width: 1.15rem; height: 1.15rem; flex: none; }
.pil-b rect { fill: #fff; stroke: var(--teal); stroke-width: 1.5; transition: fill .2s ease; }
.pil-b path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s ease; }
.pil-b:hover { text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: .2em; }
.pil-b:hover rect { fill: var(--wash); }
.pil-b[aria-pressed="true"] rect { fill: var(--teal); }
.pil-b[aria-pressed="true"] path { opacity: 1; }
.pil .fig-say { padding-left: .9rem; border-left: 3px solid var(--teal); }
@media (prefers-reduced-motion: reduce) { .pil-col, .pil-roof, .pil-n { transition: none; } .check .pil-col.on { animation: none; } }

/* Section "Vom Ziel zum Portfolio": landing page and chapter pages ------------------------------- */
.crumb { font-family: var(--sans); font-size: .9375rem; font-weight: 600; margin: 0 0 1.25rem; }
.crumb a { display: inline-block; padding-block: .3rem; }
.crumb a::before { content: "← "; }
.page-head .part-no { margin-bottom: .6rem; }
.ch-steps { margin-top: 1.75rem; }
.page-head .proc { margin-top: 2.75rem; max-width: 66rem; }

.way { max-width: 66rem !important; }
.way-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 1rem; }
.way-st { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; position: relative; font-family: var(--sans);
  transition: opacity .5s ease calc(var(--i) * .18s), transform .5s ease calc(var(--i) * .18s); }
.way-st:not(:last-child)::after { content: ""; position: absolute; left: 2.4rem; top: 1rem; width: calc(100% - 1.8rem); height: 2px;
  background: var(--teal); transform-origin: left; transition: transform .4s ease calc(var(--i) * .18s + .25s); }
.way-dot { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: .875rem; font-weight: 650; margin-bottom: .35rem; }
.way-name { font-weight: 650; font-size: 1rem; line-height: 1.3; padding-block: .3rem; }
.way-text { font-size: .875rem; line-height: 1.45; color: var(--ink); }
a.way-res { margin-top: .4rem; font-size: .8125rem; font-weight: 650; color: var(--teal-dark); background: var(--wash);
  border-radius: 2px; padding: .3rem .5rem; text-decoration: none; border-bottom: 1px solid var(--teal); }
a.way-res::after { content: " →"; }
a.way-res:hover { background: var(--teal); color: #fff; }
.way.wait:not(.run) .way-st { opacity: 0; transform: translateY(.6rem); }
.way.wait:not(.run) .way-st::after { transform: scaleX(0); }
@media (max-width: 54rem) {
  .way-line { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .way-st { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .9rem; align-items: start; justify-items: start; }
  .way-st > :not(.way-dot) { grid-column: 2; }
  .way-st:not(:last-child)::after { left: .95rem; top: 2.4rem; width: 2px; height: calc(100% - 1.8rem); transform-origin: top; }
  .way.wait:not(.run) .way-st::after { transform: scaleY(0); }
  .way-dot { grid-row: 1 / span 3; margin: 0; }
  .way-name { padding-block: .3rem; }
}
@media (prefers-reduced-motion: reduce) { .way-st, .way-st::after { transition: none; } }

.ch-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 52rem; }
.ch-cards a { display: flex; flex-direction: column; gap: .35rem; height: 100%; box-sizing: border-box; padding: 1.1rem 1.2rem 1.2rem; background: #fff;
  border: 1px solid var(--rule); border-top: 4px solid var(--teal); border-radius: 2px; color: var(--ink); text-decoration: none; }
.ch-cards a:hover { border-color: var(--slate); border-top-color: var(--teal-dark); }
.ch-cards a:hover strong { text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: .15em; }
.ch-no { font-family: var(--sans); font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.ch-cards strong { font-size: 1.3125rem; line-height: 1.25; font-weight: 600; }
.ch-lead { font-size: 1rem; line-height: 1.45; color: var(--slate); }
.ch-meta { margin-top: auto; padding-top: .4rem; font-family: var(--sans); font-size: .8125rem; color: var(--slate); }
@media (max-width: 40rem) { .ch-cards { grid-template-columns: minmax(0, 1fr); } }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; border-top: 2px solid var(--ink);
  padding-block: 2rem 1rem; font-family: var(--sans); }
.pager-next { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1.2rem; background: #fff; border: 1px solid var(--rule);
  border-left: 4px solid var(--teal); border-radius: 2px; text-decoration: none; color: var(--ink); }
.pager-next span { font-size: .8125rem; font-weight: 650; color: var(--teal); }
.pager-next strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.pager-next:hover strong { text-decoration: underline; text-decoration-color: var(--teal); }
.pager-back { font-weight: 600; display: inline-block; padding-block: .3rem; }
.closing .sec-body > p:first-child { font-size: 1.1875rem; line-height: 1.5; max-width: var(--measure); }

/* costs over the years */
.costs-ctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1.5rem; }
.costs .control label, .ta .control label { font-family: var(--sans); font-size: .9375rem; font-weight: 600; }
.costs .control output, .ta .control output { color: var(--teal); font-variant-numeric: tabular-nums; }
.costs .bar-rows { margin-top: 1.1rem; }
.costs .brow { grid-template-columns: 10rem minmax(0, 1fr) 6.5rem; }
.costs .bbar i { transition: width .25s ease; }
.costs .bbar i.loss { background: var(--plum); }
.costs .fig-say { padding-left: .9rem; border-left: 3px solid var(--plum); }
@media (max-width: 40rem) { .costs-ctl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 34rem) {
  .costs .brow { grid-template-columns: minmax(0, 1fr) 6rem; }
  .costs .brow .blabel { grid-column: 1 / -1; }
}
.gap .brow { grid-template-columns: 16rem minmax(0, 1fr) 4.5rem; }
@media (max-width: 34rem) {
  .gap .brow { grid-template-columns: minmax(0, 1fr) 4rem; }
  .gap .brow .blabel { grid-column: 1 / -1; }
}
.fig-legend i.line.dash { background: none; border-top: 2px dashed var(--slate); height: 0; }
.ta .costs-ctl { margin-bottom: 1rem; }
.ta .ta-out dd { font-size: 1.5rem; }
.costs-ctl.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; }
.daxf .control label { font-family: var(--sans); font-size: .9375rem; font-weight: 600; }
.daxf .control output { color: var(--teal); font-variant-numeric: tabular-nums; }
.daxf .dax-fig { margin-top: 1rem; }
.expl-fig .note { font-size: 12px; fill: var(--slate); font-weight: 600; }
.daxf .sim-out dd { font-size: 1.5rem; }
@media (max-width: 40rem) { .costs-ctl.two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 34rem) { .expl-fig .note { font-size: 20px; } .dax-fig .crisis { display: none; } }
@media (max-width: 25rem) { .expl-fig .note { font-size: 24px; } }
.rt-h { font-family: var(--sans); font-size: .8125rem; font-weight: 600; color: var(--slate); margin: 0 0 .25rem; }
.rates-fig { touch-action: pan-y; }
.rates-fig .rl-n { fill: var(--teal); }
.rates-fig .rl-r { fill: var(--plum); }
.rt-ctl { margin-top: .75rem; max-width: 30rem; }
.rt-ctl label { font-family: var(--sans); font-size: .9375rem; font-weight: 600; }
.rt-ctl output { color: var(--teal); font-variant-numeric: tabular-nums; }
.rates .fig-say { padding-left: .9rem; border-left: 3px solid var(--teal); min-height: 0; }
.fig-legend i.line.dash.plum { border-top-color: var(--plum); }

/* studies */
.pat-ctl, .best-ctl { max-width: 30rem; margin-bottom: .75rem; }
.pat-ctl label, .best-ctl label { font-family: var(--sans); font-size: .9375rem; font-weight: 600; }
.pat-ctl output, .best-ctl output { color: var(--teal); font-variant-numeric: tabular-nums; }
.pat-out { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pat-out dd { font-size: 1.375rem; }
.pat-out small { display: block; font-family: var(--sans); font-size: .8125rem; font-weight: 500; color: var(--slate); margin-top: .1rem; }
@media (max-width: 54rem) { .pat-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.best .brow { grid-template-columns: 13rem minmax(0, 1fr) 6.5rem; opacity: .55; transition: opacity .2s ease; }
.best .brow.on { opacity: 1; }
.best .brow.on .blabel { font-weight: 650; }
.best .bbar i.loss { background: var(--plum); }
.best .fig-say, .few .fig-say { padding-left: .9rem; border-left: 3px solid var(--teal); }
@media (max-width: 34rem) {
  .best .brow { grid-template-columns: minmax(0, 1fr) 5.75rem; }
  .best .brow .blabel { grid-column: 1 / -1; }
}
.spiva .brow { grid-template-columns: 6rem minmax(0, 1fr) 3.5rem; }
.spiva .bbar i { background: var(--teal); transition: width .3s ease; }  /* share that beat the index (since 2.11.2026) */
.few-grid { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; max-width: 30rem; }
.few-grid i { display: block; aspect-ratio: 1; border-radius: 1px; background: #CDD4D6; transition: background .3s ease; }
.few-grid i.t { background: var(--teal-dark); }
.few-grid i.m { background: #9CC5C1; }
.few-grid i.b { background: #CDD4D6; }
.fig-legend i.few-t { background: var(--teal-dark); } .fig-legend i.few-m { background: #9CC5C1; } .fig-legend i.few-b { background: #CDD4D6; }
@media (prefers-reduced-motion: reduce) { .few-grid i, .spiva .bbar i, .best .brow { transition: none; } }

/* "Wie ich Finanzen plane" on one page (author 1.11.2026): each part starts like a page of its own */
.part-head { border-top: 2px solid var(--ink); margin-top: clamp(3rem, 6vw, 4.5rem); }
.ch-sub { font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 600; letter-spacing: -.01em; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }  /* part of a chapter (Verstehen: Bausteine, Märkte), since 2.11.2026 */
.part-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 1.2rem; }

/* Chapter "Ordnen und planen" (author 1.11.2026): one sheet, the month's budget, will it last until 90 */
.balance .bbar i.tied, .fig-legend i.tied { background: #9CC5C1; }
.balance .bbar i.loss, .fig-legend i.loss { background: var(--plum); }
.fig-legend i.free { background: var(--teal); }
.balance .bbar i.sum { background: var(--ink); }  /* not "net": site.js uses .net for the network figure */
.balance .bal-net { border-top: 1.5px solid var(--ink); padding-top: .35rem; margin-top: .2rem; }
.balance .bal-net .blabel, .balance .bal-net .bval { font-weight: 650; }
.balance .brow { grid-template-columns: 13rem minmax(0, 1fr) 7rem; }
@media (max-width: 34rem) {
  .balance .brow { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .balance .brow .blabel { grid-column: 1 / -1; }
}
/* Where a month's income goes: flow diagram, a wide and a narrow drawing (since 2.11.2026) */
.bud-in { display: none; font-family: var(--sans); font-size: .875rem; font-weight: 600; margin: 0 0 .6rem; }
.sk-box { max-width: 48rem; margin-top: .5rem; }
.sk { display: block; width: 100%; height: auto; overflow: visible; }
.sk-narrow { display: none; }
@media (max-width: 40rem) { .sk-wide { display: none; } .sk-narrow { display: block; } .bud-in { display: block; } }
.sk-f { opacity: .22; }
.sk-f.inc { fill: #55626A; opacity: .16; }
.sk-b.inc { fill: #55626A; } .sk-b.sum { fill: var(--ink); }  /* not "net": that class belongs to the network figure */
.sk .save { fill: var(--teal); } .sk .fix { fill: #55626A; } .sk .live { fill: var(--plum); }
.sk-t text { font-family: var(--sans); font-size: var(--fs); fill: var(--ink); dominant-baseline: middle; }
.sk-t text.end { text-anchor: end; }
.sk-n { font-weight: 500; } .sk-n.strong { font-weight: 650; }
.sk-v { fill: var(--slate); font-variant-numeric: tabular-nums; }
.plan-ctl { margin-bottom: 1rem; }
.plan .control label { font-family: var(--sans); font-size: .9375rem; font-weight: 600; }
.plan .control output { color: var(--teal); font-variant-numeric: tabular-nums; }
.plan-fig .grid { stroke: #D8DEE0; stroke-width: 1; }
.plan-fig .base { stroke: var(--ink); stroke-width: 1.4; }
.plan-fig .area { fill: #DCE9E7; }
.plan-fig .line { fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linejoin: round; }
.plan-fig .ret { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 5 4; }
.plan-fig .gone { fill: var(--plum); stroke: #fff; stroke-width: 2; }
.plan-out { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 30rem; }
.plan-out dd { font-size: 1.5rem; }
