
:root {
    --fp-primery: #0B1F3B;
    --fp-primery-light: #edf2f8; /*active radio box*/
    --fp-accent: #C6A75E;
    --fp-border: #dce3eb;
    --fp-surface: #ffffff;
    --fp-bgergprice: #f5f7fa;
    --fp-muted: #64748b;
}

/* ==========================================
   FILTERBEREICH – GRUNDLAYOUT
   ========================================== */

.chergforms * {box-sizing: border-box;
}

.chergforms {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;      
}

.cherg0 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 16px;
    width: 100%;
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    box-shadow: 0 2px 7px rgba(11, 31, 59, 0.06);
    align-items: start;
}

/* ========  EINZELNE FILTER  ======= */
.cherg0 > .sb3 {
    display: block;
    position: relative;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    grid-column: auto;
}

/* Beschriftung */
.cherg1 {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    margin: 0 0 8px;
    color: var(--fp-primery);
    font-size: 14px;
    line-height: 1.4;
}

.cherg1 strong {
    font-weight: 700;
}

.cherg2 {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.cherg2 select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 30px 0 12px;
    color: #0B1F3B;
    background-color: #fff;
    border: 1px solid #cbd4e0;
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease,  box-shadow 0.2s ease;
}

.cherg2 select:hover {
    border-color: #8d9db1;
}

.cherg2 select:focus {
    outline: none;
    border-color: var(--fp-primery);
    box-shadow: 0 0 0 3px rgba(11, 31, 59, 0.10);
}

/* =========  HILFE-LINKS UND HILFEFENSTER  =========== */
.cherg_help {
    display: inline-flex;
    flex: 0 0 17px;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 1px solid var(--fp-accent);
    border-radius: 50%;
    color: #0B1F3B;
    text-decoration: none;
    font-size: 11px;
    line-height: 1;
}

.cherg_help::before {
    content: "?";
    font-weight: 700;
}

.eing_helpbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

.eing_helpbox.is-open {
    display: block;
}

.help-popup {
    position: relative;
    box-sizing: border-box;
    padding: 16px;
    padding-right: 42px;
    color: #0B1F3B;
    background: #fff;
    border: 1px solid #dfe5ed;
    border-top: 3px solid var(--fp-accent);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(11, 31, 59, 0.14);
    font-size: 13px;
    line-height: 1.6;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.help-popup h5 {
    margin: 0 28px 8px 0;
    color: var(--fp-primery);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.help-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    color: #0B1F3B;
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 50%;
    text-decoration: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.help-close:hover,
.help-close:focus-visible {
    background: #f2f5f9;
    outline: 2px solid var(--fp-accent);
    outline-offset: 2px;
}

.help-content {
    overflow-wrap: anywhere;
}

/* ===========  FirmRS LEISTUNGSBEREICHE 6 in 1 Zeile ============ */
 .BereichSelect {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid #e5eaf0;
}

 .ergfirumf0 {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

 .ergfirumf0 li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 11px;
    color: #0B1F3B;
    background: #f7f9fc;
    border: 1px solid #dfe5ed;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.35;
    transition: background-color 0.2s ease,  border-color 0.2s ease;
}

 .ergfirumf0 li:hover {
    background: #f0f4fa;
    border-color: #aab8ca;
}

 .ergfirumf0 input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0B1F3B;
    cursor: pointer;
}

 .ergfirumf0 label {
    display: inline;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    overflow-wrap: anywhere;
}

/* =======  AKTIONSBUTTONS ========== */
.top_buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 25px;
    width: 100%;
    margin: 15px 0 15px;
}

.top_buttons input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid #0B1F3B;
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.neuBer {
    color: #0B1F3B;
    background: #fff;
}

.neuBer:hover {
    background: #f0f4fa;
}

.lvglstart {
    color: #fff;
    background: #0B1F3B;
}

.lvglstart:hover {
    background: #17385f;
    border-color: #17385f;
    box-shadow: 0 3px 10px rgba(11, 31, 59, 0.16);
}

/* ==========================================
   TABLET – bis 1100 px
   Filter in drei Spalten, Bereiche in drei Spalten
   ========================================== */

@media (max-width: 1100px) {
    .cherg0 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        padding: 18px;
    }

    .ergfirumf0 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ==========================================
   SMARTPHONE – bis 640 px
   ========================================== */

@media (max-width: 640px) {
    .cherg0 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px 12px;
        padding: 15px;
        border-radius: 9px;
    }

    .cherg1 {
        font-size: 13px;
    }

    .cherg2 select {
        height: 43px;
        padding-left: 9px;
        padding-right: 24px;
        font-size: 13px;
    }

    .BereichSelect {
        padding-top: 14px;
    }

    .ergfirumf0 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ergfirumf0 li {
        padding: 9px;
        font-size: 12px;
    }

    .top_buttons {
        flex-direction: column;
        gap: 10px;
    }

    .top_buttons input[type="button"] {
        width: 100%;
    }
}

/* ==========================================
   KLEINE SMARTPHONES – bis 380 px
   ========================================== */

@media (max-width: 380px) {
    .cherg0 {
        gap: 13px 9px;
        padding: 12px;
    }

    .ergfirumf0 {
        grid-template-columns: minmax(0, 1fr);
    }
}




















/* ==================================================
   FINANZPROFIT – ERGEBNIS TARIFDETAILS
   Basis: vorhandene HTML-Struktur #ergtabs
   ================================================== */

#ergtabs, #ergtabs * {
    box-sizing: border-box;
}

#ergtabs {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 10px 0 20px;
    padding: 18px;
    color: var(--fp-primery);
    background: #fff;
    border: 1px solid #dfe5ed;
    border-top: 3px solid var(--fp-accent);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(11, 31, 59, 0.08);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ======  SCHLIESSEN ========== */
#ergtabs > .close {
    position: absolute;
    top: 17px;
    right: 18px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border: 1px solid #dfe5ed;
    border-radius: 50%;
    background: #f5f7fa;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#ergtabs > .close::before,
#ergtabs > .close::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 8px;
    width: 14px;
    height: 2px;
    background: #0B1F3B;
    border-radius: 2px;
}

#ergtabs > .close::before {
    transform: rotate(45deg);
}

#ergtabs > .close::after {
    transform: rotate(-45deg);
}

#ergtabs > .close:hover {
    background: #e9eef5;
    border-color: #b9c5d4;
}

/* ===== TAB-NAVIGATION ====== */
#ergtabs > ul {
    display: flex;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 0 0 22px;
    padding: 0 42px 0 0;
    list-style: none;
    border-bottom: 1px solid #dfe5ed;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--fp-accent) #f1f3f6;
}

#ergtabs > ul li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

#ergtabs > ul li a {
    display: block;
    position: relative;
    padding: 12px 15px;
    color: #53647a;
    background: transparent;
    border-radius: 6px 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

#ergtabs > ul li a:hover {
    color: var(--fp-primery);
    background: #f4f6f9;
}

/* Aktiver Tab über URL-Hash */
#ergtabs > #ergtabs-1:target ~ ul li a[href="#ergtabs-1"],
#ergtabs > #ergtabs-2:target ~ ul li a[href="#ergtabs-2"],
#ergtabs > #ergtabs-3:target ~ ul li a[href="#ergtabs-3"],
#ergtabs > #ergtabs-4:target ~ ul li a[href="#ergtabs-4"],
#ergtabs > #ergtabs-5:target ~ ul li a[href="#ergtabs-5"] {
    color: #0B1F3B;
}

/* Kompatibel mit klassischem jQuery-UI-Tab-Markup,
   falls vorhandene Skripte diese Klassen setzen */
#ergtabs .ui-tabs-nav .ui-tabs-active a,
#ergtabs .ui-tabs-nav .ui-state-active a {
    color: var(--fp-primery);
    background: #f4f6f9;
}

#ergtabs .ui-tabs-nav .ui-tabs-active a::after,
#ergtabs .ui-tabs-nav .ui-state-active a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--fp-accent);
}

/* ======= TAB-INHALTE UND ÜBERSCHRIFTEN ======== */
#ergtabs > div[id^="ergtabs-"] {
    min-width: 0;
    margin: 0;
    padding: 0;
    scroll-margin-top: 20px;
}

#ergtabs > div[id^="ergtabs-"] > p {
    margin: 20px 0 10px;
    padding: 0 0 8px;
    color: #0B1F3B;
    border-bottom: 1px solid #e5eaf0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

#ergtabs > div[id^="ergtabs-"] > p:first-child {
    margin-top: 0;
}

/* Goldene Akzentlinie vor der Abschnittsüberschrift */
#ergtabs > div[id^="ergtabs-"] > p::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 17px;
    margin: 0 9px 0 0;
    background: var(--fp-accent);
    border-radius: 2px;
    vertical-align: -3px;
}

/* ===========  LEISTUNGSZEILEN =========== */
#ergtabs .ergtabs_det {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 1.5fr) minmax(110px, 0.7fr);
    gap: 16px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 6px 14px;
    background: #fff;
    border-bottom: 1px solid #edf0f4;
}

#ergtabs .ergtabs_det:nth-of-type(even) {
    background: #f8f9fb;
}

/* Bezeichnung */
#ergtabs .ergtabs_col1 {
    min-width: 0;
    color: #34465d;
    font-weight: 600;
}

/* Leistungsbeschreibung */
#ergtabs .ergtabs_col2 {
    min-width: 0;
    color: #0B1F3B;
    font-weight: 400;
}

/* Punktebewertung */
#ergtabs .ergtabs_col3 {
    min-width: 0;
    color: #53647a;
    font-size: 12px;
    text-align: right;
    font-weight: 600;
}

/* ======  LÄNGERE TEXTE / ANMERKUNGEN ========= */
#ergtabs .ergtabs_more {
    grid-column: 1 / -1;
    min-width: 0;
    color: #34465d;
    font-size: 13px;
    line-height: 1.75;
}

#ergtabs .ergtabs_more p {
    margin: 0 0 12px;
}

#ergtabs .ergtabs_more p:last-child {
    margin-bottom: 0;
}

#ergtabs .ergtabs_more ul {
    margin: 8px 0;
    padding-left: 22px;
}

#ergtabs .ergtabs_more li {
    margin: 0 0 7px;
    padding-left: 3px;
}

#ergtabs .ergtabs_more li::marker {
    color: var(--fp-accent);
}



/* ======  TABLET ============ */
@media (max-width: 900px) {
    #ergtabs {
        padding: 20px;
    }

    #ergtabs .ergtabs_det {
        grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.5fr);
        gap: 8px 14px;
    }

    #ergtabs .ergtabs_col3 {
        grid-column: 2;
        text-align: left;
        font-size: 12px;
    }
}

/* === SMARTPHONE ============ */
@media (max-width: 600px) {
    #ergtabs {
        margin: 14px 0 20px;
        padding: 16px 13px;
        border-radius: 8px;
    }

    #ergtabs > .close {
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
    }

    #ergtabs > ul {
        gap: 2px;
        margin-bottom: 18px;
        padding-right: 34px;
    }

    #ergtabs > ul li a {
        padding: 10px 11px;
        font-size: 12px;
    }

    #ergtabs > div[id^="ergtabs-"] > p {
        margin-top: 21px;
        font-size: 15px;
    }

    #ergtabs .ergtabs_det {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
        padding: 12px 10px;
    }

    #ergtabs .ergtabs_col1 {
        font-size: 13px;
    }

    #ergtabs .ergtabs_col2 {
        font-size: 13px;
    }

    #ergtabs .ergtabs_col3 {
        grid-column: 1;
        text-align: left;
        font-size: 12px;
    }

    #ergtabs .ergtabs_more {
        font-size: 13px;
    }
}










/* =========================================================
   FINANZPROFIT – FIRMAN-RECHTSSCHUTZ-RECHNER
   Modernes Premium-Formular
   Farben: Dunkelblau #0B1F3B | Gold #C6A75E
   Vorhandenes HTML bleibt unverändert
   ========================================================= */

/* ---------- Grundeinstellungen ---------- */

form[name="Form"] {

    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin: 32px auto;
    padding: clamp(22px, 4vw, 42px);
    background: var(--fp-surface);
    border: 1px solid #e5eaf0;
    border-radius: 18px;
    box-shadow:
        0 12px 35px rgba(11, 31, 59, 0.06),
        0 2px 6px rgba(11, 31, 59, 0.025);

    color: var(--fp-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

form[name="Form"] *,
form[name="Form"] *::before,
form[name="Form"] *::after {
    box-sizing: border-box;
}

/* ---------- Hauptüberschrift ---------- */

form[name="Form"] h2 {
    position: relative;
    margin: 0 0 30px;
    padding: 0 0 20px;
    color: var(--fp-primery);
    font-size: clamp(21px, 2.5vw, 27px);
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.45px;
    border-bottom: 1px solid var(--fp-border);
}

form[name="Form"] h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 64px;
    height: 3px;
    background: var(--fp-gold);
    border-radius: 3px;
}

/* ---------- Formularzeilen ---------- */

form[name="Form"] .eing_priv1 {
    float: left;
    width: 43%;
    padding: 13px 20px 13px 0;
    color: var(--fp-primery);
    font-weight: 650;
    line-height: 1.5;
}

form[name="Form"] .eing_priv2 {
    float: left;
    width: 57%;
    min-width: 0;
    padding: 8px 0;
}

form[name="Form"] .clear {
    clear: both;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Dezente Hoverfläche für Eingabezeilen */

form[name="Form"] .eing_priv1,
form[name="Form"] .eing_priv2 {
    transition: background-color 0.2s ease;
}

/* ---------- Hilfesymbole ---------- */

form[name="Form"] a.eing_help {
    position: relative;
    display: inline-flex;
    width: 25px;
    height: 25px;
    margin-left: 3px;
    align-items: center;
    justify-content: center;
    vertical-align: -3px;
    color: var(--fp-primery);
    text-decoration: none;
    border: 1px solid #b9c6d5;
    border-radius: 50%;
    transition: all 0.2s ease;
}

form[name="Form"] a.eing_help::before {
    content: "?";
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

form[name="Form"] a.eing_help:hover,
form[name="Form"] a.eing_help:focus-visible {
    color: #fff;
    background: var(--fp-primery);
    border-color: var(--fp-primery);
    outline: none;
}

/* ---------- Eingabefelder ---------- */

form[name="Form"] .input-box,
form[name="Form"] .select-box {
    display: block;
    width: 100%;
    min-width: 0;
}

form[name="Form"] .eingabeforms,
form[name="Form"] input[type="text"],
form[name="Form"] select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    padding: 11px 24px;
    color: var(--fp-text);
    background-color: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

form[name="Form"] input::placeholder {
    color: #94a0b0;
    opacity: 1;
}

form[name="Form"] select {
    cursor: pointer;
    padding-right: 36px;
}

form[name="Form"] .eingabeforms:hover,
form[name="Form"] input[type="text"]:hover,
form[name="Form"] select:hover {
    border-color: #9eafc3;
}

form[name="Form"] .eingabeforms:focus,
form[name="Form"] input[type="text"]:focus,
form[name="Form"] select:focus {
    border-color: var(--fp-primery);
    box-shadow: 0 0 0 3px rgba(11, 31, 59, 0.12);
}

/* ---------- Radio-Auswahl ---------- */

form[name="Form"] .radio-box {
    position: relative;
    display: inline-flex;
    min-width: 100px;
    min-height: 42px;
    margin: 0 8px 0 0;
    padding: 9px 15px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #435166;
    background: #fff;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

form[name="Form"] .radio-box:hover {
    border-color: #a8b7c9;
    background: #f8fafc;
}

form[name="Form"] .radio-box input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 16px;
    accent-color: var(--fp-primery);
    cursor: pointer;
}

form[name="Form"] .radio-box:has(input[type="radio"]:checked) {
    color: var(--fp-primery);
    background: var(--fp-primery-light);
    border-color: var(--fp-primery);
}

form[name="Form"] .radio-box:has(input[type="radio"]:disabled) {
    color: #9aa5b3;
    background: #f3f5f8;
    cursor: not-allowed;
}

form[name="Form"] .radio-box input[type="radio"]:focus-visible {
    outline: 2px solid var(--fp-gold);
    outline-offset: 3px;
}

/* Vorhandenes individuelles Radio-Symbol ausblenden:
   Die native Radio-Auswahl bleibt bedienbar. */

form[name="Form"] .checkmark-radbx {
    display: none;
}

/* ---------- Abschnittstrenner ---------- */

form[name="Form"] hr {
    clear: both;
    height: 1px;
    margin: 18px 0;
    padding: 0;
    background: var(--fp-border);
    border: 0;
}

/* =========================================================
   Dynamische Formularbereiche
   Firmenvertrags-Rechtsschutz und Umsatz
   ========================================================= */

form[name="Form"] #fvrs2,
form[name="Form"] #umsatz2 {
    display: flow-root;
    position: relative;
    width: 100%;
    max-width: 100%;
    float: none;
    clear: both;
    box-sizing: border-box;
}

/* Formularzeilen innerhalb der dynamischen Bereiche */
form[name="Form"] #fvrs2 .eing_priv1,
form[name="Form"] #umsatz2 .eing_priv1 {
    float: left;
    width: 43%;
    box-sizing: border-box;
}

form[name="Form"] #fvrs2 .eing_priv2,
form[name="Form"] #umsatz2 .eing_priv2 {
    float: left;
    width: 57%;
    box-sizing: border-box;
}

/* Hilfebereiche nicht in das Formularlayout einrechnen */
form[name="Form"] #fvrs2 .eing_helpbox,
form[name="Form"] #umsatz2 .eing_helpbox {
    display: none;
}

/* Trennlinien innerhalb der Bereiche */
form[name="Form"] #fvrs2 hr,
form[name="Form"] #umsatz2 hr {
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

/* Smartphone */
@media (max-width: 700px) {
    form[name="Form"] #fvrs2 .eing_priv1,
    form[name="Form"] #fvrs2 .eing_priv2,
    form[name="Form"] #umsatz2 .eing_priv1,
    form[name="Form"] #umsatz2 .eing_priv2 {
        float: none;
        width: 100%;
    }
}

form[name="Form"] #fvrs2 > hr {
    margin-top: 18px;
}

/* ---------- Erstinformation / Checkbox ---------- */

form[name="Form"] .eing_cherstinf {
    display: flex;
    width: 57%;
    float: left;
    padding: 8px 0;
    align-items: flex-start;
    gap: 12px;
}

form[name="Form"] .eing_cherstinf .check-box {
    position: relative;
    display: inline-flex;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

form[name="Form"] .eing_cherstinf .check-box input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

form[name="Form"] .eing_cherstinf .checkmark-chkbx {
    display: block;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 1.5px solid #b8c5d4;
    border-radius: 5px;
    pointer-events: none;
    transition: all 0.2s ease;
}

form[name="Form"] .eing_cherstinf .check-box input:checked
    + .checkmark-chkbx {
    background: var(--fp-primery);
    border-color: var(--fp-primery);
}

form[name="Form"] .eing_cherstinf .check-box input:checked
    + .checkmark-chkbx::after {
    content: "";
    display: block;
    width: 6px;
    height: 11px;
    margin: 3px 0 0 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

form[name="Form"] .eing_cherstinf .check-box input:focus-visible
    + .checkmark-chkbx {
    outline: 2px solid var(--fp-gold);
    outline-offset: 3px;
}

form[name="Form"] .eing_cherstinftxt {
    color: #536176;
    font-size: 13px;
    line-height: 1.65;
}

/* ---------- Berechnen-Button ---------- */

form[name="Form"] .eing_submit {
    clear: both;
    display: flex;
    margin-top: 30px;
    padding-top: 24px;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid var(--fp-border);
}

form[name="Form"] .eingabensubmit {
    display: inline-flex;
    min-width: 210px;
    min-height: 52px;
    padding: 14px 30px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--fp-primery);
    border: 1px solid var(--fp-primery);
    border-radius: 9px;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: 0.15px;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(11, 31, 59, 0.13);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

form[name="Form"] .eingabensubmit:hover {
    color: #fff;
    background: #17375e;
    border-color: #17375e;
    box-shadow: 0 8px 18px rgba(11, 31, 59, 0.18);
    transform: translateY(-1px);
}

form[name="Form"] .eingabensubmit:focus-visible {
    outline: 3px solid var(--fp-gold);
    outline-offset: 3px;
}

form[name="Form"] .eingabensubmit:active {
    transform: translateY(0);
    box-shadow: 0 3px 7px rgba(11, 31, 59, 0.12);
}

/* Ladeanimation */

form[name="Form"] #ajax-loader-gif {
    width: 24px;
    height: 24px;
    margin-left: 12px;
}

/* ---------- Fehlermeldungen ---------- */

form[name="Form"] #fehler {
    clear: both;
    margin-top: 16px;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

form[name="Form"] #fehler:empty {
    display: none;
}

/* ---------- Hilfe-Popups ---------- */

form[name="Form"] .eing_helpbox {
    display: none;
}

form[name="Form"] .eing_helpbox:target {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgba(8, 20, 38, 0.62);
    backdrop-filter: blur(4px);
}

form[name="Form"] .help-popup {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    padding: 30px;
    overflow-y: auto;
    color: var(--fp-text);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    animation: fp-help-in 0.2s ease-out;
}

form[name="Form"] .help-popup h5 {
    margin: 0 36px 16px 0;
    padding-bottom: 14px;
    color: var(--fp-primery);
    border-bottom: 1px solid var(--fp-border);
    font-size: 19px;
    font-weight: 750;
    line-height: 1.4;
}

form[name="Form"] .help-content {
    color: #536176;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

form[name="Form"] .help-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: var(--fp-primery);
    background: #f0f3f7;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

form[name="Form"] .help-close:hover {
    background: #e0e7ef;
}

@keyframes fp-help-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- Erstinformation unterhalb des Formulars ---------- */

#erstinfo {
    width: 100%;
    max-width: 900px;
    margin: 24px auto 40px;
    padding: clamp(18px, 3vw, 28px);
    color: #536176;
    background: #f7f9fc;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.75;
    cursor: pointer;
}

#erstinfo a {
    color: var(--fp-primery, #0B1F3B);
    text-decoration: underline;
    text-decoration-color: #b8c5d4;
    text-underline-offset: 3px;
    cursor: pointer;
}

#erstinfo a:hover {
    text-decoration-color: var(--fp-accent);
}

/* ---------- Tastaturbedienung ---------- */

form[name="Form"] a:focus-visible,
form[name="Form"] input:focus-visible,
form[name="Form"] select:focus-visible {
    outline-color: var(--fp-gold);
    outline-offset: 2px;
}

/* ---------- Tablet ---------- */

@media (max-width: 700px) {
    form[name="Form"] {
        margin: 20px auto;
        padding: 24px;
        border-radius: 14px;
    }

    form[name="Form"] h2 {
        margin-bottom: 22px;
    }

    form[name="Form"] .eing_priv1 {
        width: 100%;
        padding: 13px 0 3px;
    }

    form[name="Form"] .eing_priv2 {
        width: 100%;
        padding: 5px 0 12px;
    }

    form[name="Form"] .eing_cherstinf {
        width: 100%;
        padding: 6px 0 12px;
    }

    form[name="Form"] hr {
        margin: 17px 0;
    }

    form[name="Form"] .eing_submit {
        margin-top: 20px;
        padding-top: 20px;
    }

    form[name="Form"] .eingabensubmit {
        width: 100%;
        min-width: 0;
    }
}

/* ---------- Smartphone ---------- */

@media (max-width: 420px) {
    form[name="Form"] {
        margin: 12px auto;
        padding: 19px 5px;
        border-radius: 12px;
    }

    form[name="Form"] h2 {
        font-size: 21px;
        line-height: 1.4;
    }

    form[name="Form"] .radio-box {
        min-width: 95px;
        min-height: 44px;
        margin-right: 5px;
        padding: 10px 12px;
    }

    form[name="Form"] .help-popup {
        padding: 24px 20px;
        border-radius: 13px;
    }

    form[name="Form"] .eing_helpbox:target {
        padding: 16px;
    }

    #erstinfo {
        margin: 16px auto 28px;
        padding: 18px;
    }
}

/* ---------- Barrierefreiheit: reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
    form[name="Form"] *,
    form[name="Form"] *::before,
    form[name="Form"] *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



/* =========================================================
   FINANZPROFIT – BERUF AUTOCOMPLETE
   Ergänzung zum bestehenden Formular-CSS
   ========================================================= */

/* Bezugspunkt für die Vorschlagsliste */
form[name="Form"] #beruf {
    position: relative;
}

/* ---------- jQuery UI Autocomplete ---------- */

.ui-autocomplete {
    z-index: 100000 !important;
    box-sizing: border-box;
    max-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 5px 0 0;
    padding: 6px;
    list-style: none;
    color: #243247;
    background: #ffffff;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    box-shadow:
        0 12px 30px rgba(11, 31, 59, 0.12),
        0 3px 8px rgba(11, 31, 59, 0.05);
    font-family: inherit;
    font-size: 14px;
}

/* Einzelner Berufsvorschlag */
.ui-autocomplete .ui-menu-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 11px 13px;
    color: #243247;
    background: transparent;
    border: 0;
    border-radius: 6px;
    line-height: 1.45;
    cursor: pointer;
    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}

/* Maus-Hover und Tastaturauswahl */
.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    color: #0B1F3B;
    background: #edf2f8;
    border: 0;
}

/* Dezente Markierung der aktiven Auswahl */
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    box-shadow: inset 3px 0 0 var(--fp-accent);
    font-weight: 600;
}

/* Scrollbar */
.ui-autocomplete::-webkit-scrollbar {
    width: 7px;
}

.ui-autocomplete::-webkit-scrollbar-track {
    background: #f7f9fc;
    border-radius: 8px;
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    background: #c5cfdb;
    border-radius: 8px;
}

.ui-autocomplete::-webkit-scrollbar-thumb:hover {
    background: #8e9db0;
}

/* ---------- Alternative: klassische jQuery-UI-Klassen ---------- */

.ui-menu {
    z-index: 100000 !important;
    padding: 6px;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(11, 31, 59, 0.12);
}

.ui-menu .ui-menu-item {
    list-style: none;
}

.ui-menu .ui-menu-item-wrapper {
    padding: 11px 13px;
    color: #243247;
    border-radius: 6px;
}

.ui-menu .ui-menu-item-wrapper.ui-state-active {
    margin: 0;
    color: #0B1F3B;
    background: #edf2f8;
    border: 0;
    box-shadow: inset 3px 0 0 var(--fp-accent);
    font-weight: 600;
}

/* ---------- Smartphone ---------- */

@media (max-width: 700px) {
    .ui-autocomplete {
        max-height: 240px;
        font-size: 14px;
    }

    .ui-autocomplete .ui-menu-item-wrapper {
        padding: 13px 12px;
    }
}





/* ==========================================================
   FINANZPROFIT – Eingabe Vermieterrechtsschutz MIETEINGABEN
   ========================================================== */

.fp-miete {
    width: 100%;
    color: var(--fp-primery);
    font-family: inherit;
    box-sizing: border-box;
}

.fp-miete *,
.fp-miete *::before,
.fp-miete *::after {
    box-sizing: border-box;
}


/* ==========================================
   KOPFBEREICH
   ========================================== */

.fp-miete-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.fp-miete-header-content {
    min-width: 0;
}

.fp-miete-title {
    margin: 0 0 8px;
    color: var(--fp-primery);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
}

.fp-miete-intro {
    margin: 0;
    color: var(--fp-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ====== GRUPPEN: WOHNEN UND GEWERBE ======= */

.fp-miete-gruppe {
    min-width: 0;
    margin-bottom: 22px;
    padding: 15px 20px;
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    background: #FFFFFF;
}

/* Unterschiedliche Akzente für beide Gruppen */
.fp-miete-wohnen {
    border-top: 3px solid var(--fp-primery);
}

.fp-miete-gewerbe {
    border-top: 3px solid var(--fp-accent);
}

/* ======= GRUPPENÜBERSCHRIFT ======= */

.fp-miete-gruppe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fp-border);
}

.fp-miete-gruppe-title {
    margin: 0 0 5px;
    color: var(--fp-primery);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
}

.fp-miete-gruppe-description {
    margin: 0;
    color: var(--fp-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.fp-miete-gruppe-count {
    display: inline-block;
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 6px;
    background: #F7F9FC;
    color: var(--fp-primery);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ========= 3-SPALTIGES EINGABERASTER ======== */

.fp-miete-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 19px;
    row-gap: 15px;
    width: 100%;
}


/* ========== EINZELNES EINGABEFELD ======== */

.fp-miete-field {
    min-width: 0;
}

.fp-miete-field label {
    display: block;
    margin: 0 0 8px;
    color: var(--fp-primery);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}


/* ======== INPUT UND EURO-SYMBOL ========== */

.fp-miete-input-wrap {
    position: relative;
    width: 100%;
}

.fp-miete-input-wrap input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 10px 42px 10px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 7px;
    background: #FFFFFF;
    color: var(--fp-primery);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* Euro-Symbol innerhalb des Eingabefeldes */

.fp-miete-input-wrap > span {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: var(--fp-muted);
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
}

/* Hover */
.fp-miete-input-wrap input:hover {
    border-color: #94A3B8;
}

/* Fokus */
.fp-miete-input-wrap input:focus {
    outline: none;
    border-color: var(--fp-primery);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(11, 31, 59, 0.10);
}

/* Sichtbarer Tastaturfokus */

.fp-miete-input-wrap input:focus-visible {
    outline: 2px solid var(--fp-accent);
    outline-offset: 2px;
}

/* ======== LEERSTANDSHINWEIS ============= */

.fp-miete-hinweis {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
    padding: 16px;
    border: 1px solid #E7D9B5;
    border-radius: 9px;
    background: #FCFAF5;
}

.fp-miete-hinweis-icon {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--fp-accent);
    border-radius: 50%;
    color: var(--fp-primery);
    font-size: 12px;
    font-weight: 700;
}

.fp-miete-hinweis p {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.65;
}

.fp-miete-hinweis strong {
    color: var(--fp-primery);
}



/* ==========================================
   RESPONSIVE: TABLET
   Zwei Spalten
   ========================================== */

@media (max-width: 900px) {

    .fp-miete-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 18px;
    }

    .fp-miete-gruppe {
        padding: 20px;
    }

}

/* ==========================================
   RESPONSIVE: SMARTPHONE
   Eine Spalte
   ========================================== */

@media (max-width: 560px) {

    .fp-miete {
        margin: 22px 0;
    }

    .fp-miete-header {
        gap: 12px;
        margin-bottom: 18px;
    }

    .fp-miete-title {
        font-size: 1.15rem;
    }

    .fp-miete-intro {
        font-size: 0.9rem;
    }

    .fp-miete-gruppe {
        margin-bottom: 16px;
        padding: 16px;
    }

    .fp-miete-gruppe-header {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .fp-miete-gruppe-title {
        font-size: 1rem;
    }

    .fp-miete-gruppe-description {
        font-size: 0.82rem;
    }

    .fp-miete-gruppe-count {
        padding: 4px 7px;
        font-size: 0.72rem;
    }

    .fp-miete-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px;
    }

    .fp-miete-field label {
        margin-bottom: 6px;
    }

    .fp-miete-input-wrap input {
        height: 46px;
    }

    .fp-miete-hinweis {
        padding: 13px;
    }

}

/* ==========================================
   REDUZIERTE BEWEGUNG
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .fp-miete-help-link,
    .fp-miete-input-wrap input {
        transition: none;
    }

}




/* ========================================
   RADIO-BOX – FINANZPROFIT - GLAS EINGABE
   Verwendung innerhalb von .eing_priv2
   ======================================== */

.eing_priv2 .radio-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 10px;
    padding-left: 32px;
    color: #0B1F3B;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* Standard-Radio-Button ausblenden */
.eing_priv2 .radio-box input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Äußerer Kreis */
.eing_priv2 .radio-box .checkmark-radbx {
    position: absolute;
    top: 50%;
    left: 0;
    width: 21px;
    height: 21px;
    box-sizing: border-box;
    transform: translateY(-50%);
    border: 1.5px solid #B8C3D1;
    border-radius: 50%;
    background-color: #FFFFFF;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Innerer Punkt */
.eing_priv2 .radio-box .checkmark-radbx::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    background-color: var(--fp-accent);
    content: "";
    transition: transform 0.2s ease;
}

/* Ausgewählter Radio-Button */
.eing_priv2 .radio-box input[type="radio"]:checked + .checkmark-radbx {
    border-color: #0B1F3B;
}

/* Inneren Punkt bei Auswahl anzeigen */
.eing_priv2 .radio-box input[type="radio"]:checked + .checkmark-radbx::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Hover-Effekt */
.eing_priv2 .radio-box:hover .checkmark-radbx {
    border-color: var(--fp-accent);
}

/* Tastaturfokus */
.eing_priv2 .radio-box input[type="radio"]:focus-visible + .checkmark-radbx {
    outline: 2px solid var(--fp-accent);
    outline-offset: 3px;
}

/* Mobile Darstellung */
@media (max-width: 560px) {
    .eing_priv2 .radio-box {
        min-height: 32px;
        margin-bottom: 12px;
        font-size: 15px;
    }

    .eing_priv2 .radio-box .checkmark-radbx {
        width: 22px;
        height: 22px;
    }
}

.eing_divider {
    display: inline-flex;
    width: 100%;
    height: 1px;
    margin: 15px 0 10px 0;
    padding: 0;
    border: 0;
    background-color: #D9E0E9;
}


/* Animationen bei entsprechender Systemeinstellung reduzieren */
@media (prefers-reduced-motion: reduce) {
    .eing_priv2 .radio-box .checkmark-radbx,
    .eing_priv2 .radio-box .checkmark-radbx::after {
        transition: none;
    }
}








/* =========================================================
   FINANZPROFIT – TARIF-ERGEBNISANZEIGE
   Desktop / Tablet / Mobile
   ========================================================= */


/* ---------------------------------------------------------
   1. ÄUSSERE TARIFKARTE
   --------------------------------------------------------- */
.ergdivs {
    display: grid;
    grid-template-columns: 15% 37% 17% 31%;
    width: 100%;
    margin: 0 0 22px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #DCE3EB;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(11, 31, 59, 0.07);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ergdivs:hover {
    border-color: #C6A75E;
    box-shadow: 0 5px 18px rgba(11, 31, 59, 0.11);
}

/* ---------------------------------------------------------
   2. DETAIL-0 – TARIFKOPF UND SOCIAL PROOF
   --------------------------------------------------------- */
.detail-0 {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    background: #F5F7FA;
}

.detail-kopf {
    display: grid;
    grid-template-columns: 150px minmax(180px, 1fr) auto 170px;
	grid-template-columns: 140px minmax(180px, 1fr) auto 170px;
    align-items: center;
    gap: 15px;
    min-height: 90px;
    padding: 16px 22px;
    box-sizing: border-box;
}

/* Versicherer-Logo */
.detail-kopf .vu-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.detail-kopf .vu-logo img {
    display: block;
    max-width: 140px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Tarifname */
.detail-kopf .vu-taname {
    min-width: 0;
    color: var(--fp-primery);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.tarif-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

/* Top-Tarif */
.top_tarif {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 13px;
    color: #0B1F3B;
    background: linear-gradient(135deg, #F8F1DF, #EFE2C1);
    border: 1px solid #D9C28F;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    white-space: nowrap;
}

.top_tarif::before {
     content: "★";
    color: #A48646;
    font-size: 14px;
    line-height: 1;
}

/*  BELIEBTESTER TARIF */
.beliebtester-tarif {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #087E83, #06666B);
    border: 1px solid #06666B;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(8, 126, 131, 0.18);
}

.beliebtester-tarif::before {
    content: "★";
    color: #F2D28A;
    font-size: 15px;
    line-height: 1;
}

/* Preis im Tarifkopf */
.detail-kopf .vu-price {
    display: none;
}


/* ---------------------------------------------------------
   3. PREISDARSTELLUNG
   --------------------------------------------------------- */
.vu-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.ergprice {
    color: var(--fp-primery);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.ergzw {
    color: #6B7787;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
}

.ergzw a {
    display: inline-block;
    margin-left: 3px;
    vertical-align: middle;
}

.ergzw img {
    vertical-align: middle;
    opacity: 0.7;
}


/* ---------------------------------------------------------
   4. SOCIAL PROOF – ABSCHLUSSSTATISTIK
   --------------------------------------------------------- */
.detail-socialproof {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 7px 22px;
    background: #FBF8F0;
    border-top: 1px solid #E9E2D3;
    border-bottom: 1px solid #E9E2D3;
    box-sizing: border-box;

display: none;
}

.socialproof-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 19px;
    color: #B18D43;
    font-size: 17px;
    font-weight: 700;
}

.socialproof-text {
    color: #526174;
    font-size: 12px;
    line-height: 1.5;
}

.socialproof-text strong {
    color: #0B1F3B;
    font-weight: 700;
}


/* ---------------------------------------------------------
   5. DETAILBEREICHE – DESKTOP
   --------------------------------------------------------- */
.detail-1, .detail-2,
.detail-3, .detail-4 {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 20px 16px;
    box-sizing: border-box;
}

/* Detail 1 – Tarifbewertung */
.detail-1 {
    justify-content: center;
    border-right: 1px solid #E7EBF0;
}

 .bewimg, .bewimg-res {
   position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 94px;
    height: 108px;
    margin: 20px auto 6px auto;
    color: #0B1F3B;
    font-family: inherit;
}

.bewimg-ring {
    display: block;
    width: 82px;
    height: 82px;
    transform: rotate(-90deg);
}

.bewimg-ring circle {
    fill: none;
    stroke-width: 6;
}

.bewimg-bg {
    stroke: #E7EBF1;
}

.bewimg-fg {
    stroke: var(--fp-accent);
    stroke-linecap: round;
}

.bewimg-wert {
    position: absolute;
    top: 28px;
    left: 0;
    width: 100%;
    color: var(--fp-primery);
    text-align: center;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.bewimg-wert span {
    color: var(--fp-accent);
    font-size: 13px;
}

.bewimg-label {
    margin-top: 4px;
    color: #53647A;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Detail 2 – Tarifleistungen */
.detail-2 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    border-right: 1px solid #E7EBF0;
}

.tarifdetail {
    width: 100%;
}

.tarifdetail p {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    padding: 5px 0;
    color: #586577;
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px solid #EEF1F4;
}

.tarifdetail p:last-child {
    border-bottom: 0;
}

.tarifdetail p span {
    color: var(--fp-primery);
    font-weight: 600;
    text-align: right;
}

/* Bewertungsbild in Detail 2 nur mobil anzeigen */
.detail-2 .bewimg-res {
    display: none;
}

/* Detail 3 – Preis */
.detail-3 {
    justify-content: center;
    background: #FAFBFC;
    border-right: 1px solid #E7EBF0;
}

.detail-3 .vu-price {
    align-items: center;
}

/* Detail 4 – Aktionen */
.detail-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    min-width: 0;
}
.antrag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 9px 8px;
    width: 100%;
    max-width: 300px;
}

.antrag p {
    margin: 0;
    padding: 0;
    text-align: center;
}

.antrag .bu-antrag {
    grid-column: 1;
}

.antrag .bu-antrag a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 8px;
    color: #FFFFFF;
    background: #0B1F3B;
    border: 1px solid #0B1F3B;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.antrag .bu-antrag a:hover {
    color: #FFFFFF;
    background: #17385E;
    border-color: #17385E;
}


/* Erste Zeile: Tarif vergleichen */
.antrag .bu-check {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 5px;
    color: #0B1F3B;
    background: #FFFFFF;
    border: 1px solid #C6A75E;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.3;
}

.antrag .bu-check a {
    color: #0B1F3B;
    font-weight: 700;
    text-decoration: none;
}

.antrag .bu-check a:hover {
    color: #92763D;
}


/* Zweite Zeile: Angebot anfordern */
.antrag .bu-angebot {
    grid-column: 1 / -1;
	display: none;
}

.antrag .bu-angebot a {
    display: block;
    width: 100%;
    padding: 8px 10px;
    color: #526174;
    background: #F5F7FA;
    border: 1px solid #E1E6ED;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.antrag .bu-angebot a:hover {
    color: #0B1F3B;
    background: #EEF2F7;
}

/* ---------------------------------------------------------
   6. DETAIL-FUSS – TARIFDETAILS
   --------------------------------------------------------- */
.detail-fuss {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-height: 38px;
    padding: 0 22px;
    background: #F5F7FA;
    border-top: 1px solid #E1E6ED;
    box-sizing: border-box;
}

/* Tarifdetails-Button */
.detail-fuss .ergtbew {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: fit-content;
    padding: 7px 12px;
    color: #0B1F3B;
    background: #f5f7fa;
    border: 1px solid #dbe3ed;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.ergtbew::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s ease;
}

.ergtbew:hover {
    color: #A48646;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: 0 2px 5px rgba(11, 31, 59, 0.08);
}

/* ---------------------------------------------------------
   7. AUSGEKLAPPTE TARIFDETAILS sollen immer volle Kartenbreite nutzen
   --------------------------------------------------------- */
.ergdivs #ergtabs {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    left: auto;
    float: none;
    margin: 0;
    padding: 20px 22px;
    background: #FFFFFF;
    border-top: 1px solid #E1E6ED;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   8. TABLET – BIS 900 PX
   --------------------------------------------------------- */
@media (max-width: 900px) {

    .ergdivs {
        grid-template-columns: 20% 50% 30%;
    }

    .detail-kopf {
        grid-template-columns: 125px minmax(0, 1fr) auto;
        gap: 14px;
    }

    .detail-kopf .vu-price {
        display: none;
    }

    .detail-1 {
        grid-column: 1;
    }

    .detail-2 {
        grid-column: 2;
    }

    .detail-3 {
        grid-column: 3;
        border-right: 0;
    }

    .detail-4 {
        grid-column: 1 / -1;
        border-top: 1px solid #E7EBF0;
        background: #FAFBFC;
    }

    .antrag {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        max-width: none;
    }

    .antrag .bu-antrag {
        flex: 0 1 200px;
    }

    .antrag .bu-angebot {
	display: none;
    }

    .antrag .bu-check,
    .antrag .bu-angebot {
        flex: 0 1 auto;
    }
}


/* ---------------------------------------------------------
   9. MOBILE – BIS 600 PX
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .ergdivs {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 18px;
        border-radius: 8px;
    }

    .detail-kopf {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 14px;
        min-height: auto;
        padding: 14px;
    }

    .detail-kopf .vu-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .detail-kopf .vu-logo img {
        max-width: 120px;
        max-height: 45px;
    }

    .detail-kopf .vu-taname {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 16px;
    }

    .detail-kopf .top_tarif {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: start;
    }

    .detail-kopf .vu-price {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        align-items: flex-end;
    }

    .detail-kopf .ergprice {
        font-size: 22px;
    }

    .detail-socialproof {
        min-height: 42px;
        padding: 9px 14px;
    }

    .socialproof-text {
        font-size: 12px;
    }

    /* Detailbereiche untereinander */
    .detail-1, .detail-2,
    .detail-3, .detail-4 {
        grid-column: 1;
        padding: 14px 16px;
        border-right: 0;
        border-bottom: 1px solid #E7EBF0;
    }

    .detail-1 {
        display: none;/* Bewertung mobil in Detail 2 */
    }

    /* Tarifleistungen */
    .detail-2 {
        flex-direction: row;
        background: #FFFFFF;
    }

    .detail-2 .bewimg-res {
        display: flex;
        justify-content: center;
        padding: 12px 0 0 20px;
        align-items: center;
        width: 50%;
    }

   .tarifdetail p {
        padding: 6px 0;
        font-size: 13px;
    }

    .detail-3 { 
	display: none;
     }

    .detail-4 {
        padding: 16px;
        background: #FFFFFF;
        border-bottom: 0;
    }

    .antrag {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .antrag .bu-antrag a {
        padding: 13px;
        font-size: 14px;
    }

    .antrag .bu-check {
        font-size: 12px;
    }

    .antrag .bu-angebot {
	display: none;
    }

     .detail-fuss {
        padding: 0 16px;
    }

    .ergdivs #ergtabs {
        padding: 16px;
    }
}


/* ---------------------------------------------------------
   10. REDUZIERTE ANIMATIONEN
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .ergdivs,
    .antrag a,
    .ergtbew {
        transition: none;
    }
}






















