.hell {
    background-color: #fdf2e8 !important;
}

.dunkel {
    background-color: #fce8d2 !important;
}

.field {
    margin-bottom: 0.5rem;
}

.mod_lbn_tarifrechner_unfall #person,
.mod_lbn_tarifrechner_unfall #person-tab {
    display: none;
}

.mod_lbn_bedarfsanalyse_hausrat .choosen,
.mod_lbn_tarifrechner_hausrat .choosen {
    background-color: #fce8d2;
}

.mod_lbn_bedarfsanalyse_hausrat table.acc tr td:nth-child(2),
.mod_lbn_bedarfsanalyse_hausrat table.acc tr td:nth-child(3),
.mod_lbn_bedarfsanalyse_hausrat table.acc tr td:nth-child(4),
.mod_lbn_bedarfsanalyse_hausrat table.acc tr td:nth-child(5) {
    text-align: center;
}

.mod_lbn_bedarfsanalyse_hausrat table .fa-times {
    color: red;
}

.mod_lbn_bedarfsanalyse_hausrat table .fa-check {
    color: green;
}

.mod_lbn_tarifrechner_hausrat .subwidget {
    display: inline-block;
}

.mod_lbn_tarifrechner_hausrat .subwidget label,
.mod_lbn_tarifrechner_hausrat .subwidget select {
    display: inline-block;
    width: auto;
}

.textfield_container label:first-child+.info-box {
    margin-bottom: 0;
    margin-top: -30px;
}

.radio_container.horizontal>div {
    display: inline-block;
    margin-left: 1em;
}

[type=checkbox]+label,
[type=radio]+label {
    vertical-align: bottom !important;
}

body .widget.widget-radio .radio_container .option {
    display: inline-block !important;
}

.radio_container.error {
    border: 2px solid #de1c23;
    padding: 10px;
    border-radius: 3px;
    background-color: #ffe6e6;
}

.radio_container.error::before {
    content: "Bitte wählen Sie eine Option aus";
    display: block;
    color: #de1c23;
    font-weight: 300;
    font-size: 12px;
    margin-bottom: 5px;
}

/* .switch input:checked + label {
    background-color: green !important;
} */

/* Tarif-Spalten ausblenden bei 20%-Progressionen */
.hide-tarif-gut [data-tarif="g"] {
    display: none !important;
}

/* Für Tabellen ohne data-tarif: 2. Spalte ausblenden (LBN-GUT ist immer 2. Spalte) */
.hide-tarif-gut table.unfall-leistungen tr td:nth-child(2),
.hide-tarif-gut table.unfall-leistungen tr th:nth-child(2),
.hide-tarif-gut table.optionale tr td:nth-child(2),
.hide-tarif-gut table.optionale tr th:nth-child(2) {
    display: none !important;
}

textarea {
    resize: none;
}

.error-color {
    color: #de1c23;
}

.error_container {
    color: #de1c23;
    display: none !important;
    font-weight: 300;
    font-size: 12px;
    width: max-content;
    min-height: 0;
}

.error_container:not(:empty),
.error_container.has-error {
    display: block !important;
}

.elementarfragebogen #ctrl_elementar_lage>div {
    display: none;
}

.reveal-modal-bg {
    background: #000000;
    background: rgba(0, 0, 0, 0.45);
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1004;
    left: 0;
}

.reveal-modal {
    border-radius: 3px;
    display: none;
    position: absolute;
    top: 0;
    visibility: hidden;
    width: 100%;
    z-index: 1005;
    left: 0;
    background-color: #FFFFFF;
    padding: 1.875rem;
    border: solid 1px #666666;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

@media only screen and (max-width: 40em) {
    .reveal-modal {
        min-height: 100vh;
    }
}

.reveal-modal .column,
.reveal-modal .columns {
    min-width: 0;
}

.reveal-modal> :first-child {
    margin-top: 0;
}

.reveal-modal> :last-child {
    margin-bottom: 0;
}

@media only screen and (min-width: 40.0625em) {
    .reveal-modal {
        left: 0;
        margin: 0 auto;
        max-width: 62.5rem;
        right: 0;
        width: 80%;
    }
}

@media only screen and (min-width: 40.0625em) {
    .reveal-modal {
        top: 6.25rem;
    }
}

.reveal-modal.radius {
    box-shadow: none;
    border-radius: 3px;
}

.reveal-modal.round {
    box-shadow: none;
    border-radius: 1000px;
}

.reveal-modal.collapse {
    padding: 0;
    box-shadow: none;
}

@media only screen and (min-width: 40.0625em) {
    .reveal-modal.tiny {
        left: 0;
        margin: 0 auto;
        max-width: 62.5rem;
        right: 0;
        width: 30%;
    }
}

@media only screen and (min-width: 40.0625em) {
    .reveal-modal.small {
        left: 0;
        margin: 0 auto;
        max-width: 62.5rem;
        right: 0;
        width: 40%;
    }
}

@media only screen and (min-width: 40.0625em) {
    .reveal-modal.medium {
        left: 0;
        margin: 0 auto;
        max-width: 62.5rem;
        right: 0;
        width: 60%;
    }
}

@media only screen and (min-width: 40.0625em) {
    .reveal-modal.large {
        left: 0;
        margin: 0 auto;
        max-width: 62.5rem;
        right: 0;
        width: 70%;
    }
}

@media only screen and (min-width: 40.0625em) {
    .reveal-modal.xlarge {
        left: 0;
        margin: 0 auto;
        max-width: 62.5rem;
        right: 0;
        width: 95%;
    }
}

.reveal-modal.full {
    height: 100vh;
    height: 100%;
    left: 0;
    margin-left: 0 !important;
    max-width: none !important;
    min-height: 100vh;
    top: 0;
}

@media only screen and (min-width: 40.0625em) {
    .reveal-modal.full {
        left: 0;
        margin: 0 auto;
        max-width: 62.5rem;
        right: 0;
        width: 100%;
    }
}

.reveal-modal.toback {
    z-index: 1003;
}

.reveal-modal .close-reveal-modal {
    color: #AAAAAA;
    cursor: pointer;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    top: 0.625rem;
    right: 1.375rem;
}

.insurance_floor {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.floor {
    background: #fdf2e8;
    color: #646464;
    padding: 10px;
    border: 1px solid #646464;
    border-top: 0;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.1;
    cursor: pointer;
}

.floor.top {
    /*	border-top: 1px solid #646464;*/
    position: relative;
    z-index: 100;
}

.floor:hover {
    background: #f9d4ab;
}

.floor.active {
    background: #f08b20;
    color: #fff;
}

.floor.ceil {
    background: transparent;
    border: 0;
    position: relative;
}

.floor.ceil:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 120px 40px 120px;
    border-color: transparent transparent #646464 transparent;
    border-style: none dotted solid;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
}

.floor.ceil:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 120px 40px 120px;
    border-color: transparent transparent #fdf2e8 transparent;
    border-style: none dotted solid;
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 0;
}

.floor.ceil span {
    position: relative;
    z-index: 10;
    display: block;
    top: 5px;
}

.floor.ceil:hover:after {
    border-color: transparent transparent #f9d4ab transparent;
}

.floor.ceil.active:after {
    border-color: transparent transparent #f08b20 transparent;
}

.floor.ceil:hover+.empty {
    background: #f9d4ab;
}

.floor.empty {
    height: 2px;
    padding: 0;
}

.floor.empty:hover {
    background: #fdf2e8;
}

.insurance_container {
    position: relative;
    padding-bottom: 60px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.insurance_container:after {
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    height: 35%;
    background: rgba(240, 139, 32, 1);
    background: -moz-linear-gradient(top, rgba(240, 139, 32, 1) 0%, rgba(240, 139, 32, 1) 14%, rgba(240, 139, 32, 1) 32%, rgba(240, 139, 32, 1) 35%, rgba(253, 240, 227, 1) 75%, rgba(255, 255, 255, 1) 99%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(240, 139, 32, 1)), color-stop(14%, rgba(240, 139, 32, 1)), color-stop(32%, rgba(240, 139, 32, 1)), color-stop(35%, rgba(240, 139, 32, 1)), color-stop(75%, rgba(253, 240, 227, 1)), color-stop(99%, rgba(255, 255, 255, 1)));
    background: -webkit-linear-gradient(top, rgba(240, 139, 32, 1) 0%, rgba(240, 139, 32, 1) 14%, rgba(240, 139, 32, 1) 32%, rgba(240, 139, 32, 1) 35%, rgba(253, 240, 227, 1) 75%, rgba(255, 255, 255, 1) 99%);
    background: -o-linear-gradient(top, rgba(240, 139, 32, 1) 0%, rgba(240, 139, 32, 1) 14%, rgba(240, 139, 32, 1) 32%, rgba(240, 139, 32, 1) 35%, rgba(253, 240, 227, 1) 75%, rgba(255, 255, 255, 1) 99%);
    background: -ms-linear-gradient(top, rgba(240, 139, 32, 1) 0%, rgba(240, 139, 32, 1) 14%, rgba(240, 139, 32, 1) 32%, rgba(240, 139, 32, 1) 35%, rgba(253, 240, 227, 1) 75%, rgba(255, 255, 255, 1) 99%);
    background: linear-gradient(to bottom, rgba(240, 139, 32, 1) 0%, rgba(240, 139, 32, 1) 14%, rgba(240, 139, 32, 1) 32%, rgba(240, 139, 32, 1) 35%, rgba(253, 240, 227, 1) 75%, rgba(255, 255, 255, 1) 99%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f08b20', endColorstr='#ffffff', GradientType=0);
    z-index: 0;
    border-top: 1px solid #646464;
}

.insurance_container .paragh {
    color: #646464;
    padding: 10px;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.addItems .entry div {
    display: inline-block;
}

.addItems .entry .extra {
    font-size: 0.8em;
    display: block;
}

.bar {
    height: 18px;
    background: #f08b20;
}

#progress {
    height: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
}

/* Modul Tarifrechner Unfall */
.mod_lbn_tarifrechner_unfall h2 {
    font-weight: 300;
}

.mod_lbn_tarifrechner_unfall select:disabled {
    background-color: #f5f5f6;
}

.mod_lbn_tarifrechner_unfall #person_entries .content {
    border-bottom: 1px solid #cfcfd0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.mod_lbn_tarifrechner_unfall .addPerson i {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin-left: 5px;
}

.mod_lbn_tarifrechner_unfall .select2-container--default .select2-selection--single {
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #f5f5f6;
    color: rgba(0, 0, 0, 0.75);
    font-family: inherit;
    line-height: normal;
    padding: 0.5rem;
    height: 2.5em;
}

.mod_lbn_tarifrechner_unfall .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.5em;
}

.custom-tab-panel table.preview tr td:nth-child(1) {
    font-size: 16px;
    vertical-align: top;
    font-weight: 600;
}

.tabs-content table.preview tr td:nth-child(2),
.tabs-content table.preview tr td:nth-child(3),
.tabs-content table.preview tr td:nth-child(4) {
    padding: 15px;
    vertical-align: top;
    text-align: center;
}

.tabs-content table.preview span {
    display: block;
    color: #616164;
    font-weight: 300;
}

.custom-tab-panel table.preview span.person {
    font-family: 'bree-serif', serif;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 400;
}

.custom-tab-panel table.preview span.price {
    font-family: 'bree-serif', serif;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 5px;
    display: block;
}

.custom-tab-panel table.preview span.born-date {
    font-weight: 300;
    display: block;
    color: #616164;
    font-size: 20px;
}

.mod_lbn_tarifrechner_unfall .zwischenueberschrift {
    height: 60px;
    vertical-align: middle;
}

.mod_lbn_tarifrechner_unfall .zwischenueberschrift td.client {
    font-size: 22px !important;
    vertical-align: middle !important;
}

a.details-link {
    font-size: 16px;
}

table.product th .tarif {
    color: #e0393e;
    padding: 15px;
    font-family: 'bree-serif', serif;
    font-size: 28px;
}

.custom-tab-panel table.preview .tarif .has-tip {
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -8px;
}

.custom-tab-panel table.preview button {
    position: relative;
    margin-bottom: 10px;
    margin-top: 20px;
}

.custom-tab-panel table.preview button i {
    position: absolute;
    right: 7px;
    top: 50%;
    margin-top: -8px;
}

section.content>div:not([data-person="1"]) .col-selected {
    position: relative;
}

section.content>div:not([data-person="1"]) .col-selected:after {
    content: '';
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.7) url('../img/bg-selected.png') left top repeat;
    z-index: 28;
    position: absolute;
    left: 0;
    top: 0;
    min-height: 100%;
}

table.product tr>td:nth-child(2n),
table.product tr>th:nth-child(2n),
table.product tr>td:nth-child(3n),
table.product tr>th:nth-child(3n),
table.product tr>td:nth-child(4n),
table.product tr>th:nth-child(4n) {
    text-align: center;
}

/* Hervorhebung der gewählten Tarif-Spalte */
table.product.tarife tr td.tarif-selected,
table.product.tarife tr th.tarif-selected {
    background-color: #fce8d2 !important;
    border-left: 3px solid #e0393e;
    border-right: 3px solid #e0393e;
    font-weight: bold;
}

.mod_lbn_tarifrechner_unfall .optionale .price {
    font-family: 'bree-serif', serif;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 5px;
}

.num_cols_4 tr>*:nth-child(2n),
.num_cols_4 tr>*:nth-child(3n),
.num_cols_4 tr>*:nth-child(4n) {
    width: 20%;
}


.tabs .tabs-title {
    padding: 0;
}

.tabs dd.active a,
.tabs .tabs-title.is-active a {
    background-color: #f08b20;
    color: #fff;
}

.tabs dd>a,
.tabs .tabs-title>a {
    padding: 5px 30px;
    font-size: 16px;
    font-family: 'bree-serif', serif;
    background-color: #ffffff;
    color: #f08b20;
}

.tabs-content table.preview tr td:nth-child(1) {
    font-size: 16px;
    font-weight: 600;
    vertical-align: top;
}

.tabs-content table.preview tr td:nth-child(2),
.tabs-content table.preview tr td:nth-child(3),
.tabs-content table.preview tr td:nth-child(4) {
    padding: 15px;
    vertical-align: top;
    text-align: center;
}

.tabs-content table.preview span {
    display: block;
    color: #616164;
    font-weight: 300;
}

.tabs-content table.preview span.person {
    font-family: 'bree-serif', serif;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 400;
}

.tabs-content table.preview span.price {
    font-family: 'bree-serif', serif;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 5px;
}

.tabs-content table.preview span.born-date {
    font-weight: 300;
}

.tabs-content .unfall-leistungen tr:not('.highlighted'),
.custom-tab-panel .unfall-leistungen tr:not('.highlighted') {
    display: none;
}

/* Custom Tabs Implementation */
.custom-tabs {
    margin-top: 20px;
}

.custom-tabs-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    border-bottom: 1px solid #cfcfd0;
}

.custom-tabs-nav li {
    margin: 0;
    padding: 0;
}

.custom-tabs-nav li a {
    display: block;
    padding: 5px 30px;
    font-size: 16px;
    font-family: 'bree-serif', serif;
    background-color: #ffffff;
    color: #f08b20;
    text-decoration: none;
    border: 1px solid #cfcfd0;
    border-bottom: none;
    margin-right: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-tabs-nav li a:hover {
    background-color: #f9d4ab;
    color: #fff;
}

.custom-tabs-nav li.active a {
    background-color: #f08b20;
    color: #fff;
}

.custom-tabs-content {
    border: 1px solid #cfcfd0;
    border-top: none;
    padding: 20px;
    background-color: #fff;
}

.custom-tab-panel {
    display: none !important;
}

.custom-tab-panel.active {
    display: block !important;
}

/* Grundsumme Slider - Horizontales Layout */
.range_container {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 70%);
    border: 1px solid #dadadb;
    border-radius: 8px;
    padding: 20px;
}

.range_container label {
    font-weight: 600;
    margin-bottom: 15px !important;
    display: block;
}

.grundsumme-horizontal {
    display: flex;
    gap: 30px;
}

.slider-section {
    flex: 1;
}

.value-section {
    flex: 0 0 auto;
}

.slider-container {
    margin: 0;
}

.slider-wrapper {
    position: relative;
    padding: 20px 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e1e1e1;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}

.slider:hover {
    background: #d1d1d1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f08b20 0%, #e67e22 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(240, 139, 32, 0.4);
    transition: all 0.2s ease;
    border: 2px solid white;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(240, 139, 32, 0.6);
}

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f08b20 0%, #e67e22 100%);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(240, 139, 32, 0.4);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(240, 139, 32, 0.6);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.slider-labels .slider-min,
.slider-labels .slider-max {
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* Kompakte Wertanzeige rechts */
.current-value-display {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.current-value-display .current-value-input {
    padding: 7px 5px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #ffffff;
    font-family: 'bree-serif', serif;
    font-size: 22px;
    font-weight: 700;
    color: #f08b20;
    text-align: right;
    cursor: text;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}

.current-value-display .current-value-input:focus {
    outline: none;
    border-color: #f08b20;
    box-shadow: 0 0 0 3px rgba(240, 139, 32, 0.2);
}

.current-value-display .current-value-input:hover {
    border-color: #f08b20;
}

.current-value-display .current-value-input::-webkit-outer-spin-button,
.current-value-display .current-value-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.current-value-display .thousand-suffix {
    font-family: 'bree-serif', serif;
    font-size: 22px;
    font-weight: 700;
    color: #f08b20;
    margin-left: -4px;
}

.current-value-display .current-value {
    font-family: 'bree-serif', serif;
    font-size: 24px;
    font-weight: 700;
    color: #f08b20;
}

.current-value-display .postfix {
    font-size: 22px;
    color: #f08b20;
    font-weight: 600;
}

/* thv und phv tariftabelle */

table.hv tr td:nth-child(1) {

    font-weight: 600;
}

table.hv .zwischenueberschrift {
    height: 60px;
    vertical-align: middle;
}

.hv .total_payment_rate .price {
    font-size: 1.5rem;
    font-weight: 700;
}



table.hv span.born-date {
    font-weight: 300;
    display: block;
    color: #616164;
    font-size: 20px;
}

/* table.hv .choosen {
    background: none !important;
} */
/* nd */
/* Vorsorgegarantie */
#ctrl_extensionPrevention label {
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--color-text);
}

body .calculator .extensions {
    color: #191919 !important;
}

/* Responsive Verbesserungen für Progression und Grundsumme */
@media (max-width: 768px) {
    .radio_container[id*="familySituation"] {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .radio_container[id*="familySituation"] .option {
        padding: 10px 12px;
        margin-bottom: 0;
        flex: none;
        min-width: auto;
    }

    .radio_container[id*="familySituation"] .option label {
        font-size: 13px;
    }

    .range_container {
        padding: 15px;
    }

    .grundsumme-horizontal {
        flex-direction: column;
        gap: 15px;
    }

    .value-section {
        min-width: auto;
    }

    .current-value-display {
        text-align: center;
        padding: 12px;
        gap: 4px;
    }

    .current-value-display .current-value-input {
        width: 80px;
        font-size: 20px;
        padding: 6px 8px;
    }

    .current-value-display .thousand-suffix {
        font-size: 20px;
    }

    .current-value-display .current-value {
        font-size: 20px;
    }

    .current-value-display .postfix {
        font-size: 18px;
    }
}

/* Bessere Fokus-Sichtbarkeit für Barrierefreiheit */
.radio_container[id*="familySituation"] .option input[type="radio"]:focus {
    outline: 3px solid #f08b20;
    outline-offset: 2px;
}

.slider:focus {
    outline: 3px solid #f08b20;
    outline-offset: 2px;
}

/* Animation für Wertänderungen bei der Grundsumme
.current-value-display {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.current-value-display.value-changed {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(240, 139, 32, 0.3);
}
*/
/* Verbessertes Layout für die Person-Zeilen */
.person-row {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.person-row:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.person-row h3 {
    border-bottom: 2px solid #d67c1d;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Date Input Styles */
.date-input-wrapper {
    position: relative;
}

.date-input-container {
    position: relative;
    display: block;
    width: 100%;
}

.date-input-visible {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #f5f5f6;
    color: rgba(0, 0, 0, 0.75);
    font-family: inherit;
    font-size: 0.875rem;
    line-height: normal;
    height: 2.3125rem;
}

.date-input-visible:focus {
    border-color: #f08b20;
    outline: none;
    box-shadow: 0 0 0 2px rgba(240, 139, 32, 0.2);
}

/* Zeilenweise Anordnung der Personendaten */
.person-row {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}


.person-row .row {
    margin-bottom: 15px;
}

.person-row .row:last-child {
    margin-bottom: 0;
}

/* Responsive Anpassungen für kleinere Bildschirme */
@media only screen and (max-width: 768px) {
    .person-row .columns {
        margin-bottom: 15px;
    }

    .person-row .columns:last-child {
        margin-bottom: 0;
    }
}

/* Geburtsdatum-Validierung Styles */
.input-wrapper {
    position: relative;
}

/*
.input-wrapper input {
    padding-right: 45px;
}
*/
.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: none;
    pointer-events: none;
}

.validation-icon.valid {
    display: block;
}

.validation-icon svg {
    width: 100%;
    height: 100%;
}



input.text.invalid {
    border-color: #ddd;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hint {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* Barrierefreie Fehlermeldungen */
.accessible-error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    margin: 1px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: max-content;
}

.accessible-error-message::before {
    content: "⚠️ ";
    font-weight: bold;
    margin-right: 8px;
}

.accessible-success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accessible-success-message::before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 8px;
}

/* Verbesserte Error-Styles für Eingabefelder */
input.error,
select.error,
textarea.error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

/* Screen Reader Only Text */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Progression Radio-Buttons - Modernisierte UX */
.radio_container[id*="familySituation"] {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.progression-container {
    position: relative;
    padding: 0;
}

.progression-container .error_container {
    margin-top: 18px;
}

.progression-wrapper {
    display: flex;
    gap: 36px;
    padding: 28px 38px 34px;
    border: 1px solid #dadadb;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 70%);
    position: relative;
    flex-wrap: nowrap;
    width: 100%;
}

.progression-group {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
}

.progression-group__title {
    font-family: 'bree-serif', serif;
    font-size: 18px;
    font-weight: 500;
    color: #323234;
}

.progression-group--plus .progression-group__title {}

/* ab hier */
/* === Volles Card-Styling für Progression-Controls UND familySituation === */
.progression-container .progression-group__options,
#ctrl_familySituation .progression-group__options {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    padding-top: 12px;
    z-index: 1;
    flex-wrap: wrap;
}

.progression-container .progression-group__options .option,
#ctrl_familySituation .progression-group__options .option {
    background: #ffffff;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    margin: 0;
    padding: 1.5em 1em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    position: relative;
    flex: 0 0 calc(33.333% - 11px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    z-index: 1;
}

.progression-container .progression-group__options .option:hover,
#ctrl_familySituation .progression-group__options .option:hover {
    border-color: #d67c1d;
}

.progression-container .progression-group__options .option:has(input:checked),
#ctrl_familySituation .progression-group__options .option:has(input:checked) {
    background: #f08b20;
    border-color: #d67c1d;
    color: white;
}

/* === Minimales Styling für andere Radio-Buttons (z.B. Deckungssumme) === */
/* Gilt nur für Radio-Buttons OHNE .progression-container, OHNE .horizontal und NICHT #ctrl_familySituation */
.radio_container:not(.progression-container):not(.horizontal):not(#ctrl_familySituation) .progression-group__options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 0;
}

.radio_container:not(.progression-container):not(.horizontal):not(#ctrl_familySituation) .progression-group__options .option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    padding: 0;
    background: transparent;
    border: none;
    width: auto;
    flex: none;
}

.radio_container:not(.progression-container):not(.horizontal):not(#ctrl_familySituation) .progression-group__options .option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio_container:not(.progression-container):not(.horizontal):not(#ctrl_familySituation) .progression-group__options .option label {
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.4;
}

/* === Explizite Verstärkung für .horizontal Radio-Buttons === */
/* Überschreibt alle anderen Regeln und stellt sicher, dass .horizontal inline bleibt */
.radio_container.horizontal .progression-group__options {
    display: block !important;
    padding-top: 0 !important;
}

.radio_container.horizontal .progression-group__options .option {
    display: inline-block !important;
    margin-left: 1em;
    margin-bottom: 0;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
    vertical-align: middle;
    width: auto !important;
    flex: none !important;
}

.radio_container.horizontal .progression-group__options .option:first-child {
    margin-left: 0;
}

.radio_container.horizontal .progression-group__options .option input[type="radio"] {
    margin: 0 4px 0 0;
    vertical-align: middle;
}

.radio_container.horizontal .progression-group__options .option label {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: middle;
    font-size: 16px;
    line-height: 1.4;
}

.radio_container[id*="familySituation"] .option {
    background: #ffffff;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    margin: 0;
    padding: 1.5em 1em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    position: relative;
    flex: 0 0 calc(33.333% - 11px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    z-index: 1;
}

.radio_container[id*="familySituation"] .option label {
    order: 1;
    margin: 0;
    padding: 0 !important;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700 !important;
    display: block;
    width: 100%;
    text-align: center;
}

.radio_container[id*="familySituation"] .option label em {
    display: block;
    font-size: 12px;
    color: #6f6f72;
    margin-top: 4px;
}

/* Radiobuttons verstecken - sie sollen nicht mehr als solche erkennbar sein */
.radio_container[id*="familySituation"] .option input[type="radio"] {
    visibility: hidden;
    position: absolute;
    cursor: pointer;
    margin: 0;
    width: 0;
    height: 0;
}

.radio_container[id*="familySituation"] .option input[type="radio"]:focus-visible {
    outline: none;
}

.radio_container[id*="familySituation"] .option:has(input:checked) label {
    color: #ffffff;
    font-weight: 600;
}

.radio_container[id*="familySituation"] .option:hover label {
    color: inherit;
}

/* Basis-Styling für alle Tooltips */
.radio_container[id*="familySituation"] .option [data-tooltip] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 16px;
    background: #f08b20;
    color: white;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 6px;
    white-space: normal;
    width: 340px;
    z-index: 10000 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(240, 139, 32, 0.3);
    font-weight: 500;
}

/* 1. Reihe (Single, Single mit Kind/-ern, Paar) - Tooltip nach OBEN */
.radio_container[id*="familySituation"] .option:nth-child(1) [data-tooltip],
.radio_container[id*="familySituation"] .option:nth-child(2) [data-tooltip],
.radio_container[id*="familySituation"] .option:nth-child(3) [data-tooltip] {
    bottom: 100%;
    margin-bottom: 12px;
}

.radio_container[id*="familySituation"] .option:nth-child(1) [data-tooltip]::before,
.radio_container[id*="familySituation"] .option:nth-child(2) [data-tooltip]::before,
.radio_container[id*="familySituation"] .option:nth-child(3) [data-tooltip]::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #f08b20;
    margin-top: -2px;
}

/* 2. Reihe (Familie, Single-ü60, Paar-ü60) - Tooltip nach UNTEN */
.radio_container[id*="familySituation"] .option:nth-child(4) [data-tooltip],
.radio_container[id*="familySituation"] .option:nth-child(5) [data-tooltip],
.radio_container[id*="familySituation"] .option:nth-child(6) [data-tooltip] {
    top: 100%;
    margin-top: 12px;
}

.radio_container[id*="familySituation"] .option:nth-child(4) [data-tooltip]::before,
.radio_container[id*="familySituation"] .option:nth-child(5) [data-tooltip]::before,
.radio_container[id*="familySituation"] .option:nth-child(6) [data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #f08b20;
    margin-bottom: -2px;
}

/* Hover & Focus aktivieren alle Tooltips */
.radio_container[id*="familySituation"] .option:hover [data-tooltip],
.radio_container[id*="familySituation"] .option:focus-within [data-tooltip] {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .progression-wrapper {
        flex-direction: column;
        gap: 24px;

    }

    .progression-container .progression-group__options::before,
    #ctrl_familySituation .progression-group__options::before {
        display: none;
    }

    .progression-container .progression-group__options,
    #ctrl_familySituation .progression-group__options {
        justify-content: flex-start;
        gap: 36px;
        flex-wrap: wrap;
    }

    .progression-container .progression-group__options .option,
    #ctrl_familySituation .progression-group__options .option {
        flex: 0 0 140px;
    }
}

@media (max-width: 640px) {
    .progression-wrapper {
        padding: 22px 20px 28px;
    }

    .progression-group__title {
        font-size: 16px;
    }

    .progression-container .progression-group__options,
    #ctrl_familySituation .progression-group__options {
        gap: 24px;
    }

    .progression-container .progression-group__options .option,
    #ctrl_familySituation .progression-group__options .option {
        flex: 0 0 120px;
    }
}

/* bis hier hin */
/* CSS-basierte Tooltips für alle has-tip Elemente (Fallback) */
.has-tip {
    position: relative;
    cursor: help;
}

/* Versuche zuerst data-original-title (Fallback), dann title */
.has-tip:hover::after {
    content: attr(data-original-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 300px;
    white-space: normal;
    text-align: left;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
}

/* Falls data-original-title leer ist, nutze title */
.has-tip:not([data-original-title]):hover::after,
.has-tip[data-original-title=""]:hover::after {
    content: attr(title);
}

.has-tip:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: 4px;
    z-index: 9999;
}

/* Formularvalidierungs-Zusammenfassung */
.form-validation-summary {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-validation-summary h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #721c24;
}

.form-validation-summary ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.form-validation-summary li {
    margin-bottom: 8px;
    font-size: 14px;
}

.form-validation-summary .error-link {
    color: #721c24;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.form-validation-summary .error-link:hover,
.form-validation-summary .error-link:focus {
    color: #491217;
    text-decoration: none;
    outline: 2px solid #721c24;
    outline-offset: 2px;
}

/* Fokus-Styles für barrierefreie Navigation */
.form-validation-summary:focus {
    outline: 3px solid #721c24;
    outline-offset: 2px;
}

/* ============================================================
   Select2 Custom Styling
   ============================================================ */

/* Select2 Container - Passt zur Höhe der Standard-Textfelder */
.select2-container .select2-selection--single {
    height: 42px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: inherit;
    color: #333 !important;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

/* Dropdown-Styling */
.select2-container--default .select2-results__option {
    padding: 8px 12px;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #fce8d2;
    color: #333;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #fdf2e8;
    color: #333;
}

/* Suchfeld im Dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #fce8d2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 232, 210, 0.3);
}

/* Dropdown Container */
.select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Fokus-Zustand */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #fce8d2;
    box-shadow: 0 0 0 3px rgba(252, 232, 210, 0.3);
}

/* Error-State für Select2 (bei Validierung) */
.error .select2-container--default .select2-selection--single {
    border-color: #dc3545;
}

.error .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

/* Placeholder-Styling */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #0a0a0a;
}

/* Loading-Indicator */
.select2-container--default .select2-results__option.loading-results {
    color: #0a0a0a;

}

/* Beruf-Feld spezifisches Styling */
[name="beruf[]"]+.select2-container {
    width: 100% !important;
}

/* Responsive Design für mobile Geräte */
@media screen and (max-width: 768px) {
    .select2-container .select2-selection--single {
        height: 48px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 46px;
    }

    .select2-container--default .select2-results__option {
        padding: 12px 16px;
        font-size: 16px;
    }
}