@charset "UTF-8";
/* =====================================================================
   Login and administrator login in the style "Aufwändig"
   (Views/Login, Views/AdminLogin). Origin: Claude/Design/css/login-aufwaendig.css.
   Light, almost opaque card on a neutral background. The administrator
   can replace the background with an image or a color in the Style tab
   (setBackground() sets both on #bgImage).
   Accent color: Pintexx red #C5014B
   ===================================================================== */

:root {
    --red: #C5014B;
    --red-dark: #9C003B;
    --pink: #E8457C;
    /* the same colors as RGB for semi-transparent tones; the accent color from the Style tab
       overrides all four values (Global.GetAccentCss) */
    --red-rgb: 197, 1, 75;
    --pink-rgb: 232, 69, 124;
    --peach: #FFB48C;

    --grad: linear-gradient(135deg, var(--red) 0%, var(--pink) 100%);
    --glow: 0 8px 24px -6px rgba(var(--red-rgb), .45);

    --ink: #1D1A22;
    --ink-2: #5B5664;
    --ink-3: #948E9C;
    --line: rgba(60, 40, 70, .09);
    --line-strong: rgba(60, 40, 70, .16);

    --glass: rgba(255, 255, 255, .93); /* almost opaque: the card stays light on any background */
    --glass-edge: rgba(255, 255, 255, .9);
    --blur: blur(22px) saturate(1.6);

    --ok: #17915A;

    --r-xl: 26px;
    --r: 12px;
    --r-sm: 9px;
    --shadow-lg: 0 40px 100px -30px rgba(80, 20, 60, .38), 0 12px 30px -18px rgba(80, 20, 60, .25);

    --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { min-height: 100%; }

body.login {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 13px;
    color: var(--ink);
    background: #EFEBED;
    overflow-x: hidden;
}

/* Top and bottom bar as in the rest of Template-10 (body_hintergrund.png) */
body.login::before,
body.login::after {
    content: "";
    position: fixed; left: 0; right: 0;
    background: url(../images/body_hintergrund.png) repeat-x 0 0 / auto 739px;
    z-index: 5;
}
body.login::before { top: 0; height: 10px; }
body.login::after { bottom: 0; height: 7px; }

/* ---------- Background ----------
   Neutral, because the background image or background color from the Style tab appears here. */
#bgImage {
    position: fixed; inset: 0;
    z-index: 0;
    background-color: #EFEBED; /* default: light grey with a hint of rose */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ---------- Header and footer ---------- */
.login-top {
    position: relative;
    z-index: 3;
    display: flex; justify-content: flex-end;
    padding: 24px 28px 0;
}
/* Footer as a glass strip so it stays readable on any background image */
.login-foot {
    position: relative;
    z-index: 1;
    align-self: center;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
    max-width: calc(100% - 32px);
    margin: 12px 16px 21px; /* 7 px unterer Balken */
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: inset 0 0 0 1px var(--glass-edge);
    font-size: 12px;
    color: var(--ink-3);
}

.link {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
    transition: background-size .3s var(--ease), color .2s;
}
.link:hover { background-size: 100% 1.5px; }

/* ---------- Language menu ---------- */
.lang-menu { position: relative; }
.lang-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px;
    padding: 0 10px 0 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em;
    color: var(--ink-2);
    cursor: pointer;
    transition: color .2s var(--ease), box-shadow .2s var(--ease);
}
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { color: var(--red); box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), .45); }
.lang-toggle:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 4px rgba(var(--pink-rgb), .18); }
.lang-globe, .lang-caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang-caret { width: 14px; height: 14px; stroke-width: 2.2; transition: transform .25s var(--ease); }
.lang-toggle[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-list {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 240px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    z-index: 30;
    transform-origin: top right;
    animation: pop .25s var(--spring) both;
}
.lang-search {
    width: 100%; height: 34px;
    margin-bottom: 6px; padding: 0 12px;
    border: 0; border-radius: var(--r-sm);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    font: inherit; font-size: 12px;
}
.lang-search:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 4px rgba(var(--pink-rgb), .18); }
.lang-list ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px 8px 30px;
    position: relative;
    border-radius: var(--r-sm);
    color: var(--ink);
    cursor: pointer;
    transition: color .15s var(--ease), background .15s var(--ease);
}
.lang-option em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.lang-option:hover, .lang-option:hover em { color: var(--red); }
.lang-option.focus { background: rgba(var(--red-rgb), .06); }
.lang-option.active { color: var(--red); font-weight: 600; }
.lang-option.active em { color: var(--red); }
.lang-option.active::before { content: "\002713"; position: absolute; left: 10px; font-weight: 800; }
.lang-empty { margin: 6px 10px; font-size: 12px; color: var(--ink-3); }

/* ---------- Stage and card ---------- */
.stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 12px 16px;
}

.card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    width: 980px; max-width: 100%;
    min-height: 580px;
    border-radius: var(--r-xl);
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: pop .8s var(--spring) both .1s;
}
/* surrounding gradient border that lights up once on load */
.card::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--pink), var(--red), var(--peach), transparent 95%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    animation: rim 2.4s var(--ease) .6s both;
    pointer-events: none;
    z-index: 2;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- Left half ---------- */
.showcase {
    position: relative;
    display: flex; flex-direction: column;
    padding: 44px 44px 36px;
    background:
        radial-gradient(420px 300px at 100% 0%, rgba(255, 180, 140, .38), transparent 70%),
        radial-gradient(380px 320px at 0% 100%, rgba(var(--pink-rgb), .20), transparent 70%),
        linear-gradient(160deg, rgba(var(--red-rgb), .07), rgba(255, 255, 255, .2));
    border-right: 1px solid var(--line);
    overflow: hidden;
}
/* large, soft ring as background decoration */
.showcase::after {
    content: "";
    position: absolute; right: -140px; bottom: -160px;
    width: 420px; height: 420px;
    border-radius: 50%;
    border: 60px solid rgba(var(--red-rgb), .05);
    box-shadow: 0 0 0 40px rgba(255, 180, 140, .06);
    animation: spinSlow 60s linear infinite;
}
.showcase > * { position: relative; z-index: 1; }

.logo { width: 150px; height: auto; align-self: flex-start; animation: rise .7s var(--ease) both .35s; }

.product-name {
    display: flex; align-items: center; gap: 12px;
    margin-top: auto; /* logo at the top, greeting at the bottom */
    padding-top: 34px;
    font-size: 13px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase;
    color: var(--red);
    animation: rise .7s var(--ease) both .45s;
}
.product-name::after {
    content: "";
    width: 56px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.welcome {
    margin: 12px 0 10px;
    font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
    background: linear-gradient(120deg, var(--ink) 0%, var(--ink) 45%, var(--red) 75%, var(--pink) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    overflow-wrap: anywhere;
    animation: rise .7s var(--ease) both .55s, sheen 6s ease-in-out 1.4s infinite;
}
/* Message from the Style tab: line breaks of the textarea are preserved,
   long texts scroll instead of blowing up the card */
.notice { animation: rise .7s var(--ease) both .65s; }
.notice-label {
    display: block;
    margin-bottom: 2px;
    font-size: 14px; font-weight: 700;
    color: var(--red);
}
.message {
    max-width: 380px;
    max-height: 190px;
    overflow-y: auto;
    margin: 0;
    font-size: 14px; line-height: 1.6;
    color: var(--ink-2);
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.message p { margin: 0 0 .6em; }
.message p:last-child { margin-bottom: 0; }
.message a { color: var(--red); font-weight: 600; }

/* ---------- Right half: steps ---------- */
.panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 44px 48px 36px;
    background: rgba(255, 255, 255, .55);
}
/* all steps lie on top of each other in the same cell */
.step {
    grid-area: 1 / 1;
    display: flex; flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s linear .6s;
}
.step.active { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.step.left { transform: translateX(-40px); }

.step h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.lead { margin: 0 0 26px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Marker of the administrator login */
.role-chip {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px;
    margin-bottom: 14px;
    padding: 5px 12px 5px 9px;
    border-radius: 999px;
    background: var(--grad);
    box-shadow: var(--glow);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #fff;
}
.role-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }

.step-login.active > :not(.alert) { animation: rise .6s var(--ease) both; }
.step-login.active > :nth-child(1) { animation-delay: .55s; }
.step-login.active > :nth-child(2) { animation-delay: .62s; }
.step-login.active > :nth-child(3) { animation-delay: .69s; }
.step-login.active > :nth-child(4) { animation-delay: .76s; }
.step-login.active > :nth-child(5) { animation-delay: .83s; }
.step-login.active > :nth-child(6) { animation-delay: .83s; }
.step-login.active > :nth-child(7) { animation-delay: .90s; }
.step-login.active > :nth-child(8) { animation-delay: .97s; }
.step-login.active > :nth-child(9) { animation-delay: 1.04s; }

/* ---------- Eingabefelder mit aufsteigender Beschriftung ---------- */
.field { position: relative; margin-bottom: 16px; }
.field-last { margin-bottom: 24px; } /* without the "Remember login name" row below */
.field input {
    width: 100%;
    height: 56px;
    padding: 20px 46px 4px 46px;
    border: 0;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .92);
    box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgba(60, 30, 60, .04);
    font: inherit; font-size: 15px;
    color: var(--ink);
    transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.field input:hover { box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), .3), 0 1px 2px rgba(60, 30, 60, .04); }
.field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 5px rgba(var(--pink-rgb), .16); }
.field input:disabled { opacity: .7; }
.field label {
    position: absolute; left: 46px; top: 18px;
    font-size: 15px;
    color: var(--ink-3);
    pointer-events: none;
    transform-origin: left top;
    transition: transform .25s var(--ease), color .25s var(--ease);
}
/* ~ instead of +: formcheck.js places its message directly after the field */
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label { transform: translateY(-10px) scale(.74); color: var(--ink-2); font-weight: 600; }
.field input:focus ~ label { color: var(--red); }
/* Fields filled in by the browser (saved password): Chrome/Edge only release the value after the
   first input, :placeholder-shown counts as empty until then - the label then lay over
   the dots. Separate rules, because an unknown pseudo-class invalidates the whole rule. */
.field input:-webkit-autofill ~ label { transform: translateY(-10px) scale(.74); color: var(--ink-2); font-weight: 600; }
.field input:autofill ~ label { transform: translateY(-10px) scale(.74); color: var(--ink-2); font-weight: 600; }
/* hide the blue autofill background of the browser so the field stays white */
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 600000s 0s, color 600000s 0s; }

.field-icon {
    position: absolute; left: 15px; top: 18px;
    width: 20px; height: 20px;
    fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: stroke .25s var(--ease), transform .35s var(--spring);
}
.field input:focus ~ .field-icon { stroke: var(--red); transform: scale(1.1); }

.reveal {
    position: absolute; right: 8px; top: 10px;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%;
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.reveal:hover { background: rgba(var(--red-rgb), .08); color: var(--red); }
.reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reveal .eye-shut { display: none; }
.reveal.on .eye-open { display: none; }
.reveal.on .eye-shut { display: block; }

.field-error {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding-left: 4px;
    font-size: 12px; font-weight: 600;
    color: var(--red);
    opacity: 0;
    transition: max-height .3s var(--ease), opacity .3s var(--ease), margin .3s var(--ease);
}
.field.invalid input { box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 5px rgba(var(--red-rgb), .12); animation: shake .4s var(--ease); }
.field.invalid .field-icon { stroke: var(--red); }
.field.invalid label { color: var(--red); }
.field.invalid .field-error { max-height: 20px; margin-top: 6px; opacity: 1; }

.caps {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 8px 0 0 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(183, 121, 31, .13);
    color: #B7791F;
    font-size: 11px; font-weight: 700;
    animation: pop .3s var(--spring) both;
}
.caps::before { content: "\0021EA"; font-size: 12px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }

/* ---------- Meldung (#lblMessage) ---------- */
.alert {
    display: flex; align-items: flex-start; gap: 10px;
    margin: -6px 0 18px;
    padding: 12px 14px;
    border-radius: var(--r);
    background: rgba(var(--red-rgb), .07);
    box-shadow: inset 3px 0 0 var(--red);
    color: var(--red-dark);
    font-weight: 600; line-height: 1.4;
    animation: pop .4s var(--spring) both;
}
.alert svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--r);
    font: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer;
    overflow: hidden;
}
.btn-block { width: 100%; }

.btn-primary {
    height: 52px;
    background: var(--grad);
    background-size: 160% 100%;
    color: #fff;
    font-size: 15px; font-weight: 700; letter-spacing: .01em;
    box-shadow: var(--glow);
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-position .6s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 16px 34px -10px rgba(var(--red-rgb), .6); }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-primary:focus-visible { outline: none; box-shadow: var(--glow), 0 0 0 4px rgba(var(--pink-rgb), .3); }
/* Light reflection on hover */
.btn-primary::after {
    content: "";
    position: absolute; top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* Ladezustand: Beschriftung weicht, Kreisel erscheint */
.btn-label { transition: opacity .2s, transform .3s var(--ease); }
.spinner {
    position: absolute; left: 50%; top: 50%;
    width: 22px; height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .2s, transform .3s var(--spring);
}
.btn.loading { pointer-events: none; }
.btn.loading .btn-label, .btn.loading .btn-arrow { opacity: 0; transform: translateY(-8px); }
.btn.loading .spinner { opacity: 1; transform: scale(1); animation: spin .8s linear infinite; }

.admin-hint { margin: 22px 0 0; text-align: center; color: var(--ink-3); }

/* ---------- Single Sign On (SAML) ---------- */
.sso-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 13px; }
.sso-divider::before, .sso-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.btn-sso {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--line-strong);
    transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn-sso:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-sso svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.btn-primary { text-decoration: none; }

/* ---------- Erfolg vor der Weiterleitung ---------- */
.step-done { align-items: center; text-align: center; }
.done-check { width: 96px; height: 96px; margin-bottom: 18px; filter: drop-shadow(0 12px 24px rgba(23, 145, 90, .35)); }
.done-circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; }
.done-tick { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.step-done.active .done-circle { animation: dash .5s var(--ease) forwards .1s, fillOk .3s var(--ease) forwards .5s; }
.step-done.active .done-tick { animation: dash .3s var(--ease) forwards .45s, tickWhite .01s forwards .6s; }

/* ---------- Setup (Views/Setup) ---------- */
/* Dropdowns in the field: same height as the inputs, label always on top */
.field select {
    width: 100%;
    height: 56px;
    padding: 20px 40px 4px 46px;
    border: 0;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%2714%27 fill=%27none%27 stroke=%27%235B5664%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3 5l4 4 4-4%27/%3E%3C/svg%3E") no-repeat right 16px center;
    box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgba(60, 30, 60, .04);
    font: inherit; font-size: 15px;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: box-shadow .25s var(--ease);
}
.field select:hover { box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), .3); }
.field select:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 5px rgba(var(--pink-rgb), .16); }
.field select ~ label { transform: translateY(-10px) scale(.74); color: var(--ink-2); font-weight: 600; }
.field select:focus ~ label { color: var(--red); }
.field select:focus ~ .field-icon { stroke: var(--red); }

/* Validation message from formcheck.js (fmValidate): red line directly below the field */
.field .fmFehlerText {
    display: block;
    margin-top: 6px;
    padding: 0 0 0 4px;
    font-size: 12px; font-weight: 600; line-height: 1.4;
    color: var(--red);
    animation: rise .3s var(--ease) both;
}
.field input.fmFehlerFeld, .field select.fmFehlerFeld {
    border: 0 !important;
    box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 5px rgba(var(--red-rgb), .12);
    animation: shake .4s var(--ease);
}
.field .fmFehlerFeld ~ label { color: var(--red); }
.field .fmFehlerFeld ~ .field-icon { stroke: var(--red); }

/* Message window from formcheck.js (fmNotify): white card with red bar */
.fmMeldung {
    left: 24px !important; bottom: 24px !important;
    max-width: 340px !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--red-dark) !important;
    font-family: var(--font); font-size: 13px !important; font-weight: 600;
    box-shadow: inset 4px 0 0 var(--red), var(--shadow-lg) !important;
}

.must { color: var(--red); }
.must-note { margin: 14px 0 0; font-size: 11px; color: var(--ink-3); }
.step-login .btn-primary { margin-top: 6px; }

/* ---------- Animationen ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes fillOk { to { fill: var(--ok); } }
@keyframes tickWhite { to { stroke: #fff; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes rim { 0% { opacity: 0; --angle: 0deg; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; --angle: 360deg; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .done-circle, .done-tick { stroke-dashoffset: 0; }
    .step-done.active .done-circle { fill: var(--ok); }
    .step-done.active .done-tick { stroke: #fff; }
}

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 860px) {
    .card { grid-template-columns: 1fr; min-height: 0; }
    .showcase { padding: 28px 24px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
    .showcase::after { width: 260px; height: 260px; right: -100px; bottom: -130px; border-width: 40px; }
    .product-name { padding-top: 20px; }
    .welcome { font-size: 28px; }
    .panel { padding: 28px 24px 26px; }
}
@media (max-width: 420px) {
    .login-top { padding: 20px 16px 0; }
    .stage { padding: 10px 12px; }
    .row { flex-direction: column; align-items: flex-start; }
}
