/* ============================================================
   Conversion-Refresh für /umschulden2/ — Mobile First
   Wird nur auf dieser Landingpage geladen (meta.php).
   Überschreibt punktuell Globals aus custom.css / bok.css.
   ============================================================ */

html {
    scroll-behavior: smooth;
}

#umschuldung {
    scroll-margin-top: 12px;
}

/* ---------- CTA-Button (eigene Klasse, unabhängig von a.btn-Globals) ---------- */

.u2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    max-width: 340px;
    min-height: 54px;
    padding: .85rem 1.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 50rem;
    box-shadow: 0 8px 20px rgba(231, 76, 60, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}

.u2-btn::after {
    content: "\2192";
    font-weight: 400;
}

.u2-btn:hover,
.u2-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(231, 76, 60, .45);
}

.u2-cta-note {
    display: block;
    margin-top: .6rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
}

/* Bestehende CTA-Buttons der geteilten Sektionen (3-5) ans neue Design angleichen */
a.btn.btn-red-ts {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50rem;
    font-size: 1.05rem;
    font-weight: 600;
    padding: .85rem 1.6rem;
    box-shadow: 0 8px 20px rgba(231, 76, 60, .35);
}

/* ---------- Above-the-fold-Block (Intro + Formular) ---------- */

.u2-fold {
    padding: 1.5rem 1rem 2rem;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(231, 76, 60, .06), transparent 60%),
        linear-gradient(180deg, #eef1f4 0%, #f6f7f9 100%);
    border-bottom: 1px solid #e6e9ec;
}

.u2-fold-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.u2-fold-form {
    scroll-margin-top: 12px;
}

/* ---------- Hero-Intro (section1) ---------- */

.u2-hero {
    position: relative;
    background: transparent;
}

.u2-hero .container {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.u2-hero-intro {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.u2-eyebrow {
    display: inline-block;
    padding: .3rem .9rem;
    margin-bottom: .85rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e74c3c;
    background: rgba(231, 76, 60, .07);
    border: 1px solid rgba(231, 76, 60, .25);
    border-radius: 50rem;
}

h1.u2-heading {
    font-size: clamp(1.65rem, 7vw, 2.2rem) !important;
    line-height: 1.2;
    height: auto !important;
    margin: 0 0 1.1rem;
    color: #212529;
    text-align: left;
}

.u2-underline {
    display: inline-block;
    padding: 1px 0;
    border-bottom: 3px solid #e74c3c;
}

.u2-checklist {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 380px;
    text-align: left;
}

.u2-checklist li {
    display: flex;
    flex-direction: column;
    padding: .6rem .85rem .6rem 2.5rem;
    position: relative;
    background: #fff;
    border: 1px solid #e6e9ec;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(33, 37, 41, .05);
    line-height: 1.3;
}

.u2-checklist li b {
    color: #212529;
    font-weight: 700;
    font-size: .98rem;
}

.u2-checklist li > span {
    color: #777;
    font-size: .82rem;
    margin-top: .1rem;
}

.u2-checklist li::before {
    content: "\2713";
    position: absolute;
    left: .7rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

.u2-eyebrow::before {
    content: "\2713";
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .05rem;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
}

.u2-eyebrow::before {
    content: none;
}

/* ---------- Formular-Spalte ---------- */

.u2-fold-form {
    margin-top: 1.1rem;
}

.u2-fold-form #bokFormOuter {
    margin-top: 0;
}

/* ---------- Partner-Logo-Leiste (statt ProvenExpert-Trust) ---------- */
.u2-partners {
    margin-top: .5rem;
}

.u2-partners-label {
    display: block;
    margin-bottom: 1rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9aa0a8;
}

.u2-partners-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.4rem 1.8rem;
    max-width: 760px;
    margin: 0 auto;
}

.u2-partners-row img {
    display: block;
    max-height: 30px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .65;
    transition: filter .2s ease, opacity .2s ease;
}

.u2-partners-row picture {
    display: inline-flex;
    align-items: center;
}

.u2-partners-row img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ---------- Vorteile + Ablauf in 3 Schritten (section2) ---------- */

.u2-benefits {
    padding: 0 1.25rem;
    text-align: center;
}

/* Bootstrap macht .container zu display:flex – hier normalen Blockfluss erzwingen,
   sonst sprengen Flex-Kinder (u.a. das Vorteile-Grid) die Breite. */
.u2-benefits .container {
    display: block;
    width: 100%;
    max-width: 960px;
    padding: 0;
    margin: 0 auto;
}

.u2-benefits-intro {
    font-size: .95rem;
    line-height: 1.6;
    max-width: 540px;
    margin: 2.25rem auto 0;
    padding: 1rem 1.25rem;
    color: rgba(0, 0, 0, .7);
    background: #f0efe9;
    border-radius: 10px;
    border-left: 5px solid #e74c3c;
    text-align: left;
}

.u2-h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: normal;
    font-size: clamp(1.65rem, 5.5vw, 2.3rem) !important;
    line-height: 1.2;
    margin: 2.75rem auto 1.5rem;
    color: #212529;
}

.u2-benefit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
    list-style: none;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
}

.u2-benefit-grid li {
    position: relative;
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    padding: .9rem 1rem .9rem 1.1rem;
    text-align: left;
    font-size: .94rem;
    line-height: 1.4;
    color: #4a4f55;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(33, 37, 41, .04);
    overflow: hidden;
    overflow-wrap: anywhere;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* roter Akzentstreifen links */
.u2-benefit-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #e74c3c, #c0392b);
    opacity: 0;
    transition: opacity .18s ease;
}

/* Icon-Chip mit Häkchen */
.u2-benefit-grid li .u2-bi {
    flex: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 10px rgba(231, 76, 60, .28);
}

.u2-benefit-grid li .u2-bi::before {
    content: "\2713";
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1;
}

.u2-benefit-grid li .u2-bt {
    min-width: 0;
}

.u2-benefit-grid li .u2-bt span {
    color: #212529;
    font-weight: 700;
}

/* Zusatztext (nur Desktop) in normaler Schrift/Farbe */
.u2-benefit-grid li .u2-bt .u2-bt-full {
    color: inherit;
    font-weight: inherit;
}

.u2-step-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    list-style: none;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.u2-step-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}

.u2-step-list li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 2.5rem;
    bottom: -1.2rem;
    width: 2px;
    background: rgba(231, 76, 60, .2);
}

.u2-step-nr {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.u2-step-list b {
    display: block;
    font-size: 1.05rem;
    color: #212529;
}

.u2-step-list p {
    margin: .2rem 0 0;
    font-size: .92rem;
    line-height: 1.5;
    color: #666;
}

.u2-cta-block {
    margin: 2.25rem 0 .75rem;
}

/* ---------- Sticky CTA-Bar (nur Mobile) ---------- */

.u2-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 -4px 18px rgba(46, 61, 73, .18);
    transform: translateY(110%);
    transition: transform .25s ease;
}

.u2-sticky-cta.u2-visible {
    transform: translateY(0);
}

.u2-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    max-width: 560px;
    margin: 0 auto;
}

.u2-sticky-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    font-size: .8rem;
    color: #555;
    text-align: left;
    min-width: 0;
}

.u2-sticky-txt b {
    font-size: .95rem;
    color: #212529;
    white-space: nowrap;
}

.u2-sticky-cta .u2-btn {
    flex: none;
    width: auto;
    min-height: 46px;
    padding: .55rem 1.2rem;
    font-size: .95rem;
}

/* ---------- Mobile-Feinschliff (auch für geteilte Sektionen 3-5) ---------- */

@media screen and (max-width: 768px) {

    /* Eyebrow-Badge nur auf Desktop */
    .u2-eyebrow {
        display: none;
    }

    nav.navbar {
        padding: .5rem 1rem;
    }

    /* Zitat-Sektion (section3) */
    .ts-CTA {
        margin-top: 3rem;
    }

    .testimonial {
        padding: 0 1.25rem;
    }

    .testimonial .testimonial-txt .braket {
        left: -8px;
    }

    /* Ablauf (section4): kompakter, Deko-Hexagone ausblenden */
    #ablauf .container {
        margin-top: 2.5rem !important;
    }

    #ablauf h2 {
        font-size: 1.9rem !important;
        line-height: 1.25;
    }

    #ablauf h3 {
        font-size: .95rem;
        line-height: 1.6;
        color: #666;
    }

    #ablauf .hexOuter {
        display: none;
    }

    /* CTA-Buttons der geteilten Sektionen: keine starre 330px-Breite (bok.css) */
    a.btn.btn-red-ts {
        width: auto !important;
        max-width: calc(100% - 2rem) !important;
        margin: 0 auto;
    }

    /* Platz für die Sticky-Bar am Seitenende */
    footer.container-fluid {
        padding-bottom: 110px;
    }

    /* Checkliste (section1) auf dem Handy: eine Card mit 3 einzeiligen Bullets */
    .u2-checklist {
        gap: 0;
        padding: .5rem .25rem;
        background: #fff;
        border: 1px solid #e6e9ec;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(33, 37, 41, .05);
    }

    /* einzelne li sind keine eigenen Cards mehr */
    .u2-checklist li {
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: .5rem .85rem .5rem 2.5rem;
    }

    /* dezenter Trenner zwischen den Bullets */
    .u2-checklist li:not(:last-child) {
        border-bottom: 1px solid #f0f1f3;
    }

    /* Zusatztext ausblenden, Titel einzeilig */
    .u2-checklist li > span {
        display: none;
    }

    .u2-checklist li b {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Vorteile-Liste auf dem Handy einzeilig halten:
       Zusatztext ausblenden + Umbruch verhindern */
    .u2-benefit-grid li {
        padding-top: .75rem;
        padding-bottom: .75rem;
        font-size: .9rem;
    }

    .u2-benefit-grid li .u2-bt {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .u2-benefit-grid li .u2-bt .u2-bt-full {
        display: none;
    }
}

/* ---------- Desktop ---------- */

@media screen and (min-width: 769px) {

    .u2-sticky-cta {
        display: none;
    }

    /* Above-the-fold: Intro links, Formular rechts */
    .u2-fold {
        padding: 5rem 1.5rem 3rem;
    }

    .u2-fold-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(440px, 1fr);
        align-items: start;
        gap: 2.5rem;
    }

    .u2-fold-intro {
        align-self: center;
    }

    .u2-hero-intro {
        text-align: left;
        margin: 0;
    }

    h1.u2-heading {
        font-size: clamp(1.9rem, 2.5vw, 2.6rem) !important;
        margin-bottom: 1.4rem;
    }

    .u2-checklist {
        max-width: 440px;
        gap: .65rem;
        margin: 0;
    }

    .u2-checklist li b {
        font-size: 1.02rem;
    }

    .u2-checklist li > span {
        font-size: .86rem;
    }

    .u2-fold-form {
        margin-top: 0;
        min-width: 0;
    }

    /* Fixe Breite des Formulars im Grid aufheben -> Spalte füllen */
    .u2-fold-form #bokFormOuter {
        width: 100% !important;
        max-width: 560px;
        margin-bottom: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .u2-benefit-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: 920px;
        gap: 1rem;
    }

    .u2-benefit-grid li {
        padding: 1.15rem 1.3rem 1.15rem 1.4rem;
        font-size: 1rem;
    }

    .u2-benefit-grid li:hover {
        transform: translateY(-3px);
        border-color: #e0e0e0;
        box-shadow: 0 10px 24px rgba(33, 37, 41, .1);
    }

    .u2-benefit-grid li:hover::before {
        opacity: 1;
    }

    .u2-step-list {
        flex-direction: row;
        align-items: flex-start;
        max-width: 920px;
        gap: 1.5rem;
    }

    .u2-step-list li {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: .75rem;
    }

    .u2-step-list li:not(:last-child)::before {
        content: none;
    }

    .u2-benefits-intro {
        font-size: 1rem;
        margin-top: 2.75rem;
    }

    .u2-btn {
        width: auto;
    }
}
.navbar {
    display: none;
}

.h1class svg {
    display: none !important;
}

#kreditDaten > .h1class {
    display: none;
}

#bokFormOuter {
    padding: 0px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

#bokForm {
    border-radius: 8px !important;
    border: 1px solid #d4d4d4;
    box-shadow: none !important;

}

/* ---------- CTA-Button im Form auf roten Tesla-Look (Override bokForm-Gold) ---------- */
#bokFormOuter #bokForm fieldset .bokFormButton {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 50rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    padding: 1rem 1.6rem !important;
    box-shadow: 0 10px 24px rgba(231, 76, 60, .38) !important;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

#bokFormOuter #bokForm fieldset .bokFormButton:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(231, 76, 60, .48) !important;
}

#bokFormOuter #bokForm fieldset .bokFormButton:active {
    transform: translateY(0);
}

/* "zurück" als dezenter Sekundär-Button (kein roter CTA) – inkl. Touch-Zustände */
#bokFormOuter #bokForm fieldset .prevFieldSetButton.bokFormButton,
#bokFormOuter #bokForm fieldset .prevFieldSetButton.bokFormButton:active,
#bokFormOuter #bokForm fieldset .prevFieldSetButton.bokFormButton:focus {
    background: #f1f2f4 !important;
    color: #6b7178 !important;
    border: 1px solid #e3e6ea !important;
    box-shadow: none !important;
    filter: none !important;
    font-weight: 600 !important;
    -webkit-tap-highlight-color: transparent;
}

#bokFormOuter #bokForm fieldset .prevFieldSetButton.bokFormButton:hover {
    background: #e9ebee !important;
    color: #16191d !important;
    transform: none;
    box-shadow: none !important;
    filter: none;
}

/* der weiße Zurück-Pfeil wäre auf dem hellen Button unsichtbar -> grau einfärben */
#bokFormOuter #bokForm .prevFieldSetButton.bokFormButton::before {
    filter: brightness(0) saturate(0) invert(46%);
}

/* deaktivierter weiter-Button: ausgegraut, kein Glow */
#bokFormOuter #bokForm fieldset .bokFormButton.disabledBtn {
    background: #e3e6ea !important;
    color: #9aa0a8 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* ====================================================================
   Weitere Formseiten: Radios, Inputs, Typo im Tesla/Apple-Stil
   (Overrides der geteilten bokForm.min.css – gilt auch für dynamisch
   nachgeladene Felder, da typbasiert)
   ==================================================================== */

/* ---------- Radio-Optionen als Karten ---------- */
#bokForm fieldset .radioArea label {
    border: 1px solid #e3e6ea !important;
    border-radius: 14px !important;
    background: #fff !important;
    font-weight: 600 !important;
    color: #16191d !important;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease !important;
}

#bokForm fieldset .radioArea label:hover {
    border-color: #cfd4da !important;
    background: #fafbfc !important;
}

/* Fokus/Aktiv: roter Ring statt goldenem Outline */
#bokForm fieldset .radioArea label:focus,
#bokForm fieldset .radioArea label:active {
    border: 1px solid #e74c3c !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, .14) !important;
}

/* gewählte Option */
#bokForm .selected-radio,
#bokForm fieldset .radioArea label.selected-radio {
    border: 2px solid #e74c3c !important;
    background: rgba(231, 76, 60, .06) !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, .12) !important;
}

/* der gefüllte Radio-Punkt in Rot statt Gold */
#bokForm fieldset .radioArea input[type=radio]:checked::before {
    background: linear-gradient(142deg, #e74c3c, #c0392b) !important;
}

#bokForm fieldset .radioArea input[type=radio]::after {
    border-color: #b9bfc6 !important;
}

/* ---------- Text-/Tel-/E-Mail-Eingabefelder ---------- */
#bokForm fieldset input[type=text],
#bokForm fieldset input[type=tel],
#bokForm fieldset input[type=email],
#bokForm fieldset input[type=number],
#bokForm fieldset input[type=date],
#bokForm fieldset textarea {
    border: 1px solid #e3e6ea !important;
    border-radius: 14px !important;
    background: #fff !important;
    padding: .85rem 1.1rem !important;
    font-size: 1rem !important;
    color: #16191d !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}

#bokForm fieldset input[type=text]:hover,
#bokForm fieldset input[type=tel]:hover,
#bokForm fieldset input[type=email]:hover,
#bokForm fieldset input[type=number]:hover,
#bokForm fieldset input[type=date]:hover,
#bokForm fieldset textarea:hover {
    border-color: #cfd4da !important;
}

#bokForm fieldset input[type=text]:focus,
#bokForm fieldset input[type=tel]:focus,
#bokForm fieldset input[type=email]:focus,
#bokForm fieldset input[type=number]:focus,
#bokForm fieldset input[type=date]:focus,
#bokForm fieldset textarea:focus {
    border-color: #e74c3c !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, .14) !important;
}

#bokForm .selected-inputField {
    border: 2px solid #e74c3c !important;
    background: rgba(231, 76, 60, .04) !important;
}

/* ---------- Typografie: Überschriften / Legends / Texte ---------- */
#bokForm fieldset h1 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #16191d !important;
}

#bokForm fieldset h1 svg {
    outline-color: #e74c3c !important;
    stroke: #e74c3c !important;
}

#bokForm fieldset legend {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #16191d !important;
}

#bokForm fieldset .subLine {
    color: #8a9099 !important;
}

#bokForm fieldset .introTxtFieldset {
    color: #4a4f55 !important;
    line-height: 1.55 !important;
}

/* SCHUFA-Badge an Markenfarbe angleichen */
#bokForm .badgeTr {
    border-color: #e74c3c !important;
}

#bokForm .badgeTr p:first-of-type {
    background: #e74c3c !important;
}