/* =======================================================================
   HSBK | Beratungsformular
   Version 4 – 98 % der verfügbaren iframe-Breite
   ======================================================================= */

/* 01. Grundlayout ------------------------------------------------------- */
:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #24344a;
    background: #ffffff;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }

/* Die gesamte Formularansicht nutzt 98 % der iframe-Breite. */
.shell {
    width: 98%;
    max-width: none;
    margin: 0 auto;
    padding: 35px 0 30px;
}

/* 02. Einleitung -------------------------------------------------------- */
.intro { margin-bottom: 26px; }

.eyebrow,
.step {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #34628d;
}

h1 {
    margin: 7px 0 12px;
    font-size: clamp(30px, 4.8vw, 44px);
    font-weight: 780;
    letter-spacing: -.04em;
    line-height: 1.14;
    color: #103f70;
}

.dot { color: #e5a62c; }

.lead {
    max-width: 660px;
    margin: 0;
    color: #53677b;
    font-size: 16px;
    line-height: 1.65;
}

/* 03. Formular-Karte ---------------------------------------------------- */
.panel {
    width: 100%;
    background: #fff;
    border: 1px solid #e1e8f0;
    border-radius: 16px;
    box-shadow: 0 13px 44px rgba(22, 51, 86, .065);
    overflow: hidden;
    padding: 34px 38px 36px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.panel-heading h2 {
    margin: 7px 0;
    font-size: 24px;
    letter-spacing: -.025em;
    color: #173d66;
}

.panel-heading p {
    margin: 0;
    color: #68798b;
    font-size: 14px;
}

.clock-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    background: #eef5fb;
    color: #174b7b;
    border-radius: 14px;
    font-size: 23px;
}

/* 04. Eingabefelder ----------------------------------------------------- */
.two-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.field { margin-bottom: 24px; }

.field label span,
fieldset legend span,
.footer-row b,
.consent em { color: #ba4b36; }

input:not([type="checkbox"]),
textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1px solid #cdd9e5;
    background: #fff;
    border-radius: 9px;
    color: #253a50;
    font: inherit;
    font-size: 15px;
    padding: 13px 14px;
    outline: 0;
    transition: border-color .15s, box-shadow .15s;
}

input:focus,
textarea:focus {
    border-color: #2d699a;
    box-shadow: 0 0 0 3px #dcebf7;
}

input::placeholder,
textarea::placeholder { color: #9aa7b3; }

textarea {
    resize: vertical;
    min-height: 115px;
}

.hint {
    margin: 6px 0 13px;
    color: #75859a;
    font-size: 12px;
    line-height: 1.45;
}

/* 05. Beratungszeiten --------------------------------------------------- */
fieldset {
    border: 0;
    padding: 0;
    margin: 1px 0 22px;
}

.times legend { margin-bottom: 0; }

.time-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 11px;
}

.time-option {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 55px;
    padding: 12px 14px;
    border: 1px solid #d5e0eb;
    border-radius: 10px;
    color: #304a64;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.time-option:hover { background: #f6f9fd; }

.time-option:has(input:checked) {
    border-color: #29638f;
    background: #eff6fc;
    color: #124c7d;
    font-weight: 650;
}

.time-option input {
    width: 18px;
    height: 18px;
    accent-color: #1b5b8c;
    margin: 0;
    flex: none;
}

.tick { display: none; }

/* 06. Datenschutz ------------------------------------------------------- */
.privacy {
    margin-bottom: 22px;
    padding: 20px;
    background: #f5f8fc;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.consent input {
    width: 18px;
    height: 18px;
    flex: none;
    margin: 2px 0 0;
    accent-color: #1b5b8c;
}

.consent a,
footer a {
    color: #185a92;
    text-underline-offset: 3px;
}

/* 07. Absenden ---------------------------------------------------------- */
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.footer-row > span {
    color: #75849a;
    font-size: 12px;
}

button {
    border: 0;
    padding: 15px 22px;
    border-radius: 9px;
    background: #144d7c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

button:hover {
    background: #0b355c;
    transform: translateY(-1px);
}

button span { margin-left: 12px; }

/* 08. Hinweise und Fußzeile -------------------------------------------- */
.notice {
    max-width: 770px;
    margin: 19px auto;
    color: #647589;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

footer {
    padding: 22px 0;
    color: #7b8b9b;
    font-size: 12px;
    text-align: center;
}

footer strong { font-weight: 650; }

/* 09. Fehlermeldungen --------------------------------------------------- */
.errors {
    margin-bottom: 25px;
    padding: 16px 20px;
    border: 1px solid #efc3c0;
    border-radius: 9px;
    background: #fff4f2;
    color: #923f34;
    font-size: 14px;
}

.errors ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

/* 10. Dankeseite nach dem Versand -------------------------------------- */
.success {
    padding: 60px 32px;
    text-align: center;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: auto;
    border-radius: 50%;
    background: #e7f6ef;
    color: #148159;
    font-size: 32px;
}

.success h2 {
    color: #143e68;
    font-size: 26px;
}

.success p {
    max-width: 610px;
    margin: 15px auto;
    color: #50667d;
    line-height: 1.7;
}

.success .reset-link {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 21px;
    border-radius: 9px;
    background: #144d7c;
    color: #fff;
    font-weight: 650;
    text-decoration: none;
    transition: background .15s;
}

.success .reset-link:hover { background: #0b355c; }
.success .reset-link span { margin-left: 12px; }

/* 11. Unsichtbarer Spam-Schutz ----------------------------------------- */
.trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* 12. Smartphones und schmale iframe-Breiten --------------------------- */
@media (max-width: 650px) {
    .shell {
        width: 98%;
        padding: 23px 0;
    }

    .intro { padding: 0 4px; }

    .panel {
        padding: 23px 18px;
        border-radius: 12px;
    }

    .two-cols,
    .time-grid { grid-template-columns: minmax(0, 1fr); }

    .panel-heading { margin-bottom: 25px; }
    .clock-icon { display: none; }

    .footer-row {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-row button { width: 100%; }
    .success { padding: 36px 18px; }
}
