/* Compact AvD controls, including the white-label embed. */
#v157-form{padding:24px;border-radius:22px;background:#fafbf7}
#v157-form .v220-form-heading .v157-eyebrow{font-size:11px;margin:0 0 6px;letter-spacing:.14em}
#v157-form .v220-form-heading h3{font-size:26px;line-height:1.2;margin:0 0 16px}
#v157-form .v220-age{display:block;padding:14px 16px;margin:0 0 18px;background:var(--navy,#183746);color:var(--lime,#d8ff51);border-radius:15px}
#v157-form .v220-age-title{display:flex;gap:9px;align-items:center;min-height:38px}
#v157-form .v220-age-title label{font-size:16px;font-weight:500;line-height:1.25}
#v157-form .v220-age-title output{color:inherit;font-size:30px;font-weight:750;line-height:1}
#v157-form .v220-age-title .v220-info{margin-left:auto;color:inherit}
#v157-form #v216-age{display:block;width:100%;height:32px;min-height:32px;margin:6px 0 0;padding:0;accent-color:var(--lime,#d8ff51);background:transparent;border:0;cursor:pointer}
#v157-form .v220-age-bounds{display:flex;justify-content:space-between;color:#fff;font-size:11px;line-height:1.3}
#v157-form .v157-field{display:flex;flex-direction:column;justify-content:flex-start;gap:5px;min-height:0;height:auto;font-size:13px;line-height:1.35;min-width:0}
#v157-form .v157-field>span{display:block;min-height:0;height:auto;margin:0;padding:0}
#v157-form .v157-field input,#v157-form .v157-field select{width:100%;min-width:0;min-height:44px;height:44px;padding:8px 10px;font-size:16px;border-radius:10px;background:#fff;margin:0}
#v157-form .v220-main-fields{gap:14px 12px;align-items:stretch}
#v157-form .v220-main-fields input,#v157-form .v220-main-fields select{margin-top:auto}
#v157-form .v220-main-fields.v157-two{margin-top:14px}
#v157-form .v220-field-title{display:flex;align-items:center;justify-content:space-between;gap:3px;min-width:0}
#v157-form .v220-field-title label{min-width:0}
#v157-form .v220-info{display:inline-grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;background:transparent;color:var(--navy,#183746);cursor:pointer}
#v157-form .v220-info>span,#v157-form .v220-info-mark{display:inline-grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border:1.5px solid currentColor;border-radius:50%;font:600 14px/1 Georgia,serif}
#v157-form .v220-info[aria-expanded=true]>span,#v157-form .v220-note-toggle[aria-expanded=true] .v220-info-mark{box-shadow:0 0 0 3px #c6df87}
#v157-form .v220-info:focus-visible,#v157-form .v220-note-toggle:focus-visible{outline:2px solid #4c8296;outline-offset:2px;border-radius:5px}
#v157-form .v220-help{margin:8px 0 0;padding:10px 12px;border-radius:10px;background:#edf3ed;color:#405a66;font-size:13px;line-height:1.5;font-weight:400}
#v157-form .v220-help p{margin:0;font-size:13px;line-height:1.5}
#v157-form .v220-help .v165-simple-note{display:block;padding:0;border:0;background:transparent;margin:8px 0 0}
#v157-form .v220-help .v165-simple-note strong,#v157-form .v220-help .v165-simple-note span{display:block;font-size:13px;color:inherit}
#v157-form .v220-wide{grid-column:1/-1}
#v157-form .v220-notes{margin:10px 0}
#v157-form .v220-note-toggle{display:flex;align-items:center;gap:8px;min-height:38px;padding:3px 0;border:0;background:transparent;color:#506875;font-family:inherit;font-weight:400;font-size:13px;line-height:1.4;text-align:left;cursor:pointer}
#v157-form .v157-settings{margin:8px 0 0;border:1px solid #d1dfe2;border-radius:11px;background:#f2f6f7}
#v157-form .v157-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:11px 12px;font-size:14px;line-height:1.4;list-style:none;cursor:pointer}
#v157-form .v157-settings>summary::-webkit-details-marker{display:none}
#v157-form .v157-settings>summary:after{content:'⌄';font-size:19px;line-height:1;flex:0 0 auto}
#v157-form .v157-settings[open]>summary:after{content:'⌃'}
#v157-form .v157-settings .accordion-icon71{display:none}
#v157-form .v157-settings-body{padding:8px 12px 12px}
#v157-form .v157-settings-body .v157-settings{background:#fff}
#v157-form .v157-settings-body .v157-fields{gap:12px}
#v157-form .v163-cost-overview{margin:8px 0 0}
#v157-form .v163-cost-overview>.v157-settings{margin:0}
#v157-form #v220-show-results{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:14px 0 0;padding:11px 12px;background:var(--navy,#183746);color:var(--lime,#d8ff51)!important;border-color:transparent;font-size:15px;line-height:1.3;text-align:center}
#v157-form #v220-show-results:hover{background:#245364;transform:none}
#v157-form .v157-error:empty{display:none}
#v157-form [hidden]{display:none!important}
#v157-results,.v157-tabs{scroll-margin-top:115px}
@media(max-width:700px){
 #foerder-rechner>.v157-wrap{width:calc(100% - 24px)}
 #v157-form{padding:18px 14px}
 #v157-form .v220-form-heading h3{font-size:23px;margin-bottom:14px}
 #v157-form .v220-main-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 10px}
 #v157-form .v220-main-fields.v157-two{margin-top:12px}
 #v157-form .v157-field{font-size:12px}
 #v157-form .v220-main-fields .v157-field>span{min-height:0}
 #v157-form .v220-age{padding:13px 12px;margin-bottom:14px}
 #v157-form .v220-age-title label{font-size:15px}
 #v157-form .v220-age-title output{font-size:29px}
 #v157-form .v220-info{flex-basis:28px;width:28px;min-width:28px}
 #v157-form .v157-settings-body .v157-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #v157-form .v157-settings-body .v157-field input,#v157-form .v157-settings-body .v157-field select{margin-top:auto}
 #v157-form .v157-settings-body .v157-two{margin-top:12px}
 #v157-form .v157-child{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:10px}
 #v157-form .v167-options{padding:12px;margin:0 0 12px}
}
@media(max-width:360px){
 #v157-form{padding:16px 12px}
 #v157-form .v220-main-fields{column-gap:8px}
 #v157-form .v157-field input,#v157-form .v157-field select{padding-inline:7px}
 #v157-form .v157-settings-body .v157-fields{grid-template-columns:minmax(0,1fr)!important}
}
/* Respect the embedded calculator's existing brand palette. */
body[data-tool="avd"] #v157-form .v220-age,body[data-tool="avd"] #v157-form #v220-show-results{background:var(--brand-primary);color:var(--brand-highlight)!important}
/* Shared label row and control baseline, independent of the help text below. */
#v157-form .v157-settings-body .v222-pension-pair{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch}
#v157-form .v222-pension-pair select{margin-top:auto}
#v157-form .v222-pension-pair .v157-field[hidden]+.v157-field{grid-column:1/-1}
#v157-form .v222-reinvest-help{margin:8px 0 14px;font-size:12px;line-height:1.5}

/* Keep explanations available without interrupting the input flow. */
#v157-form .v223-pension-help p{margin:0;font-size:13px;line-height:1.5}
#v157-form .v223-pension-help p+p{margin-top:10px}
/* On phones each product has a heading and four figures in a compact 2-by-2 grid. */
@media(max-width:620px){
 #v157-funding{padding:18px 14px}
 #v157-funding h3{font-size:21px;line-height:1.25;margin:0 0 14px}
 #v157-funding .v157-data-table{margin:0}
 #v157-funding .v157-data-table tbody{display:block}
 #v157-funding .v157-data-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:0;padding:12px 14px;margin:0 0 12px;border:1px solid #c5d8df;border-radius:13px;background:#f2f6f8}
 #v157-funding .v157-data-table td{display:flex;flex-direction:column;justify-content:space-between;gap:4px;min-width:0;padding:9px 0;font-size:17px;line-height:1.25;font-weight:650;border:0;overflow-wrap:anywhere}
 #v157-funding .v157-data-table td::before{font-size:12px;line-height:1.35;font-weight:400;color:#476978}
 #v157-funding .v157-data-table td:first-child{grid-column:1/-1;display:block;padding:0 0 9px;border-bottom:1px solid #d6e2e6;font-size:16px;line-height:1.3;font-weight:750}
 #v157-funding .v157-data-table td:first-child::before{display:none}
 #v157-funding .v157-data-table td:nth-child(n+4){border-top:1px solid #d6e2e6;padding-bottom:0}
 #v157-funding>p,#v157-funding .v157-detail{font-size:13px;line-height:1.5}
 #v157-funding>p{margin:12px 0}
}
