:root {
    color-scheme: dark;
    --background: #08111f;
    --background-soft: #0d1828;
    --surface: #111f32;
    --surface-hover: #172b43;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.17);
    --text: #b8c7d9;
    --heading: #ffffff;
    --blue: #2050a0;
    --blue-light: #3070c0;
    --yellow: #ffb547;
    --yellow-text: #ffb547;
    --yellow-soft: rgba(255, 181, 71, 0.14);
    --radius-small: 14px;
    --radius: 26px;
    --page-width: 1180px;
}

/* Angemeldeter Bereich ----------------------------------------------------- */

.auth-form__validation:empty,
.ui-field__message:empty {
    display: none;
}

.auth-form__validation {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(231, 83, 111, 0.35);
    border-radius: 0.75rem;
    background: rgba(231, 83, 111, 0.1);
    color: #ff9eb1;
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-form__validation ul {
    margin: 0;
    padding-left: 1.1rem;
}

.ui-field__message {
    display: block;
    margin: 0.45rem 0.2rem 0;
    color: #ff9eb1;
    font-size: 0.78rem;
}

.auth-form__notice--prominent {
    margin: 1.4rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(104, 163, 237, 0.28);
    border-radius: 0.9rem;
    background: rgba(104, 163, 237, 0.1);
    color: var(--text);
    line-height: 1.6;
}

.auth-demo {
    display: grid;
    gap: 0.28rem;
    margin: 1.15rem 0 1.4rem;
    padding: 0.85rem 1rem;
    border: 1px dashed rgba(104, 163, 237, 0.4);
    border-radius: 0.85rem;
    background: rgba(104, 163, 237, 0.09);
}

.auth-demo span {
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-demo strong,
.auth-demo code {
    color: var(--heading);
    font-size: 0.84rem;
}

.auth-demo code {
    width: max-content;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.13);
}

.member-hero {
    position: relative;
    min-height: 34rem;
    overflow: hidden;
    background: #07111f;
    color: #fff;
    isolation: isolate;
}

.member-hero__video,
.member-hero__overlay {
    position: absolute;
    inset: 0;
}

.member-hero__video {
    z-index: -3;
}

.member-hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
}

.member-hero__overlay {
    z-index: -2;
    background:
        radial-gradient(circle at 82% 30%, rgba(70, 132, 221, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(5, 13, 26, 0.98) 0%, rgba(7, 20, 38, 0.86) 53%, rgba(8, 23, 43, 0.68) 100%);
}

.member-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
    min-height: 34rem;
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.member-hero h1 {
    max-width: 13ch;
    margin: 0.75rem 0 1.25rem;
    color: #fff;
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.97;
    letter-spacing: -0.06em;
}

.member-hero h1 em {
    color: #80b5f3;
    font-style: normal;
}

.member-hero__inner > div > p:last-child {
    max-width: 43rem;
    margin: 0;
    color: #bdcadc;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}

.member-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    width: 100%;
    max-width: 25rem;
    padding: 1rem 1.1rem;
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.15rem;
    background: rgba(12, 27, 49, 0.72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

.member-profile__avatar {
    display: grid;
    width: 3.15rem;
    height: 3.15rem;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, #377dcc, #7758d7);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.member-profile strong,
.member-profile span,
.member-profile small {
    display: block;
}

.member-profile strong {
    margin-bottom: 0.2rem;
    color: #fff;
    font-size: 1rem;
}

.member-profile div span {
    overflow: hidden;
    color: #aebdd1;
    font-size: 0.8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.member-profile small {
    width: max-content;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(104, 163, 237, 0.14);
    color: #9fc8f8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-dashboard {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
    background: var(--background-soft);
}

.member-dashboard__heading {
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 2.3rem;
}

.member-dashboard__heading h2 {
    max-width: 12ch;
    margin: 0.4rem 0 0;
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.member-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.member-stat {
    position: relative;
    min-height: 17rem;
    padding: 1.65rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(3, 12, 25, 0.16);
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.member-stat::after {
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: var(--member-accent-soft);
    content: "";
    transition: transform 350ms ease;
}

.member-stat:hover {
    transform: translateY(-0.45rem);
    border-color: var(--member-accent);
    box-shadow: 0 22px 55px rgba(18, 40, 75, 0.14);
}

.member-stat:hover::after {
    transform: scale(1.16);
}

.member-stat--yellow {
    --member-accent: #e5ad1e;
    --member-accent-soft: rgba(244, 189, 50, 0.18);
}

.member-stat--blue {
    --member-accent: #397dd0;
    --member-accent-soft: rgba(57, 125, 208, 0.16);
}

.member-stat--purple {
    --member-accent: #7658d5;
    --member-accent-soft: rgba(118, 88, 213, 0.15);
}

.member-stat > span {
    display: block;
    margin-bottom: 3.6rem;
    color: var(--member-accent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.member-stat strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--heading);
    font-size: 1.35rem;
}

.member-stat p {
    min-height: 3rem;
    margin: 0 0 1.25rem;
    color: var(--text);
    line-height: 1.55;
}

.member-stat a {
    color: var(--member-accent);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.member-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.8fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.member-panel {
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border: 1px solid var(--border);
    border-radius: 1.4rem;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(3, 12, 25, 0.16);
}

.member-panel__heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.member-panel h3 {
    margin: 0.35rem 0 1.6rem;
    color: var(--heading);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    letter-spacing: -0.04em;
}

.member-panel__heading > span {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--blue);
}

.member-empty-state {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 1rem;
    background: var(--background-soft);
}

.member-empty-state i {
    display: grid;
    flex: 0 0 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(76, 190, 135, 0.14);
    color: #34a775;
    font-style: normal;
    font-weight: 900;
}

.member-empty-state strong {
    color: var(--heading);
}

.member-empty-state p {
    margin: 0.4rem 0 0;
    color: var(--text);
    line-height: 1.65;
}

.member-panel--account dl {
    margin: 0;
}

.member-panel--account dl div {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.member-panel--account dt {
    margin-bottom: 0.25rem;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.member-panel--account dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--heading);
    font-weight: 700;
}

.member-logout {
    width: 100%;
    margin-top: 1.4rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: transparent;
    color: var(--heading);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.member-logout:hover {
    border-color: #7758d7;
    background: rgba(119, 88, 215, 0.1);
    color: #7758d7;
}

@media (max-width: 1180px) {
    .member-hero__inner,
    .member-content-grid {
        grid-template-columns: 1fr;
    }

    .member-hero__inner {
        align-content: center;
    }

    .member-profile {
        max-width: 32rem;
        justify-self: start;
    }

    .member-stat-grid {
        grid-template-columns: 1fr;
    }

    .member-stat {
        min-height: auto;
    }

    .member-stat > span {
        margin-bottom: 2rem;
    }
}

@media (max-width: 620px) {
    .member-hero__inner {
        padding-top: 8rem;
    }

    .member-dashboard__heading {
        display: grid;
        align-items: start;
    }

    .member-dashboard__heading .ui-button {
        width: 100%;
        justify-content: center;
    }

    .member-profile {
        grid-template-columns: auto minmax(0, 1fr);
        max-width: 100%;
    }

    .member-profile small {
        grid-column: 2;
        width: max-content;
        margin-top: -0.35rem;
    }
}

/* HTML-Emoji-Icons für Buttons ------------------------------------------- */

.button-emoji,
.button-symbol,
[data-button-icon]::after {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    font-family: "Segoe UI Symbol", "Segoe UI", Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    transform-origin: center;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.button-symbol {
    min-width: 1em;
    min-height: 1em;
    font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
    text-align: center;
}

.button-symbol.button-symbol--plus {
    min-width: 1em;
    min-height: auto;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

[data-button-icon]::after {
    content: attr(data-button-icon);
    order: -1;
    min-width: 1em;
    color: currentColor;
    font-size: 1.08em;
    font-weight: 800;
    text-align: center;
}

[data-button-icon]:hover:not(:disabled)::after,
[data-button-icon]:focus-visible:not(:disabled)::after {
    animation: button-emoji-bounce 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
    filter: saturate(1.15);
}

[data-button-animation="down"]:hover::after,
[data-button-animation="down"]:focus-visible::after {
    animation-name: button-emoji-down;
}

[data-button-animation="send"]:hover::after,
[data-button-animation="send"]:focus-visible::after {
    animation-name: button-emoji-send;
}

[data-button-animation="spin"]:hover::after,
[data-button-animation="spin"]:focus-visible::after {
    animation-name: button-emoji-spin;
}

[data-button-animation="save"]:hover::after,
[data-button-animation="save"]:focus-visible::after {
    animation-name: button-emoji-save;
}

[data-button-animation="unlock"]:hover::after,
[data-button-animation="unlock"]:focus-visible::after {
    animation-name: button-emoji-unlock;
}

[data-button-animation="spark"]:hover::after,
[data-button-animation="spark"]:focus-visible::after {
    animation-name: button-emoji-spark;
}

[data-button-animation="wave"]:hover::after,
[data-button-animation="wave"]:focus-visible::after {
    animation-name: button-emoji-wave;
}

[data-button-animation="shake"]:hover::after,
[data-button-animation="shake"]:focus-visible::after {
    animation-name: button-emoji-shake;
}

[data-button-animation="blink"]:hover::after,
[data-button-animation="blink"]:focus-visible::after {
    animation-name: button-emoji-blink;
}

[data-button-animation="close"]:hover::after,
[data-button-animation="close"]:focus-visible::after {
    animation-name: button-emoji-close;
}

button:hover:not(:disabled) > .button-emoji,
button:focus-visible:not(:disabled) > .button-emoji,
button:hover:not(:disabled) > .button-symbol,
button:focus-visible:not(:disabled) > .button-symbol,
a:hover > .button-emoji,
a:focus-visible > .button-emoji,
a:hover > .button-symbol,
a:focus-visible > .button-symbol {
    animation: button-emoji-bounce 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
    filter: saturate(1.15);
}

.button-emoji--settings:is(:hover, :focus-visible),
button:hover:not(:disabled) > .button-emoji--settings,
button:focus-visible:not(:disabled) > .button-emoji--settings {
    animation-name: button-emoji-spin;
}

button:hover:not(:disabled) > .button-emoji--close,
button:focus-visible:not(:disabled) > .button-emoji--close,
button:hover:not(:disabled) > .button-symbol--close,
button:focus-visible:not(:disabled) > .button-symbol--close,
a:hover > .button-emoji--close,
a:focus-visible > .button-emoji--close,
a:hover > .button-symbol--close,
a:focus-visible > .button-symbol--close {
    animation-name: button-emoji-close;
}

button:hover:not(:disabled) > .button-symbol--logout,
button:focus-visible:not(:disabled) > .button-symbol--logout {
    animation: button-symbol-logout 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

button:hover:not(:disabled) > .button-emoji--eye,
button:focus-visible:not(:disabled) > .button-emoji--eye {
    animation-name: button-emoji-blink;
}

.theme-toggle__icon .button-emoji {
    position: absolute;
    inset: 0;
    width: 21px;
    height: 21px;
    font-size: 18px;
    transition: opacity 180ms ease, transform 260ms ease;
    place-content: center;
    text-align: center;
}

.menu-toggle > .button-emoji,
.portal-mobile-toggle > .button-emoji {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: 1.15rem;
}

.site-header.is-menu-open .menu-toggle > .button-emoji:nth-child(1) {
    transform: rotate(90deg) scale(1.08);
}

.portal-shell.is-sidebar-open .portal-mobile-toggle > .button-emoji {
    transform: rotate(90deg) scale(1.08);
}

.portal-collapse .button-symbol {
    width: 1rem;
    height: 1rem;
    place-content: center;
    font-size: 1.55rem;
    line-height: 0.65;
}

.auth-password button .button-emoji,
.auth-password button .button-symbol,
.account-form .auth-password__control button .button-emoji,
.account-form .auth-password__control button .button-symbol {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    font-size: 1rem;
}

.auth-password button .button-emoji::before,
.auth-password button .button-emoji::after,
.auth-password button .button-symbol::before,
.auth-password button .button-symbol::after,
.account-form .auth-password__control button .button-emoji::before,
.account-form .auth-password__control button .button-emoji::after,
.account-form .auth-password__control button .button-symbol::before,
.account-form .auth-password__control button .button-symbol::after {
    display: none;
    content: none;
}

.contact-path__icon.button-emoji,
.contact-path__icon.button-symbol {
    font-family: "Segoe UI Symbol", "Segoe UI", Arial, sans-serif;
}

.contact-path:hover .contact-path__icon,
.contact-path:focus-visible .contact-path__icon {
    animation: button-emoji-spark 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-path:hover i .button-emoji,
.contact-path:focus-visible i .button-emoji,
.contact-path:hover i .button-symbol,
.contact-path:focus-visible i .button-symbol {
    animation: button-emoji-down 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-theme="dark"] .theme-toggle:hover .theme-toggle__sun,
[data-theme="dark"] .theme-toggle:focus-visible .theme-toggle__sun,
[data-theme="light"] .theme-toggle:hover .theme-toggle__moon,
[data-theme="light"] .theme-toggle:focus-visible .theme-toggle__moon {
    animation: button-emoji-spark 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes button-emoji-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    45% { transform: translateY(-0.28rem) scale(1.16); }
    72% { transform: translateY(0.08rem) scale(1.06); }
}

@keyframes button-emoji-down {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(0.32rem) scale(1.12); }
}

@keyframes button-emoji-send {
    0%, 100% { transform: translate(0, 0) rotate(0); }
    48% { transform: translate(0.35rem, -0.3rem) rotate(-10deg) scale(1.1); }
}

@keyframes button-emoji-spin {
    from { transform: rotate(0) scale(1); }
    60% { transform: rotate(210deg) scale(1.14); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes button-emoji-save {
    0%, 100% { transform: translateY(0) scale(1); }
    45% { transform: translateY(0.2rem) scale(0.9); }
    70% { transform: translateY(-0.08rem) scale(1.12); }
}

@keyframes button-emoji-unlock {
    0%, 100% { transform: rotate(0) scale(1); }
    35% { transform: rotate(-12deg) scale(1.12); }
    68% { transform: rotate(8deg) scale(1.08); }
}

@keyframes button-emoji-spark {
    0%, 100% { transform: rotate(0) scale(1); filter: brightness(1); }
    50% { transform: rotate(16deg) scale(1.24); filter: brightness(1.25); }
}

@keyframes button-emoji-wave {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(20deg) scale(1.12); }
    55% { transform: rotate(-14deg) scale(1.12); }
    78% { transform: rotate(10deg); }
}

@keyframes button-symbol-logout {
    0%, 100% { transform: translateX(0); }
    42% { transform: translateX(0.24rem) scale(1.08); }
    68% { transform: translateX(-0.05rem); }
}

@keyframes button-emoji-shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    28% { transform: translateX(-0.16rem) rotate(-8deg); }
    58% { transform: translateX(0.16rem) rotate(8deg); }
    82% { transform: translateX(-0.08rem) rotate(-4deg); }
}

@keyframes button-emoji-close {
    0%, 100% { transform: rotate(0) scale(1); }
    50% { transform: rotate(90deg) scale(1.12); }
}

@keyframes button-emoji-blink {
    0%, 100% { transform: scaleY(1); }
    45%, 60% { transform: scaleY(0.2); }
}

@media (prefers-reduced-motion: reduce) {
    [data-button-icon]::after,
    .button-emoji,
    .button-symbol {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

.company-product-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--panel);
}

.customer-quick-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; width: 100%; padding-top: .2rem; }
.customer-quick-actions .ui-button { min-height: 2.25rem; }
.customer-attention { display: grid; gap: .7rem; margin: 1rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--panel); }
.customer-attention > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.customer-attention > header h2 { margin: .15rem 0 0; color: var(--heading); font-size: 1rem; }
.customer-attention > header > span { display: grid; place-items: center; min-width: 1.8rem; height: 1.8rem; border-radius: 999px; background: rgba(239, 183, 32, .12); color: #efb720; font-weight: 850; }
.customer-attention > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.customer-attention__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .75rem; border: 1px solid var(--border); border-radius: .72rem; color: inherit; background: rgba(255,255,255,.018); transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.customer-attention__item:hover { transform: translateY(-2px); border-color: rgba(76,143,230,.45); background: rgba(76,143,230,.06); }
.customer-attention__item i { width: .58rem; height: .58rem; border-radius: 50%; background: #5c9be6; box-shadow: 0 0 0 .28rem rgba(92,155,230,.1); }
.customer-attention__item.is-warning i { background: #efb720; box-shadow: 0 0 0 .28rem rgba(239,183,32,.1); }
.customer-attention__item.is-danger i { background: #ef6468; box-shadow: 0 0 0 .28rem rgba(239,100,104,.1); }
.customer-attention__item span { display: grid; gap: .15rem; }
.customer-attention__item strong { color: var(--heading); font-size: .75rem; }
.customer-attention__item small { color: var(--muted); font-size: .65rem; }
.customer-attention__item b { color: var(--muted); }
.customer-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: .8rem; padding: 1rem; }
.customer-contact-person { display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--border); border-radius: .85rem; background: rgba(255,255,255,.018); }
.customer-contact-person.is-inactive { opacity: .62; }
.customer-contact-person > header { display: grid; grid-template-columns: 2.4rem minmax(0,1fr) auto; gap: .65rem; align-items: center; }
.customer-contact-person > header > span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .7rem; background: rgba(76,143,230,.13); color: #83b4ed; font-weight: 900; }
.customer-contact-person > header > div { display: grid; gap: .12rem; }
.customer-contact-person > header strong { color: var(--heading); }
.customer-contact-person > header small { color: var(--muted); }
.customer-contact-person > header b { padding: .25rem .45rem; border-radius: 999px; background: rgba(62,190,128,.1); color: #65d79e; font-size: .58rem; text-transform: uppercase; }
.customer-contact-person__channels { display: grid; gap: .25rem; }
.customer-contact-person__channels a { color: #83b4ed; font-size: .7rem; overflow-wrap: anywhere; }
.customer-contact-person__roles { display: flex; flex-wrap: wrap; gap: .3rem; }
.customer-contact-person__roles span { padding: .22rem .42rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .58rem; }
.customer-contact-person > footer { display: flex; justify-content: flex-end; }
.customer-contact-flags { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.customer-contact-flags label { display: flex; gap: .45rem; align-items: center; padding: .65rem; border: 1px solid var(--border); border-radius: .65rem; }
.customer-contact-form__hint { margin: 0; color: var(--text); font-size: .82rem; }
.fixkosten-form .customer-contact-form__error { color: #ef7777; font-size: .82rem; }
[data-theme="light"] .fixkosten-form .customer-contact-form__error { color: #ad2525; }
.fixkosten-form input[aria-invalid="true"] { border-color: #d45b5b; }
.customer-activity-timeline { display: grid; padding: .5rem 1rem 1rem 2rem; }
.customer-activity-item { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .8rem; align-items: start; padding: .85rem 0; color: inherit; border-bottom: 1px solid var(--border); }
.customer-activity-item:last-child { border-bottom: 0; }
.customer-activity-item::before { content: ""; position: absolute; left: -1.25rem; top: 1.35rem; bottom: -1.35rem; width: 1px; background: var(--border); }
.customer-activity-item:last-child::before { display: none; }
.customer-activity-item > i { position: absolute; left: -1.52rem; top: 1.1rem; width: .58rem; height: .58rem; border: 2px solid var(--panel); border-radius: 50%; background: #5c9be6; box-shadow: 0 0 0 2px rgba(92,155,230,.18); }
.customer-activity-item.is-rechnung > i { background: #65d79e; }
.customer-activity-item.is-lizenz > i { background: #efb720; }
.customer-activity-item > div { display: grid; gap: .18rem; }
.customer-activity-item strong { color: var(--heading); font-size: .78rem; }
.customer-activity-item p { margin: 0; color: var(--text); font-size: .68rem; }
.customer-activity-item small, .customer-activity-item > span { color: var(--muted); font-size: .62rem; }
.customer-note-list { display: grid; gap: .7rem; padding: 1rem; }
.customer-note { display: grid; gap: .7rem; padding: 1rem; border: 1px solid var(--border); border-left: 3px solid #5c9be6; border-radius: .75rem; background: rgba(255,255,255,.018); }
.customer-note.is-overdue { border-left-color: #ef6468; }
.customer-note.is-done { opacity: .58; border-left-color: #65d79e; }
.customer-note > header, .customer-note > footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.customer-note > header > div { display: grid; gap: .12rem; }
.customer-note strong { color: var(--heading); }
.customer-note small, .customer-note time { color: var(--muted); font-size: .62rem; }
.customer-note.is-overdue time { color: #ef6468; font-weight: 800; }
.customer-note p { margin: 0; color: var(--text); font-size: .72rem; line-height: 1.6; white-space: pre-wrap; }

@media (max-width: 760px) {
    .customer-quick-actions { justify-content: stretch; }
    .customer-quick-actions .ui-button { flex: 1 1 10rem; }
    .customer-attention > div { grid-template-columns: 1fr; }
}

.company-product-panel + .company-product-panel { margin-top: 1rem; }
.company-product-panel[hidden] { display: none; }
.company-product-panel.is-collapsed > :not(.company-product-panel__header) { display: none; }
.company-product-panel.is-collapsed .company-product-panel__toggle span { transform: rotate(-90deg); }
.company-product-panel__header { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) auto; gap: .85rem; align-items: center; padding: 1.1rem 1.2rem; }
.company-product-panel__icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border: 1px solid rgba(76, 143, 230, .26); border-radius: .8rem; color: #79abe8; background: rgba(76, 143, 230, .12); box-shadow: 0 .45rem 1.2rem rgba(32, 80, 160, .11); }
.product-icon.company-product-panel__icon::before { font-size: 1.25rem; }
.company-product-panel__header h3 { margin: .15rem 0 0; color: var(--heading); }
.company-product-panel__header small { color: var(--muted); }
.company-product-panel__header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.company-product-panel__toggle { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--border); border-radius: .55rem; color: #83b4ed; background: rgba(76,143,230,.06); cursor: pointer; }
.company-product-panel__toggle span { transition: transform 180ms ease; }
.company-product-toolbar { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(14rem,1fr) minmax(13rem,17rem) auto; gap: .75rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 84%, transparent); }
.company-product-toolbar__search { position: relative; display: block; min-width: 0; }
.company-product-toolbar__search svg { position: absolute; z-index: 1; top: 50%; left: .85rem; width: 1rem; height: 1rem; fill: none; stroke: #6f9fd8; stroke-linecap: round; stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.company-product-toolbar__search input { width: 100%; min-height: 2.75rem; padding: .65rem .9rem .65rem 2.55rem; border: 1px solid var(--border-strong); border-radius: .72rem; outline: 0; color: var(--heading); background: var(--background); font: inherit; font-size: .74rem; transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.company-product-toolbar__search input::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
.company-product-toolbar__search input:hover { border-color: color-mix(in srgb, var(--blue-light) 30%, var(--border-strong)); }
.company-product-toolbar__search input:focus { border-color: color-mix(in srgb, var(--blue-light) 55%, var(--border-strong)); background: color-mix(in srgb, var(--background) 94%, var(--blue)); box-shadow: inset 0 -2px 0 var(--blue-light), 0 .45rem 1.25rem rgba(32,80,160,.1); }
.company-product-toolbar__filter { position: relative; min-width: 0; }
.company-product-toolbar__filter:has(.ui-select[open]) { z-index: 20; }
.company-product-toolbar__filter .ui-select summary { min-height: 2.75rem; border-radius: .72rem; font-size: .72rem; }
.company-product-toolbar__filter .ui-select__menu { right: 0; left: auto; width: max(100%, 18rem); }
.company-product-toolbar__filter .ui-select__option-icon { color: #79abe8; background: rgba(76,143,230,.1); }
.company-product-toolbar small { color: var(--muted); white-space: nowrap; }
.company-product-tabs { margin: 0 1.2rem; }
.company-product-panel__section { padding: 1.25rem; border-top: 1px solid var(--border); }
.company-license-management { display: grid; gap: .9rem; }
.company-license-summary { display: grid; gap: 0.9rem; }
.company-license-summary > header { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.company-license-summary > header > div { display: grid; gap: 0.15rem; }
.company-license-summary > header span, .company-license-summary__modules > span { color: var(--muted); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.company-license-summary > header strong { color: var(--heading); font-size: 0.82rem; }
.company-license-summary__limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.company-license-summary__limits article { display: grid; gap: 0.16rem; padding: 0.8rem; border: 1px solid var(--border); border-radius: 0.72rem; background: color-mix(in srgb, var(--background) 42%, transparent); }
.company-license-summary__limits span { color: var(--muted); font-size: 0.59rem; font-weight: 850; text-transform: uppercase; }
.company-license-summary__limits strong { color: var(--heading); font-size: 0.9rem; }
.company-license-summary__limits small { color: var(--muted); font-size: 0.59rem; }
.company-license-summary__modules { display: flex; gap: 0.75rem; align-items: flex-start; }
.company-license-summary__modules > div { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.company-license-summary__modules > div > span { padding: 0.24rem 0.5rem; border: 1px solid rgba(76, 143, 230, 0.2); border-radius: 999px; background: rgba(76, 143, 230, 0.08); color: #83b4ed; font-size: 0.6rem; font-weight: 750; }
.company-license-editor,
.company-license-access,
.company-license-history { margin: 0; }
.company-license-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; padding-top: .8rem; border-top: 1px solid var(--border); }
.product-license-overview-list { display: grid; gap: .7rem; margin-top: 1rem; }
.product-license-overview-card { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(22rem, 1.8fr) auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--border); border-radius: .85rem; background: rgba(255, 255, 255, .02); }
.product-license-overview-card__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.product-license-overview-card__facts > span { display: grid; gap: .18rem; min-width: 0; padding: .55rem .65rem; border-radius: .58rem; background: rgba(255, 255, 255, .025); }
.product-license-overview-card__facts small { color: var(--muted); font-size: .56rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.product-license-overview-card__facts strong { overflow: hidden; color: var(--heading); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.company-product-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.company-product-overview-grid > div { display: grid; gap: .28rem; padding: 1rem; border: 1px solid var(--border); border-radius: .8rem; background: rgba(255, 255, 255, .025); }
.company-product-overview-grid span,
.company-product-overview-grid small { color: var(--muted); }
.company-product-overview-grid span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.company-product-inline-form { max-width: none; }
.company-hosting-group { display: grid; gap: .85rem; margin: 0; padding: 1rem; border: 1px solid var(--border); border-radius: .85rem; background: rgba(255, 255, 255, .018); }
.company-hosting-security { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem; border: 1px solid rgba(239,183,32,.28); border-radius: .75rem; background: rgba(239,183,32,.055); }
.company-hosting-security > div:first-child { display: grid; gap: .18rem; }
.company-hosting-security > div:last-child { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.company-hosting-security strong { color: var(--heading); font-size: .75rem; }
.company-hosting-security small { color: var(--muted); font-size: .62rem; line-height: 1.45; }
.company-hosting-group + .company-hosting-group { margin-top: .9rem; }
.company-hosting-group legend { padding: 0 .4rem; color: var(--heading); font-size: .86rem; font-weight: 800; }
.company-product-panel__footer { display: flex; justify-content: flex-end; padding: .8rem 1.2rem; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .018); }

@media (max-width: 760px) {
    .company-product-panel__header { grid-template-columns: 2.8rem minmax(0, 1fr); }
    .company-product-panel__header-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .company-product-overview-grid { grid-template-columns: 1fr; }
    .company-product-tabs { overflow-x: auto; }
    .company-product-toolbar { grid-template-columns: 1fr; }
    .company-license-summary > header { align-items: stretch; flex-direction: column; }
    .company-license-summary__limits { grid-template-columns: 1fr; }
    .product-license-overview-card { grid-template-columns: 1fr; }
    .product-license-overview-card__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-license-overview-card > .ui-button { justify-self: stretch; }
}

@media (min-width: 761px) and (max-width: 1180px) {
    .product-license-overview-card { grid-template-columns: 1fr auto; }
    .product-license-overview-card__facts { grid-column: 1 / -1; grid-row: 2; }
}

/* Seitenwechsel --------------------------------------------------------- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 22%, rgba(48, 112, 192, 0.22), transparent 28rem),
        radial-gradient(circle at 24% 78%, rgba(229, 173, 30, 0.09), transparent 23rem),
        #07111f;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.page-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loader__grid {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(117, 174, 242, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 174, 242, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, #000 0, transparent 72%);
}

.page-loader__content {
    position: relative;
    display: grid;
    width: min(21rem, calc(100vw - 3rem));
    justify-items: center;
    text-align: center;
}

.page-loader__logo {
    position: relative;
    display: grid;
    width: 5.2rem;
    height: 5.2rem;
    margin-bottom: 1.25rem;
    place-items: center;
    border: 1px solid rgba(117, 174, 242, 0.24);
    border-radius: 1.45rem;
    background: rgba(13, 31, 54, 0.78);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.36);
}

.page-loader__logo::before {
    position: absolute;
    inset: -0.55rem;
    border: 1px solid rgba(229, 173, 30, 0.45);
    border-top-color: transparent;
    border-radius: 1.85rem;
    content: "";
    animation: page-loader-spin 1.2s linear infinite;
}

.page-loader__logo img {
    width: 3.35rem;
    height: 3.35rem;
    object-fit: contain;
}

.page-loader__eyebrow {
    margin: 0 0 0.35rem;
    color: #e5ad1e;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-loader__content > strong {
    color: #f4f8ff;
    font-size: clamp(1.15rem, 4vw, 1.5rem);
}

.page-loader__track {
    width: 100%;
    height: 0.24rem;
    margin-top: 1.3rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(117, 174, 242, 0.12);
}

.page-loader__track i {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e5ad1e, #75aef2);
    box-shadow: 0 0 1rem rgba(117, 174, 242, 0.5);
    animation: page-loader-track 1.1s ease-in-out infinite;
}

[data-theme="light"] .page-loader {
    background:
        radial-gradient(circle at 72% 22%, rgba(48, 112, 192, 0.16), transparent 28rem),
        radial-gradient(circle at 24% 78%, rgba(229, 173, 30, 0.12), transparent 23rem),
        #f4f7fb;
}

[data-theme="light"] .page-loader__grid {
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(32, 80, 160, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 80, 160, 0.07) 1px, transparent 1px);
}

[data-theme="light"] .page-loader__logo {
    border-color: rgba(32, 80, 160, 0.22);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 1.5rem 4rem rgba(25, 52, 85, 0.16);
}

[data-theme="light"] .page-loader__logo::before {
    border-color: rgba(203, 146, 0, 0.5);
    border-top-color: transparent;
}

[data-theme="light"] .page-loader__eyebrow {
    color: #9b7000;
}

[data-theme="light"] .page-loader__content > strong {
    color: #0b1728;
}

[data-theme="light"] .page-loader__track {
    background: rgba(32, 80, 160, 0.12);
}

[data-theme="light"] .page-loader__track i {
    background: linear-gradient(90deg, #e0a400, #3478c9);
    box-shadow: 0 0 1rem rgba(52, 120, 201, 0.28);
}

body.page-is-loading {
    overflow: hidden;
}

@keyframes page-loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes page-loader-track {
    from { transform: translateX(-110%); }
    to { transform: translateX(245%); }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader,
    .page-loader__logo::before,
    .page-loader__track i {
        animation: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-hero__video {
        display: none;
    }
}

[data-theme="light"] {
    --background: #f4f7fb;
    --background-soft: #e9eff6;
    --surface: #ffffff;
    --surface-hover: #edf5fa;
    --border: rgba(11, 27, 54, 0.11);
    --border-strong: rgba(11, 27, 54, 0.22);
    --text: #46596e;
    --heading: #0b1728;
    --blue: #174a96;
    --blue-light: #205eae;
    --yellow: #f2c230;
    --yellow-text: #8a6800;
    --yellow-soft: rgba(242, 194, 48, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: clip;
    color: var(--text);
    background: var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    transition: color 220ms ease, background-color 220ms ease;
}

/* Globale Rückmeldungen -------------------------------------------------- */
.app-toast-region {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    z-index: 2100;
    display: grid;
    width: min(25rem, calc(100vw - 2rem));
    gap: 0.75rem;
    pointer-events: none;
}

.app-toast {
    --toast-accent: #75aef2;
    --toast-accent-rgb: 117, 174, 242;
    position: relative;
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr) 2rem;
    gap: 0.8rem;
    align-items: start;
    padding: 0.9rem 0.9rem 1rem;
    overflow: hidden;
    border: 1px solid rgba(var(--toast-accent-rgb), 0.32);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 0 0, rgba(var(--toast-accent-rgb), 0.14), transparent 11rem),
        color-mix(in srgb, var(--background) 94%, #000);
    box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(1rem) scale(0.98);
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.app-toast.is-leaving {
    opacity: 0;
    transform: translateX(1rem) scale(0.98);
}

.app-toast--success {
    --toast-accent: #51d39a;
    --toast-accent-rgb: 81, 211, 154;
}

.app-toast--error {
    --toast-accent: #ff7d94;
    --toast-accent-rgb: 255, 125, 148;
}

.app-toast--warning {
    --toast-accent: #e5ad1e;
    --toast-accent-rgb: 229, 173, 30;
}

.app-toast__icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 1px solid rgba(var(--toast-accent-rgb), 0.34);
    border-radius: 0.8rem;
    background: rgba(var(--toast-accent-rgb), 0.12);
    color: var(--toast-accent);
    font-weight: 950;
}

.app-toast__icon::before {
    content: "i";
}

.app-toast--success .app-toast__icon::before {
    content: "✓";
}

.app-toast--error .app-toast__icon::before {
    content: "!";
}

.app-toast--warning .app-toast__icon::before {
    content: "!";
}

.app-toast__content {
    min-width: 0;
    padding-top: 0.08rem;
}

.app-toast__content strong {
    display: block;
    color: var(--heading);
    font-size: 0.82rem;
}

.app-toast__content p {
    margin: 0.2rem 0 0;
    color: var(--text);
    font-size: 0.78rem;
    line-height: 1.45;
}

.app-toast__close {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

.app-toast__close:hover,
.app-toast__close:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--heading);
}

.app-toast__progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.18rem;
    background: var(--toast-accent);
    transform-origin: left;
    animation: app-toast-progress var(--toast-duration, 6000ms) linear forwards;
}

.app-toast:hover .app-toast__progress,
.app-toast:focus-within .app-toast__progress {
    animation-play-state: paused;
}

@keyframes app-toast-progress {
    to { transform: scaleX(0); }
}

@media (max-width: 600px) {
    .app-toast-region {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

/* Kundenakte und Kundensuche */
.customer-workspace-tabs {
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
    margin: 0 0 1.75rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
}

.customer-workspace-tabs a {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 0.8rem 0.8rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.customer-workspace-tabs a:hover,
.customer-workspace-tabs a.is-active {
    border-color: var(--border);
    background: var(--surface);
    color: var(--heading);
}

.customer-workspace-tabs__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #51d39a;
    box-shadow: 0 0 10px rgba(81, 211, 154, 0.5);
}

.customer-workspace-tabs__number {
    color: var(--muted);
    font-size: 0.72rem;
}

.customer-workspace-tabs a.customer-workspace-tabs__close {
    padding-inline: 0.75rem;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
}

.crm-customer-finder__search {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.crm-customer-finder__search > p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.crm-search button.crm-search__submit {
    display: inline-flex;
    min-width: max-content;
    flex: 0 0 auto;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    border-color: rgba(76, 143, 230, 0.38);
    background: rgba(76, 143, 230, 0.08);
    color: var(--heading);
    box-shadow: none;
    white-space: nowrap;
}

.crm-search button.crm-search__submit:hover:not(:disabled),
.crm-search button.crm-search__submit:focus-visible:not(:disabled) {
    border-color: rgba(92, 163, 250, 0.7);
    background: rgba(76, 143, 230, 0.16);
    box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.07);
}

.crm-search.crm-search--large {
    display: grid;
    flex: 1;
    justify-content: stretch;
}

.crm-search.crm-search--large > label {
    color: var(--heading);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.crm-search.crm-search--large > div {
    display: flex;
    gap: 0.55rem;
}

.crm-search.crm-search--large input {
    width: min(48rem, 65vw);
}

.crm-customer-link {
    color: var(--heading);
    text-decoration: none;
}

.crm-customer-link:hover {
    color: var(--accent);
}

.crm-customer-row {
    cursor: default;
}

.crm-customer-row:active {
    background: rgba(76, 143, 230, 0.09);
}

.crm-customer-open {
    display: inline-flex;
    min-height: 2.35rem;
    gap: 0.48rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.72rem;
    border: 1px solid rgba(76, 143, 230, 0.38);
    border-radius: 0.62rem;
    background: rgba(76, 143, 230, 0.11);
    color: #8bbcf6;
    font-size: 0.72rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 200ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.crm-customer-open svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.crm-customer-open:hover,
.crm-customer-open:focus-visible {
    border-color: rgba(76, 143, 230, 0.65);
    outline: none;
    background: rgba(76, 143, 230, 0.18);
    color: #b7d7ff;
    box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.07);
}

.crm-customer-open:hover svg,
.crm-customer-open:focus-visible svg {
    transform: translateX(0.12rem) rotate(-3deg);
}

.customer-file-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.customer-file-header__identity {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}

.customer-file-header__avatar {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.3);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, rgba(76, 143, 230, 0.22), rgba(118, 88, 213, 0.14));
    color: var(--heading);
    font-size: 1.65rem;
    font-weight: 900;
}

.customer-file-header h1 {
    margin: 0.15rem 0 0.35rem;
    color: var(--heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.customer-file-header p {
    margin: 0;
    color: var(--muted);
}

.customer-file-header__contact {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-file-header__contact a {
    color: var(--text);
    font-size: 0.82rem;
    text-decoration: none;
}

.customer-file-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1rem;
    padding: 0.35rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    background: var(--surface);
}

.customer-file-tabs a {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 0.7rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.customer-file-tabs a:hover,
.customer-file-tabs a.is-active {
    background: rgba(76, 143, 230, 0.13);
    color: var(--heading);
}

.customer-file-tabs a.is-active {
    box-shadow: inset 0 0 0 1px rgba(76, 143, 230, 0.2);
}

.customer-file-tabs a span {
    display: inline-grid;
    min-width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
}

.customer-finance-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.customer-finance-metrics article {
    display: grid;
    gap: 0.55rem;
    min-height: 8.5rem;
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.customer-finance-metrics span,
.customer-finance-metrics small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.customer-finance-metrics span {
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.customer-finance-metrics strong {
    align-self: center;
    color: var(--heading);
    font-size: clamp(1.35rem, 2.5vw, 2.1rem);
}

.customer-finance-metrics article.is-open strong { color: #e5ad1e; }
.customer-finance-metrics article.is-overdue strong { color: #ec6a6a; }

.customer-finance-metrics--compact article {
    min-height: 6.5rem;
}

.customer-overview-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.8fr) minmax(30rem, 1.6fr);
    gap: 1rem;
}

.customer-data-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1.4rem;
}

.customer-data-list div {
    display: grid;
    grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.3fr);
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.customer-data-list div:last-child { border-bottom: 0; }
.customer-data-list dt { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.customer-data-list dd { margin: 0; color: var(--heading); font-size: 0.88rem; overflow-wrap: anywhere; }

.customer-data-list--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    padding: 1rem 1.5rem 1.5rem;
}

.customer-master-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1.25rem;
}

.customer-master-group {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--background) 54%, transparent);
}

.customer-master-group > header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1rem 0.9rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.018);
}

.customer-master-group > header > span {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.28);
    border-radius: 0.7rem;
    background: rgba(76, 143, 230, 0.12);
    color: #8bbcf7;
    font-size: 1rem;
    font-weight: 900;
}

.customer-master-group--contact > header > span {
    border-color: rgba(138, 104, 222, 0.3);
    background: rgba(138, 104, 222, 0.12);
    color: #b8a1f4;
}

.customer-master-group--address > header > span {
    border-color: rgba(229, 173, 30, 0.3);
    background: rgba(229, 173, 30, 0.11);
    color: #efc24f;
}

.customer-master-group header small {
    display: block;
    margin-bottom: 0.12rem;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.customer-master-group header h3 {
    margin: 0;
    color: var(--heading);
    font-size: 0.94rem;
}

.customer-master-group dl {
    margin: 0;
    padding: 0.35rem 1rem 0.65rem;
}

.customer-master-group dl > div {
    display: grid;
    grid-template-columns: minmax(7rem, 0.75fr) minmax(0, 1.25fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.72rem 0;
    border-bottom: 1px solid var(--border);
}

.customer-master-group dl > div:last-child {
    border-bottom: 0;
}

.customer-master-group dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
}

.customer-master-group dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--heading);
    font-size: 0.82rem;
}

.customer-number-badge {
    display: inline-flex;
    padding: 0.22rem 0.5rem;
    border: 1px solid rgba(76, 143, 230, 0.3);
    border-radius: 0.45rem;
    background: rgba(76, 143, 230, 0.1);
    color: #9bc7fb;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
}

.customer-status-badge {
    display: inline-flex;
    gap: 0.38rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.customer-status-badge i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #7f91a7;
}

.customer-status-badge.is-active {
    color: #74d9a7;
}

.customer-status-badge.is-active i {
    background: #51d39a;
    box-shadow: 0 0 0.6rem rgba(81, 211, 154, 0.45);
}

.customer-status-badge.is-inactive {
    color: #ed8888;
}

.customer-status-badge.is-inactive i {
    background: #e76f6f;
}

.customer-user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 25rem), 1fr));
    gap: 0.9rem;
    padding: 1.25rem;
}

.customer-user-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--background) 54%, transparent);
}

.customer-user-card > header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.customer-user-card__avatar {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.32);
    border-radius: 0.78rem;
    background: linear-gradient(145deg, rgba(76, 143, 230, 0.2), rgba(118, 88, 213, 0.12));
    color: #9bc7fb;
    font-size: 1.05rem;
    font-weight: 900;
}

.customer-user-card__identity {
    min-width: 0;
}

.customer-user-card__identity strong,
.customer-user-card__identity a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-user-card__identity strong {
    margin-bottom: 0.2rem;
    color: var(--heading);
    font-size: 0.9rem;
}

.customer-user-card__identity a {
    color: var(--muted);
    font-size: 0.73rem;
    text-decoration: none;
}

.customer-user-card__identity a:hover {
    color: #8bbcf7;
}

.customer-user-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 1rem;
}

.customer-user-card dl > div {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.018);
}

.customer-user-card dt {
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.customer-user-card dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--heading);
    font-size: 0.8rem;
}

.customer-user-card > footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem 1rem;
}

.customer-card-action {
    display: inline-flex;
    margin: 0.5rem 1.4rem 1.4rem;
    color: #72a9ed;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.customer-invoice-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(20rem, 0.75fr);
    gap: 1rem;
    align-items: start;
}

.quick-invoice-card {
    position: sticky;
    top: 1rem;
}

.quick-invoice-form {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.quick-invoice-form label {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.quick-invoice-form label > span {
    color: var(--heading);
    font-size: 0.76rem;
    font-weight: 800;
}

.quick-invoice-form label em {
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 600;
}

.quick-invoice-form input,
.quick-invoice-form select,
.quick-invoice-form textarea {
    width: 100%;
    min-height: 2.7rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    outline: 0;
    background: var(--background);
    color: var(--heading);
    font: inherit;
}

.quick-invoice-form textarea { resize: vertical; }
.quick-invoice-form input:focus,
.quick-invoice-form select:focus,
.quick-invoice-form textarea:focus { border-color: rgba(76, 143, 230, 0.65); box-shadow: 0 0 0 0.2rem rgba(76, 143, 230, 0.1); }

.quick-invoice-form label small,
.quick-invoice-form__validation { color: #ec6a6a; font-size: 0.72rem; }
.quick-invoice-form__validation:empty { display: none; }

.quick-invoice-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.quick-invoice-form__row--amounts {
    grid-template-columns: 0.7fr 1.3fr 0.7fr;
}

.quick-invoice-form__total {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid rgba(76, 143, 230, 0.2);
    border-radius: 0.8rem;
    background: rgba(76, 143, 230, 0.08);
}

.quick-invoice-form__total span { color: var(--muted); font-size: 0.72rem; font-weight: 800; }
.quick-invoice-form__total strong { color: var(--heading); font-size: 1.15rem; }

.quick-invoice-form > button {
    min-height: 2.9rem;
    border: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #397dd0, #7658d5);
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 850;
    cursor: pointer;
}

.quick-invoice-form__hint { color: var(--muted); font-size: 0.68rem; text-align: center; }

.quick-invoice-positions {
    display: grid;
    gap: 0.85rem;
}

.quick-invoice-positions > header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.quick-invoice-positions > header > div {
    display: grid;
    gap: 0.14rem;
}

.quick-invoice-positions > header span {
    color: var(--heading);
    font-size: 0.78rem;
    font-weight: 850;
}

.quick-invoice-positions > header small {
    color: var(--muted);
    font-size: 0.67rem;
}

.quick-invoice-positions > header > strong {
    display: grid;
    min-width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.28);
    border-radius: 0.55rem;
    background: rgba(76, 143, 230, 0.1);
    color: #79aceb;
    font-size: 0.75rem;
}

.quick-invoice-position-list {
    display: grid;
    gap: 0.75rem;
}

.quick-invoice-position {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--surface) 92%, var(--background));
}

.quick-invoice-position > header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid var(--border);
}

.quick-invoice-position > header > span {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.3);
    border-radius: 0.62rem;
    background: rgba(76, 143, 230, 0.12);
    color: #83b5f1;
    font-size: 0.7rem;
    font-weight: 900;
}

.quick-invoice-position > header > div {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.quick-invoice-position > header strong {
    overflow: hidden;
    color: var(--heading);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-invoice-position > header small {
    color: var(--muted);
    font-size: 0.64rem;
}

.quick-invoice-position > header button {
    display: grid;
    width: 1.9rem;
    height: 1.9rem;
    place-items: center;
    border: 1px solid rgba(236, 106, 106, 0.26);
    border-radius: 0.55rem;
    background: rgba(236, 106, 106, 0.08);
    color: #ec8b8b;
    font: inherit;
    cursor: pointer;
}

.quick-invoice-position > header button:disabled {
    border-color: var(--border);
    background: transparent;
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.4;
}

.quick-invoice-position__fields {
    display: grid;
    grid-template-columns: 0.8fr 1.25fr 0.7fr;
    gap: 0.65rem;
    padding: 0.8rem;
}

.quick-invoice-position > footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.8rem;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 45%, transparent);
}

.quick-invoice-position > footer span {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 750;
}

.quick-invoice-position > footer strong {
    color: var(--heading);
    font-size: 0.76rem;
}

.quick-invoice-product-field {
    position: relative;
    z-index: 4;
    display: grid;
    gap: 0.4rem;
}

.quick-invoice-product-field__label {
    color: var(--heading);
    font-size: 0.78rem;
    font-weight: 800;
}

.quick-invoice-product-select {
    position: relative;
}

.quick-invoice-product-select summary {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) 1rem;
    gap: 0.7rem;
    align-items: center;
    min-height: 3.35rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: var(--background);
    color: var(--heading);
    cursor: pointer;
    list-style: none;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 200ms ease;
}

.quick-invoice-product-select summary::-webkit-details-marker {
    display: none;
}

.quick-invoice-product-select summary:focus-visible,
.quick-invoice-product-select[open] summary {
    border-color: rgba(76, 143, 230, 0.68);
    outline: none;
    background: color-mix(in srgb, var(--background) 91%, var(--blue));
    box-shadow: 0 0 0 0.2rem rgba(76, 143, 230, 0.1);
}

.quick-invoice-product-select__summary-icon,
.quick-invoice-product-select__option-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.26);
    border-radius: 0.65rem;
    background: rgba(76, 143, 230, 0.1);
    color: #8cbcf6;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.quick-invoice-product-select summary > span:nth-child(2),
.quick-invoice-product-select__menu button > span:nth-child(2) {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.quick-invoice-product-select summary strong,
.quick-invoice-product-select__menu strong {
    overflow: hidden;
    color: var(--heading);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-invoice-product-select summary small,
.quick-invoice-product-select__menu small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-invoice-product-select summary > i {
    position: relative;
    width: 0.65rem;
    height: 0.65rem;
    justify-self: end;
    border-right: 2px solid #81b5f6;
    border-bottom: 2px solid #81b5f6;
    transform: translateY(-0.15rem) rotate(45deg);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quick-invoice-product-select[open] summary > i {
    transform: translateY(0.15rem) rotate(225deg);
}

.quick-invoice-product-select__menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.35rem;
    max-height: min(22rem, 48vh);
    padding: 0.5rem;
    overflow-y: auto;
    border: 1px solid var(--border-strong);
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--surface) 96%, var(--blue));
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.42);
    transform-origin: top;
    animation: quick-invoice-select-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes quick-invoice-select-in {
    from { opacity: 0; transform: translateY(-0.4rem) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.quick-invoice-product-select__menu button {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) 1.2rem;
    gap: 0.7rem;
    align-items: center;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 180ms ease;
}

.quick-invoice-product-select__menu button:hover,
.quick-invoice-product-select__menu button:focus-visible {
    border-color: rgba(76, 143, 230, 0.3);
    outline: none;
    background: rgba(76, 143, 230, 0.1);
    transform: translateX(2px);
}

.quick-invoice-product-select__menu button.is-selected {
    border-color: rgba(76, 143, 230, 0.42);
    background: rgba(76, 143, 230, 0.14);
}

.quick-invoice-product-select__menu button > i {
    opacity: 0;
    color: #81b5f6;
    font-style: normal;
    font-weight: 900;
    text-align: center;
    transform: scale(0.7);
    transition: opacity 160ms ease, transform 180ms ease;
}

.quick-invoice-product-select__menu button.is-selected > i {
    opacity: 1;
    transform: scale(1);
}

.quick-invoice-product-select__menu [data-invoice-product-option] > i {
    opacity: 1;
    transform: scale(1);
}

.quick-invoice-product-native {
    position: absolute;
    width: 1px !important;
    height: 1px;
    min-height: 0 !important;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
}

.quick-invoice-product-field > small {
    color: #ec6a6a;
    font-size: 0.72rem;
}

.invoice-preview-dialog {
    width: min(calc(100% - 2rem), 62rem);
    max-width: none;
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 1.25rem;
    background: transparent;
    color: var(--text);
}

.invoice-preview-dialog::backdrop {
    background: rgba(2, 8, 18, 0.82);
    backdrop-filter: blur(9px);
}

.invoice-preview-dialog__shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border: 1px solid rgba(76, 143, 230, 0.28);
    border-radius: 1.25rem;
    background: #0b1626;
    box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.62);
}

.invoice-preview-dialog[open] .invoice-preview-dialog__shell {
    animation: invoice-preview-in 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes invoice-preview-in {
    from { opacity: 0; transform: translateY(1rem) scale(0.975); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.invoice-preview-dialog__header,
.invoice-preview-dialog__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
}

.invoice-preview-dialog__header {
    min-height: 4.8rem;
    border-bottom: 1px solid #22344c;
    background: #0d192a;
}

.invoice-preview-dialog__header .ui-overline {
    color: #77a9e8;
}

.invoice-preview-dialog__header h2 {
    margin: 0.15rem 0 0;
    color: #f4f8ff;
    font-size: 1.15rem;
}

.invoice-preview-dialog__header > button {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 2.45rem;
    place-items: center;
    border: 1px solid #38506e;
    border-radius: 50%;
    background: #14243a;
    color: #f2f7ff;
    font: inherit;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.22);
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.invoice-preview-dialog__header > button:hover,
.invoice-preview-dialog__header > button:focus-visible {
    border-color: rgba(236, 106, 106, 0.55);
    outline: none;
    background: rgba(236, 106, 106, 0.16);
    color: #ffb1b1;
}

.invoice-preview-sheet {
    margin: 1.2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow-y: auto;
    border-radius: 0.9rem;
    background: #f7f9fc;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.26);
    color: #28364a;
}

.invoice-preview-sheet__brand,
.invoice-preview-sheet__brand > div {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.invoice-preview-sheet__brand > div > div {
    display: grid;
    gap: 0.15rem;
}

.invoice-preview-sheet__brand strong {
    color: #0b1930;
    font-size: 1.05rem;
}

.invoice-preview-sheet__brand small {
    color: #6b788a;
    font-size: 0.67rem;
}

.invoice-preview-sheet__logo {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    flex: 0 0 3.25rem;
}

.invoice-preview-sheet__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.invoice-preview-sheet__badge {
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(32, 80, 160, 0.2);
    border-radius: 999px;
    background: rgba(48, 112, 192, 0.08);
    color: #2050a0;
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.invoice-preview-sheet__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
    gap: 2rem;
    margin-top: 3rem;
}

.invoice-preview-sheet__recipient {
    display: grid;
    align-content: start;
    gap: 0.22rem;
}

.invoice-preview-sheet__recipient > span,
.invoice-preview-sheet__note > span {
    margin-bottom: 0.3rem;
    color: #788597;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.invoice-preview-sheet__recipient strong {
    color: #0b1930;
    font-size: 1rem;
}

.invoice-preview-sheet__recipient small {
    color: #566579;
    font-size: 0.75rem;
}

.invoice-preview-sheet__intro dl,
.invoice-preview-sheet__totals {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.invoice-preview-sheet__intro dl > div,
.invoice-preview-sheet__totals > div {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.invoice-preview-sheet dt {
    color: #788597;
    font-size: 0.7rem;
}

.invoice-preview-sheet dd {
    margin: 0;
    color: #1a293d;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
}

.invoice-preview-sheet__table {
    margin-top: 2.5rem;
    border: 1px solid #dce3ec;
    border-radius: 0.75rem;
    overflow: hidden;
}

.invoice-preview-sheet__table-head,
.invoice-preview-sheet__table-row {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) 7rem 8rem 8rem;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem 1rem;
}

.invoice-preview-sheet__table-head {
    background: #eaf0f7;
    color: #627187;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.invoice-preview-sheet__table-head span:not(:first-child),
.invoice-preview-sheet__table-row > :not(:first-child) {
    text-align: right;
}

.invoice-preview-sheet__table-row {
    color: #425269;
    font-size: 0.76rem;
}

.invoice-preview-sheet__table-row strong {
    color: #142238;
}

.invoice-preview-sheet__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.invoice-preview-sheet__note p {
    margin: 0;
    color: #566579;
    font-size: 0.73rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.invoice-preview-sheet__totals {
    padding: 1rem;
    border-radius: 0.75rem;
    background: #edf2f8;
}

.invoice-preview-sheet__totals > div:last-child {
    margin-top: 0.25rem;
    padding-top: 0.7rem;
    border-top: 1px solid #cfd9e5;
}

.invoice-preview-sheet__totals > div:last-child dt,
.invoice-preview-sheet__totals > div:last-child dd {
    color: #123969;
    font-size: 0.9rem;
    font-weight: 900;
}

.invoice-preview-dialog__actions {
    justify-content: flex-end;
    min-height: 5.2rem;
    border-top: 1px solid #22344c;
    background: #0d192a;
}

.invoice-preview-dialog__actions button {
    min-height: 2.8rem;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.invoice-preview-dialog__back {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    border: 1px solid #3b5677;
    background: #162940;
    color: #edf5ff;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
}

.invoice-preview-dialog__back > span {
    color: #83b5f1;
    font-size: 1rem;
}

.invoice-preview-dialog__confirm {
    border: 1px solid rgba(229, 173, 30, 0.55);
    background: rgba(229, 173, 30, 0.08);
    color: var(--heading);
    box-shadow: none;
}

.invoice-preview-dialog__actions button:hover,
.invoice-preview-dialog__actions button:focus-visible {
    outline: none;
}

.invoice-preview-dialog__back:hover,
.invoice-preview-dialog__back:focus-visible {
    border-color: #628bc0;
    background: #1b3452;
    color: #fff;
}

.invoice-preview-dialog__confirm:hover,
.invoice-preview-dialog__confirm:focus-visible {
    border-color: rgba(241, 197, 77, 0.76);
    background: rgba(229, 173, 30, 0.14);
    box-shadow: 0 0 0 3px rgba(229, 173, 30, 0.07);
}

@media (max-width: 720px) {
    .invoice-preview-dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .invoice-preview-dialog__shell {
        max-height: 100vh;
        border-radius: 0;
    }

    .invoice-preview-sheet {
        margin: 0.75rem;
        padding: 1.15rem;
    }

    .invoice-preview-sheet__intro,
    .invoice-preview-sheet__footer {
        grid-template-columns: 1fr;
    }

    .invoice-preview-sheet__table {
        overflow-x: auto;
    }

    .invoice-preview-sheet__table-head,
    .invoice-preview-sheet__table-row {
        min-width: 38rem;
    }

    .invoice-preview-dialog__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-invoice-product-select__menu {
        animation: none;
    }

    .invoice-preview-dialog[open] .invoice-preview-dialog__shell {
        animation: none;
    }
}

@media (max-width: 1050px) {
    .customer-finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-overview-grid,
    .customer-invoice-layout { grid-template-columns: 1fr; }
    .quick-invoice-card { position: static; }

    .customer-master-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-master-group:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .crm-customer-finder__search,
    .customer-file-header { align-items: stretch; flex-direction: column; }
    .crm-search.crm-search--large > div { flex-wrap: wrap; }
    .crm-search.crm-search--large input { width: 100%; flex: 1 0 100%; }
    .customer-file-header__contact { justify-content: flex-start; }
    .customer-finance-metrics,
    .customer-data-list--wide { grid-template-columns: 1fr; }
    .customer-data-list div { grid-template-columns: 1fr; gap: 0.35rem; }
    .customer-master-groups { grid-template-columns: 1fr; padding: 0.8rem; }
    .customer-master-group:last-child { grid-column: auto; }
    .customer-master-group dl > div { grid-template-columns: 1fr; gap: 0.25rem; }
    .customer-user-grid { padding: 0.8rem; }
    .customer-user-card > header { grid-template-columns: auto minmax(0, 1fr); }
    .customer-user-card > header .customer-status-badge { grid-column: 2; }
    .customer-user-card dl { grid-template-columns: 1fr; }
    .customer-user-card > footer .customer-product-action { width: 100%; }
    .quick-invoice-form__row,
    .quick-invoice-form__row--amounts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .app-toast,
    .app-toast__progress {
        animation: none;
        transition: none;
    }
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.page-width {
    width: min(calc(100% - 48px), var(--page-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 17, 31, 0.9);
    backdrop-filter: blur(18px);
    transition: border-color 220ms ease, background-color 220ms ease;
}

.site-header__inner {
    width: min(calc(100% - 48px), 1240px);
    min-height: 76px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--heading);
    text-decoration: none;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(48, 112, 192, 0.24));
}

.brand span {
    display: grid;
    line-height: 1.1;
}

.brand strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand small {
    margin-top: 5px;
    color: #71809a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a {
    position: relative;
    color: #9ba8bc;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--heading);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    display: none;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    color: var(--heading);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: rgba(48, 112, 192, 0.52);
    transform: translateY(-2px);
}

.menu-toggle > span {
    width: 19px;
    height: 2px;
    border-radius: 10px;
    background: currentColor;
    transform-origin: center;
    transition: opacity 180ms ease, transform 220ms ease;
}

.site-header.is-menu-open .menu-toggle > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle > span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header.is-menu-open .menu-toggle > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
    display: none;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    color: var(--yellow);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background-color 220ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: rgba(48, 112, 192, 0.52);
    transform: translateY(-2px);
}

.theme-toggle__icon {
    position: relative;
    width: 21px;
    height: 21px;
}

.theme-toggle svg {
    position: absolute;
    inset: 0;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 180ms ease, transform 260ms ease;
}

.theme-toggle__sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-toggle__moon {
    opacity: 0;
    transform: rotate(-25deg) scale(0.65);
}

[data-theme="light"] .theme-toggle {
    color: #245da9;
    box-shadow: 0 8px 22px rgba(25, 52, 85, 0.1);
}

[data-theme="light"] .theme-toggle__sun {
    opacity: 0;
    transform: rotate(35deg) scale(0.65);
}

[data-theme="light"] .theme-toggle__moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .site-header {
    background: rgba(244, 247, 251, 0.9);
}

[data-theme="light"] .menu-toggle {
    box-shadow: 0 8px 22px rgba(25, 52, 85, 0.1);
}

[data-theme="light"] .brand small,
[data-theme="light"] .choice-card__number,
[data-theme="light"] .site-footer__inner {
    color: #64748b;
}

[data-theme="light"] .site-nav a {
    color: #526177;
}

.hero {
    position: relative;
    min-height: calc(100svh - 76px);
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 84px 0 92px;
    isolation: isolate;
    background: var(--background);
}

.hero__video {
    position: absolute;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    background: var(--background);
}

.hero__video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.7) contrast(1.08);
    transform: scale(1.025);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(8, 17, 31, 0.74), rgba(8, 17, 31, 0.84)),
        radial-gradient(circle at 50% 42%, rgba(32, 80, 160, 0.17), transparent 52%);
}

[data-theme="light"] .hero::after {
    background:
        linear-gradient(180deg, rgba(244, 247, 251, 0.76), rgba(244, 247, 251, 0.9)),
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.2), transparent 50%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(48, 112, 192, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(48, 112, 192, 0.08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

[data-theme="light"] .hero::before {
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(32, 80, 160, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 80, 160, 0.08) 1px, transparent 1px);
}

.hero__glow {
    position: absolute;
    z-index: -1;
    top: 43%;
    left: 50%;
    width: min(720px, 90vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(48, 112, 192, 0.17);
    filter: blur(45px);
    transform: translate(-50%, -50%);
}

.hero__content {
    text-align: center;
}

.hero__logo-shell {
    width: 142px;
    height: 142px;
    margin: 0 auto 26px;
    padding: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(48, 112, 192, 0.32);
    border-radius: 38px;
    background: rgba(17, 31, 50, 0.82);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.31), 0 0 42px rgba(48, 112, 192, 0.16);
    transform: rotate(-2deg);
}

[data-theme="light"] .hero__logo-shell {
    border-color: rgba(32, 80, 160, 0.22);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 54px rgba(11, 23, 40, 0.13), 0 0 42px rgba(32, 80, 160, 0.09);
}

.hero__logo-shell img {
    width: 118px;
    height: 118px;
    object-fit: contain;
}

.status {
    width: fit-content;
    margin: 0 auto;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(48, 112, 192, 0.32);
    border-radius: 999px;
    color: #cad8f0;
    background: rgba(48, 112, 192, 0.1);
    font-size: 12px;
    font-weight: 750;
}

.status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #55e28a;
    box-shadow: 0 0 0 6px rgba(85, 226, 138, 0.08), 0 0 18px rgba(85, 226, 138, 0.5);
}

[data-theme="light"] .status {
    color: #204c91;
    border-color: rgba(32, 80, 160, 0.34);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 24px rgba(32, 80, 160, 0.1);
}

[data-theme="light"] .status span {
    background: #18b968;
    box-shadow: 0 0 0 5px rgba(24, 185, 104, 0.12), 0 0 14px rgba(24, 185, 104, 0.34);
}

.hero__title {
    max-width: 1100px;
    margin: 30px auto 34px;
    color: var(--heading);
}

.hero__welcome {
    display: block;
    font-size: clamp(27px, 3.8vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero__wordmark {
    position: relative;
    margin-top: 11px;
    padding: 0 4px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 27px);
}

.hero__wordmark::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--blue-light) 0 72%, var(--yellow) 72% 100%);
    box-shadow: 0 0 24px rgba(48, 112, 192, 0.22);
}

.hero__name {
    font-size: clamp(70px, 11vw, 142px);
    font-weight: 800;
    line-height: 0.84;
    letter-spacing: -0.078em;
}

.hero__initials {
    position: relative;
    padding: 12px 15px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 15px 36px rgba(32, 80, 160, 0.28);
    font-size: clamp(25px, 4vw, 49px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.015em;
}

.hero__initials::after {
    content: "";
    position: absolute;
    top: -6px;
    right: -6px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--background);
    border-radius: 50%;
    background: var(--yellow);
}

[data-theme="light"] .hero__initials {
    border-color: rgba(11, 23, 40, 0.12);
    box-shadow: 0 15px 34px rgba(32, 80, 160, 0.2);
}

.hero__lead {
    max-width: 820px;
    margin: 0 auto;
    color: #9ba9bf;
    font-size: clamp(18px, 2vw, 23px);
}

[data-theme="light"] .hero__lead,
[data-theme="light"] .section-heading > p:last-child,
[data-theme="light"] .choice-card__description {
    color: #5c6c82;
}

.hero__action {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 35px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    border: 1px solid rgba(255, 181, 71, 0.4);
    border-radius: var(--radius-small);
    color: var(--heading);
    background: rgba(229, 173, 30, 0.08);
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.hero__action::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -2px;
    background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.5) 45%, transparent 72%);
    transform: translateX(-115%);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__action span {
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__action:hover,
.hero__action:focus-visible {
    border-color: rgba(255, 219, 107, 0.85);
    background: rgba(229, 173, 30, 0.14);
    box-shadow: 0 0 0 3px rgba(229, 173, 30, 0.07);
    transform: translateY(-4px) scale(1.015);
}

.hero__action:hover::before,
.hero__action:focus-visible::before {
    transform: translateX(115%);
}

.hero__action:hover span,
.hero__action:focus-visible span {
    transform: translateY(4px);
}

.home-showcase {
    position: relative;
    overflow: hidden;
    padding: 112px 0 122px;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(circle at 10% 8%, var(--yellow-soft), transparent 24%),
        radial-gradient(circle at 88% 88%, rgba(48, 112, 192, 0.12), transparent 28%),
        var(--background);
}

.home-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.38;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    pointer-events: none;
}

.home-showcase > .page-width {
    position: relative;
}

.home-showcase__heading {
    margin-bottom: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    align-items: end;
    gap: clamp(34px, 7vw, 100px);
}

.home-showcase__heading h2 {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--heading);
    font-size: clamp(46px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.058em;
}

.home-showcase__heading > p {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}

.home-showcase__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 20px;
}

.home-showcase__stack {
    min-width: 0;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-showcase__item {
    --showcase-accent: var(--blue-light);
    position: relative;
    isolation: isolate;
    min-height: 285px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--showcase-accent) 32%, transparent);
    border-radius: var(--radius);
    color: #ffffff;
    background: #08111f;
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

[data-theme="light"] .home-showcase__item {
    box-shadow: 0 20px 52px rgba(25, 52, 85, 0.12);
}

.home-showcase__item--elektro {
    --showcase-accent: var(--yellow);
}

.home-showcase__item--main {
    min-height: 590px;
}

.home-showcase__item::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 12, 24, 0.08) 36%, rgba(5, 12, 24, 0.92) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--showcase-accent) 18%, transparent), transparent 48%);
}

.home-showcase__item img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 300ms ease;
}

.home-showcase__item--main img {
    object-position: 58% center;
}

.home-showcase__item:hover img,
.home-showcase__item:focus-visible img {
    filter: saturate(1.08);
    transform: scale(1.045);
}

.home-showcase__item:focus-visible {
    outline: 3px solid var(--showcase-accent);
    outline-offset: 4px;
}

.home-showcase__number {
    position: absolute;
    top: 25px;
    left: 27px;
    color: var(--showcase-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.17em;
}

.home-showcase__caption {
    position: absolute;
    right: 28px;
    bottom: 27px;
    left: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 7px 20px;
}

.home-showcase__caption small {
    grid-column: 1;
    color: var(--showcase-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.home-showcase__caption strong {
    grid-column: 1;
    font-size: clamp(22px, 2.7vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.home-showcase__caption i {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    color: #07101d;
    background: var(--showcase-accent);
    font-size: 19px;
    font-style: normal;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-showcase__item:hover .home-showcase__caption i,
.home-showcase__item:focus-visible .home-showcase__caption i {
    transform: translate(3px, -3px) rotate(7deg);
}

.choice-section {
    padding: 112px 0 122px;
    border-top: 1px solid var(--border);
    background: var(--background-soft);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 54px;
    text-align: center;
}

.eyebrow {
    margin: 0;
    color: var(--yellow-text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 13px 0 14px;
    color: var(--heading);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-heading > p:last-child {
    max-width: 640px;
    margin: 0 auto;
    color: #8997ad;
    font-size: 18px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.choice-card {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

[data-theme="light"] .choice-card {
    box-shadow: 0 20px 55px rgba(25, 52, 85, 0.09);
}

.choice-card::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -90px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(48, 112, 192, 0.1);
    transition: transform 300ms ease, background 200ms ease;
}

.choice-card--elektro::before {
    background: var(--yellow-soft);
}

.choice-card:hover,
.choice-card:focus-visible,
.choice-card[aria-pressed="true"] {
    border-color: rgba(48, 112, 192, 0.48);
    background: var(--surface-hover);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
    transform: translateY(-7px);
    outline: none;
}

.choice-card--elektro:hover,
.choice-card--elektro:focus-visible,
.choice-card--elektro[aria-pressed="true"] {
    border-color: rgba(255, 181, 71, 0.55);
}

.choice-card:hover::before,
.choice-card:focus-visible::before,
.choice-card[aria-pressed="true"]::before {
    transform: scale(1.16);
}

.choice-card__topline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.choice-card__number {
    color: #71809a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.choice-card__arrow {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--blue-light);
    font-size: 21px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice-card--elektro .choice-card__arrow {
    color: var(--yellow);
}

.choice-card:hover .choice-card__arrow,
.choice-card[aria-pressed="true"] .choice-card__arrow {
    color: #07101d;
    background: var(--blue-light);
    transform: rotate(8deg);
}

.choice-card--elektro:hover .choice-card__arrow,
.choice-card--elektro[aria-pressed="true"] .choice-card__arrow {
    background: var(--yellow);
}

.choice-card__icon {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 42px 0 32px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: var(--blue-light);
    background: rgba(48, 112, 192, 0.11);
}

.choice-card--elektro .choice-card__icon {
    color: var(--yellow);
    background: var(--yellow-soft);
}

.choice-card__icon svg {
    width: 52px;
    height: 52px;
}

.choice-card__icon path {
    fill: currentColor;
}

.choice-card--programmierung .choice-card__icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.choice-card__title {
    color: var(--heading);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.choice-card__description {
    max-width: 500px;
    margin-top: 15px;
    color: #93a1b7;
    font-size: 16px;
}

.choice-card__services {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice-card__services > span {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #8290a6;
    background: rgba(5, 10, 19, 0.18);
    font-size: 11px;
    font-weight: 700;
}

[data-theme="light"] .choice-card__services > span {
    color: #5d6c80;
    background: rgba(32, 80, 160, 0.05);
}

.choice-feedback {
    min-height: 26px;
    margin: 28px 0 0;
    color: #6f7e95;
    font-size: 13px;
    text-align: center;
}

[data-theme="light"] .choice-feedback {
    color: #67768c;
}

.choice-feedback.is-active {
    color: #b8c6d9;
}

[data-theme="light"] .choice-feedback.is-active {
    color: #34465f;
}

.area-hero {
    --area-accent: var(--blue-light);
    --area-soft: rgba(48, 112, 192, 0.12);
    position: relative;
    min-height: 720px;
    overflow: hidden;
    padding: 150px 0 110px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 78% 44%, var(--area-soft), transparent 28%),
        var(--background);
}

.area-hero--elektro {
    --area-accent: var(--yellow);
    --area-soft: var(--yellow-soft);
}

.area-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.area-hero__content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: clamp(50px, 8vw, 120px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--area-accent);
    transform: translateX(-3px);
}

.area-kicker {
    margin: 44px 0 18px;
    color: var(--area-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.area-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--heading);
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.area-hero h1 em {
    color: var(--area-accent);
    font-style: normal;
}

.area-hero__lead {
    max-width: 680px;
    margin: 28px 0 0;
    color: #9ba9bf;
    font-size: clamp(18px, 2vw, 22px);
}

[data-theme="light"] .area-hero__lead {
    color: #52647a;
}

.area-action {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 34px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    border: 1px solid color-mix(in srgb, var(--area-accent) 55%, transparent);
    border-radius: var(--radius-small);
    color: var(--heading);
    background: var(--area-soft);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--area-accent) 10%, transparent);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.area-action::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -2px;
    background: linear-gradient(110deg, transparent 18%, color-mix(in srgb, var(--area-accent) 32%, transparent) 48%, transparent 76%);
    transform: translateX(-115%);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.area-action span {
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.area-action:hover,
.area-action:focus-visible {
    background: color-mix(in srgb, var(--area-accent) 22%, var(--surface));
    border-color: color-mix(in srgb, var(--area-accent) 82%, transparent);
    box-shadow: 0 18px 42px color-mix(in srgb, var(--area-accent) 22%, transparent);
    transform: translateY(-4px) scale(1.015);
}

.area-action:hover::before,
.area-action:focus-visible::before {
    transform: translateX(115%);
}

.area-action:hover span,
.area-action:focus-visible span {
    transform: translateY(4px);
}

.hero__action:active,
.area-action:active {
    transform: translateY(-1px) scale(0.985);
}

.area-visual {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--area-accent) 28%, transparent);
    border-radius: 42px;
    color: var(--area-accent);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.24);
    transform: rotate(2deg);
}

[data-theme="light"] .area-visual {
    box-shadow: 0 34px 80px rgba(20, 45, 80, 0.13);
}

.area-visual::before,
.area-visual::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--area-accent);
    box-shadow: 0 0 24px var(--area-accent);
}

.area-visual::before {
    top: 28px;
    right: 28px;
}

.area-visual::after {
    bottom: 28px;
    left: 28px;
}

.area-visual__label {
    position: absolute;
    top: 28px;
    left: 30px;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.area-visual svg {
    width: min(78%, 360px);
    height: auto;
    overflow: visible;
}

.area-visual circle,
.area-visual__line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    opacity: 0.24;
}

.area-visual__symbol {
    fill: none;
    stroke: currentColor;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.area-visual__symbol--fill {
    fill: currentColor;
    stroke: none;
}

.area-photo {
    position: relative;
    isolation: isolate;
    aspect-ratio: 1;
    overflow: hidden;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--area-accent) 34%, transparent);
    border-radius: 42px;
    background: var(--surface);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
    transform: rotate(2deg);
}

[data-theme="light"] .area-photo {
    box-shadow: 0 34px 80px rgba(20, 45, 80, 0.16);
}

.area-photo::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 12, 24, 0.05) 38%, rgba(5, 12, 24, 0.9) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--area-accent) 18%, transparent), transparent 48%);
    pointer-events: none;
}

.area-photo::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 28px;
    right: 28px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--area-accent);
    box-shadow: 0 0 24px var(--area-accent);
}

.area-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.area-photo--elektro img {
    object-position: 58% center;
}

.area-photo:hover img {
    transform: scale(1.045);
}

.area-photo figcaption {
    position: absolute;
    z-index: 3;
    right: 34px;
    bottom: 34px;
    left: 34px;
    display: grid;
    gap: 8px;
    color: #ffffff;
}

.area-photo figcaption span {
    color: var(--area-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.area-photo figcaption strong {
    max-width: 390px;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.area-services {
    padding: 112px 0 122px;
    border-top: 1px solid var(--border);
    background: var(--background-soft);
}

.area-heading {
    max-width: 820px;
    margin-bottom: 54px;
}

.area-heading h2,
.work-process h2,
.area-switch h2 {
    margin: 12px 0 16px;
    color: var(--heading);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.area-heading > p:last-child {
    max-width: 650px;
    margin: 0;
    color: #8997ad;
    font-size: 18px;
}

[data-theme="light"] .area-heading > p:last-child {
    color: #5c6c82;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    min-height: 360px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .service-card {
    box-shadow: 0 18px 48px rgba(25, 52, 85, 0.08);
}

.service-card__number {
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.service-card--elektro .service-card__number {
    color: var(--yellow-text);
}

.service-card h3 {
    margin: 62px 0 15px;
    color: var(--heading);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.service-card p {
    margin: 0;
    color: #93a1b7;
}

[data-theme="light"] .service-card p {
    color: #5c6c82;
}

.service-card ul {
    margin: auto 0 0;
    padding: 28px 0 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.service-card li {
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.service-card__tag {
    align-self: flex-start;
    margin-top: auto;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--yellow-text);
    background: var(--yellow-soft);
    font-size: 11px;
    font-weight: 800;
}

.service-spotlight {
    --area-accent: var(--blue-light);
    --area-soft: rgba(48, 112, 192, 0.12);
    overflow: hidden;
    margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.service-spotlight--elektro {
    --area-accent: var(--yellow);
    --area-soft: var(--yellow-soft);
}

[data-theme="light"] .service-spotlight {
    box-shadow: 0 18px 48px rgba(25, 52, 85, 0.08);
}

.service-spotlight figure {
    min-height: 440px;
    overflow: hidden;
    margin: 0;
}

.service-spotlight figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.service-spotlight:hover figure img {
    transform: scale(1.035);
}

.service-spotlight__copy {
    padding: clamp(34px, 5vw, 68px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.service-spotlight__index {
    color: var(--yellow-text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.service-spotlight h3 {
    margin: 18px 0 18px;
    color: var(--heading);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.service-spotlight p {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}

.service-spotlight .area-action {
    margin-top: 30px;
}

.work-process {
    padding: 112px 0;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.work-process__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
    gap: clamp(60px, 9vw, 130px);
}

.work-process h2 {
    font-size: clamp(38px, 4vw, 58px);
}

.process-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    margin-inline: -16px;
    padding: 25px 16px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    border-top: 1px solid var(--border);
    border-radius: 16px;
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.process-list li:last-child {
    border-bottom: 1px solid var(--border);
}

.process-list > li > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.area-hero--elektro ~ .work-process .process-list > li > span {
    color: var(--yellow-text);
}

.process-list strong {
    color: var(--heading);
    font-size: 18px;
}

.process-list li > div {
    transition: transform 200ms ease;
}

@media (hover: hover) {
    .process-list li:hover {
        border-color: rgba(48, 112, 192, 0.35);
        background: rgba(48, 112, 192, 0.08);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
        transform: translateX(6px);
    }

    .process-list li:hover > span {
        border-color: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        background: var(--blue-light);
        box-shadow: 0 8px 22px rgba(32, 80, 160, 0.28);
        transform: rotate(-7deg) scale(1.08);
    }

    .process-list li:hover > div {
        transform: translateX(4px);
    }

    .area-hero--elektro ~ .work-process .process-list li:hover {
        border-color: rgba(255, 181, 71, 0.38);
        background: var(--yellow-soft);
    }

    .area-hero--elektro ~ .work-process .process-list li:hover > span {
        border-color: rgba(255, 255, 255, 0.18);
        color: #07101d;
        background: var(--yellow);
        box-shadow: 0 8px 22px rgba(255, 181, 71, 0.24);
    }

    [data-theme="light"] .process-list li:hover {
        box-shadow: 0 14px 32px rgba(25, 52, 85, 0.1);
    }
}

.process-list p {
    margin: 7px 0 0;
    color: #8997ad;
}

[data-theme="light"] .process-list p {
    color: #5c6c82;
}

.area-switch {
    padding: 82px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.area-switch__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
}

.area-switch h2 {
    max-width: 780px;
    margin-bottom: 0;
    font-size: clamp(34px, 4vw, 54px);
}

.area-switch__link {
    flex: 0 0 auto;
    padding: 15px 18px;
    display: inline-flex;
    align-items: center;
    gap: 22px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-small);
    color: var(--heading);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease;
}

.area-switch__link--programmierung:hover,
.area-switch__link--programmierung:focus-visible {
    border-color: var(--blue-light);
    transform: translateY(-3px);
}

.area-switch__link--elektro:hover,
.area-switch__link--elektro:focus-visible {
    border-color: var(--yellow);
    transform: translateY(-3px);
}

.contact-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    padding: 128px 0 112px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 76% 36%, rgba(48, 112, 192, 0.17), transparent 30%),
        radial-gradient(circle at 20% 78%, rgba(255, 181, 71, 0.08), transparent 28%),
        var(--background);
}

.contact-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent);
}

.contact-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: center;
    gap: clamp(60px, 9vw, 120px);
}

.contact-hero h1 {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--heading);
    font-size: clamp(52px, 6vw, 82px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.contact-hero h1 em {
    color: var(--blue-light);
    font-style: normal;
}

.contact-hero__lead {
    max-width: 670px;
    margin: 28px 0 0;
    color: #9ba9bf;
    font-size: clamp(18px, 2vw, 22px);
}

[data-theme="light"] .contact-hero__lead {
    color: #52647a;
}

.contact-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 35px;
}

.contact-visual {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(48, 112, 192, 0.3);
    border-radius: 42px;
    color: var(--blue-light);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.24);
    transform: rotate(2deg);
}

[data-theme="light"] .contact-visual {
    box-shadow: 0 34px 80px rgba(20, 45, 80, 0.13);
}

.contact-visual::before {
    content: "";
    position: absolute;
    inset: 11%;
    border: 1px dashed rgba(255, 181, 71, 0.35);
    border-radius: 50%;
    animation: contact-orbit 22s linear infinite;
}

.contact-visual__label {
    position: absolute;
    top: 28px;
    left: 28px;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-visual svg {
    width: 78%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.contact-visual svg circle {
    opacity: 0.23;
    stroke-width: 1.5;
}

.contact-visual__signal {
    color: var(--yellow);
    stroke: currentColor;
    stroke-width: 3;
}

@keyframes contact-orbit {
    to {
        transform: rotate(360deg);
    }
}

.contact-paths {
    padding: 112px 0 122px;
    border-top: 1px solid var(--border);
    background: var(--background-soft);
}

.contact-paths__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.contact-path {
    position: relative;
    min-height: 360px;
    text-decoration: none;
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 240ms ease, box-shadow 280ms ease, background 240ms ease;
}

.contact-path::before {
    content: "";
    position: absolute;
    top: -105px;
    right: -95px;
    width: 285px;
    height: 285px;
    border-radius: 50%;
    background: rgba(48, 112, 192, 0.1);
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-path--elektro::before {
    background: var(--yellow-soft);
}

.contact-path__number {
    position: relative;
    color: #71809a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.contact-path__icon {
    position: relative;
    min-width: 76px;
    height: 76px;
    margin: 45px 0 30px;
    padding-inline: 16px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #ffffff;
    background: var(--blue);
    font-size: 24px;
    font-weight: 800;
}

.contact-path--elektro .contact-path__icon {
    color: #08111f;
    background: var(--yellow);
    font-size: 38px;
}

.contact-path strong {
    position: relative;
    color: var(--heading);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.08;
}

.contact-path > span:not(.contact-path__number, .contact-path__icon) {
    position: relative;
    max-width: 460px;
    margin-top: 12px;
}

.contact-path i {
    position: relative;
    margin-top: auto;
    padding-top: 28px;
    color: var(--blue-light);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.contact-path--elektro i {
    color: var(--yellow-text);
}

.contact-path:hover,
.contact-path:focus-visible {
    border-color: rgba(48, 112, 192, 0.5);
    background: var(--surface-hover);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.2);
    transform: translateY(-7px);
}

.contact-path--elektro:hover,
.contact-path--elektro:focus-visible {
    border-color: rgba(255, 181, 71, 0.55);
}

.contact-path:hover::before,
.contact-path:focus-visible::before {
    transform: scale(1.16);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #060d17;
}

[data-theme="light"] .site-footer {
    background: #e4ebf3;
}

.site-footer__inner {
    width: min(calc(100% - 48px), var(--page-width));
    min-height: 84px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #68778e;
    font-size: 12px;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.site-footer__phone {
    white-space: nowrap;
}

.site-footer__nav a {
    color: var(--text);
    text-decoration: none;
    transition: color 180ms ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    color: var(--heading);
}

/* Impressum --------------------------------------------------------------- */

.legal-hero {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    padding: 130px 0 110px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 82% 38%, rgba(48, 112, 192, 0.2), transparent 28%),
        radial-gradient(circle at 12% 84%, rgba(255, 181, 71, 0.08), transparent 26%),
        var(--background);
    isolation: isolate;
}

.legal-hero__grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: 0.52;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.legal-hero__glow {
    position: absolute;
    z-index: -1;
    top: 18%;
    right: 7%;
    width: min(42vw, 520px);
    aspect-ratio: 1;
    border: 1px solid rgba(48, 112, 192, 0.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 72px rgba(48, 112, 192, 0.025),
        0 0 0 144px rgba(48, 112, 192, 0.018);
}

.legal-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    align-items: center;
    gap: clamp(52px, 8vw, 112px);
}

.legal-hero h1 {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--heading);
    font-size: clamp(52px, 6vw, 82px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.legal-hero h1 em {
    color: var(--blue-light);
    font-style: normal;
}

.legal-hero__lead {
    max-width: 650px;
    margin: 28px 0 0;
    color: #9ba9bf;
    font-size: clamp(18px, 2vw, 22px);
}

[data-theme="light"] .legal-hero__lead {
    color: #52647a;
}

.legal-hero__action {
    --area-accent: var(--blue-light);
    --area-soft: rgba(48, 112, 192, 0.12);
}

.legal-monogram {
    position: relative;
    aspect-ratio: 1;
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(48, 112, 192, 0.32);
    border-radius: 42px;
    color: var(--heading);
    background:
        linear-gradient(145deg, rgba(48, 112, 192, 0.13), transparent 48%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.24);
    transform: rotate(2deg);
}

[data-theme="light"] .legal-monogram {
    box-shadow: 0 34px 80px rgba(20, 45, 80, 0.13);
}

.legal-monogram::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(255, 181, 71, 0.27);
    border-radius: 29px;
}

.legal-monogram__label,
.legal-monogram__index,
.legal-monogram i {
    position: absolute;
    z-index: 1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal-monogram__label {
    top: 34px;
    left: 38px;
    color: var(--text);
}

.legal-monogram__index {
    top: 34px;
    right: 38px;
    color: var(--yellow-text);
}

.legal-monogram strong {
    position: relative;
    z-index: 1;
    font-size: clamp(62px, 8vw, 104px);
    line-height: 0.82;
    letter-spacing: -0.09em;
}

.legal-monogram strong span {
    color: var(--blue-light);
}

.legal-monogram p {
    position: relative;
    z-index: 1;
    margin: 20px 0 0;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-monogram i {
    right: 38px;
    bottom: 38px;
    color: var(--blue-light);
    font-style: normal;
}

.legal-content {
    padding: 112px 0 122px;
    border-top: 1px solid var(--border);
    background: var(--background-soft);
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(230px, 0.35fr) minmax(0, 1fr);
    gap: clamp(48px, 8vw, 100px);
}

.legal-heading {
    position: sticky;
    top: 118px;
    align-self: start;
}

.legal-heading h2 {
    margin: 12px 0 16px;
    color: var(--heading);
    font-size: clamp(44px, 5vw, 66px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.legal-heading > p:last-child {
    margin: 0;
    color: var(--text);
    font-size: 14px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.legal-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
}

.legal-card::after {
    content: "";
    position: absolute;
    top: -54px;
    right: -54px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(48, 112, 192, 0.08);
}

.legal-card--primary {
    border-color: rgba(48, 112, 192, 0.28);
    background:
        linear-gradient(145deg, rgba(48, 112, 192, 0.1), transparent 58%),
        var(--surface);
}

.legal-card--wide {
    grid-column: 1 / -1;
    min-height: 230px;
}

.legal-card__number {
    display: block;
    margin-bottom: 48px;
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.legal-card__icon {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(48, 112, 192, 0.28);
    border-radius: 14px;
    color: var(--blue-light);
    background: rgba(48, 112, 192, 0.09);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.legal-card--media {
    background:
        radial-gradient(circle at 91% 12%, rgba(156, 106, 222, 0.15), transparent 27%),
        linear-gradient(145deg, rgba(48, 112, 192, 0.08), transparent 55%),
        var(--surface);
}

.legal-card__icon--media {
    border-color: rgba(156, 106, 222, 0.34);
    color: #b98af1;
    background: rgba(156, 106, 222, 0.12);
    font-size: 20px;
}

.media-credits {
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
}

.media-credits li {
    padding: 15px 16px;
    display: grid;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--background-soft) 72%, transparent);
}

.media-credits li > span {
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.media-credits a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--heading);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.media-credits a i,
.media-license i {
    font-style: normal;
    transition: transform 180ms ease;
}

.media-credits a:hover i,
.media-credits a:focus-visible i,
.media-license:hover i,
.media-license:focus-visible i {
    transform: translate(3px, -3px);
}

.media-license {
    width: fit-content;
    margin-top: 18px;
    padding: 10px 13px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(48, 112, 192, 0.28);
    border-radius: 999px;
    color: var(--heading);
    background: rgba(48, 112, 192, 0.08);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.media-license > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #07101d;
    background: var(--yellow);
    font-size: 11px;
    font-weight: 900;
}

.legal-card__label {
    margin: 0 0 8px;
    color: var(--yellow-text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legal-card h3 {
    margin: 0 0 18px;
    color: var(--heading);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.legal-card p {
    margin: 0;
}

.legal-card address {
    display: grid;
    color: var(--text);
    font-style: normal;
    line-height: 1.7;
}

.legal-card__meta {
    width: max-content;
    margin-top: 22px !important;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--blue-light);
    background: rgba(48, 112, 192, 0.1);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-contact {
    margin-top: 30px;
    padding: 15px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    text-decoration: none;
}

.legal-contact span {
    display: grid;
    gap: 2px;
}

.legal-contact small {
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-contact strong {
    color: var(--heading);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.legal-contact i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #07101d;
    background: var(--yellow);
    font-style: normal;
    transition: transform 180ms ease;
}

.legal-contact:hover i,
.legal-contact:focus-visible i {
    transform: translate(3px, -3px);
}

.legal-note {
    grid-column: 2;
    margin-top: 4px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-small);
    background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.legal-note > span {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--heading);
    background: rgba(48, 112, 192, 0.16);
    font-size: 13px;
    font-weight: 900;
}

.legal-note p {
    margin: 0;
    font-size: 13px;
}

.legal-note a {
    color: var(--heading);
    font-weight: 800;
    text-underline-offset: 3px;
}

/* Datenschutz ------------------------------------------------------------- */

.privacy-monogram strong {
    font-size: clamp(45px, 6.5vw, 82px);
    letter-spacing: -0.075em;
}

.privacy-sections {
    min-width: 0;
    display: grid;
    gap: 20px;
}

.privacy-toc {
    margin-top: 34px;
    display: grid;
    border-top: 1px solid var(--border);
}

.privacy-toc a {
    padding: 12px 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease, padding-left 160ms ease;
}

.privacy-toc a span {
    color: var(--blue-light);
    font-size: 9px;
    letter-spacing: 0.12em;
}

.privacy-toc a:hover,
.privacy-toc a:focus-visible {
    padding-left: 5px;
    color: var(--heading);
}

.privacy-card {
    min-height: 0;
    scroll-margin-top: 110px;
}

.privacy-card .legal-card__number {
    margin-bottom: 32px;
}

.privacy-card p + p,
.privacy-card p + ul,
.privacy-card ul + p,
.privacy-card p + address {
    margin-top: 16px;
}

.privacy-card strong,
.privacy-card code,
.privacy-card a {
    color: var(--heading);
}

.privacy-card a {
    text-underline-offset: 3px;
}

.privacy-card code {
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--background-soft);
    font-size: 0.86em;
    overflow-wrap: anywhere;
}

.privacy-card__footnote {
    margin-top: 22px !important;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.privacy-list {
    margin-bottom: 0;
    padding-left: 20px;
    color: var(--text);
}

.privacy-list li + li {
    margin-top: 7px;
}

.privacy-authority {
    gap: 5px;
    margin-top: 22px !important;
    padding: 18px 20px;
    border-left: 3px solid var(--blue-light);
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    background: var(--background-soft);
}

.privacy-update-note {
    grid-column: auto;
    margin-top: 0;
}

:focus-visible {
    outline: 3px solid rgba(255, 181, 71, 0.9);
    outline-offset: 4px;
}

.scroll-reveal {
    --reveal-delay: 0ms;
    opacity: 0;
    filter: blur(4px);
    translate: 0 34px;
    scale: 0.99;
    transition:
        opacity 680ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
        filter 680ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
        translate 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
        scale 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 280ms ease,
        border-color 240ms ease,
        background 240ms ease,
        color 200ms ease;
    will-change: opacity, filter, translate, scale;
}

.scroll-reveal--left {
    translate: -42px 0;
}

.scroll-reveal--right {
    translate: 42px 0;
}

.scroll-reveal--scale {
    translate: 0 24px;
    scale: 0.965;
}

.scroll-reveal.is-visible {
    opacity: 1;
    filter: none;
    translate: 0 0;
    scale: 1;
    will-change: auto;
}

@media (max-width: 900px) {
    .site-nav--desktop {
        display: none;
    }

    .site-header__actions {
        gap: 10px;
    }

    .menu-toggle {
        display: grid;
    }

    .site-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: block;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid transparent;
        opacity: 0;
        visibility: hidden;
        background: rgba(8, 17, 31, 0.98);
        box-shadow: 0 34px 70px rgba(0, 0, 0, 0.34);
        transform: translateY(-12px);
        transition: max-height 360ms ease, opacity 180ms ease, visibility 180ms ease, transform 260ms ease, border-color 180ms ease;
    }

    [data-theme="light"] .site-menu {
        background: rgba(244, 247, 251, 0.99);
        box-shadow: 0 34px 70px rgba(25, 52, 85, 0.17);
    }

    .site-header.is-menu-open .site-menu {
        max-height: calc(100svh - 76px);
        overflow-y: auto;
        border-color: var(--border);
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-menu__inner {
        width: min(calc(100% - 48px), 900px);
        margin-inline: auto;
        padding: 34px 0 40px;
    }

    .site-menu__label {
        margin: 0 0 18px;
        color: #71809a;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }

    .site-menu__nav {
        border-bottom: 1px solid var(--border);
    }

    .site-menu__nav a {
        padding: 18px 0;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        align-items: center;
        gap: 18px;
        border-top: 1px solid var(--border);
        color: var(--heading);
        text-decoration: none;
        transition: color 180ms ease, padding 180ms ease;
    }

    .site-menu__nav a > span {
        color: #71809a;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.14em;
    }

    .site-menu__nav strong {
        font-size: clamp(24px, 5vw, 34px);
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .site-menu__nav i {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border: 1px solid var(--border-strong);
        border-radius: 50%;
        color: var(--blue-light);
        font-size: 18px;
        font-style: normal;
        transition: color 180ms ease, background 180ms ease, transform 180ms ease;
    }

    .site-menu__nav a:nth-child(2) i {
        color: var(--yellow);
    }

    .site-menu__nav a:hover,
    .site-menu__nav a:focus-visible {
        padding-right: 4px;
        padding-left: 4px;
        color: var(--blue-light);
        outline-offset: -3px;
    }

    .site-menu__nav a:nth-child(2):hover,
    .site-menu__nav a:nth-child(2):focus-visible {
        color: var(--yellow);
    }

    .site-menu__nav a:hover i,
    .site-menu__nav a:focus-visible i {
        color: #07101d;
        background: var(--blue-light);
        transform: rotate(8deg);
    }

    .site-menu__nav a:nth-child(2):hover i,
    .site-menu__nav a:nth-child(2):focus-visible i {
        background: var(--yellow);
    }

    .site-menu__claim {
        margin: 24px 0 0;
        color: #71809a;
        font-size: 12px;
        font-weight: 700;
    }
}

@media (max-width: 760px) {
    .page-width,
    .site-header__inner,
    .site-footer__inner {
        width: min(calc(100% - 32px), var(--page-width));
    }

    .site-header__inner {
        min-height: 68px;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand small {
        display: none;
    }

    .site-nav {
        gap: 18px;
    }

    .site-header__actions {
        gap: 9px;
    }

    .site-nav a {
        font-size: 12px;
    }

    .hero {
        min-height: calc(100svh - 68px);
        padding: 65px 0 72px;
    }

    .hero__logo-shell {
        width: 116px;
        height: 116px;
        border-radius: 31px;
    }

    .hero__logo-shell img {
        width: 94px;
        height: 94px;
    }

    .hero__name {
        font-size: clamp(62px, 18vw, 100px);
    }

    .hero__initials {
        font-size: clamp(24px, 6vw, 38px);
    }

    .hero__lead {
        font-size: 17px;
    }

    .choice-section {
        padding: 82px 0 90px;
    }

    .home-showcase {
        padding: 82px 0 90px;
    }

    .home-showcase__heading,
    .home-showcase__grid {
        grid-template-columns: 1fr;
    }

    .home-showcase__heading {
        align-items: start;
    }

    .home-showcase__item--main {
        min-height: 500px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .choice-card {
        min-height: 450px;
    }

    .area-hero {
        min-height: auto;
        padding: 110px 0 82px;
    }

    .area-hero__content,
    .work-process__layout {
        grid-template-columns: 1fr;
    }

    .area-visual {
        width: min(100%, 470px);
        margin-inline: auto;
    }

    .area-photo {
        width: min(100%, 470px);
        margin-inline: auto;
    }

    .service-grid,
    .service-grid--three {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 330px;
    }

    .service-spotlight {
        grid-template-columns: 1fr;
    }

    .service-spotlight figure {
        min-height: 360px;
    }

    .area-switch__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-hero {
        min-height: auto;
        padding: 110px 0 88px;
    }

    .contact-hero__inner {
        grid-template-columns: 1fr;
    }

    .contact-hero h1 {
        font-size: clamp(46px, 12vw, 68px);
    }

    .contact-visual {
        width: min(100%, 470px);
        margin-inline: auto;
        border-radius: 30px;
    }

    .contact-paths {
        padding: 82px 0 90px;
    }

    .contact-paths__grid {
        grid-template-columns: 1fr;
    }

    .legal-hero {
        min-height: auto;
        padding: 106px 0 86px;
    }

    .legal-hero__inner,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-hero h1 {
        font-size: clamp(46px, 12vw, 68px);
    }

    .legal-monogram {
        width: min(100%, 470px);
        margin-inline: auto;
        border-radius: 30px;
    }

    .legal-content {
        padding: 82px 0 90px;
    }

    .legal-heading {
        position: static;
    }

    .legal-note {
        grid-column: 1;
    }

    .media-credits {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        padding: 24px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
    }

    .site-footer__nav {
        margin-top: 9px;
    }
}

@media (max-width: 430px) {
    .brand strong {
        font-size: 15px;
    }

    .site-nav {
        gap: 12px;
    }

    .site-nav a:first-child {
        display: none;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px;
    }

    .site-menu__inner {
        width: min(calc(100% - 32px), 900px);
    }

    .hero__welcome {
        font-size: 25px;
    }

    .hero__wordmark {
        gap: 11px;
    }

    .hero__name {
        font-size: clamp(54px, 18vw, 70px);
    }

    .hero__initials {
        padding: 9px 10px 8px;
        border-radius: 13px;
        font-size: 22px;
    }

    .status {
        font-size: 10px;
    }

    .hero__action {
        width: 100%;
        justify-content: space-between;
    }

    .home-showcase__heading h2 {
        font-size: 43px;
    }

    .home-showcase__item,
    .home-showcase__item--main {
        min-height: 330px;
        border-radius: 24px;
    }

    .home-showcase__caption {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }

    .choice-card {
        min-height: 430px;
        padding: 23px;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-card,
    .legal-card--wide {
        grid-column: 1;
        min-height: 0;
        padding: 25px;
    }

    .legal-card__number {
        margin-bottom: 38px;
    }

    .legal-monogram {
        padding: 30px;
    }

    .legal-monogram__label {
        top: 29px;
        left: 30px;
    }

    .legal-monogram__index {
        top: 29px;
        right: 30px;
    }

    .legal-monogram i {
        right: 30px;
        bottom: 30px;
    }

    .area-hero {
        padding-top: 94px;
    }

    .area-kicker {
        margin-top: 34px;
    }

    .area-hero h1 {
        font-size: 43px;
    }

    .area-visual {
        border-radius: 30px;
    }

    .area-photo {
        border-radius: 30px;
    }

    .area-photo figcaption {
        right: 25px;
        bottom: 25px;
        left: 25px;
    }

    .area-services,
    .work-process {
        padding: 82px 0;
    }

    .service-card {
        min-height: 310px;
        padding: 24px;
    }

    .service-spotlight figure {
        min-height: 280px;
    }

    .service-spotlight__copy {
        padding: 28px 24px 34px;
    }

    .area-switch__link {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:where(:not(.startseite-lokale-animation)) {
        scroll-behavior: auto;
    }

    :where(html:not(.startseite-lokale-animation)) *,
    :where(html:not(.startseite-lokale-animation)) *::before,
    :where(html:not(.startseite-lokale-animation)) *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    :where(html:not(.startseite-lokale-animation)) .hero__video {
        display: none;
    }

    :where(html:not(.startseite-lokale-animation)) .scroll-reveal {
        opacity: 1 !important;
        filter: none !important;
        translate: 0 0 !important;
        scale: 1 !important;
        transition: none !important;
    }
}

/* Kontaktformular */
.contact-path {
    text-align: left;
    cursor: pointer;
}

.contact-path.is-selected {
    border-color: var(--blue-light);
    background: color-mix(in srgb, var(--blue) 13%, var(--surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue-light) 42%, transparent), 0 28px 68px rgba(0, 0, 0, 0.2);
    transform: translateY(-7px);
}

.contact-path--elektro.is-selected {
    border-color: var(--yellow);
    background: color-mix(in srgb, var(--yellow) 10%, var(--surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--yellow) 38%, transparent), 0 28px 68px rgba(0, 0, 0, 0.2);
}

.contact-path.is-selected i::after {
    content: " · ausgewählt";
}

.contact-form-shell {
    scroll-margin-top: clamp(155px, 22vh, 210px);
    margin-top: 26px;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(48, 112, 192, 0.08), transparent 42%), var(--surface);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.contact-form-shell[hidden] {
    display: none;
}

.contact-form-shell__heading {
    margin-bottom: 38px;
    padding-bottom: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid var(--border);
}

.contact-form-shell__heading h3 {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--heading);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.contact-form-shell__heading #kontaktbereich-ausgabe {
    color: var(--blue-light);
}

.contact-form-shell__change {
    flex: 0 0 auto;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    color: var(--text);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.contact-form-shell__change:hover,
.contact-form-shell__change:focus-visible {
    border-color: var(--blue-light);
    color: var(--heading);
    background: rgba(48, 112, 192, 0.1);
    transform: translateY(-2px);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.contact-form__field--full {
    grid-column: 1 / -1;
}

.contact-form__field label span,
.contact-form__footer p span {
    color: var(--yellow-text);
}


.contact-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
}

.contact-form__consent input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--blue-light);
}

.contact-form__consent a {
    color: var(--heading);
    text-underline-offset: 3px;
}

.contact-form__footer {
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.contact-form__footer p,
.contact-form__status {
    margin: 0;
    color: #77879d;
    font-size: 12px;
}

.contact-form__status {
    margin: 0;
}

.contact-feedback,
.contact-form__validation,
.contact-form .input-validation-error {
    scroll-margin-top: clamp(155px, 22vh, 210px);
}

.contact-feedback {
    margin: 0 0 24px;
}

.contact-feedback.ui-alert,
.contact-form__validation {
    grid-template-columns: 1fr;
    gap: 6px;
}

.contact-form__validation ul {
    margin: 0;
    padding-left: 18px;
}

.contact-form__website {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__error {
    min-height: 0;
    color: #ef7777;
    font-size: 11px;
    line-height: 1.4;
}

[data-theme="light"] .contact-form__error,
[data-theme="light"] .contact-form .ui-field:has(.input-validation-error) label {
    color: #ad2525;
}

.contact-form__error:empty,
.contact-form__error.field-validation-valid {
    display: none;
}

.contact-form__error--consent {
    margin-top: -16px;
}

.contact-form .ui-field:has(.input-validation-error) label {
    color: #ef7777;
}

.contact-form .input-validation-error {
    border-color: color-mix(in srgb, var(--border-strong) 72%, transparent);
    box-shadow: inset 0 -2px 0 color-mix(in srgb, #dc5757 82%, transparent);
}

/* Anmeldung, Passwortwiederherstellung und Registrierung */
.site-nav__login {
    padding: 9px 14px;
    border: 1px solid color-mix(in srgb, var(--blue-light) 38%, var(--border));
    border-radius: 10px;
    color: var(--heading) !important;
    background: color-mix(in srgb, var(--blue) 10%, transparent);
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 220ms ease !important;
}

.site-nav__login::after {
    display: none;
}

.site-nav__login:hover,
.site-nav__login:focus-visible {
    border-color: color-mix(in srgb, var(--blue-light) 68%, var(--border));
    background: color-mix(in srgb, var(--blue) 17%, transparent);
    box-shadow: 0 8px 22px rgba(32, 80, 160, 0.12);
}

.auth-page {
    position: relative;
    min-height: calc(100svh - 76px);
    overflow: hidden;
    padding: clamp(52px, 7vw, 92px) 0;
    display: grid;
    align-items: center;
    isolation: isolate;
    background: var(--background);
}

.auth-page__video {
    position: absolute;
    z-index: -5;
    inset: 0;
    overflow: hidden;
    background: var(--background);
}

.auth-page__video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.68) contrast(1.08);
    transform: scale(1.025);
}

.auth-page::after {
    position: absolute;
    z-index: -4;
    inset: 0;
    content: "";
    background:
        linear-gradient(105deg, rgba(7, 15, 28, 0.9) 0%, rgba(7, 15, 28, 0.76) 49%, rgba(7, 15, 28, 0.88) 100%),
        radial-gradient(circle at 68% 42%, rgba(48, 112, 192, 0.2), transparent 42%);
}

[data-theme="light"] .auth-page::after {
    background:
        linear-gradient(105deg, rgba(240, 245, 251, 0.92) 0%, rgba(240, 245, 251, 0.76) 49%, rgba(240, 245, 251, 0.9) 100%),
        radial-gradient(circle at 68% 42%, rgba(48, 112, 192, 0.13), transparent 42%);
}

.auth-page__grid {
    position: absolute;
    z-index: -3;
    inset: 0;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(74, 138, 219, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 138, 219, 0.1) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.auth-page__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
    align-items: center;
    gap: clamp(48px, 8vw, 118px);
}

.auth-page__intro {
    max-width: 720px;
}

.auth-brand {
    width: fit-content;
    margin-bottom: clamp(44px, 7vw, 76px);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--heading);
    text-decoration: none;
}

.auth-brand img {
    width: 62px;
    height: 62px;
    padding: 5px;
    border: 1px solid color-mix(in srgb, var(--blue-light) 35%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    box-shadow: 0 15px 38px rgba(0, 0, 0, 0.18);
}

.auth-brand > span {
    display: grid;
    gap: 4px;
}

.auth-brand strong {
    font-size: 19px;
    letter-spacing: -0.02em;
}

.auth-brand small {
    color: var(--text);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-page__intro h1 {
    max-width: 760px;
    margin: 12px 0 22px;
    color: var(--heading);
    font-size: clamp(50px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.auth-page__intro h1 em {
    color: var(--yellow);
    font-style: normal;
}

[data-theme="light"] .auth-page__intro h1 em {
    color: var(--yellow-text);
}

.auth-page__intro > p:not(.eyebrow) {
    max-width: 660px;
    margin: 0;
    color: var(--text);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.75;
}

.auth-page__features {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-page__features span {
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid color-mix(in srgb, var(--border-strong) 68%, transparent);
    border-radius: 11px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 700;
}

.auth-page__features i {
    color: var(--blue-light);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.auth-panel {
    width: 100%;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid color-mix(in srgb, var(--border-strong) 78%, transparent);
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(22px);
}

[data-theme="light"] .auth-panel {
    background: color-mix(in srgb, #ffffff 91%, transparent);
    box-shadow: 0 28px 75px rgba(24, 48, 82, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-panel--compact {
    align-self: center;
}

.auth-panel__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--blue-light) 42%, transparent);
    border-radius: 15px;
    color: var(--blue-light);
    background: color-mix(in srgb, var(--blue) 13%, transparent);
    font-size: 24px;
}

.auth-panel__heading {
    margin-bottom: 30px;
}

.auth-panel__heading h2 {
    margin: 8px 0 9px;
    color: var(--heading);
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.auth-panel__heading > p:last-child {
    margin: 0;
    color: var(--text);
    font-size: 13px;
}

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-form .ui-field {
    --ui-field-label-background: var(--surface);
}

.auth-panel .ui-field input {
    background-color: color-mix(in srgb, var(--background) 94%, transparent);
}

.auth-password__control {
    position: relative;
}

.auth-password__control input {
    padding-right: 56px !important;
}

.auth-password__control > button {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.auth-password__control > button:hover,
.auth-password__control > button:focus-visible,
.auth-password__control > button.is-visible {
    outline: none;
    color: var(--blue-light);
    background: color-mix(in srgb, var(--blue) 11%, transparent);
    transform: translateY(-50%);
}

.auth-password__eye {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-password__eye--hide,
.auth-password__control > button.is-visible .auth-password__eye--show {
    display: none;
}

.auth-password__control > button.is-visible .auth-password__eye--hide {
    display: block;
}

/* Fallback für bereits laufende Ansichten vor dem nächsten App-Neustart. */
.auth-panel .auth-password > button[data-password-toggle] {
    position: absolute;
    z-index: 3;
    top: 17px;
    right: 8px;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.auth-password > button[data-password-toggle]:hover,
.auth-password > button[data-password-toggle]:focus-visible,
.auth-password > button[data-password-toggle].is-visible {
    outline: none;
    color: var(--blue-light);
    background: color-mix(in srgb, var(--blue) 11%, transparent);
}

.auth-password > button[data-password-toggle] .button-symbol {
    position: relative;
    width: 20px;
    height: 13px;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: visible;
    border: 1.7px solid currentColor;
    border-radius: 50% 50% 46% 46%;
    color: inherit;
    font-size: 0;
}

.auth-password > button[data-password-toggle] .button-symbol::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    display: block;
    border-radius: 50%;
    background: currentColor;
    color: var(--text);
    content: "";
    transform: translate(-50%, -50%);
}

.auth-password > button[data-password-toggle].is-visible .button-symbol::before {
    position: absolute;
    top: 5px;
    left: -3px;
    width: 24px;
    height: 1.7px;
    display: block;
    border-radius: 2px;
    background: var(--blue-light);
    content: "";
    transform: rotate(-36deg);
}

.auth-form__options {
    margin-top: -4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-form__options a,
.auth-panel__switch a,
.auth-check a {
    color: var(--blue-light);
    font-weight: 800;
    text-underline-offset: 3px;
}

.auth-form__options a {
    font-size: 11px;
    text-decoration: none;
}

.auth-check {
    position: relative;
    display: inline-grid;
    grid-template-columns: 19px auto;
    align-items: center;
    column-gap: 9px;
    color: var(--text);
    font-size: 11px;
    line-height: 1.55;
    cursor: pointer;
}

.auth-check > span:last-child {
    grid-column: 2;
    grid-row: 1;
}

.auth-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.auth-check__box {
    grid-column: 1;
    grid-row: 1;
    width: 19px;
    height: 19px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--blue-light) 42%, var(--border));
    border-radius: 5px;
    color: #fff;
    background: color-mix(in srgb, var(--background) 92%, transparent);
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-check__box svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(.65);
    transition: opacity 160ms ease, transform 180ms ease;
}

.auth-check:hover .auth-check__box {
    border-color: var(--blue-light);
}

.auth-check input:focus-visible + .auth-check__box {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-light) 16%, transparent);
}

.auth-check input:checked + .auth-check__box {
    border-color: #4f91e6;
    background: #2f72c4;
}

.auth-check input:checked + .auth-check__box svg {
    opacity: 1;
    transform: scale(1);
}

/* Stellt die Checkbox auch in bereits laufenden, noch nicht neu gerenderten Views korrekt dar. */
.auth-check:not(:has(.auth-check__box)) input[type="checkbox"] {
    position: static;
    width: 19px;
    height: 19px;
    margin: 0;
    display: block;
    grid-column: 1;
    grid-row: 1;
    flex: 0 0 19px;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--blue-light) 42%, var(--border));
    border-radius: 5px;
    opacity: 1;
    background-color: color-mix(in srgb, var(--background) 92%, transparent);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 13px 13px;
    appearance: none;
    cursor: pointer;
    pointer-events: auto;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.auth-check:not(:has(.auth-check__box)):hover input[type="checkbox"] {
    border-color: var(--blue-light);
}

.auth-check:not(:has(.auth-check__box)) input[type="checkbox"]:focus-visible {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-light) 16%, transparent);
}

.auth-check:not(:has(.auth-check__box)) input[type="checkbox"]:checked {
    border-color: #4f91e6;
    background-color: #2f72c4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.25 8.25 3 3 6.5-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.auth-check--consent {
    margin-top: -2px;
}

.auth-form__submit {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: center;
}

.auth-action {
    min-height: 50px;
    padding-inline: 22px;
    border-color: #397fcf;
    color: #fff;
    background: #2868b4;
    box-shadow: none;
}

.auth-action:hover:not(:disabled),
.auth-action:focus-visible:not(:disabled) {
    border-color: #6ca8ed;
    color: #fff;
    background: #3279ca;
    box-shadow: 0 8px 18px rgba(36, 105, 184, .18);
}

.auth-action > svg {
    position: absolute;
    right: 18px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-form__notice {
    margin: -7px 0 0;
    color: var(--text);
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

.auth-page--register .auth-form__notice--prominent + .auth-form__submit {
    margin-top: 14px;
}

.auth-panel__switch {
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    text-align: center;
}

.auth-access-links {
    margin-top: 26px;
    padding-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid var(--border);
}

.auth-access-card {
    position: relative;
    min-width: 0;
    min-height: 84px;
    padding: 14px 38px 14px 13px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--blue-light) 25%, var(--border));
    border-radius: 15px;
    color: var(--heading);
    background: color-mix(in srgb, var(--background) 70%, var(--surface));
    text-decoration: none;
    transition: border-color 200ms ease, background-color 200ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-access-card::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--blue-light) 8%, transparent), transparent 72%);
    content: "";
    opacity: 0;
    transform: translateX(-35%);
    transition: opacity 200ms ease, transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.auth-access-card:hover,
.auth-access-card:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--blue-light) 62%, var(--border));
    background: color-mix(in srgb, var(--blue) 9%, var(--surface));
    box-shadow: 0 10px 24px rgba(4, 18, 38, .16);
    transform: translateY(-2px);
}

.auth-access-card:hover::before,
.auth-access-card:focus-visible::before {
    opacity: 1;
    transform: translateX(35%);
}

.auth-access-card__icon {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--blue-light) 36%, var(--border));
    border-radius: 12px;
    color: var(--blue-light);
    background: color-mix(in srgb, var(--blue) 11%, var(--surface));
}

.auth-access-card--account .auth-access-card__icon {
    border-color: color-mix(in srgb, var(--yellow) 36%, var(--border));
    color: var(--yellow);
    background: color-mix(in srgb, var(--yellow) 9%, var(--surface));
}

.auth-access-card__icon svg,
.auth-access-card__arrow {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-access-card__text {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    gap: 5px;
}

.auth-access-card__text strong {
    font-size: 12px;
    line-height: 1.2;
}

.auth-access-card__text small {
    overflow: hidden;
    color: var(--text);
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-access-card__arrow {
    position: absolute;
    z-index: 1;
    right: 13px;
    width: 16px;
    height: 16px;
    color: var(--blue-light);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-access-card--account .auth-access-card__arrow {
    color: var(--yellow);
}

.auth-access-card:hover .auth-access-card__arrow,
.auth-access-card:focus-visible .auth-access-card__arrow {
    transform: translateX(3px);
}

.auth-password-rules {
    margin: -7px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text);
    font-size: 10px;
    line-height: 1.55;
}

.auth-password-rules span {
    color: var(--ui-success-light, #65d59a);
    font-weight: 900;
}

@media (max-width: 980px) {
    .auth-page__inner {
        grid-template-columns: 1fr minmax(360px, 440px);
        gap: 46px;
    }

    .auth-page__intro h1 {
        font-size: clamp(46px, 6.5vw, 68px);
    }

    .auth-page__features {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 780px) {
    .auth-page {
        padding: 42px 0 62px;
    }

    .auth-page__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .auth-page__intro {
        text-align: center;
    }

    .auth-brand {
        margin: 0 auto 36px;
    }

    .auth-page__intro h1 {
        margin-inline: auto;
        font-size: clamp(42px, 12vw, 66px);
    }

    .auth-page__intro > p:not(.eyebrow) {
        margin-inline: auto;
    }

    .auth-page__features {
        display: none;
    }

    .auth-panel {
        max-width: 520px;
        margin-inline: auto;
    }
}

@media (max-width: 520px) {
    .auth-panel {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .auth-form__options {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-access-links {
        grid-template-columns: 1fr;
    }

    .auth-page__intro h1 {
        font-size: clamp(39px, 13vw, 54px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page__video {
        display: none;
    }
}

@media (max-width: 760px) {
    .contact-form-shell,
    .contact-feedback,
    .contact-form__validation,
    .contact-form .input-validation-error {
        scroll-margin-top: 112px;
    }

    .contact-form-shell__heading,
    .contact-form__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form__field,
    .contact-form__field--full {
        grid-column: 1;
    }

    .contact-form__submit {
        width: 100%;
        justify-content: space-between;
    }
}

/* Portal-Layout nach der Anmeldung --------------------------------------- */

.portal-body {
    overflow-x: hidden;
    background: var(--background-soft);
}

.portal-navigation-open {
    overflow: hidden;
}

.portal-shell {
    --portal-sidebar-width: 18.5rem;
    display: grid;
    grid-template-columns: var(--portal-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--background-soft);
    transition: grid-template-columns 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    height: 100vh;
    height: 100dvh;
    min-width: 0;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
    border-right: 1px solid rgba(132, 178, 235, 0.13);
    background:
        linear-gradient(180deg, rgba(7, 21, 39, 0.94), rgba(5, 14, 28, 0.99)),
        #07111f;
    color: #b8c8dc;
    box-shadow: 16px 0 52px rgba(2, 8, 18, 0.2);
    isolation: isolate;
}

.portal-sidebar::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(79, 142, 224, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 142, 224, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
    content: "";
    pointer-events: none;
}

.portal-sidebar__glow {
    position: absolute;
    top: -9rem;
    left: -7rem;
    z-index: -1;
    width: 23rem;
    height: 23rem;
    border-radius: 50%;
    background: rgba(38, 94, 180, 0.26);
    filter: blur(65px);
    pointer-events: none;
}

.portal-sidebar__head {
    display: flex;
    min-height: 4.15rem;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    padding: 0.25rem 0.2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-brand {
    display: flex;
    min-width: 0;
    gap: 0.75rem;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.portal-brand__mark {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.portal-brand__mark img {
    width: 2.55rem;
    height: 2.55rem;
    object-fit: contain;
}

.portal-brand__copy,
.portal-account__copy {
    min-width: 0;
    transition: opacity 180ms ease, transform 240ms ease;
}

.portal-brand__copy strong,
.portal-brand__copy small {
    display: block;
    white-space: nowrap;
}

.portal-brand__copy strong {
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.portal-brand__copy small {
    margin-top: 0.05rem;
    color: #8396ad;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.portal-collapse,
.portal-mobile-toggle,
.portal-account__logout button {
    display: grid;
    place-items: center;
    border: 0;
    color: inherit;
    cursor: pointer;
}

.portal-collapse {
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.055);
    color: #90a6c0;
    transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 360ms ease;
}

.portal-collapse:hover,
.portal-collapse:focus-visible {
    border-color: rgba(91, 153, 231, 0.48);
    background: rgba(62, 125, 209, 0.16);
    color: #fff;
}

.portal-collapse svg {
    width: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.portal-navigation {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.portal-navigation::-webkit-scrollbar {
    display: none;
}

.portal-navigation__label {
    margin: 1.05rem 0.75rem 0.38rem;
    color: #657b95;
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 180ms ease;
}

.portal-navigation__link {
    position: relative;
    display: flex;
    min-height: 3.25rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.58rem 0.7rem;
    overflow: visible;
    border: 1px solid transparent;
    border-radius: 0.95rem;
    color: #9cafc5;
    text-decoration: none;
    transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.portal-navigation__link:hover,
.portal-navigation__link:focus-visible {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateX(0.18rem);
}

.portal-navigation__link.is-active {
    border-color: rgba(76, 143, 230, 0.23);
    background:
        linear-gradient(90deg, rgba(42, 102, 184, 0.25), rgba(91, 66, 181, 0.11)),
        rgba(255, 255, 255, 0.035);
    color: #fff;
    box-shadow: inset 0 0 26px rgba(48, 112, 192, 0.07), 0 10px 28px rgba(0, 0, 0, 0.15);
}

.portal-navigation__icon {
    display: grid;
    width: 2.05rem;
    height: 2.05rem;
    flex: 0 0 2.05rem;
    place-items: center;
    border-radius: 0.72rem;
    background: rgba(66, 129, 211, 0.14);
    color: #73a9ea;
    transition: transform 240ms ease, background 220ms ease;
}

.portal-navigation__link:hover .portal-navigation__icon {
    transform: scale(1.06) rotate(-2deg);
}

.portal-navigation__icon--yellow {
    background: rgba(246, 186, 53, 0.12);
    color: #f5bd3e;
}

.portal-navigation__icon--blue {
    background: rgba(58, 126, 211, 0.15);
    color: #72a9ed;
}

.portal-navigation__icon--purple {
    background: rgba(128, 91, 219, 0.15);
    color: #a38aee;
}

.portal-navigation__icon svg,
.portal-public-link svg,
.portal-account__logout svg {
    width: 1.08rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.portal-navigation__text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 750;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: opacity 180ms ease, transform 240ms ease;
}

.portal-navigation__arrow {
    color: #66809d;
    font-size: 0.85rem;
    transition: color 220ms ease, transform 220ms ease, opacity 180ms ease;
}

.portal-navigation__link:hover .portal-navigation__arrow {
    color: #fff;
    transform: translate(0.1rem, -0.1rem);
}

.portal-navigation__indicator {
    position: absolute;
    top: 50%;
    left: -0.72rem;
    width: 0.2rem;
    height: 1.5rem;
    border-radius: 999px;
    background: linear-gradient(#4d91e9, #725ce4);
    box-shadow: 0 0 16px rgba(79, 144, 231, 0.65);
    transform: translateY(-50%);
}

.portal-sidebar__bottom {
    display: grid;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-public-link {
    display: flex;
    min-height: 2.8rem;
    gap: 0.7rem;
    align-items: center;
    padding: 0.55rem 0.72rem;
    border-radius: 0.8rem;
    color: #8298b1;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
    transition: color 220ms ease, background 220ms ease;
}

.portal-public-link:hover,
.portal-public-link:focus-visible {
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
}

.portal-public-link svg {
    width: 1.1rem;
    flex: 0 0 1.1rem;
}

.portal-public-link span {
    min-width: 0;
    flex: 1;
    white-space: nowrap;
}

.portal-public-link i {
    font-style: normal;
}

.portal-account {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.68rem;
    align-items: center;
    padding: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.portal-account__avatar {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #3078c9, #7758d7);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 850;
    box-shadow: 0 8px 22px rgba(64, 83, 191, 0.28);
}

.portal-account__copy strong,
.portal-account__copy small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.portal-account__copy strong {
    color: #fff;
    font-size: 0.8rem;
}

.portal-account__copy small {
    margin-top: 0.08rem;
    color: #7f93aa;
    font-size: 0.66rem;
}

.portal-account__logout {
    margin: 0;
}

.portal-account__logout button {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    background: transparent;
    color: #879bb2;
    transition: color 220ms ease, background 220ms ease;
}

.portal-account__logout button:hover,
.portal-account__logout button:focus-visible {
    background: rgba(230, 85, 112, 0.13);
    color: #ff8da3;
}

.portal-workspace {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    min-width: 0;
    flex-direction: column;
    background: var(--background-soft);
}

.portal-site-body .site-header {
    z-index: 40;
}

.portal-workspace > .portal-main {
    flex: 1;
}

.portal-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    min-height: 4.6rem;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem clamp(1rem, 3vw, 2.4rem);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 86%, transparent);
    box-shadow: 0 9px 35px rgba(2, 10, 22, 0.08);
    backdrop-filter: blur(20px);
}

.portal-topbar__left,
.portal-topbar__actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.portal-topbar__title span,
.portal-topbar__title strong {
    display: block;
}

.portal-topbar__title span {
    color: var(--text);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    line-height: 1.25;
    text-transform: uppercase;
}

.portal-topbar__title strong {
    color: var(--heading);
    font-size: 0.94rem;
    line-height: 1.35;
}

.portal-topbar__role {
    padding: 0.38rem 0.68rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.portal-topbar .theme-toggle {
    flex: 0 0 auto;
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--heading);
}

.portal-mobile-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    gap: 0.24rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: var(--surface);
}

.portal-mobile-toggle span {
    width: 1.1rem;
    height: 2px;
    border-radius: 999px;
    background: var(--heading);
    transition: transform 220ms ease, opacity 180ms ease;
}

.portal-main {
    min-width: 0;
}

.portal-main .member-hero {
    min-height: 31rem;
}

.portal-main .member-hero__inner {
    min-height: 31rem;
    padding-top: 4rem;
}

.member-hero__inner--single {
    grid-template-columns: minmax(0, 1fr);
}

.portal-sidebar-overlay {
    display: none;
}

.portal-shell.is-sidebar-collapsed {
    --portal-sidebar-width: 5.6rem;
}

.portal-shell.is-sidebar-collapsed .portal-sidebar {
    padding-inline: 0.72rem;
}

.portal-shell.is-sidebar-collapsed .portal-sidebar__head {
    justify-content: center;
}

.portal-shell.is-sidebar-collapsed .portal-brand__copy,
.portal-shell.is-sidebar-collapsed .portal-navigation__label,
.portal-shell.is-sidebar-collapsed .portal-navigation__text,
.portal-shell.is-sidebar-collapsed .portal-navigation__arrow,
.portal-shell.is-sidebar-collapsed .portal-public-link span,
.portal-shell.is-sidebar-collapsed .portal-public-link i,
.portal-shell.is-sidebar-collapsed .portal-account__copy {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.portal-shell.is-sidebar-collapsed .portal-collapse {
    position: absolute;
    top: 4.9rem;
    right: -0.7rem;
    width: 1.7rem;
    height: 1.7rem;
    border-color: rgba(111, 166, 232, 0.24);
    background: #10233a;
    transform: rotate(180deg);
}

.portal-shell.is-sidebar-collapsed .portal-navigation {
    padding-top: 1.1rem;
}

.portal-shell.is-sidebar-collapsed .portal-navigation__link,
.portal-shell.is-sidebar-collapsed .portal-public-link {
    justify-content: center;
    padding-inline: 0.45rem;
}

.portal-shell.is-sidebar-collapsed .portal-navigation__indicator {
    left: -0.46rem;
}

.portal-shell.is-sidebar-collapsed .portal-navigation__link::after,
.portal-shell.is-sidebar-collapsed .portal-public-link::after {
    position: absolute;
    top: 50%;
    left: calc(100% + 0.65rem);
    z-index: 90;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.55rem;
    background: #102238;
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 750;
    opacity: 0;
    pointer-events: none;
    transform: translate(0.35rem, -50%);
    transition: opacity 180ms ease, transform 180ms ease;
    white-space: nowrap;
}

.portal-shell.is-sidebar-collapsed .portal-navigation__link:hover::after,
.portal-shell.is-sidebar-collapsed .portal-navigation__link:focus-visible::after,
.portal-shell.is-sidebar-collapsed .portal-public-link:hover::after,
.portal-shell.is-sidebar-collapsed .portal-public-link:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.portal-shell.is-sidebar-collapsed .portal-account {
    display: flex;
    flex-direction: column;
    padding: 0.55rem;
}

[data-theme="light"] .portal-workspace,
[data-theme="light"] .portal-shell {
    background: var(--background-soft);
}

[data-theme="light"] .portal-topbar {
    background: rgba(244, 247, 251, 0.88);
}

[data-theme="light"] .portal-sidebar {
    border-right-color: rgba(31, 69, 116, 0.14);
    background:
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(235, 242, 250, 0.99)),
        #f2f6fb;
    color: #52677e;
    box-shadow: 16px 0 52px rgba(24, 56, 94, 0.1);
}

[data-theme="light"] .portal-sidebar::before {
    background-image:
        linear-gradient(rgba(32, 94, 174, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 94, 174, 0.055) 1px, transparent 1px);
}

[data-theme="light"] .portal-sidebar__glow {
    background: rgba(64, 126, 212, 0.18);
}

[data-theme="light"] .portal-sidebar__head,
[data-theme="light"] .portal-sidebar__bottom {
    border-color: rgba(22, 57, 98, 0.11);
}

[data-theme="light"] .portal-brand {
    color: #0b1728;
}

[data-theme="light"] .portal-brand__mark {
    border-color: rgba(22, 57, 98, 0.13);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 26px rgba(27, 62, 102, 0.12);
}

[data-theme="light"] .portal-brand__copy small,
[data-theme="light"] .portal-navigation__label {
    color: #698098;
}

[data-theme="light"] .portal-collapse {
    border-color: rgba(24, 68, 122, 0.14);
    background: rgba(255, 255, 255, 0.68);
    color: #54708e;
}

[data-theme="light"] .portal-collapse:hover,
[data-theme="light"] .portal-collapse:focus-visible {
    border-color: rgba(32, 94, 174, 0.34);
    background: rgba(32, 94, 174, 0.1);
    color: #174a96;
}

[data-theme="light"] .portal-navigation__link {
    color: #4d6278;
}

[data-theme="light"] .portal-navigation__link:hover,
[data-theme="light"] .portal-navigation__link:focus-visible {
    border-color: rgba(29, 76, 134, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: #10213a;
}

[data-theme="light"] .portal-navigation__link.is-active {
    border-color: rgba(44, 103, 180, 0.2);
    background:
        linear-gradient(90deg, rgba(49, 109, 190, 0.14), rgba(116, 80, 200, 0.08)),
        rgba(255, 255, 255, 0.72);
    color: #10213a;
    box-shadow: inset 0 0 24px rgba(48, 112, 192, 0.045), 0 10px 28px rgba(35, 70, 111, 0.09);
}

[data-theme="light"] .portal-navigation__icon--purple {
    background: rgba(105, 67, 191, 0.12);
    color: #6842bd;
}

[data-theme="light"] .portal-account {
    border-color: rgba(24, 63, 108, 0.12);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 30px rgba(31, 65, 104, 0.1);
}

[data-theme="light"] .portal-account__copy strong {
    color: #10213a;
}

[data-theme="light"] .portal-account__copy small,
[data-theme="light"] .portal-account__logout button {
    color: #61778e;
}

[data-theme="light"] .portal-account__logout button:hover,
[data-theme="light"] .portal-account__logout button:focus-visible {
    background: rgba(204, 53, 82, 0.1);
    color: #b52e49;
}

[data-theme="light"] .portal-shell.is-sidebar-collapsed .portal-collapse {
    border-color: rgba(31, 83, 146, 0.2);
    background: #edf4fc;
}

[data-theme="light"] .portal-shell.is-sidebar-collapsed .portal-navigation__link::after,
[data-theme="light"] .portal-shell.is-sidebar-collapsed .portal-public-link::after {
    border-color: rgba(21, 56, 98, 0.14);
    background: #ffffff;
    color: #10213a;
    box-shadow: 0 10px 28px rgba(32, 66, 106, 0.16);
}

@media (max-width: 980px) {
    .portal-shell,
    .portal-shell.is-sidebar-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-sidebar,
    .portal-shell.is-sidebar-collapsed .portal-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 19rem);
        padding: 1rem;
        transform: translateX(-105%);
        transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .portal-shell.is-sidebar-open .portal-sidebar {
        transform: translateX(0);
    }

    .portal-collapse {
        display: none;
    }

    .portal-shell.is-sidebar-collapsed .portal-sidebar__head {
        justify-content: space-between;
    }

    .portal-shell.is-sidebar-collapsed .portal-brand__copy,
    .portal-shell.is-sidebar-collapsed .portal-navigation__label,
    .portal-shell.is-sidebar-collapsed .portal-navigation__text,
    .portal-shell.is-sidebar-collapsed .portal-navigation__arrow,
    .portal-shell.is-sidebar-collapsed .portal-public-link span,
    .portal-shell.is-sidebar-collapsed .portal-public-link i,
    .portal-shell.is-sidebar-collapsed .portal-account__copy {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        clip: auto;
        overflow: visible;
        white-space: normal;
    }

    .portal-shell.is-sidebar-collapsed .portal-navigation {
        padding-top: 0;
    }

    .portal-shell.is-sidebar-collapsed .portal-navigation__link,
    .portal-shell.is-sidebar-collapsed .portal-public-link {
        justify-content: flex-start;
        padding-inline: 0.7rem;
    }

    .portal-shell.is-sidebar-collapsed .portal-account {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        flex-direction: initial;
        padding: 0.72rem;
    }

    .portal-shell.is-sidebar-collapsed .portal-navigation__link::after,
    .portal-shell.is-sidebar-collapsed .portal-public-link::after {
        display: none;
    }

    .portal-mobile-toggle {
        display: grid;
    }

    .portal-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: block;
        border: 0;
        background: rgba(2, 8, 18, 0.66);
        opacity: 0;
        pointer-events: none;
        transition: opacity 260ms ease;
        backdrop-filter: blur(4px);
    }

    .portal-shell.is-sidebar-open .portal-sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .portal-main .member-hero__inner {
        padding-top: 3rem;
    }
}

@media (max-width: 620px) {
    .portal-topbar {
        min-height: 4.25rem;
        padding-inline: 0.8rem;
    }

    .portal-topbar__role {
        display: none;
    }

    .portal-topbar__title span {
        display: none;
    }

    .portal-main .member-hero,
    .portal-main .member-hero__inner {
        min-height: 28rem;
    }

    .portal-main .member-hero__inner {
        padding-top: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-shell,
    .portal-sidebar,
    .portal-navigation__link,
    .portal-navigation__icon,
    .portal-sidebar-overlay {
        transition-duration: 0.01ms !important;
    }
}

/* Persönliche Kontodaten -------------------------------------------------- */

.account-page {
    min-height: 100%;
    padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
    background:
        radial-gradient(circle at 88% 12%, rgba(69, 118, 204, 0.14), transparent 26rem),
        radial-gradient(circle at 12% 78%, rgba(116, 80, 200, 0.1), transparent 25rem),
        var(--background-soft);
}

.account-page__inner {
    width: min(calc(100% - 3rem), 72rem);
    margin-inline: auto;
}

.account-heading {
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.account-heading h1 {
    margin: 0.45rem 0 0.75rem;
    color: var(--heading);
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.account-heading p:last-child {
    max-width: 42rem;
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

.account-heading__mark {
    display: grid;
    width: 5.25rem;
    height: 5.25rem;
    flex: 0 0 5.25rem;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 1.65rem;
    color: #fff;
    background: linear-gradient(145deg, #2862ad, #7450c8);
    box-shadow: 0 20px 46px rgba(34, 69, 145, 0.23);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    transform: rotate(4deg);
}

.account-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0 0 1.35rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--border);
    box-shadow: 0 18px 48px rgba(2, 10, 22, 0.08);
}

.account-facts > div {
    min-width: 0;
    padding: 1rem 1.15rem;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.account-facts dt {
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.account-facts dd {
    overflow: hidden;
    margin: 0;
    color: var(--heading);
    font-size: 0.82rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-facts dd.is-confirmed,
.account-facts dd.is-pending {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.account-facts dd > span {
    width: 0.48rem;
    height: 0.48rem;
    flex: 0 0 0.48rem;
    border-radius: 50%;
    background: #d99a42;
    box-shadow: 0 0 0 0.24rem rgba(217, 154, 66, 0.12);
}

.account-facts dd.is-confirmed > span {
    background: #43b97b;
    box-shadow: 0 0 0 0.24rem rgba(67, 185, 123, 0.12);
}

.account-success {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(64, 190, 125, 0.28);
    border-radius: 1rem;
    background: rgba(45, 151, 95, 0.1);
    color: var(--text);
}

.account-success > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    place-items: center;
    border-radius: 0.65rem;
    color: #a9f0c8;
    background: rgba(54, 180, 113, 0.18);
    font-weight: 900;
}

.account-success strong,
.account-success p {
    display: block;
    margin: 0;
}

.account-success strong {
    color: var(--heading);
    font-size: 0.82rem;
}

.account-success p {
    margin-top: 0.1rem;
    font-size: 0.78rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
    align-items: start;
}

.account-card {
    min-width: 0;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 1px solid var(--border);
    border-radius: 1.6rem;
    background: var(--surface);
    box-shadow: 0 24px 65px rgba(2, 10, 22, 0.13);
}

.account-card__heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.account-card__icon {
    display: grid;
    width: 3.2rem;
    height: 3.2rem;
    place-items: center;
    border-radius: 1rem;
}

.account-card__icon--blue {
    color: #8fc0f7;
    background: rgba(48, 112, 192, 0.16);
}

.account-card__icon--purple {
    color: #c4aff8;
    background: rgba(116, 80, 200, 0.16);
}

.account-card__icon svg {
    width: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.account-card h2 {
    margin: 0.35rem 0 0.4rem;
    color: var(--heading);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.account-card__heading p:last-child {
    margin: 0;
    color: var(--text);
    font-size: 0.8rem;
    line-height: 1.55;
}

.account-form {
    display: grid;
    gap: 1.5rem;
}

.account-form__summary:empty {
    display: none;
}

.account-form__summary:not(:empty) {
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(218, 75, 91, 0.3);
    border-radius: 0.8rem;
    color: #f2a5ae;
    background: rgba(183, 42, 59, 0.1);
    font-size: 0.78rem;
}

.account-form__summary ul {
    margin: 0;
    padding-left: 1.1rem;
}

.account-form__confirmation {
    padding-top: 0.35rem;
    border-top: 1px dashed var(--border);
}

.account-form__confirmation label small {
    color: var(--text);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.password-guidance {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: color-mix(in srgb, var(--surface) 72%, var(--background-soft));
}

.password-strength {
    height: 0.28rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border);
}

.password-strength > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #d4626f;
    transition: width 180ms ease, background-color 180ms ease;
}

.password-guidance > p {
    margin: 0.45rem 0 0.65rem;
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 750;
}

.password-guidance ul {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.password-guidance li {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--text);
    font-size: 0.72rem;
    transition: color 160ms ease;
}

.password-guidance li > span {
    width: 0.48rem;
    height: 0.48rem;
    flex: 0 0 0.48rem;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.password-guidance li.is-valid {
    color: #62ce94;
}

.password-guidance li.is-valid > span {
    border-color: #43b97b;
    background: #43b97b;
    box-shadow: 0 0 0 0.2rem rgba(67, 185, 123, 0.1);
}

.account-form button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.72;
}

.account-form .ui-field {
    --ui-field-label-background: var(--surface);
}

.account-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1rem;
}

.account-form__grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.account-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.2rem;
}

.account-form__actions .ui-button {
    width: 100%;
    justify-content: space-between;
}

.account-form .auth-password__control {
    position: relative;
}

.account-form .auth-password__control input {
    width: 100%;
    padding-right: 3.25rem !important;
}

.account-form .auth-password__control button {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0.58rem;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 180ms ease, background-color 180ms ease;
}

.account-form .auth-password__control button:hover,
.account-form .auth-password__control button:focus-visible,
.account-form .auth-password__control button.is-visible {
    outline: none;
    color: var(--blue-light);
    background: color-mix(in srgb, var(--blue) 12%, transparent);
}

.account-form .auth-password__control button span {
    position: relative;
    width: 1.1rem;
    height: 0.75rem;
    border: 1.5px solid currentColor;
    border-radius: 50% 50% 46% 46%;
}

.account-form .auth-password__control button span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.account-form .auth-password__control button.is-visible span::before {
    position: absolute;
    top: 0.3rem;
    left: -0.2rem;
    width: 1.35rem;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: rotate(-38deg);
}

@media (max-width: 780px) {
    .account-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 620px) {
    .account-page__inner {
        width: min(calc(100% - 2rem), 72rem);
    }

    .account-heading__mark {
        display: none;
    }

    .account-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-form__grid .ui-field--full {
        grid-column: auto;
    }
}

/* Eigene Tooltips und präzise ausgerichtete Symbol-Buttons --------------- */

[data-tooltip],
:where(button, a)[aria-label]:not([data-tooltip]):has(> svg, > .button-symbol, > .button-emoji) {
    position: relative;
}

[data-tooltip]::before,
:where(button, a)[aria-label]:not([data-tooltip]):has(> svg, > .button-symbol, > .button-emoji)::before {
    position: absolute;
    top: calc(100% + 0.62rem);
    left: 50%;
    z-index: 300;
    width: max-content;
    max-width: min(15rem, calc(100vw - 2rem));
    padding: 0.48rem 0.68rem;
    border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--border));
    border-radius: 0.62rem;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 12px 30px rgba(3, 11, 24, 0.2);
    color: var(--heading);
    content: attr(aria-label);
    font-size: 0.69rem;
    font-weight: 760;
    letter-spacing: 0.01em;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
    transform: translate(-50%, -0.28rem) scale(0.96);
    transform-origin: top center;
    transition: opacity 150ms ease, transform 190ms cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(12px);
}

[data-tooltip]::before {
    content: attr(data-tooltip);
}

.ui-button[data-tooltip],
.ui-button[aria-label]:not([data-tooltip]):has(> svg, > .button-symbol, > .button-emoji) {
    overflow: visible;
}

[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before,
:where(button, a)[aria-label]:not([data-tooltip]):has(> svg, > .button-symbol, > .button-emoji):hover::before,
:where(button, a)[aria-label]:not([data-tooltip]):has(> svg, > .button-symbol, > .button-emoji):focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    transition-delay: 280ms;
}

[data-tooltip-position="top"]::before {
    top: auto;
    bottom: calc(100% + 0.62rem);
    transform: translate(-50%, 0.28rem) scale(0.96);
    transform-origin: bottom center;
}

[data-tooltip-position="top"]:hover::before,
[data-tooltip-position="top"]:focus-visible::before {
    transform: translate(-50%, 0) scale(1);
}

[data-tooltip-align="end"]::before {
    right: 0;
    left: auto;
    transform: translateY(-0.28rem) scale(0.96);
    transform-origin: top right;
}

[data-tooltip-position="top"][data-tooltip-align="end"]::before {
    transform: translateY(0.28rem) scale(0.96);
    transform-origin: bottom right;
}

[data-tooltip-align="end"]:hover::before,
[data-tooltip-align="end"]:focus-visible::before,
[data-tooltip-position="top"][data-tooltip-align="end"]:hover::before,
[data-tooltip-position="top"][data-tooltip-align="end"]:focus-visible::before {
    transform: translateY(0) scale(1);
}

.theme-toggle__icon,
.theme-toggle__icon .button-emoji,
.menu-toggle > .button-emoji,
.portal-mobile-toggle > .button-emoji,
.portal-collapse > .button-symbol,
.portal-account__logout button > .button-symbol {
    display: grid;
    place-items: center;
    text-align: center;
}

.theme-toggle__icon .button-emoji {
    line-height: 1;
}

.menu-toggle > .button-emoji,
.portal-mobile-toggle > .button-emoji {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0;
    background: transparent;
    font-size: 1.05rem;
    line-height: 1;
}

.portal-collapse > .button-symbol {
    width: 1.15rem;
    height: 1.15rem;
    font-size: 1.55rem;
    line-height: 1;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-account__logout button > .button-symbol {
    width: 1.15rem;
    height: 1.15rem;
    font-size: 1.24rem;
    line-height: 1;
}

.portal-shell.is-sidebar-collapsed .portal-collapse {
    transform: none;
}

.portal-shell.is-sidebar-collapsed .portal-collapse > .button-symbol {
    transform: rotate(180deg);
}

/* Kompakte Sidebar: keine abgeschnittenen Bedienelemente oder Tooltips. */
.portal-sidebar {
    overflow: visible;
}

.menu-toggle,
.portal-mobile-toggle {
    align-content: center;
    justify-items: center;
}

.menu-toggle > span,
.portal-mobile-toggle > span {
    display: block;
    width: 1.12rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 220ms ease, opacity 180ms ease;
}

.site-header.is-menu-open .menu-toggle > span:nth-child(1),
.portal-shell.is-sidebar-open .portal-mobile-toggle > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle > span:nth-child(2),
.portal-shell.is-sidebar-open .portal-mobile-toggle > span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.35);
}

.site-header.is-menu-open .menu-toggle > span:nth-child(3),
.portal-shell.is-sidebar-open .portal-mobile-toggle > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.portal-collapse > svg,
.portal-account__logout button > svg {
    display: block;
    margin: 0;
    transform-origin: center;
}

.portal-collapse > svg {
    width: 1.05rem;
    height: 1.05rem;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-account__logout button > svg {
    width: 1.12rem;
    height: 1.12rem;
}

.portal-account__logout button:hover > svg,
.portal-account__logout button:focus-visible > svg {
    animation: button-symbol-logout 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portal-shell.is-sidebar-collapsed .portal-sidebar__head {
    min-height: auto;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: flex-start;
    padding-inline: 0;
}

.portal-shell.is-sidebar-collapsed .portal-brand {
    width: 100%;
    justify-content: center;
}

.portal-shell.is-sidebar-collapsed .portal-brand__mark {
    width: 3rem;
    height: 3rem;
    flex-basis: 3rem;
}

.portal-shell.is-sidebar-collapsed .portal-collapse {
    position: relative;
    top: auto;
    right: auto;
    width: 2rem;
    height: 2rem;
    transform: none;
}

.portal-shell.is-sidebar-collapsed .portal-collapse > svg {
    transform: rotate(180deg);
}

.portal-shell.is-sidebar-collapsed .portal-navigation {
    padding-top: 0.2rem;
}

.portal-shell.is-sidebar-collapsed .portal-account {
    width: 100%;
    gap: 0.55rem;
    align-items: center;
    padding: 0.5rem;
}

.portal-shell.is-sidebar-collapsed .portal-sidebar [data-tooltip]::before {
    top: 50%;
    right: auto;
    bottom: auto;
    left: calc(100% + 0.7rem);
    transform: translate(0.3rem, -50%) scale(0.96);
    transform-origin: left center;
}

.portal-shell.is-sidebar-collapsed .portal-sidebar [data-tooltip]:hover::before,
.portal-shell.is-sidebar-collapsed .portal-sidebar [data-tooltip]:focus-visible::before {
    transform: translate(0, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    [data-tooltip]::before {
        transition-duration: 0.01ms;
    }
}

/* Interne Verwaltung */
.crm-page {
    min-height: 70vh;
    padding: clamp(4rem, 7vw, 7rem) 0;
    background: radial-gradient(circle at 84% 4%, rgba(76, 130, 213, 0.12), transparent 30rem), var(--background);
}

.crm-page__header {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.crm-page__header h1 {
    margin: 0.2rem 0 0.55rem;
    color: var(--heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.95;
}

.crm-page__header > div > p:last-child {
    margin: 0;
    color: var(--muted);
}

.crm-admin-badge,
.crm-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(76, 143, 230, 0.25);
    border-radius: 999px;
    background: rgba(76, 143, 230, 0.1);
    color: #72a9ed;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.crm-admin-badge::before {
    width: 0.42rem;
    height: 0.42rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: #51d39a;
    box-shadow: 0 0 12px rgba(81, 211, 154, 0.6);
    content: "";
}

.crm-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.crm-metric {
    display: grid;
    min-height: 11rem;
    padding: 1.35rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: var(--surface);
    color: var(--heading);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 220ms ease, border-color 220ms ease;
}

.crm-metric:hover {
    border-color: var(--crm-accent);
    transform: translateY(-0.2rem);
}

.crm-metric--yellow { --crm-accent: #e5ad1e; }
.crm-metric--blue { --crm-accent: #397dd0; }
.crm-metric--purple { --crm-accent: #7658d5; }

.crm-metric span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-metric strong {
    align-self: center;
    color: var(--crm-accent);
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1;
}

.crm-metric small {
    align-self: end;
    color: var(--muted);
    font-weight: 700;
}

.crm-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.crm-card__heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid var(--border);
}

.crm-card__heading h2 {
    margin: 0.15rem 0 0;
    color: var(--heading);
    font-size: 1.25rem;
}

.crm-card__heading a {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
}

.crm-empty {
    display: grid;
    gap: 0.35rem;
    place-items: center;
    padding: 4rem 1.5rem;
    color: var(--muted);
    text-align: center;
}

.crm-empty strong {
    color: var(--heading);
    font-size: 1.05rem;
}

.crm-table-wrap {
    overflow-x: auto;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
    font-size: 0.88rem;
}

.crm-table th,
.crm-table td {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.crm-table th {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.crm-table tbody tr:last-child td {
    border-bottom: 0;
}

.crm-table tbody tr {
    transition: background 180ms ease;
}

.crm-table tbody tr:hover {
    background: rgba(76, 143, 230, 0.055);
}

.crm-table td strong {
    color: var(--heading);
}

.crm-table__number {
    text-align: right !important;
    white-space: nowrap;
}

.crm-status--muted {
    border-color: var(--border);
    background: transparent;
    color: var(--muted);
}

.crm-customer-search {
    margin-bottom: 1rem;
}

.crm-card__heading--search {
    align-items: flex-end;
}

.crm-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-end;
}

.crm-search input {
    width: min(22rem, 45vw);
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    outline: 0;
    background: var(--background);
    color: var(--heading);
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.crm-search input:focus {
    border-color: rgba(76, 143, 230, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(76, 143, 230, 0.12);
}

.crm-search button,
.crm-search a {
    display: inline-grid;
    min-height: 2.75rem;
    place-items: center;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(76, 143, 230, 0.35);
    border-radius: 0.75rem;
    background: rgba(76, 143, 230, 0.14);
    color: var(--heading);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.crm-search a {
    border-color: var(--border);
    background: transparent;
    color: var(--muted);
}

.crm-search--dashboard {
    display: grid;
    width: min(42rem, 58vw);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
}

.crm-search--dashboard .crm-search__field {
    display: grid;
    min-width: 0;
    min-height: 3rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0 0.85rem;
    border: 1px solid color-mix(in srgb, var(--border) 82%, #4c8fe6 18%);
    border-radius: 0.85rem;
    background:
        linear-gradient(135deg, rgba(76, 143, 230, 0.055), transparent 55%),
        color-mix(in srgb, var(--background) 88%, var(--surface));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.crm-search--dashboard .crm-search__field:focus-within {
    border-color: rgba(76, 143, 230, 0.72);
    background:
        linear-gradient(135deg, rgba(76, 143, 230, 0.09), transparent 55%),
        color-mix(in srgb, var(--background) 92%, var(--surface));
    box-shadow: 0 0 0 0.2rem rgba(76, 143, 230, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.crm-search--dashboard svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.crm-search--dashboard .crm-search__field > svg {
    color: #72a9ed;
}

.crm-search--dashboard .crm-search__field input {
    width: 100%;
    min-width: 0;
    min-height: 2.85rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--heading);
}

.crm-search--dashboard .crm-search__field input:focus {
    border: 0;
    box-shadow: none;
}

.crm-search--dashboard .crm-search__field input::placeholder {
    color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.crm-search--dashboard input::-webkit-search-cancel-button {
    display: none;
}

.crm-search--dashboard .crm-search__clear {
    display: grid;
    width: 1.75rem;
    min-height: 1.75rem;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(127, 146, 169, 0.1);
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1;
    text-decoration: none;
}

.crm-search--dashboard > button {
    display: inline-flex;
    min-height: 3rem;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-color: rgba(76, 143, 230, 0.48);
    border-radius: 0.85rem;
    background: rgba(76, 143, 230, 0.08);
    color: var(--heading);
    box-shadow: none;
}

.crm-search--dashboard > button:hover,
.crm-search--dashboard > button:focus-visible {
    border-color: rgba(112, 173, 247, 0.7);
    outline: none;
    background: rgba(76, 143, 230, 0.15);
    color: var(--heading);
    box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.07);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 900px) {
    .crm-metrics {
        grid-template-columns: 1fr;
    }

    .crm-metric {
        min-height: 8.5rem;
    }

    .crm-card__heading--search {
        align-items: stretch;
        flex-direction: column;
    }

    .crm-search--dashboard {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .quick-invoice-position__fields {
        grid-template-columns: 1fr;
    }

    .crm-page__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .crm-page {
        padding-top: 2.5rem;
    }

    .crm-card__heading--search {
        align-items: stretch;
        flex-direction: column;
    }

    .crm-search {
        justify-content: stretch;
    }

    .crm-search input {
        width: 100%;
        flex: 1 0 100%;
    }

    .crm-search--dashboard {
        grid-template-columns: 1fr;
    }

    .crm-search--dashboard > button {
        width: 100%;
    }
}

/* Fixkostenverwaltung */
.fixkosten-header {
    align-items: center;
    padding: 1.2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
}

.fixkosten-header__copy {
    min-width: 0;
}

.fixkosten-page {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

.fixkosten-statbar {
    position: sticky;
    top: 76px;
    z-index: 35;
    border-bottom: 1px solid rgba(132, 178, 235, 0.16);
    background: color-mix(in srgb, var(--background) 92%, transparent);
    box-shadow: 0 0.8rem 2rem rgba(2, 8, 18, 0.14);
    backdrop-filter: blur(18px);
}

.fixkosten-statbar__inner {
    width: min(calc(100% - 48px), var(--page-width));
    min-height: 5.25rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.fixkosten-statbar__title {
    min-width: 11rem;
    margin-right: auto;
}

.fixkosten-statbar__title span,
.fixkosten-statbar__title strong {
    display: block;
}

.fixkosten-statbar__title span {
    color: #e5ad1e;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fixkosten-statbar__title strong {
    margin-top: 0.12rem;
    color: var(--heading);
    font-size: 0.92rem;
}

.fixkosten-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(7.75rem, 1fr));
    gap: 0.6rem;
}

.fixkosten-total {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(229, 173, 30, 0.25);
    border-radius: 1rem;
    background: rgba(229, 173, 30, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 0.55rem 1.5rem rgba(0, 0, 0, 0.13);
    text-align: right;
}

.fixkosten-total--year {
    border-color: rgba(76, 143, 230, 0.3);
    background: rgba(76, 143, 230, 0.09);
}

.fixkosten-total--gross {
    border-color: rgba(81, 211, 154, 0.3);
    background: rgba(81, 211, 154, 0.08);
}

.fixkosten-total--gross strong {
    color: #66d9a5;
}

.fixkosten-total span,
.fixkosten-count {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fixkosten-total strong {
    color: #e5ad1e;
    font-size: 1.3rem;
}

.fixkosten-total--year strong {
    color: #75aef2;
}

.fixkosten-total--positions {
    border-color: rgba(154, 118, 232, 0.3);
    background: rgba(154, 118, 232, 0.09);
}

.fixkosten-total--positions strong {
    color: #b496f2;
}

/* Rechnungsübersicht im gleichen festen Statistikband wie die Fixkosten. */
.rechnungen-page {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

.invoice-statbar .fixkosten-statbar__inner {
    min-height: 6rem;
}

.invoice-summary {
    grid-template-columns: repeat(4, minmax(9.5rem, 1fr));
}

.invoice-total {
    min-width: 9.5rem;
}

.invoice-total small {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 750;
    white-space: nowrap;
}

.invoice-total--overdue {
    border-color: rgba(238, 104, 113, 0.34);
    background: rgba(238, 104, 113, 0.09);
}

.invoice-total--overdue strong {
    color: #f07c85;
}

.invoice-total--open {
    border-color: rgba(229, 173, 30, 0.3);
    background: rgba(229, 173, 30, 0.08);
}

.invoice-total--paid {
    border-color: rgba(81, 211, 154, 0.3);
    background: rgba(81, 211, 154, 0.08);
}

.invoice-total--paid strong {
    color: #66d9a5;
}

.invoice-total--total {
    border-color: rgba(76, 143, 230, 0.3);
    background: rgba(76, 143, 230, 0.09);
}

.invoice-total--total strong {
    color: #75aef2;
}

.crm-status--overdue {
    border-color: rgba(238, 104, 113, 0.32);
    background: rgba(238, 104, 113, 0.1);
    color: #f07c85;
}

.crm-status--open {
    border-color: rgba(229, 173, 30, 0.3);
    background: rgba(229, 173, 30, 0.09);
    color: #e9b83d;
}

.crm-status--paid {
    border-color: rgba(81, 211, 154, 0.3);
    background: rgba(81, 211, 154, 0.09);
    color: #66d9a5;
}

.crm-status--draft {
    border-color: rgba(154, 118, 232, 0.3);
    background: rgba(154, 118, 232, 0.09);
    color: #b496f2;
}

.fixkosten-open {
    --ui-button-accent: #e5ad1e;
    position: relative;
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(229, 173, 30, 0.32);
    border-radius: 0.8rem;
    background: rgba(229, 173, 30, 0.1);
    color: var(--heading);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
    transition: border-color 220ms ease, background 220ms ease, box-shadow 260ms ease, filter 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
    justify-content: center;
}

.fixkosten-open span {
    color: #e5ad1e;
    font-size: 1.25rem;
    line-height: 1;
}

.fixkosten-open:hover {
    border-color: rgba(229, 173, 30, 0.62);
    background: rgba(229, 173, 30, 0.16);
}

.fixkosten-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    border: 0;
    background: rgba(3, 10, 20, 0.72);
    opacity: 0;
    pointer-events: none;
    cursor: default;
    transition: opacity 220ms ease;
    backdrop-filter: blur(5px);
}

.fixkosten-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.fixkosten-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    width: min(30rem, calc(100vw - 1rem));
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border-left: 1px solid var(--border);
    background:
        radial-gradient(circle at 100% 0, rgba(48, 112, 192, 0.13), transparent 22rem),
        var(--background);
    box-shadow: -1.2rem 0 3rem rgba(0, 0, 0, 0.32);
    transform: translateX(105%);
    transition: transform 240ms ease;
    isolation: isolate;
}

.fixkosten-drawer.is-open {
    transform: translateX(0);
}

.fixkosten-drawer__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 96%, var(--blue));
    min-width: 0;
}

.fixkosten-drawer__header h2 {
    margin: 0.15rem 0 0;
    color: var(--heading);
    font-size: 1.25rem;
}

.fixkosten-drawer__header button {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--heading);
    font: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.fixkosten-custom-months[hidden] {
    display: none;
}

.firma-customer-number-note {
    display: grid;
    grid-template-columns: 2.7rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(117, 174, 242, 0.24);
    border-radius: 0.85rem;
    background: rgba(117, 174, 242, 0.075);
}

.firma-customer-number-note > span {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 0.7rem;
    background: rgba(117, 174, 242, 0.13);
    color: #75aef2;
    font-size: 1.15rem;
    font-weight: 900;
}

.firma-customer-number-note div {
    display: grid;
    gap: 0.18rem;
}

.firma-customer-number-note strong {
    color: var(--heading);
    font-size: 0.78rem;
}

.fixkosten-form .firma-customer-number-note small {
    color: var(--muted);
    line-height: 1.4;
}

body.fixkosten-drawer-open {
    overflow: hidden;
}

.fixkosten-message {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(81, 211, 154, 0.3);
    border-radius: 0.8rem;
    background: rgba(81, 211, 154, 0.09);
    color: var(--heading);
    font-weight: 700;
}

.fixkosten-layout {
    display: grid;
    grid-template-columns: minmax(17rem, 0.8fr) minmax(20rem, 1.2fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.fixkosten-form {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 1rem;
    padding: 1.3rem;
}

.fixkosten-form label {
    display: grid;
    gap: 0.4rem;
}

.fixkosten-form label > span {
    color: var(--heading);
    font-size: 0.78rem;
    font-weight: 800;
}

.fixkosten-form label > span em {
    color: var(--muted);
    font-style: normal;
    font-weight: 500;
}

.password-generator-field {
    display: grid;
    gap: 0.4rem;
}

.password-generator-field__heading {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.password-generator-field__heading > label {
    color: var(--heading);
    font-size: 0.78rem;
    font-weight: 800;
}

.password-generator-field__heading > button {
    display: inline-flex;
    min-height: 2rem;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(76, 143, 230, 0.4);
    border-radius: 0.6rem;
    background: rgba(76, 143, 230, 0.11);
    color: #7fb2ef;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 850;
    cursor: pointer;
}

.password-generator-field__heading > button:hover,
.password-generator-field__heading > button:focus-visible {
    border-color: rgba(76, 143, 230, 0.65);
    outline: none;
    background: rgba(76, 143, 230, 0.17);
    color: #a7cefa;
}

.password-generator-field__heading svg {
    width: 0.9rem;
    height: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.password-generator-field__message:empty {
    display: none;
}

.password-generator-field__message {
    color: #67c99a;
    font-size: 0.67rem;
    line-height: 1.45;
}

.fixkosten-interval-select {
    display: grid;
    gap: 0.4rem;
}

.fixkosten-interval-select .ui-select__menu {
    max-height: min(25rem, 52vh);
    overflow-y: auto;
}

.fixkosten-form input,
.fixkosten-form select,
.fixkosten-form textarea {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    outline: 0;
    background: var(--background);
    color: var(--heading);
    font: inherit;
    resize: vertical;
}

.fixkosten-form input:focus,
.fixkosten-form select:focus,
.fixkosten-form textarea:focus {
    border-color: rgba(229, 173, 30, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(229, 173, 30, 0.1);
}

.fixkosten-form small,
.fixkosten-validation {
    color: #ef7b7b;
    font-size: 0.75rem;
}

.fixkosten-form .fixkosten-field-hint {
    color: var(--muted);
    line-height: 1.45;
}

.fixkosten-validation:empty {
    display: none;
}

.fixkosten-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.8rem;
}

.fixkosten-money-input {
    position: relative;
}

.fixkosten-money-input input {
    padding-right: 2.4rem;
}

.fixkosten-money-input i {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
    transform: translateY(-50%);
}

.fixkosten-tax-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(81, 211, 154, 0.22);
    border-radius: 0.85rem;
    background: rgba(81, 211, 154, 0.055);
}

.fixkosten-tax-preview div {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.fixkosten-tax-preview span {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fixkosten-tax-preview strong {
    overflow: hidden;
    color: var(--heading);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixkosten-tax-preview div:last-child strong {
    color: #66d9a5;
}

.fixkosten-tax-preview > i {
    color: var(--muted);
    font-style: normal;
    font-weight: 900;
}

.produkt-active-switch {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0.9rem !important;
    align-items: center;
    min-height: 4.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, transparent), color-mix(in srgb, var(--background) 88%, transparent));
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.produkt-active-switch:has(> input[type="checkbox"]:checked) {
    border-color: rgba(81, 211, 154, 0.3);
    background: linear-gradient(135deg, rgba(81, 211, 154, 0.09), color-mix(in srgb, var(--surface) 86%, transparent));
    box-shadow: inset 0 0 0 1px rgba(81, 211, 154, 0.035);
}

.fixkosten-form .produkt-active-switch > input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.fixkosten-form .produkt-active-switch > input[type="hidden"] {
    display: none;
}

.fixkosten-form .produkt-active-switch > .produkt-active-switch__control {
    position: relative;
    flex: 0 0 2.85rem;
    width: 2.85rem;
    height: 1.62rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 25%, var(--background));
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.22);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.fixkosten-form .produkt-active-switch > .produkt-active-switch__control::after {
    position: absolute;
    top: 0.18rem;
    left: 0.2rem;
    width: 1.12rem;
    height: 1.12rem;
    border-radius: 50%;
    background: #d8e2ee;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    content: "";
    transition: background 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fixkosten-form .produkt-active-switch > input[type="checkbox"]:checked + .produkt-active-switch__control {
    border-color: rgba(81, 211, 154, 0.72);
    background: linear-gradient(135deg, #27966a, #50d39a);
    box-shadow: 0 0 0 0.2rem rgba(81, 211, 154, 0.1), inset 0 2px 5px rgba(0, 0, 0, 0.12);
}

.fixkosten-form .produkt-active-switch > input[type="checkbox"]:checked + .produkt-active-switch__control::after {
    background: #fff;
    transform: translateX(1.25rem);
}

.fixkosten-form .produkt-active-switch > input[type="checkbox"]:focus-visible + .produkt-active-switch__control {
    outline: 3px solid rgba(255, 181, 71, 0.75);
    outline-offset: 3px;
}

.produkt-active-switch__copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.produkt-active-switch__copy strong {
    color: var(--heading);
    font-size: 0.82rem;
}

.fixkosten-form .produkt-active-switch__copy small {
    color: var(--muted);
    line-height: 1.35;
}

/* Kompatible Darstellung für bereits laufende Ansichten mit der früheren Checkbox-Struktur. */
.fixkosten-form .fixkosten-checkbox {
    display: grid;
    grid-template-columns: 2.85rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    min-height: 4.6rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, transparent), color-mix(in srgb, var(--background) 88%, transparent));
    cursor: pointer;
}

.fixkosten-form .fixkosten-checkbox:has(> input[type="checkbox"]:checked) {
    border-color: rgba(81, 211, 154, 0.3);
    background: linear-gradient(135deg, rgba(81, 211, 154, 0.09), color-mix(in srgb, var(--surface) 86%, transparent));
}

.fixkosten-form .fixkosten-checkbox > input[type="checkbox"] {
    position: relative;
    width: 2.85rem;
    height: 1.62rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    appearance: none;
    background: color-mix(in srgb, var(--muted) 25%, var(--background));
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.fixkosten-form .fixkosten-checkbox > input[type="checkbox"]::after {
    position: absolute;
    top: 0.18rem;
    left: 0.2rem;
    width: 1.12rem;
    height: 1.12rem;
    border-radius: 50%;
    background: #d8e2ee;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    content: "";
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fixkosten-form .fixkosten-checkbox > input[type="checkbox"]:checked {
    border-color: rgba(81, 211, 154, 0.72);
    background: linear-gradient(135deg, #27966a, #50d39a);
}

.fixkosten-form .fixkosten-checkbox > input[type="checkbox"]:checked::after {
    background: #fff;
    transform: translateX(1.25rem);
}

.fixkosten-form .fixkosten-checkbox > input[type="hidden"] {
    display: none;
}

.fixkosten-form .fixkosten-checkbox > span {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.fixkosten-form .fixkosten-checkbox > span strong {
    color: var(--heading);
    font-size: 0.82rem;
}

.fixkosten-form .fixkosten-checkbox > span small {
    color: var(--muted);
    line-height: 1.35;
}

.fixkosten-submit {
    position: relative;
    min-height: 3rem;
    border: 1px solid rgba(76, 143, 230, 0.48);
    border-radius: 0.8rem;
    background: rgba(76, 143, 230, 0.08);
    color: var(--heading);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: border-color 220ms ease, background 220ms ease, box-shadow 260ms ease, filter 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fixkosten-submit:hover {
    border-color: rgba(92, 163, 250, 0.72);
    background: rgba(76, 143, 230, 0.15);
    box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.07);
    filter: none;
}

.fixkosten-column-chart-wrap {
    padding: 1.4rem;
    overflow-x: auto;
}

.fixkosten-column-chart {
    display: flex;
    min-width: max-content;
    height: 20rem;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    align-items: flex-end;
    padding: 1.5rem 0.6rem 0;
    border-bottom: 1px solid var(--border);
    background:
        repeating-linear-gradient(
            to top,
            transparent 0,
            transparent calc(25% - 1px),
            rgba(127, 146, 169, 0.1) 25%
        );
}

.fixkosten-column {
    display: grid;
    width: clamp(5.5rem, 8vw, 7.5rem);
    height: 100%;
    grid-template-rows: 1.8rem minmax(0, 1fr) 3.2rem;
    gap: 0.45rem;
    align-items: end;
    text-align: center;
}

.fixkosten-column__value {
    align-self: start;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.fixkosten-column__plot {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
}

.fixkosten-column__bar {
    display: block;
    width: min(3.7rem, 70%);
    min-height: 0.4rem;
    border-radius: 0.75rem 0.75rem 0.15rem 0.15rem;
    background: linear-gradient(180deg, #f1c54d, #dca51d 48%, #4c8fe6);
    box-shadow: 0 0.8rem 1.5rem rgba(76, 143, 230, 0.16);
    transition: filter 180ms ease, transform 180ms ease;
}

.fixkosten-column:hover .fixkosten-column__bar {
    filter: brightness(1.08);
    transform: scaleX(1.05);
}

.fixkosten-column__label {
    align-self: start;
    overflow: hidden;
    color: var(--heading);
    font-size: 0.76rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixkosten-table-card {
    margin-top: 1rem;
    overflow: visible;
}

.fixkosten-actions {
    width: 1%;
    text-align: right;
    white-space: nowrap;
}

.fixkosten-delete-form {
    display: inline-block;
    margin-left: 0.35rem;
}

.fixkosten-actions button {
    position: relative;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(225, 91, 91, 0.25);
    border-radius: 0.55rem;
    background: rgba(225, 91, 91, 0.08);
    color: #e77b7b;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 220ms ease, background 220ms ease, box-shadow 260ms ease, filter 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fixkosten-actions .fixkosten-edit,
.fixkosten-actions .fixkosten-delete {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    padding: 0;
    border-color: rgba(76, 143, 230, 0.3);
    background: rgba(76, 143, 230, 0.1);
    color: #81b5f6;
}

.fixkosten-actions button svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fixkosten-actions .fixkosten-edit:hover {
    border-color: rgba(76, 143, 230, 0.55);
    background: rgba(76, 143, 230, 0.16);
}

.fixkosten-actions .fixkosten-delete:hover {
    border-color: rgba(225, 91, 91, 0.55);
    background: rgba(225, 91, 91, 0.15);
}

/* Tabellenaktionen bleiben an ihrer Position; bewegte Buttons wirken in engen Zeilen unruhig. */
.fixkosten-actions .produkt-edit-action,
.fixkosten-actions .produkt-edit-action:hover:not(:disabled),
.fixkosten-actions .produkt-edit-action:focus-visible:not(:disabled),
.fixkosten-actions .produkt-edit-action:active:not(:disabled) {
    transform: none;
}

.fixkosten-actions .produkt-edit-action::after {
    display: none;
}

.fixkosten-actions .produkt-edit-action:hover:not(:disabled),
.fixkosten-actions .produkt-edit-action:focus-visible:not(:disabled) {
    border-color: rgba(92, 163, 250, 0.72);
    background: rgba(76, 143, 230, 0.2);
    box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.08);
}

.fixkosten-actions .produkt-edit-action:hover:not(:disabled) svg,
.fixkosten-actions .produkt-edit-action:focus-visible:not(:disabled) svg {
    animation: button-emoji-save 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fixkosten-open,
.fixkosten-submit,
.fixkosten-actions button,
.fixkosten-delete-dialog__actions button {
    position: relative;
    transition: border-color 220ms ease, background 220ms ease, box-shadow 260ms ease, filter 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fixkosten-open::after,
.fixkosten-submit::after,
.fixkosten-actions button::after,
.fixkosten-delete-dialog__actions button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.22) 48%, transparent 72%);
    clip-path: inset(0 round 0.55rem);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-115%);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.fixkosten-open:hover:not(:disabled),
.fixkosten-open:focus-visible:not(:disabled),
.fixkosten-submit:hover:not(:disabled),
.fixkosten-submit:focus-visible:not(:disabled),
.fixkosten-actions button:hover:not(:disabled),
.fixkosten-actions button:focus-visible:not(:disabled),
.fixkosten-delete-dialog__actions button:hover:not(:disabled),
.fixkosten-delete-dialog__actions button:focus-visible:not(:disabled) {
    transform: translateY(-0.15rem);
}

.fixkosten-open:hover::after,
.fixkosten-open:focus-visible::after,
.fixkosten-submit:hover::after,
.fixkosten-submit:focus-visible::after,
.fixkosten-actions button:hover::after,
.fixkosten-actions button:focus-visible::after,
.fixkosten-delete-dialog__actions button:hover::after,
.fixkosten-delete-dialog__actions button:focus-visible::after {
    opacity: 1;
    transform: translateX(115%);
}

.fixkosten-open:hover:not(:disabled) > span,
.fixkosten-open:focus-visible:not(:disabled) > span {
    animation: button-emoji-bounce 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fixkosten-actions .fixkosten-edit:hover:not(:disabled) svg,
.fixkosten-actions .fixkosten-edit:focus-visible:not(:disabled) svg {
    animation: button-emoji-save 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fixkosten-actions .fixkosten-delete:hover:not(:disabled) svg,
.fixkosten-actions .fixkosten-delete:focus-visible:not(:disabled) svg {
    animation: button-emoji-shake 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fixkosten-open:active:not(:disabled),
.fixkosten-submit:active:not(:disabled),
.fixkosten-actions button:active:not(:disabled),
.fixkosten-delete-dialog__actions button:active:not(:disabled) {
    transform: translateY(-0.03rem) scale(0.97);
    transition-duration: 90ms;
}

.fixkosten-receipts {
    min-width: 13rem;
}

.fixkosten-receipts__empty {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.76rem;
}

.fixkosten-receipts__list {
    display: grid;
    gap: 0.38rem;
    margin-bottom: 0.55rem;
}

.fixkosten-receipts__list a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 15rem;
    padding: 0.38rem 0.55rem;
    border: 1px solid rgba(76, 143, 230, 0.24);
    border-radius: 0.5rem;
    background: rgba(76, 143, 230, 0.08);
    color: #81b5f6;
    font-size: 0.72rem;
    text-decoration: none;
}

.fixkosten-receipts__list a:hover {
    border-color: rgba(76, 143, 230, 0.5);
    background: rgba(76, 143, 230, 0.14);
}

.fixkosten-receipts__list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixkosten-receipt-upload label {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.42rem 0.6rem;
    border: 1px solid rgba(241, 197, 77, 0.28);
    border-radius: 0.55rem;
    background: rgba(241, 197, 77, 0.07);
    color: #efc54b;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.fixkosten-receipt-upload label:hover {
    border-color: rgba(241, 197, 77, 0.55);
    background: rgba(241, 197, 77, 0.12);
}

.fixkosten-receipt-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.fixkosten-receipt-upload small {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.65rem;
}

.fixkosten-chart-toggle {
    display: inline-flex;
    padding: 0.2rem;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: var(--background);
}

.fixkosten-chart-toggle button {
    padding: 0.4rem 0.7rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 850;
    cursor: pointer;
}

.fixkosten-chart-toggle button.is-active {
    background: rgba(229, 173, 30, 0.14);
    color: #efc54b;
}

.fixkosten-column__label small {
    display: inline-grid;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.25rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(127, 146, 169, 0.15);
    color: var(--muted);
    font-size: 0.62rem;
}

.fixkosten-forecast-card {
    margin-top: 1rem;
}

.fixkosten-forecast {
    display: grid;
    min-width: 48rem;
    height: 14rem;
    grid-template-columns: repeat(12, minmax(3.2rem, 1fr));
    gap: 0.65rem;
    align-items: end;
    padding: 1.25rem;
    overflow-x: auto;
}

.fixkosten-forecast__month {
    display: grid;
    height: 100%;
    grid-template-rows: 1.3rem minmax(0, 1fr) 1.4rem;
    gap: 0.35rem;
    align-items: end;
    text-align: center;
}

.fixkosten-forecast__month strong,
.fixkosten-forecast__month span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.63rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixkosten-forecast__month div {
    display: flex;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.fixkosten-forecast__month i {
    display: block;
    width: 65%;
    min-height: 0.18rem;
    border-radius: 0.55rem 0.55rem 0.1rem 0.1rem;
    background: linear-gradient(180deg, #66d9a5, #4c8fe6);
}

.fixkosten-filter {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(13rem, 1.5fr) repeat(3, minmax(10rem, 1fr)) auto auto;
    gap: 0.75rem;
    align-items: end;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.fixkosten-filter label:not(.fixkosten-filter__check),
.fixkosten-filter__field {
    position: relative;
    display: grid;
    gap: 0.35rem;
}

.fixkosten-filter__field:has(.ui-select[open]) {
    z-index: 30;
}

.fixkosten-filter label > span,
.fixkosten-filter__field > span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fixkosten-filter .fixkosten-ui-select summary {
    min-height: 2.55rem;
    padding: 0 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.78rem;
}

.fixkosten-filter .fixkosten-ui-select__menu,
.fixkosten-filter .ui-select__menu {
    right: 0;
    left: auto;
    width: max(100%, 18rem);
    max-height: min(25rem, 55vh);
    overflow-y: auto;
}

.fixkosten-filter__field--sort .ui-select__menu {
    width: max(100%, 22rem);
}

.fixkosten-form__custom-select {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 0.4rem;
}

.fixkosten-form__custom-select:has(.ui-select[open]) {
    z-index: 20;
}

.fixkosten-form__custom-select > span {
    color: var(--heading);
    font-size: 0.78rem;
    font-weight: 800;
}

.fixkosten-form__custom-select .ui-select summary {
    min-height: 2.8rem;
    border-radius: 0.75rem;
    font-size: 0.82rem;
}

.fixkosten-form__custom-select .ui-select__menu {
    right: auto;
    left: 0;
    width: max(100%, 19rem);
    max-height: min(25rem, 52vh);
    overflow-y: auto;
}

.fixkosten-filter input[type="search"],
.fixkosten-filter select {
    width: 100%;
    min-height: 2.55rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    outline: 0;
    background: var(--background);
    color: var(--heading);
    font: inherit;
    font-size: 0.78rem;
}

.fixkosten-filter__check {
    display: flex;
    min-height: 2.55rem;
    gap: 0.45rem;
    align-items: center;
    white-space: nowrap;
}

.fixkosten-filter .ui-button {
    min-height: 2.55rem;
    justify-content: center;
    text-decoration: none;
}

.fixkosten-table td:nth-child(2) small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.fixkosten-table tr.is-inactive > td:not(.fixkosten-actions) {
    opacity: 0.58;
}

.fixkosten-status,
.fixkosten-receipt-count {
    display: inline-grid;
    min-width: 1.55rem;
    min-height: 1.4rem;
    margin-left: 0.35rem;
    padding: 0.15rem 0.4rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
}

.fixkosten-row-toggle {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.35rem;
    place-items: center;
    vertical-align: middle;
    border: 1px solid rgba(117, 174, 242, 0.28);
    border-radius: 50%;
    background: rgba(76, 143, 230, 0.08);
    color: #8dbcf4;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.fixkosten-data-row {
    cursor: pointer;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.fixkosten-data-row:hover,
.fixkosten-data-row:focus-visible,
.fixkosten-data-row.is-open {
    outline: none;
    background: rgba(76, 143, 230, 0.055);
    box-shadow: inset 3px 0 0 rgba(117, 174, 242, 0.48);
}

.fixkosten-row-toggle:hover,
.fixkosten-row-toggle:focus-visible {
    border-color: rgba(117, 174, 242, 0.58);
    outline: none;
    background: rgba(76, 143, 230, 0.16);
    box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.08);
    color: #b8d8ff;
}

.fixkosten-row-toggle svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 180ms ease;
}

.fixkosten-row-toggle.is-open svg {
    transform: rotate(180deg);
}

.fixkosten-detail-row > td {
    padding: 0 !important;
    background: color-mix(in srgb, var(--surface) 78%, var(--background));
}

.fixkosten-detail-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.8fr) minmax(24rem, 1.2fr);
    gap: 1.25rem;
    padding: 1.2rem 1.5rem 1.5rem 3.4rem;
    border-bottom: 1px solid var(--border);
}

.fixkosten-detail-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.fixkosten-detail-values div,
.fixkosten-detail-values p {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
}

.fixkosten-detail-values p {
    grid-column: 1 / -1;
}

.fixkosten-detail-values span {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.fixkosten-receipt-item {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) auto auto auto auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
}

.fixkosten-receipt-item > div {
    display: grid;
    min-width: 0;
}

.fixkosten-receipt-item > div strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fixkosten-receipt-item small {
    color: var(--muted);
    font-size: 0.65rem;
}

.fixkosten-receipt-item a,
.fixkosten-receipt-item label,
.fixkosten-receipt-item button {
    display: inline-flex;
    max-width: none;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    background: transparent;
    color: #81b5f6;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.fixkosten-receipt-item button {
    color: #e77b7b;
}

.fixkosten-receipt-item input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.fixkosten-delete-dialog {
    width: min(calc(100% - 2rem), 31rem);
    max-width: none;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--text);
}

.fixkosten-delete-dialog::backdrop {
    background: rgba(2, 8, 18, 0.78);
    backdrop-filter: blur(8px);
}

.fixkosten-delete-dialog__panel {
    position: relative;
    padding: clamp(1.5rem, 5vw, 2.25rem);
    overflow: hidden;
    border: 1px solid rgba(231, 91, 112, 0.32);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 100% 0, rgba(231, 91, 112, 0.15), transparent 18rem),
        var(--background);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.52);
}

.fixkosten-delete-dialog[open] .fixkosten-delete-dialog__panel {
    animation: fixkosten-dialog-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fixkosten-dialog-in {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fixkosten-delete-dialog__icon {
    display: grid;
    width: 3.3rem;
    height: 3.3rem;
    margin-bottom: 1.15rem;
    place-items: center;
    border: 1px solid rgba(231, 91, 112, 0.4);
    border-radius: 1rem;
    background: rgba(231, 91, 112, 0.12);
    color: #ff8da3;
    font-size: 1.45rem;
    font-weight: 900;
}

.fixkosten-delete-dialog__panel h2 {
    margin: 0.3rem 3rem 0.65rem 0;
    color: var(--heading);
    font-size: clamp(1.55rem, 5vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.fixkosten-delete-dialog__panel > p:not(.ui-overline) {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.fixkosten-delete-dialog__panel > p strong {
    color: var(--heading);
}

.fixkosten-delete-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: var(--heading);
    font: inherit;
    font-size: 1.35rem;
    cursor: pointer;
}

.fixkosten-delete-dialog__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.65rem;
}

.fixkosten-delete-dialog__actions button {
    min-height: 3rem;
    padding: 0.7rem 1rem;
    border-radius: 0.8rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
}

.fixkosten-delete-dialog__cancel {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--heading);
}

.fixkosten-delete-dialog__confirm {
    border: 1px solid rgba(231, 91, 112, 0.5);
    background: rgba(201, 64, 90, 0.08);
    color: var(--heading);
    box-shadow: none;
}

.fixkosten-delete-dialog__confirm:hover:not(:disabled),
.fixkosten-delete-dialog__confirm:focus-visible:not(:disabled) {
    border-color: rgba(236, 106, 106, 0.72);
    background: rgba(201, 64, 90, 0.14);
    box-shadow: 0 0 0 3px rgba(201, 64, 90, 0.07);
}

.fixkosten-delete-dialog__confirm:disabled {
    opacity: 0.65;
    cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
    .fixkosten-open,
    .fixkosten-submit,
    .fixkosten-actions button,
    .fixkosten-delete-dialog__actions button,
    .fixkosten-open > span,
    .fixkosten-actions button svg {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .fixkosten-open::after,
    .fixkosten-submit::after,
    .fixkosten-actions button::after,
    .fixkosten-delete-dialog__actions button::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .fixkosten-layout {
        grid-template-columns: 1fr;
    }

    .fixkosten-statbar__title {
        display: none;
    }

    .fixkosten-statbar__inner {
        justify-content: flex-end;
    }

    .fixkosten-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fixkosten-filter__search {
        grid-column: 1 / -1;
    }

    .fixkosten-detail-grid {
        grid-template-columns: 1fr;
        padding-left: 1.25rem;
    }
}

@media (max-width: 600px) {
    .fixkosten-statbar {
        top: 68px;
    }

    .fixkosten-statbar__inner {
        width: min(calc(100% - 24px), var(--page-width));
        padding: 0.65rem 0;
        flex-wrap: wrap;
    }

    .fixkosten-summary {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .invoice-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-total {
        min-width: 0;
    }

    .invoice-total small {
        font-size: 0.6rem;
    }

    .fixkosten-total {
        min-width: 0;
        padding: 0.7rem 0.9rem;
        text-align: left;
    }

    .fixkosten-total span {
        font-size: 0.6rem;
    }

    .fixkosten-total strong {
        font-size: clamp(0.95rem, 4.5vw, 1.2rem);
    }

    .fixkosten-open {
        width: 100%;
    }

    .fixkosten-drawer {
        inset: 0;
        width: 100%;
        max-width: none;
        overflow-x: hidden;
        border-left: 0;
    }

    .fixkosten-form__row {
        grid-template-columns: 1fr;
    }

    .fixkosten-column-chart {
        height: 17rem;
    }

    .fixkosten-filter {
        grid-template-columns: 1fr;
    }

    .fixkosten-filter__search {
        grid-column: auto;
    }

    .fixkosten-detail-values {
        grid-template-columns: 1fr;
    }

    .fixkosten-detail-values p {
        grid-column: auto;
    }

    .fixkosten-receipt-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fixkosten-receipt-item > div {
        grid-column: 1 / -1;
    }
}

/* Die interne Verwaltung nutzt die verfügbare Arbeitsfläche wie eine Desktop-Anwendung. */
.crm-page {
    padding: 1rem 0 2rem;
}

.crm-page > .page-width {
    width: calc(100% - 2rem);
    max-width: none;
}

.invoice-export-card {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(17rem, 0.8fr) minmax(32rem, 1.4fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.5rem;
    overflow: visible;
}

.invoice-export-card__copy h2 {
    margin: 0.25rem 0 0.55rem;
    color: var(--heading);
}

.invoice-export-card__copy > p:last-child {
    max-width: 36rem;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.invoice-export-card__forms {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 0.8rem;
}

.invoice-export-form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.invoice-export-form:has(.ui-select[open]) {
    z-index: 10;
}

.invoice-export-form > strong,
.invoice-export-form > button {
    grid-column: 1 / -1;
}

.invoice-export-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.invoice-export-field > .ui-field__label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.invoice-export-field .ui-select__menu {
    max-height: min(22rem, 55vh);
    overflow-y: auto;
    box-shadow: 0 0.65rem 1.5rem rgba(0, 0, 0, 0.16);
}

.invoice-export-form button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.9rem;
    padding: 0 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 181, 71, 0.55);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #dca51d, #f1c54d);
    box-shadow: 0 0.6rem 1.5rem rgba(220, 165, 29, 0.13);
    color: #17130a;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.invoice-export-form button:hover,
.invoice-export-form button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 0.8rem 1.8rem rgba(220, 165, 29, 0.22);
}

.invoice-export-form button:focus-visible {
    outline: 3px solid rgba(255, 181, 71, 0.25);
    outline-offset: 2px;
}

.invoice-export-form button:active {
    transform: translateY(0) scale(0.985);
    transition-duration: 80ms;
}

.invoice-export-form button > span:last-child {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(23, 19, 10, 0.12);
    font-size: 1rem;
}

.invoice-export-form button.invoice-export-download {
    gap: 0.6rem;
    justify-content: center;
    border-color: rgba(229, 173, 30, 0.52);
    background: rgba(229, 173, 30, 0.08);
    color: var(--heading);
    box-shadow: none;
    filter: none;
}

.invoice-export-form button.invoice-export-download:hover,
.invoice-export-form button.invoice-export-download:focus-visible {
    border-color: rgba(241, 197, 77, 0.74);
    background: rgba(229, 173, 30, 0.14);
    box-shadow: 0 0 0 3px rgba(229, 173, 30, 0.07);
    filter: none;
}

.invoice-export-form button.invoice-export-download > span:last-child {
    order: -1;
    width: 1em;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #f1c54d;
}

.invoice-export-form--year {
    grid-template-columns: 1fr;
}

.invoice-receipts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    min-width: 5rem;
}

.invoice-receipts form {
    display: contents;
}

.invoice-receipts a,
.invoice-receipts label {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: var(--surface);
    color: var(--heading);
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.invoice-receipts a:hover,
.invoice-receipts label:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
}

.invoice-receipts input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.invoice-filter-card {
    position: relative;
    z-index: 6;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    overflow: visible;
}

.invoice-filter-form {
    display: grid;
    grid-template-columns: minmax(15rem, 2fr) repeat(3, minmax(9rem, 1fr)) auto auto;
    gap: 0.75rem;
    align-items: end;
}

.invoice-filter-form label {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.invoice-filter-select {
    position: relative;
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.invoice-filter-select:has(.ui-select[open]) {
    z-index: 12;
}

.invoice-filter-select > .ui-field__label {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.invoice-filter-select .ui-select summary {
    min-height: 2.75rem;
    border-radius: 0.75rem;
    background: var(--surface);
}

.invoice-filter-select .ui-select__menu {
    max-height: min(24rem, 58vh);
    overflow-y: auto;
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.2);
}

.invoice-filter-form label > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.invoice-filter-form input[type="search"],
.invoice-status-actions input[type="date"] {
    min-height: 2.75rem;
    padding: 0 0.8rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    outline: none;
    background: var(--surface);
    color: var(--heading);
    font: inherit;
}

.invoice-filter-form input:focus,
.invoice-status-actions input:focus {
    border-color: rgba(117, 174, 242, 0.68);
    box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.09);
}

.invoice-filter-checkbox {
    display: flex !important;
    min-height: 2.75rem;
    flex-direction: row;
    gap: 0.55rem !important;
    align-items: center;
    white-space: nowrap;
}

.invoice-filter-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

.invoice-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.invoice-row-toggle {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--heading);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.invoice-row-toggle:hover,
.invoice-row-toggle:focus-visible {
    border-color: var(--accent);
    outline: none;
    color: var(--accent);
}

.invoice-row-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.invoice-receipt-count {
    display: inline-grid;
    min-width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid rgba(117, 174, 242, 0.3);
    border-radius: 0.65rem;
    background: rgba(76, 143, 230, 0.08);
    color: #75aef2;
    font-weight: 850;
}

.invoice-detail-row > td {
    padding: 0 !important;
    border-top: 0 !important;
    background: color-mix(in srgb, var(--surface) 72%, var(--background-soft));
}

.invoice-detail-grid {
    display: grid;
    grid-template-columns: minmax(20rem, 1.5fr) minmax(16rem, 1fr) minmax(16rem, 0.85fr);
    gap: 1.5rem;
    padding: 1.25rem 1.5rem 1.5rem 4rem;
    border-top: 1px dashed var(--border);
}

.invoice-detail-grid section {
    min-width: 0;
}

.invoice-position-list,
.invoice-detail-receipts,
.invoice-status-actions {
    display: grid;
    gap: 0.6rem;
}

.invoice-position-list > div,
.invoice-detail-totals > div {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.invoice-position-list > div {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.invoice-position-list span,
.invoice-detail-receipts a > span:last-child {
    display: grid;
    min-width: 0;
}

.invoice-position-list small,
.invoice-detail-receipts small,
.invoice-detail-empty {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
}

.invoice-detail-totals {
    display: grid;
    gap: 0.35rem;
    margin: 0.85rem 0 0;
}

.invoice-detail-totals dt,
.invoice-detail-totals dd {
    margin: 0;
}

.invoice-detail-totals dt {
    color: var(--muted);
}

.invoice-detail-totals dd {
    color: var(--heading);
    font-weight: 850;
}

.invoice-detail-note {
    margin: 0.85rem 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.invoice-detail-receipts a {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--heading);
    text-decoration: none;
}

.invoice-detail-receipts a:hover,
.invoice-detail-receipts a:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.invoice-status-actions form {
    display: grid;
    gap: 0.5rem;
}

.invoice-status-actions label {
    display: grid;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.invoice-status-actions button {
    width: 100%;
}

.invoice-pagination {
    justify-content: center;
    padding: 1rem;
}

@media (max-width: 1180px) {
    .invoice-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .invoice-filter-search {
        grid-column: span 2;
    }

    .invoice-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-left: 1.5rem;
    }
}

@media (max-width: 720px) {
    .invoice-filter-form,
    .invoice-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .invoice-filter-search {
        grid-column: auto;
    }

    .invoice-filter-actions {
        flex-wrap: wrap;
    }
}

.invoice-receipt-trigger {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    white-space: nowrap;
}

.invoice-receipt-trigger > span {
    color: #81b5f6;
    font-size: 0.9rem;
}

.customer-invoice-list .fixkosten-open {
    box-shadow: none;
    transform: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.customer-invoice-list .fixkosten-open::after {
    display: none;
}

.customer-invoice-list .fixkosten-open:hover:not(:disabled),
.customer-invoice-list .fixkosten-open:focus-visible:not(:disabled),
.customer-invoice-list .fixkosten-open:active:not(:disabled) {
    border-color: rgba(229, 173, 30, 0.48);
    outline: none;
    background: rgba(229, 173, 30, 0.12);
    box-shadow: none;
    transform: none;
}

.customer-invoice-list .fixkosten-open:hover:not(:disabled) > span,
.customer-invoice-list .fixkosten-open:focus-visible:not(:disabled) > span {
    animation: none;
    transform: none;
}

.invoice-attachment-content {
    display: grid;
    min-height: 100%;
    align-content: start;
}

.invoice-attachment-empty {
    margin: 1rem 1.3rem 0;
}

.invoice-attachment-list {
    display: grid;
    gap: 0.55rem;
    padding: 1.2rem 1.3rem 0;
}

.invoice-attachment-list a {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: color-mix(in srgb, var(--surface) 76%, transparent);
    color: var(--text);
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 200ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.invoice-attachment-list a:hover,
.invoice-attachment-list a:focus-visible {
    border-color: rgba(76, 143, 230, 0.5);
    outline: none;
    background: rgba(76, 143, 230, 0.1);
    box-shadow: 0 0.45rem 1.2rem rgba(76, 143, 230, 0.1);
    transform: translateY(-1px);
}

.invoice-attachment-list a > span:last-child {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.invoice-attachment-list strong {
    overflow: hidden;
    color: var(--heading);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-attachment-list small {
    color: var(--muted);
    font-size: 0.7rem;
}

.invoice-attachment-list__icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.65rem;
    background: rgba(76, 143, 230, 0.13);
    color: #81b5f6;
    font-size: 1rem;
    font-weight: 900;
}

.invoice-attachment-upload {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}

.fixkosten-form .invoice-attachment-picker small {
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 1050px) {
    .invoice-export-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .invoice-export-card__forms {
        grid-template-columns: 1fr;
    }
}

.customer-workspace-tabs__items {
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
}

.customer-workspace-tab {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 0.8rem 0.8rem 0 0;
    white-space: nowrap;
}

.customer-workspace-tab:hover,
.customer-workspace-tab.is-active {
    border-color: var(--border);
    background: var(--surface);
}

.customer-workspace-tab > a,
.customer-workspace-tab > a:hover,
.customer-workspace-tab > a.is-active {
    min-height: 3rem;
    padding: 0.7rem 0.45rem 0.7rem 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.customer-workspace-tab.is-active > a {
    color: var(--heading);
}

.customer-workspace-tab > button {
    min-width: 2.5rem;
    padding: 0 0.65rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 1.1rem;
    cursor: pointer;
}

.customer-workspace-tab > button:hover {
    color: var(--heading);
}

@media (max-width: 600px) {
    .crm-page {
        padding-top: 0.5rem;
    }

    .crm-page > .page-width {
        width: calc(100% - 1rem);
    }
}

.customer-assignment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(22rem, 0.65fr);
    gap: 1rem;
    align-items: start;
}

.customer-assignment-form-card {
    position: sticky;
    top: 1rem;
}

.customer-product-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.customer-product-list {
    display: grid;
}

.customer-product-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--border);
}

.customer-product-item:last-child {
    border-bottom: 0;
}

.customer-product-item > div {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.customer-product-item strong {
    color: var(--heading);
    font-size: 0.95rem;
}

.customer-product-item span,
.customer-product-item small {
    color: var(--muted);
    font-size: 0.75rem;
}

.customer-product-item form {
    flex: 0 0 auto;
}

.customer-product-item > .customer-product-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.customer-product-price {
    display: grid;
    gap: 0.42rem;
    flex: 0 0 9rem;
}

.customer-product-price > span:first-child {
    color: var(--heading);
    font-size: 0.7rem;
    font-weight: 800;
}

.customer-product-price > span em {
    color: var(--muted);
    font-style: normal;
    font-weight: 500;
}

.customer-product-price input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.58rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.72rem;
    background: color-mix(in srgb, var(--background) 88%, var(--surface));
    color: var(--heading);
    font: inherit;
}

.customer-product-price input:focus {
    border-color: rgba(76, 143, 230, 0.68);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(76, 143, 230, 0.1);
}

.fixkosten-drawer .customer-product-assignment {
    display: grid;
    gap: 0;
    margin: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background:
        linear-gradient(145deg, rgba(76, 143, 230, 0.035), transparent 42%),
        color-mix(in srgb, var(--surface) 90%, var(--background));
    box-shadow: 0 0.7rem 1.8rem rgba(2, 10, 22, 0.07);
}

.fixkosten-drawer .customer-product-assignment + .customer-product-assignment {
    margin-top: 0;
}

.customer-product-assignment__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.customer-product-assignment__icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.3);
    border-radius: 0.72rem;
    background: rgba(76, 143, 230, 0.12);
    color: #78aceb;
    font-size: 0.78rem;
    font-weight: 900;
}

.customer-product-assignment__header > div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.customer-product-assignment__header strong {
    overflow: hidden;
    color: var(--heading);
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-product-assignment__header > div span {
    color: var(--muted);
    font-size: 0.67rem;
}

.customer-product-assignment__standard {
    padding: 0.32rem 0.5rem;
    border: 1px solid rgba(76, 143, 230, 0.22);
    border-radius: 0.5rem;
    background: rgba(76, 143, 230, 0.08);
    color: #72a9ed;
    font-size: 0.65rem;
    font-weight: 800;
    white-space: nowrap;
}

.customer-product-assignment > p {
    margin: 0;
    padding: 0.8rem 1rem 0;
    color: var(--muted);
    font-size: 0.71rem;
    line-height: 1.5;
}

.customer-product-assignment__fields {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(8.5rem, 0.7fr);
    gap: 0.75rem;
    padding: 0.9rem 1rem 1rem;
}

.fixkosten-drawer .customer-product-assignment .customer-product-price {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
}

.customer-product-assignment__price-input {
    position: relative;
    display: block;
}

.customer-product-assignment__price-input input {
    padding-right: 2.1rem;
}

.customer-product-assignment__price-input i {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 800;
    transform: translateY(-50%);
    pointer-events: none;
}

.customer-product-assignment__footer {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 35%, transparent);
}

.customer-product-assignment__footer small {
    max-width: 14rem;
    color: var(--muted);
    font-size: 0.65rem;
    line-height: 1.4;
}

.customer-product-assignment__submit {
    display: inline-flex;
    min-height: 2.55rem;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(229, 173, 30, 0.5);
    border-radius: 0.7rem;
    background: rgba(229, 173, 30, 0.12);
    color: var(--heading);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.customer-product-assignment__submit > span {
    color: #e5ad1e;
    font-size: 1rem;
    line-height: 1;
}

.customer-product-assignment__submit:hover,
.customer-product-assignment__submit:focus-visible {
    border-color: rgba(229, 173, 30, 0.7);
    outline: none;
    background: rgba(229, 173, 30, 0.18);
}

.customer-product-action {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 2.4rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(76, 143, 230, 0.35);
    border-radius: 0.65rem;
    background: rgba(76, 143, 230, 0.12);
    color: #8cbcf6;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.8rem rgba(76, 143, 230, 0.04);
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.customer-product-action::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.16) 48%, transparent 68%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-115%);
    transition: opacity 160ms ease, transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.customer-product-action:hover,
.customer-product-action:focus-visible {
    border-color: rgba(92, 163, 250, 0.68);
    outline: none;
    background: rgba(76, 143, 230, 0.2);
    color: var(--heading);
    box-shadow: 0 0.55rem 1.25rem rgba(76, 143, 230, 0.16), 0 0 0 3px rgba(76, 143, 230, 0.07);
    transform: translateY(-2px);
}

.customer-product-action:hover::after,
.customer-product-action:focus-visible::after {
    opacity: 1;
    transform: translateX(115%);
}

.customer-product-action:active {
    box-shadow: 0 0.2rem 0.6rem rgba(76, 143, 230, 0.1);
    transform: translateY(0) scale(0.97);
    transition-duration: 80ms;
}

.customer-product-action--remove {
    border-color: rgba(236, 106, 106, 0.3);
    background: rgba(236, 106, 106, 0.08);
    color: var(--heading);
}

.customer-product-action--remove:hover,
.customer-product-action--remove:focus-visible {
    border-color: rgba(236, 106, 106, 0.68);
    background: rgba(236, 106, 106, 0.16);
    color: var(--heading);
    box-shadow: 0 0.55rem 1.25rem rgba(236, 106, 106, 0.14), 0 0 0 3px rgba(236, 106, 106, 0.06);
}

.customer-product-action--remove:active {
    box-shadow: 0 0.2rem 0.6rem rgba(236, 106, 106, 0.1);
}

[data-theme="light"] .customer-product-action,
[data-theme="light"] .customer-product-action:hover,
[data-theme="light"] .customer-product-action:focus-visible,
[data-theme="light"] .customer-product-action--remove,
[data-theme="light"] .customer-product-action--remove:hover,
[data-theme="light"] .customer-product-action--remove:focus-visible {
    color: #0b1728;
}

.product-add-trigger {
    gap: 0.65rem;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 0.35rem 1rem rgba(229, 173, 30, 0.05);
}

.product-add-trigger::after {
    display: none;
}

.fixkosten-open.product-add-trigger > .product-add-trigger__icon {
    display: grid;
    width: 1em;
    height: auto;
    flex: 0 0 1em;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f1c54d;
    font-size: 0.95rem;
    line-height: 1;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fixkosten-open.product-add-trigger > .product-add-trigger__label {
    color: var(--heading);
    font-size: inherit;
    line-height: 1.1;
    transition: color 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fixkosten-open.product-add-trigger:hover:not(:disabled),
.fixkosten-open.product-add-trigger:focus-visible:not(:disabled) {
    border-color: rgba(229, 173, 30, 0.64);
    background: rgba(229, 173, 30, 0.15);
    box-shadow: 0 0.55rem 1.4rem rgba(229, 173, 30, 0.11);
    transform: translateY(-1px);
}

.fixkosten-open.product-add-trigger:hover:not(:disabled) > .product-add-trigger__icon,
.fixkosten-open.product-add-trigger:focus-visible:not(:disabled) > .product-add-trigger__icon {
    animation: button-emoji-bounce 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
    border-color: transparent;
    background: transparent;
    color: #ffe08a;
    transform: scale(1.08);
}

.fixkosten-open.product-add-trigger:hover:not(:disabled) > .product-add-trigger__label,
.fixkosten-open.product-add-trigger:focus-visible:not(:disabled) > .product-add-trigger__label {
    animation: none;
    transform: translateX(1px);
}

.fixkosten-open.product-add-trigger:active:not(:disabled) {
    transform: translateY(0) scale(0.985);
}

@media (max-width: 1050px) {
    .customer-assignment-layout,
    .customer-product-columns {
        grid-template-columns: 1fr;
    }

    .customer-assignment-form-card {
        position: static;
    }
}

@media (max-width: 600px) {
    .customer-product-assignment__fields {
        grid-template-columns: 1fr;
    }

    .customer-product-assignment__header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .customer-product-assignment__standard {
        grid-column: 2;
        justify-self: start;
    }

    .customer-product-assignment__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-product-assignment__footer small {
        max-width: none;
    }

    .customer-product-assignment__submit {
        width: 100%;
    }

    .customer-product-item {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-product-item form,
    .customer-product-action {
        width: 100%;
    }

    .customer-product-actions,
    .customer-product-price {
        width: 100%;
        flex-basis: auto;
    }

    .customer-product-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-product-action,
    .customer-product-action::after {
        transition-duration: 0.01ms !important;
    }

    .customer-product-action::after {
        display: none;
    }
}

/* Im Verwaltungsbereich bleiben Hover-Zustaende ruhig und ohne Bewegung. */
.portal-main .crm-metric:hover,
.portal-main .quick-invoice-product-select__menu button:hover,
.portal-main .invoice-preview-dialog__header > button:hover,
.portal-main .invoice-preview-dialog__actions button:hover,
.portal-main .fixkosten-open:hover:not(:disabled),
.portal-main .fixkosten-submit:hover:not(:disabled),
.portal-main .fixkosten-actions button:hover:not(:disabled),
.portal-main .fixkosten-delete-dialog__actions button:hover:not(:disabled),
.portal-main .invoice-export-form button:hover,
.portal-main .invoice-receipts a:hover,
.portal-main .invoice-receipts label:hover,
.portal-main .invoice-attachment-list a:hover,
.portal-main .customer-product-action:hover,
.portal-main .fixkosten-open.product-add-trigger:hover:not(:disabled) {
    animation: none;
    transform: none;
}

.portal-main .fixkosten-open::after,
.portal-main .fixkosten-submit::after,
.portal-main .fixkosten-actions button::after,
.portal-main .fixkosten-delete-dialog__actions button::after,
.portal-main .customer-product-action::after {
    display: none;
}

.portal-main .fixkosten-column:hover .fixkosten-column__bar {
    transform: none;
}

.portal-shell .portal-navigation__link:hover,
.portal-shell .portal-navigation__link:hover .portal-navigation__icon,
.portal-shell .portal-navigation__link:hover .portal-navigation__arrow {
    transform: none;
}

/* Buttons verwenden auch im Verwaltungsbereich die zentrale Icon-Bewegung. */
.ui-button > span[aria-hidden="true"],
.ui-button > svg {
    flex: 0 0 auto;
    transform-origin: center;
}

.ui-button:hover:not(:disabled) > span[aria-hidden="true"],
.ui-button:focus-visible:not(:disabled) > span[aria-hidden="true"],
.ui-button:hover:not(:disabled) > svg,
.ui-button:focus-visible:not(:disabled) > svg {
    animation: button-emoji-bounce 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ui-button--danger:hover:not(:disabled) > span[aria-hidden="true"],
.ui-button--danger:focus-visible:not(:disabled) > span[aria-hidden="true"],
.ui-button--danger:hover:not(:disabled) > svg,
.ui-button--danger:focus-visible:not(:disabled) > svg {
    animation-name: button-emoji-shake;
}

.ui-button[data-button-icon]::after {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    position: static;
    inset: auto;
    z-index: auto;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    clip-path: none;
    content: attr(data-button-icon);
    opacity: 1;
    pointer-events: none;
    transform: none;
}

/* Private Dokumentenablage innerhalb der Kundenakte. */
.product-settings-list {
    display: grid;
}

.product-settings-item {
    display: grid;
    grid-template-columns: minmax(18rem, 1.35fr) minmax(24rem, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border);
}

.product-settings-item__identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
}

.product-settings-item__identity > span {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.3);
    border-radius: 0.72rem;
    background: rgba(76, 143, 230, 0.11);
    color: #82b4f1;
    font-size: 0.72rem;
    font-weight: 900;
}

.product-settings-item__identity > div {
    display: grid;
    min-width: 0;
    gap: 0.13rem;
}

.product-settings-item__identity small {
    color: #74a7e7;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.product-settings-item__identity strong {
    overflow: hidden;
    color: var(--heading);
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-settings-item__identity p {
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-settings-item__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0;
}

.product-settings-item__facts > div {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
    padding: 0.52rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.58rem;
    background: color-mix(in srgb, var(--background) 48%, transparent);
}

.product-settings-item__facts dt {
    color: var(--muted);
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-settings-item__facts dd {
    overflow: hidden;
    margin: 0;
    color: var(--heading);
    font-size: 0.7rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-settings-item__controls {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .product-settings-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .product-settings-item__facts {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 650px) {
    .product-settings-item {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .product-settings-item__facts {
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-settings-item__controls {
        justify-content: space-between;
    }

    .product-settings-item__identity p {
        overflow: visible;
        white-space: normal;
    }
}

/* Produktverwaltung: Produktwahl links, einheitliches Detailgerüst rechts. */
.product-workspace {
    display: grid;
    grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.product-sidebar {
    position: relative;
    align-self: stretch;
    min-height: 100%;
    border-right: 1px solid var(--border);
    background: color-mix(in srgb, var(--background) 62%, var(--surface));
}

.product-sidebar__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.4rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
}

.product-sidebar__heading > div,
.product-sidebar__copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.product-sidebar__heading span,
.product-sidebar__copy small {
    color: var(--muted);
    font-size: 0.68rem;
}

.product-sidebar__heading strong { color: var(--heading); font-size: 0.95rem; }
.product-sidebar__heading strong > span { color: inherit; font-size: inherit; }
.product-sidebar__filters { display: grid; gap: 0.55rem; padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--border); }
.product-sidebar__search input { width: 100%; min-height: 2.45rem; padding: 0 0.75rem; border: 1px solid var(--border); border-radius: 0.68rem; outline: none; background: var(--surface); color: var(--heading); font: inherit; font-size: 0.74rem; }
.product-sidebar__search input:focus { border-color: rgba(117, 174, 242, 0.68); box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.09); }
.product-sidebar__filter-grid { display: grid; gap: 0.4rem; }
.product-filter-select { min-width: 0; }
.product-filter-select > summary { min-height: 2.25rem; padding: 0 0.65rem; border-radius: 0.62rem; font-size: 0.65rem; }
.product-filter-select .ui-select__menu { position: static; width: 100%; max-height: 14rem; margin-top: 0.35rem; overflow-y: auto; box-shadow: none; }
.product-filter-select .ui-select__menu button { min-height: 2.3rem; padding: 0.45rem 0.55rem; }
.product-filter-select .ui-select__menu strong { font-size: 0.64rem; }
.product-sidebar__list { display: grid; padding: 0.55rem; gap: 0.25rem; }
.product-sidebar__item[hidden] { display: none !important; }
.product-sidebar__empty { margin: 0.55rem; padding: 0.85rem; border: 1px dashed var(--border-strong); border-radius: 0.7rem; color: var(--muted); font-size: 0.68rem; line-height: 1.45; text-align: center; }

.product-sidebar__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    width: 100%;
    padding: 0.72rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.product-sidebar__item:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); }
.product-sidebar__item.is-active { border-color: rgba(76, 143, 230, 0.3); background: rgba(76, 143, 230, 0.11); }
.product-sidebar__item:focus-visible { outline: 3px solid rgba(76, 143, 230, 0.28); outline-offset: 1px; }

.product-sidebar__icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.28);
    border-radius: 0.68rem;
    background: rgba(76, 143, 230, 0.1);
    color: #79abe8;
    font-size: 0.68rem;
    font-weight: 900;
}

.product-icon::before { display: block; font-size: 1.05rem; font-style: normal; line-height: 1; content: "◆"; }
.product-icon[data-product-icon="box"]::before { content: "▣"; }
.product-icon[data-product-icon="sparkles"]::before { content: "✦"; }
.product-icon[data-product-icon="music"]::before { content: "♫"; }
.product-icon[data-product-icon="users"]::before { content: "●●"; font-size: 0.62rem; letter-spacing: -0.08rem; }
.product-icon[data-product-icon="broadcast"]::before { content: "◉"; }
.product-icon[data-product-icon="sliders"]::before { content: "≋"; }
.product-icon[data-product-icon="monitor"]::before { content: "▱"; }
.product-icon[data-product-icon="code"]::before { content: "</>"; font-size: 0.65rem; font-weight: 900; }
.product-icon[data-product-icon="wrench"]::before { content: "⚒"; }
.product-icon[data-product-icon="bolt"]::before { content: "ϟ"; font-weight: 900; }
.product-icon[data-product-icon="server"]::before { content: "▤"; }
.product-icon[data-product-icon="calendar"]::before { content: "▦"; }
.product-icon[data-product-icon="document"]::before { content: "▧"; }
.product-icon[data-product-icon="chart"]::before { content: "▥"; }
.product-icon[data-product-icon="globe"]::before { content: "◎"; }
.product-icon[data-product-icon="shield"]::before { content: "◈"; }
.product-icon[data-product-icon="cart"]::before { content: "◫"; }
.product-icon[data-product-icon="heart"]::before { content: "♥"; }
.product-icon[data-product-icon="camera"]::before { content: "▣"; }
.product-icon[data-product-icon="mail"]::before { content: "✉"; }
.product-icon[data-product-icon="settings"]::before { content: "⚙"; }
.product-icon[data-product-icon="building"]::before { content: "▥"; }
.product-icon[data-product-icon="car"]::before { content: "▰"; }
.product-icon[data-product-icon="phone"]::before { content: "☎"; }
.product-icon[data-product-icon="database"]::before { content: "▤"; }
.product-icon[data-product-icon="cloud"]::before { content: "☁"; }
.product-icon[data-product-icon="key"]::before { content: "⚿"; }
.product-icon[data-product-icon="clock"]::before { content: "◷"; }
.product-icon[data-product-icon="tag"]::before { content: "◇"; }
.product-icon[data-product-icon^="lobnex-"] { background-repeat: no-repeat; background-position: center; background-size: contain; }
.product-icon[data-product-icon^="lobnex-"]::before { content: ""; }
.product-icon[data-product-icon="lobnex-mark"] { background-image: url("/images/products/lobnex/lobnex-mark.svg"); }
.product-icon[data-product-icon="lobnex-logo-light"] { background-image: url("/images/products/lobnex/lobnex-logo-light.svg"); }
.product-icon[data-product-icon="lobnex-logo-dark"] { background-image: url("/images/products/lobnex/lobnex-logo-dark.svg"); }

.product-sidebar__copy strong { overflow: hidden; color: var(--heading); font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.product-sidebar__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-sidebar__status { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--border-strong); }
.product-sidebar__status.is-active { background: #42c98e; box-shadow: 0 0 0 0.2rem rgba(66, 201, 142, 0.12); }

.product-content { min-width: 0; }
.product-panel[hidden] { display: none !important; }
.product-panel { display: grid; }

.product-panel__header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.55rem 1.7rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(76, 143, 230, 0.08), transparent 55%);
}

.product-panel__header h2 { margin: 0.35rem 0 0.25rem; color: var(--heading); font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.product-panel__header p { max-width: 48rem; margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.product-panel__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.product-panel__meta span { padding: 0.22rem 0.48rem; border-radius: 999px; background: rgba(76, 143, 230, 0.1); color: #78a9e7; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.product-panel__actions { display: flex; flex: 0 0 auto; gap: 0.65rem; align-items: center; }

.product-tabs {
    display: flex;
    gap: 0.3rem;
    overflow-x: auto;
    margin: 1rem 1.7rem 0;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    background: var(--surface);
    scrollbar-width: thin;
}

.product-tabs button {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.45rem;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.product-tabs button:hover,
.product-tabs button.is-active { background: rgba(76, 143, 230, 0.13); color: var(--heading); }
.product-tabs button.is-active { box-shadow: inset 0 0 0 1px rgba(76, 143, 230, 0.2); }
.product-tabs button.is-not-applicable:not(.is-active) { opacity: 0.58; }
.product-tabs button.is-not-applicable::after { width: 0.38rem; height: 0.38rem; border-radius: 50%; background: var(--border-strong); content: ""; }
.product-tabs button:focus-visible { outline: 3px solid rgba(76, 143, 230, 0.25); outline-offset: -3px; }
.product-tabs button span { display: inline-grid; min-width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 0.68rem; }

.product-section { padding: 1.45rem 1.7rem; border-bottom: 1px solid var(--border); }
.product-section[hidden] { display: none !important; }
.product-section:last-child { border-bottom: 0; }
.product-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.05rem; }
.product-section__heading > div { display: flex; align-items: center; gap: 0.65rem; }
.product-section__heading h3 { margin: 0; color: var(--heading); font-size: 1rem; }
.product-section__heading p { margin: 0; color: var(--muted); font-size: 0.7rem; }

.product-fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; margin: 0; }
.product-fact-grid--price { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-fact-grid > div { display: grid; gap: 0.25rem; padding: 0.85rem; border: 1px solid var(--border); border-radius: 0.72rem; background: color-mix(in srgb, var(--background) 48%, transparent); }
.product-fact-grid dt { color: var(--muted); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.product-fact-grid dd { margin: 0; color: var(--heading); font-size: 0.84rem; font-weight: 800; }

.product-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.product-form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.product-toggle-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-toggle-grid--drawer { grid-template-columns: 1fr; }
.fixkosten-form .product-toggle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: center; min-height: 4.2rem; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: 0.72rem; background: color-mix(in srgb, var(--background) 45%, transparent); cursor: pointer; }
.fixkosten-form .product-toggle > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fixkosten-form .product-toggle > span { position: relative; width: 2.35rem; height: 1.35rem; border: 1px solid var(--border-strong); border-radius: 999px; background: color-mix(in srgb, var(--muted) 20%, var(--background)); transition: 180ms ease; }
.fixkosten-form .product-toggle > span::after { position: absolute; top: 0.17rem; left: 0.18rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); content: ""; transition: transform 180ms ease; }
.fixkosten-form .product-toggle > input:checked + span { border-color: #4c8fe6; background: #4c8fe6; }
.fixkosten-form .product-toggle > input:checked + span::after { transform: translateX(0.98rem); }
.fixkosten-form .product-toggle > input:focus-visible + span { outline: 3px solid rgba(76, 143, 230, 0.3); outline-offset: 2px; }
.fixkosten-form .product-toggle > div { display: grid; gap: 0.12rem; }
.fixkosten-form .product-toggle strong { color: var(--heading); font-size: 0.74rem; }
.fixkosten-form .product-toggle small { color: var(--muted); font-size: 0.62rem; line-height: 1.3; }
.product-form-actions { display: flex; justify-content: flex-end; padding-top: 0.25rem; }
.product-inline-form { max-width: 72rem; }
.product-inline-actions { display: flex; gap: 0.65rem; justify-content: flex-end; padding-top: 0.35rem; border-top: 1px solid var(--border); }
.product-toggle--single { max-width: 28rem; }
.product-inline-note { margin-bottom: 1rem; padding: 0.75rem 0.9rem; border: 1px solid rgba(76,143,230,.25); border-radius: 0.7rem; background: rgba(76,143,230,.08); color: var(--muted); font-size: 0.7rem; }
.product-price-preview { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 0.72rem; background: color-mix(in srgb, var(--background) 45%, transparent); }
.product-price-preview span { color: var(--muted); font-size: 0.7rem; }
.product-price-preview strong { color: var(--heading); font-size: 1rem; }

.product-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.product-module-grid article { position: relative; display: grid; gap: 0.35rem; padding: 0.9rem 0.9rem 0.9rem 3.55rem; border: 1px solid var(--border); border-radius: 0.72rem; background: color-mix(in srgb, var(--background) 42%, transparent); }
.product-module-icon { position: absolute; top: 0.9rem; left: 0.9rem; display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid rgba(76,143,230,.25); border-radius: 0.55rem; background: rgba(76,143,230,.1); color: #75a8e7; }
.product-module-grid span { color: #76a9e8; font-size: 0.6rem; font-weight: 900; text-transform: uppercase; }
.product-module-grid strong { color: var(--heading); font-size: 0.82rem; }
.product-module-grid p { margin: 0; color: var(--muted); font-size: 0.66rem; line-height: 1.45; }
.product-module-grid small { color: var(--muted); font-size: 0.6rem; }
.product-empty-state { display: grid; place-items: center; gap: 0.3rem; min-height: 6.5rem; padding: 1rem; border: 1px dashed var(--border-strong); border-radius: 0.75rem; color: var(--muted); text-align: center; }
.product-empty-state strong { color: var(--heading); font-size: 0.8rem; }
.product-empty-state span { font-size: 0.68rem; }
.product-not-applicable { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; min-height: 7rem; padding: 1rem 1.1rem; border: 1px dashed var(--border-strong); border-radius: 0.8rem; background: color-mix(in srgb, var(--background) 38%, transparent); }
.product-not-applicable > span { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border: 1px solid var(--border); border-radius: 0.7rem; background: var(--surface); color: var(--muted); }
.product-not-applicable > div { display: grid; gap: 0.25rem; }
.product-not-applicable strong { color: var(--heading); font-size: 0.82rem; }
.product-not-applicable p { margin: 0; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }

.product-license-section { background: color-mix(in srgb, var(--background) 12%, transparent); }
.product-license-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.product-license-summary article { position: relative; display: grid; gap: 0.18rem; overflow: hidden; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 0.78rem; background: color-mix(in srgb, var(--background) 46%, transparent); }
.product-license-summary article::before { position: absolute; inset: 0 auto 0 0; width: 0.18rem; background: #6f9ed8; content: ""; }
.product-license-summary article.is-active::before { background: #42c98e; }
.product-license-summary span { color: var(--muted); font-size: 0.61rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.product-license-summary strong { color: var(--heading); font-size: 1.15rem; }
.product-license-summary small { color: var(--muted); font-size: 0.61rem; }

.product-license-list { display: grid; gap: 0.8rem; }
.product-assignment-list { display: grid; gap: 0.8rem; margin-bottom: 0.8rem; }
.product-assignment-card { overflow: hidden; border: 1px solid var(--border); border-radius: 0.9rem; background: color-mix(in srgb, var(--surface) 88%, var(--background)); box-shadow: 0 0.5rem 1.3rem rgba(0, 0, 0, 0.06); }
.product-assignment-card > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); background: linear-gradient(110deg, rgba(66, 201, 142, 0.07), transparent 48%); }
.product-assignment-positions { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.65rem; padding: 0.85rem 1rem; }
.product-assignment-positions > div { display: grid; gap: 0.18rem; padding: 0.7rem 0.75rem; border: 1px solid var(--border); border-radius: 0.68rem; background: color-mix(in srgb, var(--background) 38%, transparent); }
.product-assignment-positions span { color: var(--heading); font-size: 0.7rem; font-weight: 800; }
.product-assignment-positions strong { color: #79dcb0; font-size: 0.72rem; }
.product-assignment-positions small { color: var(--muted); font-size: 0.58rem; }
.product-assignment-card > footer { display: flex; justify-content: flex-end; padding: 0.7rem 1rem; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--background) 30%, transparent); }
.product-license-card { overflow: hidden; border: 1px solid var(--border); border-radius: 0.9rem; background: color-mix(in srgb, var(--surface) 88%, var(--background)); box-shadow: 0 0.5rem 1.3rem rgba(0, 0, 0, 0.08); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.product-license-card:hover { border-color: rgba(76, 143, 230, 0.3); transform: translateY(-1px); box-shadow: 0 0.7rem 1.6rem rgba(0, 0, 0, 0.12); }
.product-license-card__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); background: linear-gradient(110deg, rgba(76, 143, 230, 0.08), transparent 48%); }
.product-license-company { display: flex; gap: 0.7rem; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.product-license-company > span { display: grid; flex: 0 0 auto; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid rgba(76, 143, 230, 0.28); border-radius: 0.68rem; background: rgba(76, 143, 230, 0.12); color: #82b4ef; font-size: 0.82rem; font-weight: 900; transition: transform 180ms ease, background 180ms ease; }
.product-license-company:hover > span { transform: scale(1.05) rotate(-2deg); background: rgba(76, 143, 230, 0.2); }
.product-license-company > div { display: grid; gap: 0.1rem; min-width: 0; }
.product-license-company strong { overflow: hidden; color: var(--heading); font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.product-license-company small { color: var(--muted); font-size: 0.63rem; }
.product-license-card__state { display: flex; gap: 0.55rem; align-items: center; }
.product-license-card__state > small { color: var(--muted); font-size: 0.62rem; }
.product-license-status { display: inline-flex; gap: 0.4rem; align-items: center; min-height: 1.75rem; padding: 0.28rem 0.58rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 0.62rem; font-weight: 850; }
.product-license-status i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: #e5ad2e; box-shadow: 0 0 0 0.18rem rgba(229, 173, 46, 0.12); }
.product-license-status.is-active { border-color: rgba(66, 201, 142, 0.28); color: #79dcb0; }
.product-license-status.is-active i { background: #42c98e; box-shadow: 0 0 0 0.18rem rgba(66, 201, 142, 0.12); }
.product-license-status.is-blocked { border-color: rgba(235, 91, 103, 0.28); color: #ff8992; }
.product-license-status.is-blocked i { background: #eb5b67; box-shadow: 0 0 0 0.18rem rgba(235, 91, 103, 0.12); }
.product-license-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0.9rem 1rem; }
.product-license-facts > div { display: grid; gap: 0.18rem; min-width: 0; padding: 0 0.85rem; border-right: 1px solid var(--border); }
.product-license-facts > div:first-child { padding-left: 0; }
.product-license-facts > div:last-child { padding-right: 0; border-right: 0; }
.product-license-facts dt { color: var(--muted); font-size: 0.59rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.product-license-facts dd { overflow: hidden; margin: 0; color: var(--heading); font-size: 0.72rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.product-license-card__modules { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0 1rem 0.9rem; }
.product-license-card__modules > span { padding-top: 0.25rem; color: var(--muted); font-size: 0.59rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.product-license-card__modules > div { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.product-license-card__modules > div > span { padding: 0.24rem 0.5rem; border: 1px solid rgba(76, 143, 230, 0.2); border-radius: 999px; background: rgba(76, 143, 230, 0.08); color: #83b4ed; font-size: 0.6rem; font-weight: 750; }
.product-license-access { margin: 0 1rem 0.9rem; border: 1px solid var(--border); border-radius: 0.78rem; background: color-mix(in srgb, var(--background) 38%, transparent); }
.product-license-access > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 0.6rem; align-items: center; min-height: 3.1rem; padding: 0.65rem 0.8rem; color: inherit; list-style: none; cursor: pointer; }
.product-license-access > summary::-webkit-details-marker { display: none; }
.product-license-access > summary > span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 0.5rem; background: rgba(76, 143, 230, 0.11); color: #80b2ed; font-size: 0.8rem; }
.product-license-access > summary strong { color: var(--heading); font-size: 0.7rem; }
.product-license-access > summary small { color: var(--muted); font-size: 0.61rem; }
.product-license-access > summary i { color: var(--muted); font-style: normal; transition: transform 180ms ease; }
.product-license-access[open] > summary { border-bottom: 1px solid var(--border); }
.product-license-access[open] > summary i { transform: rotate(180deg); }
.product-license-access__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; padding: 0.8rem; animation: product-license-editor-in 180ms ease both; }
.product-license-seat-panel, .product-license-server-panel { min-width: 0; padding: 0.8rem; border: 1px solid var(--border); border-radius: 0.7rem; background: var(--surface); }
.product-license-seat-panel > header, .product-license-server-panel > header { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.product-license-seat-panel > header > div, .product-license-server-panel > header > div { display: grid; gap: 0.12rem; }
.product-license-seat-panel > header span, .product-license-server-panel > header span { color: var(--muted); font-size: 0.58rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.product-license-seat-panel > header strong, .product-license-server-panel > header strong { color: var(--heading); font-size: 0.72rem; }
.product-license-capacity { display: grid; min-width: 2.4rem; height: 2.1rem; place-items: center; border: 1px solid rgba(66, 201, 142, 0.28); border-radius: 0.58rem; background: rgba(66, 201, 142, 0.08); color: #72d7a9 !important; font-size: 0.68rem !important; }
.product-license-capacity.is-full { border-color: rgba(229, 173, 46, 0.32); background: rgba(229, 173, 46, 0.09); color: #efc350 !important; }
.product-license-user-list, .product-license-server-list { display: grid; gap: 0.42rem; }
.product-license-user-list label { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.55rem; align-items: center; min-width: 0; padding: 0.5rem 0.58rem; border: 1px solid var(--border); border-radius: 0.6rem; background: color-mix(in srgb, var(--background) 36%, transparent); cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.product-license-user-list label:hover { border-color: rgba(76, 143, 230, 0.32); }
.product-license-user-list label.is-disabled { opacity: 0.48; cursor: not-allowed; }
.product-license-user-list input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.product-license-user-list label > span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 50%; background: rgba(76, 143, 230, 0.11); color: #83b5ef; font-size: 0.65rem; font-weight: 900; }
.product-license-user-list label > div { display: grid; gap: 0.05rem; min-width: 0; }
.product-license-user-list strong { overflow: hidden; color: var(--heading); font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
.product-license-user-list small { overflow: hidden; color: var(--muted); font-size: 0.57rem; text-overflow: ellipsis; white-space: nowrap; }
.product-license-user-list label > i { display: grid; width: 1.15rem; height: 1.15rem; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: transparent; font-size: 0.62rem; font-style: normal; transition: 160ms ease; }
.product-license-user-list label:has(input:checked) { border-color: rgba(76, 143, 230, 0.4); background: rgba(76, 143, 230, 0.08); }
.product-license-user-list label:has(input:checked) > i { border-color: #4c8fe6; background: #4c8fe6; color: #fff; }
.product-license-panel-actions { display: flex; gap: 0.7rem; align-items: center; justify-content: space-between; padding-top: 0.65rem; }
.product-license-panel-actions > small { color: var(--muted); font-size: 0.57rem; line-height: 1.35; }
.product-license-mini-empty { padding: 0.8rem; border: 1px dashed var(--border-strong); border-radius: 0.6rem; color: var(--muted); font-size: 0.64rem; text-align: center; }
.product-license-server-list { margin-bottom: 0.55rem; }
.product-license-server-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.58rem; align-items: center; padding: 0.5rem 0.58rem; border: 1px solid var(--border); border-radius: 0.6rem; background: color-mix(in srgb, var(--background) 36%, transparent); }
.product-license-server-list article > span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 0.5rem; background: rgba(66, 201, 142, 0.1); color: #72d7a9; }
.product-license-server-list article.is-blocked > span { background: rgba(235, 91, 103, 0.09); color: #ef7c86; }
.product-license-server-list article > div { display: grid; gap: 0.06rem; min-width: 0; }
.product-license-server-list strong { color: var(--heading); font-size: 0.66rem; }
.product-license-server-list small { overflow: hidden; color: var(--muted); font-size: 0.54rem; text-overflow: ellipsis; white-space: nowrap; }
.product-license-server-create { border: 1px dashed var(--border-strong); border-radius: 0.62rem; }
.product-license-server-create > summary { display: flex; gap: 0.4rem; align-items: center; padding: 0.62rem 0.7rem; color: #83b5ef; font-size: 0.64rem; font-weight: 850; list-style: none; cursor: pointer; }
.product-license-server-create > summary::-webkit-details-marker { display: none; }
.product-license-server-create[open] > summary { border-bottom: 1px solid var(--border); }
.product-license-server-create > form { padding: 0.75rem; }
.product-license-history { margin: 0 1rem 0.9rem; border-top: 1px solid var(--border); }
.product-license-history > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 0.55rem; align-items: center; padding: 0.7rem 0.15rem 0; color: inherit; list-style: none; cursor: pointer; }
.product-license-history > summary::-webkit-details-marker { display: none; }
.product-license-history > summary > span { color: #80b2ed; }
.product-license-history > summary strong { color: var(--heading); font-size: 0.67rem; }
.product-license-history > summary small { color: var(--muted); font-size: 0.58rem; }
.product-license-history > summary i { color: var(--muted); font-style: normal; transition: transform 180ms ease; }
.product-license-history[open] > summary i { transform: rotate(180deg); }
.product-license-history > div { display: grid; margin-top: 0.65rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 0.65rem; background: color-mix(in srgb, var(--background) 38%, transparent); animation: product-license-editor-in 180ms ease both; }
.product-license-history article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.product-license-history article:last-child { border-bottom: 0; }
.product-license-history article > span { width: 0.48rem; height: 0.48rem; margin-top: 0.25rem; border: 2px solid #6fa5e8; border-radius: 50%; box-shadow: 0 0 0 0.2rem rgba(76, 143, 230, 0.1); }
.product-license-history article > div { display: grid; gap: 0.08rem; }
.product-license-history article strong { color: var(--heading); font-size: 0.65rem; }
.product-license-history article small { color: var(--muted); font-size: 0.55rem; }
.product-license-history article p { margin: 0.16rem 0 0; color: var(--text); font-size: 0.59rem; line-height: 1.4; }
.product-license-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.72rem 1rem; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--background) 32%, transparent); }
.product-license-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: flex-end; }

.product-license-editor { min-width: 11rem; }
.product-license-editor > summary { display: inline-flex; gap: 0.48rem; align-items: center; min-height: 2.25rem; padding: 0.48rem 0.7rem; border-radius: 0.58rem; color: #84b5ef; font-size: 0.68rem; font-weight: 850; list-style: none; cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.product-license-editor > summary::-webkit-details-marker { display: none; }
.product-license-editor > summary:hover { background: rgba(76, 143, 230, 0.1); color: var(--heading); }
.product-license-editor > summary i { font-style: normal; transition: transform 180ms ease; }
.product-license-editor[open] > summary i { transform: rotate(180deg); }
.product-license-editor[open] { width: 100%; }
.product-license-editor[open] + .product-license-actions { display: none; }
.product-license-editor > form { display: grid; gap: 1rem; margin-top: 0.7rem; padding: 1rem; border: 1px solid var(--border); border-radius: 0.75rem; background: var(--surface); animation: product-license-editor-in 180ms ease both; }
.product-license-number { position: relative; }
.product-license-number input { padding-right: 3.2rem !important; }
.product-license-number i { position: absolute; top: 50%; right: 0.8rem; color: var(--muted); font-size: 0.62rem; font-style: normal; transform: translateY(-50%); }
.product-license-module-select { min-width: 0; margin: 0; padding: 0; border: 0; }
.product-license-module-select legend { margin-bottom: 0.55rem; color: var(--heading); font-size: 0.7rem; font-weight: 850; }
.product-license-module-select > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.product-license-module-select label { position: relative; display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.65rem; align-items: center; min-width: 0; min-height: 3.6rem; padding: 0.62rem 0.7rem !important; border: 1px solid var(--border); border-radius: 0.68rem; background: color-mix(in srgb, var(--background) 45%, transparent); cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.product-license-module-select label:hover { border-color: rgba(76, 143, 230, 0.35); transform: translateY(-1px); }
.product-license-module-select input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.product-license-module-select label > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 0.52rem; background: rgba(76, 143, 230, 0.08); color: #78aae7; }
.product-license-module-select label > div { display: grid; gap: 0.1rem; min-width: 0; }
.product-license-module-select label strong { overflow: hidden; color: var(--heading); font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }
.product-license-module-select label small { color: var(--muted); font-size: 0.58rem; }
.product-license-module-select label > i { display: grid; width: 1.2rem; height: 1.2rem; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: transparent; font-size: 0.65rem; font-style: normal; transition: 160ms ease; }
.product-license-module-select label:has(input:checked) { border-color: rgba(76, 143, 230, 0.42); background: rgba(76, 143, 230, 0.09); }
.product-license-module-select label:has(input:checked) > i { border-color: #4c8fe6; background: #4c8fe6; color: #fff; transform: scale(1.05); }
.product-license-module-select label:has(input:focus-visible) { outline: 3px solid rgba(76, 143, 230, 0.25); outline-offset: 2px; }

@keyframes product-license-editor-in {
    from { opacity: 0; transform: translateY(-0.3rem); }
    to { opacity: 1; transform: translateY(0); }
}

.product-release-list { display: grid; gap: 0.55rem; margin-bottom: 0.8rem; }
.product-release-list form { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem; border: 1px solid var(--border); border-radius: 0.72rem; }
.product-release-list form > div { display: grid; gap: 0.14rem; }
.product-release-list strong { color: var(--heading); font-size: 0.82rem; }
.product-release-list span, .product-release-list small { color: var(--muted); font-size: 0.66rem; }
.product-release-list input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.product-release-create { margin-top: 0.85rem; border: 1px solid var(--border); border-radius: 0.75rem; }
.product-release-create > summary { padding: 0.85rem 1rem; color: var(--heading); font-size: 0.76rem; font-weight: 800; cursor: pointer; }
.product-release-create[open] > summary { border-bottom: 1px solid var(--border); }
.product-release-create > form { padding: 1rem; }

.product-log { display: grid; }
.product-log article { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.product-log article:last-child { border-bottom: 0; }
.product-log__dot { width: 0.65rem; height: 0.65rem; margin-top: 0.28rem; border: 2px solid #77aae9; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 0.25rem rgba(76,143,230,.1); }
.product-log article > div { display: grid; gap: 0.18rem; }
.product-log strong { color: var(--heading); font-size: 0.78rem; }
.product-log p { margin: 0; color: var(--text); font-size: 0.7rem; line-height: 1.45; }
.product-log small { color: var(--muted); font-size: 0.62rem; }

.changelog-source-status { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 0.75rem; align-items: center; padding: 0.8rem 0.9rem; border: 1px solid var(--border); border-radius: 0.72rem; background: color-mix(in srgb, var(--background) 45%, transparent); }
.changelog-source-status > span { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--muted) 12%, transparent); }
.changelog-source-status.is-configured > span { background: #42c98e; box-shadow: 0 0 0 0.25rem rgba(66,201,142,.12); }
.changelog-source-status > div { display: grid; gap: 0.15rem; min-width: 0; }
.changelog-source-status strong { color: var(--heading); font-size: 0.74rem; }
.changelog-source-status small { overflow: hidden; color: var(--muted); font-size: 0.62rem; text-overflow: ellipsis; white-space: nowrap; }
.changelog-preview { margin-top: 1.35rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.changelog-list { display: grid; gap: 0.65rem; }
.changelog-list article { overflow: hidden; border: 1px solid var(--border); border-radius: 0.72rem; background: color-mix(in srgb, var(--background) 42%, transparent); }
.changelog-list header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--border); }
.changelog-list strong { color: var(--heading); font-size: 0.78rem; }
.changelog-list span { color: var(--muted); font-size: 0.62rem; }
.changelog-list p { margin: 0; padding: 0.85rem; color: var(--text); font-size: 0.7rem; line-height: 1.55; white-space: pre-wrap; }

.product-icon-select { position: relative; z-index: 2; }
.product-icon-select:has(.ui-select[open]) { z-index: 30; }
.product-icon-select .ui-select summary { justify-content: flex-start; gap: 0.7rem; }
.product-icon-select .ui-select summary > [data-selected-product-icon] {
    display: grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.25);
    border-radius: 0.55rem;
    background-color: rgba(76, 143, 230, 0.11);
    background-position: center;
    background-repeat: no-repeat;
    background-size: calc(100% - 0.42rem) calc(100% - 0.42rem);
    color: #77aae9;
}
.product-icon-select .ui-select summary > [data-selected-product-icon]::before { font-size: 1rem; }
.product-icon-select .ui-select summary > [data-product-icon-label] { flex: 1 1 auto; }
.product-icon-select__menu { max-height: min(25rem, 52vh); overflow-y: auto; }
.product-icon-select__menu .ui-select__option-icon { color: #77aae9; background-color: rgba(76,143,230,.11); background-position: center; background-repeat: no-repeat; background-size: contain; }
.product-icon-select__menu .ui-select__option-icon.is-image-icon { background-color: color-mix(in srgb, var(--background) 68%, var(--surface)); }

.product-icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.product-icon-picker legend { padding: 0 0.35rem; color: var(--muted); font-size: 0.65rem; font-weight: 800; }
.fixkosten-form .product-icon-picker label { position: relative; display: grid; flex: 0 0 3.5rem; gap: 0.3rem; place-items: center; padding: 0.55rem 0.3rem; border: 1px solid var(--border); border-radius: 0.62rem; background: color-mix(in srgb, var(--background) 40%, transparent); color: var(--muted); cursor: pointer; }
.fixkosten-form .product-icon-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fixkosten-form .product-icon-picker label:has(input:checked) { border-color: #4c8fe6; background: rgba(76,143,230,.12); color: #79abe9; box-shadow: inset 0 0 0 1px rgba(76,143,230,.12); }
.fixkosten-form .product-icon-picker label:has(input:focus-visible) { outline: 3px solid rgba(76,143,230,.25); outline-offset: 2px; }
.fixkosten-form .product-icon-picker .product-icon { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; }
.fixkosten-form .product-icon-picker label.is-image-icon { flex-basis: 5.8rem; }
.fixkosten-form .product-icon-picker label.is-image-icon .product-icon { width: 3.8rem; height: 2rem; }
.fixkosten-form .product-icon-picker label.is-image-icon:first-of-type .product-icon { width: 2rem; }
.fixkosten-form .product-icon-picker small { overflow: hidden; width: 100%; color: inherit; font-size: 0.52rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.product-icon-picker--drawer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fixkosten-form .product-icon-picker--drawer label { width: auto; min-width: 0; }

.product-drawer-section-title { display: flex; gap: 0.55rem; align-items: center; padding-top: 0.35rem; }
.product-drawer-section-title > span { display: grid; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 0.48rem; background: rgba(76,143,230,.11); color: #75a8e7; font-size: 0.56rem; font-weight: 900; }
.product-drawer-section-title > strong { color: var(--heading); font-size: 0.78rem; }
.ui-select.is-locked { opacity: 0.58; pointer-events: none; }
.produkt-drawer input[readonly], .produkt-drawer textarea[readonly] { color: var(--muted); cursor: not-allowed; }

@media (max-width: 1050px) {
    .product-workspace { grid-template-columns: 14rem minmax(0, 1fr); }
    .product-form-grid, .product-toggle-grid, .product-module-grid, .product-license-module-select > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-license-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 0; }
    .product-license-facts > div:nth-child(even) { border-right: 0; }
    .product-license-access__body { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .product-workspace { display: block; overflow: visible; }
    .product-sidebar { position: static; min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
    .product-sidebar__list { display: flex; overflow-x: auto; padding-bottom: 0.7rem; }
    .product-sidebar__filters { grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 2fr); }
    .product-sidebar__filter-grid { grid-template-columns: repeat(3, minmax(9rem, 1fr)); }
    .product-filter-select .ui-select__menu { position: absolute; width: max(100%, 13rem); box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.18); }
    .product-sidebar__item { flex: 0 0 13rem; }
    .product-panel__header, .product-section__heading { align-items: stretch; flex-direction: column; }
    .product-panel__actions { justify-content: space-between; }
    .product-tabs { margin-inline: 1.1rem; }
    .product-form-grid, .product-toggle-grid, .product-module-grid, .product-fact-grid, .product-fact-grid--price, .product-license-summary, .product-license-facts, .product-license-module-select > div { grid-template-columns: 1fr; }
    .product-form-grid--two, .product-toggle-grid--two { grid-template-columns: 1fr; }
    .product-panel__header, .product-section { padding: 1.1rem; }
    .product-license-card__header, .product-license-card__footer, .product-assignment-card > header { align-items: stretch; flex-direction: column; }
    .product-license-card__state { justify-content: space-between; }
    .product-license-facts > div { padding: 0 0 0.65rem; border-right: 0; border-bottom: 1px solid var(--border); }
    .product-license-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
    .product-license-actions { justify-content: stretch; }
    .product-license-actions > *, .product-license-actions .ui-button { flex: 1 1 auto; }
    .product-license-access > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
    .product-license-access > summary small { display: none; }
    .product-license-panel-actions { align-items: stretch; flex-direction: column; }
    .product-license-server-list article { grid-template-columns: auto minmax(0, 1fr); }
    .product-license-server-list article > form { grid-column: 1 / -1; }
    .product-license-server-list article .ui-button { width: 100%; }
}

.customer-documents {
    display: grid;
    gap: 1rem;
}

.customer-documents__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 8% 0, rgba(76, 143, 230, 0.13), transparent 34%),
        var(--surface);
}

.customer-documents__hero-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.35);
    border-radius: 0.8rem;
    background: rgba(76, 143, 230, 0.13);
    color: #88b9f4;
    font-size: 1rem;
    font-weight: 900;
}

.customer-documents__hero h2,
.customer-documents__hero p {
    margin: 0;
}

.customer-documents__hero h2 {
    margin-top: 0.16rem;
    color: var(--heading);
    font-size: 1.15rem;
}

.customer-documents__hero > div:nth-child(2) > p:last-child {
    margin-top: 0.28rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.customer-documents__hero dl {
    display: flex;
    gap: 0.7rem;
    margin: 0;
}

.customer-documents__hero dl > div {
    display: grid;
    min-width: 6rem;
    gap: 0.15rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: color-mix(in srgb, var(--background) 55%, transparent);
}

.customer-documents__hero dt {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.customer-documents__hero dd {
    margin: 0;
    color: var(--heading);
    font-size: 0.85rem;
    font-weight: 850;
}

.customer-document-browser {
    overflow: visible;
}

.customer-document-browser__toolbar {
    display: flex;
    min-height: 4.5rem;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
}

.customer-document-breadcrumbs {
    display: flex;
    min-width: 0;
    gap: 0.45rem;
    align-items: center;
    overflow: hidden;
}

.customer-document-breadcrumbs > span {
    color: var(--muted);
    opacity: 0.65;
}

.customer-document-breadcrumbs a {
    overflow: hidden;
    color: #78adee;
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-document-breadcrumbs a.is-current {
    color: var(--heading);
    pointer-events: none;
}

.customer-document-browser__actions,
.customer-document-row__actions {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.customer-document-button,
.customer-document-empty button {
    display: inline-flex;
    min-height: 2.55rem;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(229, 173, 30, 0.48);
    border-radius: 0.68rem;
    background: rgba(229, 173, 30, 0.13);
    color: var(--heading);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 850;
    cursor: pointer;
}

.customer-document-button > span {
    color: #f1c54d;
    font-size: 0.95rem;
}

.customer-document-button--secondary {
    border-color: rgba(76, 143, 230, 0.34);
    background: rgba(76, 143, 230, 0.1);
}

.customer-document-button--secondary > span {
    color: #83b5f1;
}

.customer-document-list__head,
.customer-document-row {
    display: grid;
    grid-template-columns: minmax(16rem, 1.4fr) 0.42fr 0.65fr 0.36fr 0.62fr;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
}

.customer-document-list__head {
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.customer-document-row {
    min-height: 4.1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.72rem;
}

.customer-document-row:last-child {
    border-bottom: 0;
}

.customer-document-row__name {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    min-width: 0;
}

.customer-document-row__name > span {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.28);
    border-radius: 0.6rem;
    background: rgba(76, 143, 230, 0.1);
    color: #84b6f2;
    font-size: 0.58rem;
    font-weight: 900;
}

.customer-document-row.is-folder .customer-document-row__name > span {
    border-color: rgba(229, 173, 30, 0.3);
    background: rgba(229, 173, 30, 0.1);
    color: #f1c54d;
}

.customer-document-row__name strong,
.customer-document-row__name a {
    overflow: hidden;
    color: var(--heading);
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-document-row__actions a {
    padding: 0.38rem 0.52rem;
    border: 1px solid rgba(76, 143, 230, 0.28);
    border-radius: 0.5rem;
    background: rgba(76, 143, 230, 0.08);
    color: #82b5f3;
    font-size: 0.66rem;
    font-weight: 800;
    text-decoration: none;
}

.customer-document-empty {
    display: grid;
    min-height: 18rem;
    place-items: center;
    align-content: center;
    gap: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.customer-document-empty > span {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.4rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.3);
    border-radius: 1rem;
    background: rgba(76, 143, 230, 0.1);
    color: #83b5f1;
    font-weight: 900;
}

.customer-document-empty strong { color: var(--heading); }
.customer-document-empty small { max-width: 28rem; color: var(--muted); line-height: 1.5; }
.customer-document-empty button { margin-top: 0.65rem; }

.customer-document-destination {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 0.72rem;
    background: color-mix(in srgb, var(--background) 58%, transparent);
}

.customer-document-destination span { color: var(--muted); font-size: 0.65rem; font-weight: 750; }
.customer-document-destination strong { overflow-wrap: anywhere; color: var(--heading); font-size: 0.75rem; }

.customer-document-dropzone {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    min-height: 15rem;
    place-items: center;
    align-content: center;
    gap: 0.4rem;
    padding: 1.4rem;
    border: 1px dashed rgba(76, 143, 230, 0.48);
    border-radius: 0.9rem;
    background:
        radial-gradient(circle at 50% 20%, rgba(76, 143, 230, 0.12), transparent 45%),
        rgba(76, 143, 230, 0.045);
    text-align: center;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.customer-document-dropzone::before {
    position: absolute;
    z-index: -1;
    inset: -35%;
    background: radial-gradient(circle, rgba(76, 143, 230, 0.14), transparent 56%);
    content: "";
    opacity: 0;
    transform: translateY(16%) scale(0.84);
    transition: opacity 320ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.customer-document-dropzone:hover,
.customer-document-dropzone:focus-within,
.customer-document-dropzone.is-dragging {
    border-color: rgba(76, 143, 230, 0.8);
    background:
        radial-gradient(circle at 50% 20%, rgba(76, 143, 230, 0.18), transparent 48%),
        rgba(76, 143, 230, 0.08);
    box-shadow: 0 0 0 4px rgba(76, 143, 230, 0.07);
}

.customer-document-dropzone:hover::before,
.customer-document-dropzone:focus-within::before,
.customer-document-dropzone.is-dragging::before {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.customer-document-dropzone__input {
    position: absolute;
    width: 1px !important;
    height: 1px;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    opacity: 0;
    clip: rect(0 0 0 0);
}

.customer-document-dropzone > .customer-document-dropzone__icon {
    display: grid;
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 0.25rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.28);
    border-radius: 1rem;
    background: rgba(76, 143, 230, 0.12);
    color: #82b5f3;
    box-shadow: 0 0.45rem 1.2rem rgba(76, 143, 230, 0.08);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 220ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.customer-document-dropzone__icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.customer-document-dropzone:hover .customer-document-dropzone__icon,
.customer-document-dropzone:focus-within .customer-document-dropzone__icon {
    border-color: rgba(76, 143, 230, 0.55);
    background: rgba(76, 143, 230, 0.18);
    box-shadow: 0 0.7rem 1.7rem rgba(76, 143, 230, 0.18);
    transform: translateY(-0.18rem);
}

.customer-document-dropzone:hover .customer-document-dropzone__icon svg,
.customer-document-dropzone:focus-within .customer-document-dropzone__icon svg {
    animation: customer-document-arrow 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.customer-document-dropzone.is-dragging .customer-document-dropzone__icon {
    animation: customer-document-drop-pulse 900ms ease-in-out infinite;
}

.customer-document-dropzone strong { color: var(--heading); font-size: 0.9rem; }
.customer-document-dropzone small { color: var(--muted); font-size: 0.68rem; }

.customer-document-dropzone > .customer-document-dropzone__button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 2.35rem;
    margin-top: 0.45rem;
    padding: 0.5rem 0.8rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.48);
    border-radius: 0.62rem;
    background: rgba(76, 143, 230, 0.13);
    color: #83b5f1;
    font-size: 0.7rem;
    font-weight: 850;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 220ms ease;
}

.customer-document-dropzone__button::after {
    position: absolute;
    z-index: -1;
    inset: -2px;
    background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.34) 48%, transparent 74%);
    content: "";
    transform: translateX(-125%);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.customer-document-dropzone:hover .customer-document-dropzone__button,
.customer-document-dropzone:focus-within .customer-document-dropzone__button {
    border-color: rgba(76, 143, 230, 0.7);
    background: rgba(76, 143, 230, 0.2);
    color: #a9cffd;
    box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.07);
}

.customer-document-dropzone:hover .customer-document-dropzone__button::after,
.customer-document-dropzone:focus-within .customer-document-dropzone__button::after {
    transform: translateX(125%);
}

.customer-document-dropzone > .customer-document-dropzone__selection {
    display: block;
    width: min(100%, 24rem);
    height: auto;
    min-height: 1.2rem;
    margin-top: 0.45rem;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: var(--heading);
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-document-dropzone__selection.has-files { color: #72a9ed; }
.customer-document-dropzone.has-files .customer-document-dropzone__selection {
    animation: customer-document-selection-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.customer-document-dropzone .customer-document-dropzone__limit { margin-top: 0.05rem; font-size: 0.62rem; }

.customer-document-selection-list {
    display: grid;
    gap: 0.55rem;
}

.customer-document-selection-list[hidden] {
    display: none;
}

.customer-document-selection-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.72rem;
    background: color-mix(in srgb, var(--background) 58%, transparent);
    animation: customer-document-file-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.customer-document-selection-item:nth-child(2) { animation-delay: 45ms; }
.customer-document-selection-item:nth-child(3) { animation-delay: 90ms; }
.customer-document-selection-item:nth-child(n+4) { animation-delay: 120ms; }

.customer-document-selection-item__icon {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid rgba(76, 143, 230, 0.3);
    border-radius: 0.62rem;
    background: rgba(76, 143, 230, 0.11);
    color: #81b4f1;
    font-size: 0.55rem;
    font-weight: 900;
}

.customer-document-selection-item > div {
    display: grid;
    min-width: 0;
    gap: 0.12rem;
}

.customer-document-selection-item strong {
    overflow: hidden;
    color: var(--heading);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-document-selection-item small {
    color: var(--muted);
    font-size: 0.62rem;
}

.customer-document-selection-item button {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(236, 106, 106, 0.28);
    border-radius: 0.55rem;
    background: rgba(236, 106, 106, 0.08);
    color: #ec8b8b;
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.customer-document-selection-item button:hover,
.customer-document-selection-item button:focus-visible {
    border-color: rgba(236, 106, 106, 0.58);
    outline: none;
    background: rgba(236, 106, 106, 0.15);
    color: #ffb0b0;
}

.customer-document-upload__submit {
    border-color: rgba(76, 143, 230, 0.48);
    background: rgba(76, 143, 230, 0.08);
    color: var(--heading);
    box-shadow: none;
}

.customer-document-upload__submit:hover:not(:disabled),
.customer-document-upload__submit:focus-visible:not(:disabled) {
    border-color: rgba(92, 163, 250, 0.72);
    background: rgba(76, 143, 230, 0.15);
    box-shadow: 0 0 0 3px rgba(76, 143, 230, 0.07);
}

@keyframes customer-document-arrow {
    0% { opacity: 1; transform: translateY(0); }
    42% { opacity: 0; transform: translateY(-0.55rem); }
    43% { opacity: 0; transform: translateY(0.45rem); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes customer-document-drop-pulse {
    0%, 100% { box-shadow: 0 0.45rem 1.2rem rgba(76, 143, 230, 0.12), 0 0 0 0 rgba(76, 143, 230, 0.16); transform: scale(1); }
    50% { box-shadow: 0 0.8rem 2rem rgba(76, 143, 230, 0.22), 0 0 0 0.5rem rgba(76, 143, 230, 0); transform: scale(1.045); }
}

@keyframes customer-document-selection-in {
    from { opacity: 0; transform: translateY(0.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes customer-document-file-in {
    from { opacity: 0; transform: translateY(0.45rem) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .customer-document-dropzone::before,
    .customer-document-dropzone__icon,
    .customer-document-dropzone__icon svg,
    .customer-document-dropzone__button,
    .customer-document-dropzone__button::after,
    .customer-document-dropzone__selection,
    .customer-document-selection-item {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

.customer-document-security-note {
    display: grid;
    gap: 0.18rem;
    margin: 0;
    padding: 0.8rem;
    border-left: 3px solid #4c8fe6;
    border-radius: 0.2rem 0.65rem 0.65rem 0.2rem;
    background: rgba(76, 143, 230, 0.07);
}

.customer-document-security-note strong { color: var(--heading); font-size: 0.72rem; }
.customer-document-security-note span { color: var(--muted); font-size: 0.66rem; line-height: 1.5; }

@media (max-width: 900px) {
    .customer-documents__hero { grid-template-columns: auto minmax(0, 1fr); }
    .customer-documents__hero dl { grid-column: 1 / -1; }
    .customer-document-browser__toolbar { align-items: stretch; flex-direction: column; }
    .customer-document-list { overflow-x: auto; }
    .customer-document-list__head,
    .customer-document-row { min-width: 58rem; }
}

@media (max-width: 600px) {
    .customer-documents__hero { grid-template-columns: 1fr; }
    .customer-documents__hero-icon { display: none; }
    .customer-documents__hero dl { flex-direction: column; }
    .customer-document-browser__actions { align-items: stretch; flex-direction: column; }
    .customer-document-button { width: 100%; }
}

/* CRM-Formulare verwenden dieselben Felder wie die Komponentenseite. */
.fixkosten-form > label:not(.ui-switch):not(.fixkosten-checkbox):not(.product-toggle):not(:has(> input[type="file"])),
.fixkosten-form__row > label {
    --ui-field-label-background: var(--surface);
    position: relative;
    display: grid;
    gap: 8px;
    padding-top: 9px;
}

.fixkosten-form > label:not(.ui-switch):not(.fixkosten-checkbox):not(.product-toggle):not(:has(> input[type="file"])) > span,
.fixkosten-form__row > label > span {
    position: absolute;
    z-index: 2;
    top: 3px;
    left: 13px;
    max-width: calc(100% - 26px);
    padding: 0 6px;
    border-radius: 4px;
    color: var(--text);
    background: var(--ui-field-label-background);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    pointer-events: none;
    transition: color 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fixkosten-form > label:not(.ui-switch):not(.fixkosten-checkbox):not(.product-toggle):focus-within > span,
.fixkosten-form__row > label:focus-within > span {
    color: var(--blue-light);
    transform: translateX(3px);
}

.fixkosten-form input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]),
.fixkosten-form select,
.fixkosten-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--border-strong) 68%, transparent);
    border-radius: 12px;
    outline: 0;
    color: var(--heading);
    background: var(--background);
    background-image: none;
    font: inherit;
    transition:
        border-color 200ms ease,
        background-color 200ms ease,
        box-shadow 220ms ease;
}

.fixkosten-form textarea {
    min-height: 118px;
    padding-block: 11px;
    resize: vertical;
}

.fixkosten-form .fixkosten-money-input input {
    padding-right: 2.5rem;
}

@media (hover: hover) {
    .fixkosten-form input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]):hover:not(:focus),
    .fixkosten-form select:hover:not(:focus),
    .fixkosten-form textarea:hover:not(:focus) {
        border-color: color-mix(in srgb, var(--border-strong) 68%, transparent);
        background-color: var(--background);
        box-shadow:
            inset 0 -1px 0 color-mix(in srgb, var(--blue-light) 32%, transparent),
            0 8px 22px rgba(32, 80, 160, 0.065);
    }
}

.fixkosten-form input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]):focus,
.fixkosten-form select:focus,
.fixkosten-form textarea:focus {
    border-color: color-mix(in srgb, var(--border-strong) 72%, transparent);
    background-color: var(--background);
    box-shadow:
        inset 0 -2px 0 color-mix(in srgb, var(--blue-light) 78%, transparent),
        0 6px 18px rgba(32, 80, 160, 0.07);
}

/* Passwortschalter: bewusst nach den globalen Tooltip-Regeln definiert,
   damit er stets rechts im Eingabefeld bleibt. */
.auth-password .auth-password__control {
    position: relative;
    width: 100%;
}

.auth-password .auth-password__control > button[data-password-toggle] {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
}

.auth-password > input[type="password"],
.auth-password > input[type="text"] {
    padding-right: 56px !important;
}

.auth-panel .auth-password > button[data-password-toggle] {
    position: absolute;
    top: 17px;
    right: 8px;
    width: 36px;
    height: 36px;
}

.auth-password .auth-password__control > button[data-password-toggle]:hover .auth-password__eye,
.auth-password .auth-password__control > button[data-password-toggle]:focus-visible .auth-password__eye,
.auth-panel .auth-password > button[data-password-toggle]:hover .button-symbol,
.auth-panel .auth-password > button[data-password-toggle]:focus-visible .button-symbol {
    animation: auth-eye-focus 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-password .auth-password__control > button[data-password-toggle]:hover .auth-password__eye--show circle,
.auth-password .auth-password__control > button[data-password-toggle]:focus-visible .auth-password__eye--show circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: auth-eye-look-svg 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-panel .auth-password > button[data-password-toggle]:hover .button-symbol::after,
.auth-panel .auth-password > button[data-password-toggle]:focus-visible .button-symbol::after {
    animation: auth-eye-look 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-eye-focus {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.12); }
}

@keyframes auth-eye-look-svg {
    0%, 100% { transform: translateX(0); }
    32% { transform: translateX(-1.8px); }
    68% { transform: translateX(1.8px); }
}

@keyframes auth-eye-look {
    0%, 100% { transform: translate(-50%, -50%); }
    32% { transform: translate(calc(-50% - 2px), -50%); }
    68% { transform: translate(calc(-50% + 2px), -50%); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-password [data-password-toggle] .auth-password__eye,
    .auth-password [data-password-toggle] .auth-password__eye circle,
    .auth-password [data-password-toggle] .button-symbol,
    .auth-password [data-password-toggle] .button-symbol::after {
        animation: none !important;
    }
}
