/* DEMO Estate investment calculator: scoped, mobile-first, no inherited Tilda forms. */
.catalog-root .investment{min-width:0;overflow-wrap:anywhere}
.catalog-root .invest-ui{color:#30372b;font-size:16px;line-height:1.5;min-width:0}
.catalog-root .invest-tabs{display:flex;gap:6px;padding:6px;background:#f1eee7;border-radius:16px;margin:20px 0;flex-wrap:wrap}
.catalog-root .invest-tabs button{flex:1;min-height:46px;padding:10px 14px;border:0;border-radius:11px;background:transparent;color:#4a5140;font:500 16px/1.3 Jost,Arial,sans-serif;cursor:pointer}
.catalog-root .invest-tabs button[aria-pressed=true]{background:#d1af87;color:#262b21;box-shadow:0 2px 6px #4c3b1712}
.catalog-root .invest-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}
.catalog-root .invest-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:15px;font-weight:500;color:#424a38}
.catalog-root .invest-field input,.catalog-root .invest-field select,.catalog-root .invest-row>select{width:100%;box-sizing:border-box;min-width:0;min-height:48px;border:1px solid #bec4b6;border-radius:11px;padding:10px 12px;background:#fff;color:#262e21;font:500 17px/1.35 Jost,Arial,sans-serif}
.catalog-root .invest-field select,.catalog-root .invest-row>select{padding-right:34px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23505b44' stroke-width='1.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center}
.catalog-root .invest-field input[readonly]{background:#f0eee7}
.catalog-root .invest-field small,.catalog-root .invest-help{font-size:14px;line-height:1.55;color:#58604e;font-weight:400;margin:8px 0}
.catalog-root .invest-check{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin:14px 0;font-weight:400}
.catalog-root .invest-check input[type=checkbox]{width:21px;min-width:21px;height:21px;min-height:21px;accent-color:#8e714b;margin:2px 0}
.catalog-root .invest-option,.catalog-root .invest-tax-object,.catalog-root .invest-breakdown,.catalog-root .invest-sources{border:1px solid #dedfd5;border-radius:14px;padding:16px;margin:12px 0;background:#fff}
.catalog-root .invest-option>summary,.catalog-root .invest-breakdown>summary,.catalog-root .invest-tax-object>summary,.catalog-root .invest-sources>summary,.catalog-root .invest-schedule>summary{cursor:pointer;font-weight:500;color:#3e4833;font-size:16px;min-height:30px;padding-right:4px;line-height:1.5}
.catalog-root .invest-summary{display:inline-block;margin-left:10px;font-size:13px;color:#77603f;font-weight:500}
.catalog-root .invest-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;background:#eee5d7;border:1px solid #d7c3a5;border-radius:16px;margin:20px 0 12px}
.catalog-root .invest-kpi{padding:10px;min-width:0;display:flex;flex-direction:column;gap:8px}
.catalog-root .invest-kpi>span{font-size:14px;color:#515442}
.catalog-root .invest-kpi strong{font:550 25px/1.2 Jost,Arial,sans-serif;letter-spacing:-.4px;color:#2b3324;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.catalog-root .invest-kpi small{font-size:12px;line-height:1.5;color:#5e604e}
.catalog-root .invest-status{padding:15px 17px;border-radius:12px;background:#f4f4ee;font-size:14px;margin:12px 0 20px;color:#4b5540}
.catalog-root .invest-status ul{padding-left:18px;margin:10px 0 0}.catalog-root .invest-status li{margin:7px 0}
.catalog-root .invest-add,.catalog-root .invest-remove{min-height:40px;padding:8px 12px;border:1px solid #cdb895;border-radius:10px;background:#faf5ec;color:#705735;font:500 14px/1.4 Jost,Arial,sans-serif;cursor:pointer;white-space:normal}
.catalog-root .invest-remove{background:#fff;font-weight:400}
.catalog-root .invest-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;margin:12px 0;border:1px solid #e0dfd6;border-radius:12px}
.catalog-root .invest-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.8fr);gap:14px;border-bottom:1px solid #e4e5dc;padding:11px 0;font-size:14px}
.catalog-root .invest-line strong{text-align:right;font-weight:500;font-variant-numeric:tabular-nums}
.catalog-root .invest-table-scroll{overflow-x:auto;margin-top:12px}.catalog-root .invest-table-scroll table{min-width:560px;width:100%;border-collapse:collapse;font-size:13px}.catalog-root .invest-table-scroll td,.catalog-root .invest-table-scroll th{padding:9px;text-align:right;border-bottom:1px solid #dedfd5}
.catalog-root .invest-ui [hidden]{display:none!important}
.catalog-root .invest-ui button:focus-visible,.catalog-root .invest-ui input:focus-visible,.catalog-root .invest-ui select:focus-visible,.catalog-root .invest-ui summary:focus-visible{outline:3px solid #b89b72;outline-offset:3px}
.catalog-root .invest-ui h3{font-size:19px;margin:22px 0 10px}
.catalog-root .invest-sources a{color:#765a35;text-decoration:underline;text-underline-offset:3px}
.catalog-root .compare-calculators{margin:36px 0;min-width:0}
.catalog-root .compare-calculator-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:18px;align-items:start}
.catalog-root .compare-calculator-list>.investment{padding:20px;border:1px solid #dedfd5;border-radius:18px;background:#fff}
.catalog-root .compare-calculator-list h3{font-size:20px;line-height:1.35;margin:0 0 14px;color:#323b29}
.catalog-root .compare-calculator-list .invest-fields{grid-template-columns:1fr}
@media(max-width:640px){.catalog-root .invest-fields,.catalog-root .invest-row{grid-template-columns:1fr}.catalog-root .invest-results{padding:10px;gap:8px}.catalog-root .invest-kpi{padding:5px}.catalog-root .invest-kpi strong{font-size:22px}.catalog-root .invest-option,.catalog-root .invest-breakdown,.catalog-root .invest-tax-object{padding:12px}.catalog-root .invest-tabs button{font-size:14px;padding:10px 7px}.catalog-root .invest-line{grid-template-columns:1fr;gap:5px}.catalog-root .invest-line strong{text-align:left}.catalog-root .compare-calculator-list>.investment{padding:14px}}
@media(max-width:370px){.catalog-root .invest-results{grid-template-columns:1fr}.catalog-root .invest-tabs{gap:4px;padding:4px}.catalog-root .invest-tabs button{font-size:13px;padding:9px 5px}.catalog-root .invest-summary{display:block;margin-left:0}}

.catalog-root .breadcrumbs{flex-wrap:wrap;row-gap:6px}.catalog-root .breadcrumbs>span{min-width:0;overflow-wrap:anywhere}
/* v5: separate figures and a readable, always-open budget directly below them. */
.catalog-root .invest-results{padding:0;gap:0;overflow:hidden;isolation:isolate}
.catalog-root .invest-kpi{padding:20px;gap:10px;background:#f7f1e7}
.catalog-root .invest-kpi:nth-child(2n){border-left:1px solid #d6c2a4}
.catalog-root .invest-kpi:nth-child(n+3){border-top:1px solid #d6c2a4}
.catalog-root .invest-kpi>span{color:#39412f;font-size:15px;font-weight:500}
.catalog-root .invest-kpi strong{font-size:28px;line-height:1.25;letter-spacing:-.3px}
.catalog-root .invest-kpi small{font-size:13px;color:#525c46}
.catalog-root .invest-breakdown{margin:16px 0 28px;padding:20px 22px;background:#fff;border-color:#cdd0c3}
.catalog-root .invest-breakdown>summary{font-size:19px;font-weight:600}
.catalog-root .invest-ui .invest-breakdown-heading{font-size:16px;font-weight:600;background:#f2efe7;border-radius:8px;padding:10px 12px;margin:22px 0 2px}
.catalog-root .invest-line{font-size:15px;line-height:1.5;padding:12px 0}
.catalog-root .invest-line>span{color:#46513b}.catalog-root .invest-line strong{font-weight:550;color:#293522}
.catalog-root .invest-status{border-left:3px solid #ae8c5b;background:#f5f3ec;margin-bottom:14px}
.catalog-root .invest-status>.invest-help{margin:6px 0}
.catalog-root .invest-assumptions summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px;color:#68502e;padding:6px 0}
.catalog-root .invest-tune-title{padding-top:10px}
.catalog-root .invest-option>summary{font-size:17px;font-weight:550}
.catalog-root .invest-fields>.invest-help{grid-column:1/-1;padding:12px;background:#f5f3ec;border-radius:9px}
.catalog-root .invest-field input[data-money]{font-variant-numeric:tabular-nums;letter-spacing:.2px}
@media(max-width:640px){.catalog-root .invest-kpi{padding:15px 12px}.catalog-root .invest-kpi strong{font-size:23px}.catalog-root .invest-breakdown{padding:16px}.catalog-root .invest-line{grid-template-columns:minmax(0,1fr) auto;gap:12px}.catalog-root .invest-line strong{text-align:right;max-width:160px}.catalog-root .invest-kpi>span{font-size:14px}}
@media(max-width:420px){.catalog-root .invest-results{grid-template-columns:1fr}.catalog-root .invest-kpi:nth-child(n){border-left:0;border-top:1px solid #d6c2a4}.catalog-root .invest-kpi:first-child{border-top:0}.catalog-root .invest-kpi{padding:16px}.catalog-root .invest-kpi strong{font-size:27px}.catalog-root .invest-line{grid-template-columns:1fr;gap:4px}.catalog-root .invest-line strong{max-width:none;text-align:left}.catalog-root .invest-breakdown{padding:14px}}
.catalog-root .invest-finance-summary{grid-column:1/-1;display:flex;flex-direction:column;gap:6px;padding:18px 20px;background:#e6ebdf;border-top:1px solid #c7cfba;color:#2b3d24}
.catalog-root .invest-finance-summary>strong{font-size:27px;font-weight:550;line-height:1.3}.catalog-root .invest-finance-summary>small{font-size:13px;line-height:1.5}
.catalog-root .invest-tabs button{flex-basis:0;min-width:0;white-space:nowrap}
@media(max-width:420px){.catalog-root .invest-tabs button{font-size:13px;padding:10px 4px}}
@media(max-width:370px){.catalog-root .invest-tabs button{font-size:12px}}

/* v6 (05.11.2026): collapsed by default; result reads as a receipt — what adds up is marked with + and =,
   payment steps and yearly costs are visibly separate and never look like extra sums. */
.catalog-root .invest-teaser{font-size:16px;line-height:1.6;color:#3d4434}
.catalog-root .invest-teaser strong{font-weight:600;white-space:nowrap}
.catalog-root .invest-toggle>summary{list-style:none;cursor:pointer;display:inline-block;margin:6px 0 4px}
.catalog-root .invest-toggle>summary::-webkit-details-marker{display:none}
.catalog-root .invest-toggle>summary .primary{display:inline-flex;align-items:center;min-height:48px}
.catalog-root .invest-toggle[open]>summary{display:none}
.catalog-root .invest-kpi.is-total{background:#2f3a28;color:#fff}
.catalog-root .invest-kpi.is-total>span,.catalog-root .invest-kpi.is-total small,.catalog-root .invest-kpi.is-total strong{color:#fff}
.catalog-root .invest-kpi.is-derived{background:#f7f1e7}
.catalog-root .invest-kpi.is-derived strong{font-size:22px;color:#4a5140}
.catalog-root .invest-line.is-plus>span{padding-left:2px}
.catalog-root .invest-line.is-unknown strong{color:#9a7d55;font-weight:400;font-style:italic}
.catalog-root .invest-line.is-total{border-top:2px solid #2f3a28;border-bottom:0;margin-top:2px;padding-top:12px}
.catalog-root .invest-line.is-total>span,.catalog-root .invest-line.is-total strong{font-weight:650;font-size:17px;color:#1f281a}
.catalog-root .invest-line.is-step{color:#5b6150;border-bottom:1px dashed #e0ddd2}
.catalog-root .invest-line.is-step strong{font-weight:400;color:#5b6150}
.catalog-root .invest-kpi.is-empty strong{font-size:18px;font-weight:400;font-style:italic;color:#9a7d55}
/* Receipt rows keep the amount on the label's line at every width. */
.catalog-root .invest-breakdown .invest-line{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:baseline;gap:12px}
.catalog-root .invest-breakdown .invest-line strong{text-align:right;white-space:nowrap;max-width:none}
