/* =====================================================================
   Herten - neues Layout (verbraucher2/kontakt_her.jsp)
   Aktiv nur, wenn die Seite request.setAttribute("ADMS_LAYOUT","kontaktformular")
   setzt; content_pre.jsp bindet dann diese Datei ein und setzt body.her-page.

   Mandantenfarben: die Variablen unten im Mandanten-CSS (Parameter CSSFILE)
   oder im Parameter CSS2 ueberschreiben, z.B.
     .her-page { --her-primary:#004a7c; --her-accent:#e30613; }
   ===================================================================== */

.her-page {
    --her-primary:      #0b2d87;   /* Ueberschriften, Labels, Icons, Rahmen-Button */
    --her-primary-dark: #071f60;   /* Hover Rahmen-Button */
    --her-accent:       #ff5a00;   /* Absenden-Button, Linie im Kopf */
    --her-accent-dark:  #e04e00;   /* Hover Absenden */
    --her-accent-text:  #ffffff;
    --her-text:         #1b1f2e;
    --her-muted:        #6b7290;   /* Platzhalter */
    --her-border:       #c4cadf;   /* Eingabefelder */
    --her-line:         #dfe3ef;   /* Trennlinie Sicherheitscode */
    --her-soft:         #eef1f8;   /* Icon-Kreise, Infobox */
    --her-error:        #c62828;
    --her-error-bg:     #fdeeee;
    --her-success:      #1e7d3a;
    --her-success-bg:   #e9f6ed;
    --her-radius:       4px;
    --her-font:         inherit;   /* Mandantenschrift aus adms.css / CSSFILE */
}

/* ---------- Kopfbereich ---------- */
.her-page .her-header {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    margin-top: 16px;
}
.her-page .her-header-line {
    flex: 1 1 auto;
    height: 2px;
    background: var(--her-accent);
    margin-bottom: 4px;
}
.her-page .her-header-logo {
    flex: 0 0 auto;
    text-align: right;
}
.her-page .her-header-logo img {
    display: block;
    max-height: 90px;
    max-width: 300px;
    width: auto;
    height: auto;
    margin-left: auto;
}
.her-page .her-header-logo .headline {
    display: block;
    margin-top: 6px;
    color: var(--her-primary);
    font-size: 17px;
    line-height: 1.3;
}

/* ---------- Ueberschrift, Meldungen, Einleitung ---------- */
.her-page .her-h1 {
    font-family: var(--her-font);
    color: var(--her-primary);
    font-size: 44px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 44px 0 20px;
    text-transform: none;
}
.her-page p.error,
.her-page p.resulttext {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-left: 4px solid;
    border-radius: var(--her-radius);
    font-size: 16px;
    line-height: 1.5;
}
.her-page p.error {
    color: var(--her-error);
    background: var(--her-error-bg);
    border-color: var(--her-error);
}
.her-page p.resulttext {
    color: var(--her-success);
    background: var(--her-success-bg);
    border-color: var(--her-success);
}
.her-page .her-wrap {
    font-family: var(--her-font);
    color: var(--her-text);
}
.her-page .her-intro {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 36px;
}

/* ---------- Icons (SVG als Maske -> Farbe per CSS-Variable) ---------- */
.her-page .her-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    background-color: var(--her-primary);
    -webkit-mask: var(--her-icon) center / contain no-repeat;
            mask: var(--her-icon) center / contain no-repeat;
}
.her-icon-id       { --her-icon: url(../img/her/icon-id.svg); }
.her-icon-user     { --her-icon: url(../img/her/icon-user.svg); }
.her-icon-home     { --her-icon: url(../img/her/icon-home.svg); }
.her-icon-mail     { --her-icon: url(../img/her/icon-mail.svg); }
.her-icon-pin      { --her-icon: url(../img/her/icon-pin.svg); }
.her-icon-at       { --her-icon: url(../img/her/icon-at.svg); }
.her-icon-phone    { --her-icon: url(../img/her/icon-phone.svg); }
.her-icon-meter    { --her-icon: url(../img/her/icon-meter.svg); }
.her-icon-gauge    { --her-icon: url(../img/her/icon-gauge.svg); }
.her-icon-calendar { --her-icon: url(../img/her/icon-calendar.svg); }
.her-icon-comment  { --her-icon: url(../img/her/icon-comment.svg); }
.her-icon-lock     { --her-icon: url(../img/her/icon-lock.svg); }
.her-icon-info     { --her-icon: url(../img/her/icon-info.svg); }
.her-icon-refresh  { --her-icon: url(../img/her/icon-refresh.svg); }
.her-icon-chevron  { --her-icon: url(../img/her/icon-chevron.svg); }

.her-page .her-field-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--her-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Feldraster ---------- */
.her-page .her-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 32px;
}
.her-page .her-field {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    min-width: 0;
}
.her-page .her-field-body {
    flex: 1 1 auto;
    min-width: 0;
}
.her-page .her-form label {
    display: block;
    margin: 4px 0 14px;
    color: var(--her-primary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.her-page .her-req {
    color: var(--her-primary);
    margin-left: 2px;
}

/* Eingabefelder: RequestValue.toInput() vergibt class="tinput" bzw. "tinputerror" */
.her-page .her-form input.tinput,
.her-page .her-form input.tinputerror,
.her-page .her-form textarea.tinput,
.her-page .her-form textarea.tinputerror {
    display: block;
    width: 100%;
    max-width: none;
    height: 60px;
    margin: 0;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid var(--her-border);
    border-radius: var(--her-radius);
    background: #fff;
    color: var(--her-text);
    font-family: var(--her-font);
    font-size: 16px;
    line-height: normal;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
            appearance: none;
}
.her-page .her-form textarea.tinput,
.her-page .her-form textarea.tinputerror {
    height: 116px;
    min-height: 116px;
    padding: 16px 18px;
    resize: vertical;
    line-height: 1.5;
}
.her-page .her-form input.tinput::placeholder,
.her-page .her-form textarea.tinput::placeholder,
.her-page .her-form input.tinputerror::placeholder,
.her-page .her-form textarea.tinputerror::placeholder {
    color: var(--her-muted);
    opacity: 1;
}
.her-page .her-form input.tinput:focus,
.her-page .her-form textarea.tinput:focus,
.her-page .her-form input.tinputerror:focus,
.her-page .her-form textarea.tinputerror:focus {
    outline: none;
    border-color: var(--her-primary);
    box-shadow: 0 0 0 3px rgba(11, 45, 135, .15);
}
.her-page .her-form input.tinputerror,
.her-page .her-form textarea.tinputerror {
    border-color: var(--her-error);
    background: var(--her-error-bg);
}

/* Datumsfeld mit Kalender-Icon rechts */
.her-page .her-input-date {
    position: relative;
}
.her-page .her-input-date input {
    padding-right: 52px !important;
}
.her-page .her-input-date > .her-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    pointer-events: none;
    opacity: .75;
}

/* ---------- Sicherheitscode ---------- */
.her-page .her-captcha {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--her-line);
}
.her-page .her-captcha-label {
    display: flex;
    align-items: center;
    gap: 22px;
}
.her-page .her-captcha-label label {
    margin: 0;
}
.her-page .her-captcha-image {
    line-height: 0;   /* Rahmen kommt vom Captcha-Bild selbst (addBorder) */
}
.her-page .her-captcha-image img {
    display: block;
    max-width: 100%;
    height: auto;
}
.her-page .her-linkbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    border: 0;
    background: none;
    color: var(--her-primary);
    font-family: var(--her-font);
    font-size: 15px;
    cursor: pointer;
}
.her-page .her-linkbtn .her-icon {
    width: 20px;
    height: 20px;
}
.her-page .her-linkbtn:hover,
.her-page .her-linkbtn:focus-visible {
    text-decoration: underline;
}
.her-page .her-captcha-input {
    flex: 1 1 220px;
    max-width: 260px;
    margin-left: auto;
}

/* ---------- Datenschutz-Hinweis ---------- */
.her-page .her-info {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    margin-top: 40px;
    padding: 24px 28px;
    border-radius: var(--her-radius);
    background: var(--her-soft);
    font-size: 15px;
    line-height: 1.75;
}
.her-page .her-info-icon .her-icon {
    width: 58px;
    height: 58px;
}
.her-page .her-info p {
    margin: 0;
}
.her-page .her-info p.her-info-title {
    margin-bottom: 4px;
    color: var(--her-primary);
    font-size: 18px;
    font-weight: 600;
}
.her-page .her-info a {
    color: var(--her-primary);
    font-weight: 600;
    text-decoration: none;
}
.her-page .her-info a:hover {
    text-decoration: underline;
}

/* ---------- Buttons ---------- */
.her-page .her-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: 24px;
}
.her-page .her-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 56px;
    margin: 0;
    padding: 0 28px;
    box-sizing: border-box;
    border-radius: var(--her-radius);
    font-family: var(--her-font);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.her-page .her-btn-primary {
    position: relative;
    min-width: 268px;
    border: 0;
    background: var(--her-accent);
    color: var(--her-accent-text);
    padding: 0 60px;
}
.her-page .her-btn-primary .her-icon {
    position: absolute;
    top: 50%;
    right: 22px;
    margin-top: -12px;
    background-color: var(--her-accent-text);
}
.her-page .her-btn-primary:hover {
    background: var(--her-accent-dark);
}
.her-page .her-btn-secondary,
.her-page a.her-btn-secondary:link,
.her-page a.her-btn-secondary:visited {
    border: 1.5px solid var(--her-primary);
    background: #fff;
    color: var(--her-primary);
}
.her-page a.her-btn-secondary:hover,
.her-page a.her-btn-secondary:focus {
    background: var(--her-primary);
    color: #fff;
    text-decoration: none;
}
.her-page .her-btn:focus-visible,
.her-page .her-linkbtn:focus-visible {
    outline: 3px solid rgba(11, 45, 135, .35);
    outline-offset: 2px;
}

/* Unsichtbarer Standard-Submit (Enter-Taste), technisch notwendig */
.her-page .her-default-submit {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    border: 0;
    padding: 0;
}

/* =====================================================================
   Responsiv: unter 768px (UIkit 2 "small") einspaltig
   ===================================================================== */
@media (max-width: 959px) {
    .her-page .her-grid { gap: 26px 24px; }
    .her-page .her-field { gap: 16px; }
    .her-page .her-captcha-input { margin-left: 0; max-width: none; }
}

@media (max-width: 767px) {
    .her-page .her-header { gap: 16px; }
    .her-page .her-header-logo img { max-height: 60px; max-width: 200px; }
    .her-page .her-header-logo .headline { font-size: 14px; }

    .her-page .her-h1 { font-size: 32px; margin: 28px 0 14px; }
    .her-page .her-intro { font-size: 15px; line-height: 1.7; margin-bottom: 28px; }

    .her-page .her-grid { grid-template-columns: 1fr; gap: 22px; }
    .her-page .her-field-icon { flex-basis: 40px; width: 40px; height: 40px; }
    .her-page .her-field-icon .her-icon { width: 21px; height: 21px; }
    .her-page .her-form label { font-size: 16px; margin: 9px 0 10px; }
    .her-page .her-form input.tinput,
    .her-page .her-form input.tinputerror { height: 52px; }

    .her-page .her-captcha { gap: 16px; }
    .her-page .her-captcha-label { flex: 1 1 100%; gap: 16px; }
    .her-page .her-captcha-input { flex: 1 1 100%; }

    .her-page .her-info { gap: 16px; padding: 20px 18px; }
    .her-page .her-info-icon .her-icon { width: 36px; height: 36px; }

    .her-page .her-actions { flex-direction: column; }
    .her-page .her-btn,
    .her-page .her-btn-primary { width: 100%; min-width: 0; }
}

/* =====================================================================
   Login-Seite (verbraucher2/login.jsp, nur Portal SALID2=HER)
   ===================================================================== */
.her-icon-help { --her-icon: url(../img/her/icon-help.svg); }

.her-page .her-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 24px 0 48px;
}
.her-page .her-hero-illu {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--her-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.her-page .her-hero-illu img {
    width: 140px;
    height: auto;
    display: block;
}
.her-page .her-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}
.her-page .her-hero .her-h1 {
    margin: 0 0 18px;
    font-size: 48px;
}
.her-page .her-login .her-intro {
    margin: 0;
    font-size: 18px;
    line-height: 1.85;
}

/* Schritte 1 / 2 */
.her-page .her-step {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 28px 0 32px 24px;
}
.her-page .her-step + .her-step {
    border-top: 1px solid var(--her-line);
}
.her-page .her-step-no {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--her-primary);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 66px;
    text-align: center;
}
.her-page .her-step-body {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 740px;
}
.her-page .her-login-form .her-step-title {
    display: block;
    margin: 12px 0 18px;
    color: var(--her-primary);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}
.her-page .her-step-text {
    margin: 0 0 26px;
    font-size: 18px;
    line-height: 1.7;
}
.her-page .her-step-text strong,
.her-page .her-step-text b {
    color: var(--her-primary);
    font-weight: 600;
}
.her-page .her-login-form input.her-input {
    display: block;
    width: 100%;
    height: 68px;
    margin: 0;
    padding: 0 26px;
    box-sizing: border-box;
    border: 1px solid var(--her-border);
    border-radius: var(--her-radius);
    background: #fff;
    color: var(--her-text);
    font-family: var(--her-font);
    font-size: 19px;
    box-shadow: none;
    -webkit-appearance: none;
            appearance: none;
}
.her-page .her-login-form input.her-input::placeholder {
    color: var(--her-muted);
    opacity: 1;
}
.her-page .her-login-form input.her-input:focus {
    outline: none;
    border-color: var(--her-primary);
    box-shadow: 0 0 0 3px rgba(11, 45, 135, .15);
}
.her-page .her-login-actions {
    display: flex;
    justify-content: center;
    max-width: 740px;
    margin: 0 0 0 130px;   /* 24px + 66px + 40px = Einzug der Schritte */
}
.her-page .her-login-actions .her-btn-primary {
    width: 100%;
    max-width: 540px;
    min-height: 64px;
    font-size: 22px;
}

/* Hilfe-Box */
.her-page .her-help {
    margin-top: 28px;
    align-items: center;
    font-size: 17px;
}
.her-page .her-help .her-info-icon .her-icon {
    width: 82px;
    height: 82px;
}
.her-page .her-help p.her-info-title {
    font-size: 24px;
    margin-bottom: 6px;
}
.her-page .her-help a {
    text-decoration: underline;
}

@media (max-width: 959px) {
    .her-page .her-hero .her-h1 { font-size: 38px; }
    .her-page .her-step { gap: 24px; padding-left: 0; }
    .her-page .her-login-actions { margin-left: 90px; }
}

@media (max-width: 767px) {
    .her-page .her-hero { flex-direction: column; align-items: flex-start; gap: 20px; margin: 16px 0 24px; }
    .her-page .her-hero-illu { flex-basis: auto; width: 104px; height: 104px; }
    .her-page .her-hero-illu img { width: 72px; }
    .her-page .her-hero .her-h1 { font-size: 30px; margin-bottom: 12px; }
    .her-page .her-login .her-intro { font-size: 16px; line-height: 1.7; }

    .her-page .her-step { gap: 16px; padding: 22px 0 24px; }
    .her-page .her-step-no { flex-basis: 44px; width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
    .her-page .her-login-form .her-step-title { font-size: 22px; margin: 7px 0 10px; }
    .her-page .her-step-text { font-size: 16px; margin-bottom: 16px; }
    .her-page .her-login-form input.her-input { height: 56px; font-size: 17px; padding: 0 18px; }

    .her-page .her-login-actions { margin-left: 0; }
    .her-page .her-login-actions .her-btn-primary { max-width: none; font-size: 19px; }

    .her-page .her-help { align-items: flex-start; font-size: 15px; }
    .her-page .her-help .her-info-icon .her-icon { width: 40px; height: 40px; }
    .her-page .her-help p.her-info-title { font-size: 19px; }
}
