:root {
    --ci-petrol: #10454F;
    --ci-graublau: #7D7D81;
    --ci-schiefer: #818274;
    --ci-braun: #140E0C;
    --ci-salbei: #A3AB78;
    --ci-orange: #E44826;
    --ci-gruen: #1B9449;

    --bg-page:
        radial-gradient(circle at top left, rgba(16, 69, 79, 0.20), transparent 24%),
        radial-gradient(circle at top right, rgba(228, 72, 38, 0.08), transparent 18%),
        radial-gradient(circle at bottom left, rgba(163, 171, 120, 0.07), transparent 20%),
        linear-gradient(180deg, #081015 0%, #0a1317 44%, #0f181c 100%);

    --bg-surface: rgba(13, 22, 26, 0.82);
    --bg-surface-strong: rgba(17, 28, 32, 0.96);
    --bg-surface-soft: rgba(255, 255, 255, 0.03);

    --text-main: #f2f5f2;
    --text-soft: #b5bfbb;
    --text-muted: #88938f;

    --border-soft: rgba(163, 171, 120, 0.10);
    --border-mid: rgba(163, 171, 120, 0.17);
    --border-strong: rgba(163, 171, 120, 0.28);

    --shadow-soft: 0 22px 52px rgba(0, 0, 0, 0.34);
    --shadow-card: 0 16px 34px rgba(0, 0, 0, 0.28);
    --shadow-orange: 0 14px 30px rgba(228, 72, 38, 0.22);

    --input-bg: rgba(255, 255, 255, 0.035);
    --input-border: rgba(163, 171, 120, 0.14);
    --input-focus: #A3AB78;

    --ok-bg: rgba(27, 148, 73, 0.14);
    --ok-border: rgba(27, 148, 73, 0.32);
    --ok-text: #9fe1b7;

    --err-bg: rgba(228, 72, 38, 0.12);
    --err-border: rgba(228, 72, 38, 0.34);
    --err-text: #ffb19f;

    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --content-width: 1440px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    background: var(--bg-page);
    background-attachment: fixed;
    letter-spacing: 0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(163,171,120,0.02) 0, rgba(163,171,120,0.02) 1px, transparent 1px, transparent 140px),
        linear-gradient(rgba(163,171,120,0.015) 0, rgba(163,171,120,0.015) 1px, transparent 1px, transparent 140px);
    opacity: 0.22;
    pointer-events: none;
}

a {
    color: inherit;
}

.page,
.wrap {
    width: min(var(--content-width), 94%);
    margin: 0 auto;
    padding: 34px 0 50px;
}

.wrap.wrap-narrow,
.page.page-narrow {
    width: min(1280px, 94%);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topbar,
.hero,
.box,
.card,
.login-shell,
.focus-card {
    animation: fadeUp 0.42s ease both;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 26px 30px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
        var(--bg-surface);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.topbar::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(163,171,120,0.26), transparent);
}

.brand h1,
.topbar-copy h1 {
    margin: 0;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    line-height: 1.04;
    letter-spacing: 0.05em;
    color: #f4f7f4;
    text-transform: uppercase;
}

.brand p,
.topbar-copy p {
    margin: 12px 0 0;
    color: var(--text-soft);
    line-height: 1.58;
    max-width: 780px;
    font-size: 0.98rem;
}

.actions,
.topbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #eef3f0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(163, 171, 120, 0.14);
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    white-space: nowrap;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
    border-color: rgba(163, 171, 120, 0.24);
}

.btn.primary {
    background: linear-gradient(180deg, #ef5c37 0%, #d74424 100%);
    border-color: rgba(255, 255, 255, 0.04);
    color: #fff;
    box-shadow: var(--shadow-orange);
}

.btn.primary:hover {
    background: linear-gradient(180deg, #f16a48 0%, #cc4020 100%);
}

.btn.secondary {
    background: rgba(16, 69, 79, 0.22);
    border: 1px solid rgba(16, 69, 79, 0.34);
    color: #e0ece8;
}

.hero {
    margin-bottom: 24px;
    padding: 24px 26px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        var(--bg-surface);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163,171,120,0.10), transparent 68%);
    pointer-events: none;
}

.hero-copy .eyebrow,
.eyebrow,
.hero-kicker,
.login-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ci-orange);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.hero-copy h2,
.hero h2 {
    margin: 0 0 12px;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.28;
    color: #f3f6f4;
}

.hero-copy p,
.hero p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 0.98rem;
}

.hero-stats,
.status {
    display: grid;
    gap: 12px;
}

.stat,
.status-card {
    padding: 16px 16px 15px;
    border-radius: 18px;
    background: var(--bg-surface-strong);
    border: 1px solid rgba(163, 171, 120, 0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.stat strong,
.status-card strong {
    display: block;
    margin-bottom: 6px;
    color: #f3f6f4;
    font-size: 0.94rem;
}

.stat span,
.status-card span {
    color: var(--text-soft);
    font-size: 0.91rem;
    line-height: 1.5;
}

.status-card.active strong::before,
.status-card.role strong::before,
.status-card.access strong::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 999px;
    vertical-align: baseline;
}

.status-card.active strong::before {
    background: var(--ci-gruen);
}

.status-card.role strong::before {
    background: var(--ci-salbei);
}

.status-card.access strong::before {
    background: var(--ci-orange);
}

.welcome-toggle {
    margin-bottom: 24px;
}

.welcome-toggle summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #edf3ef;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(163, 171, 120, 0.14);
    padding: 13px 18px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: var(--shadow-card);
}

.welcome-toggle summary::-webkit-details-marker {
    display: none;
}

.section,
.box-section {
    margin-top: 30px;
}

.section-title {
    margin: 0 0 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.76rem;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.grid.grid-280 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.grid-265 {
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
}

.card {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        var(--bg-surface);
    border: 1px solid rgba(163, 171, 120, 0.12);
    border-radius: 24px;
    padding: 22px;
    min-height: 168px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: var(--shadow-card);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
    border-color: rgba(163, 171, 120, 0.24);
}

.card::before {
    content: "";
    position: absolute;
    inset: -120% auto auto -20%;
    width: 60%;
    height: 280%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.card:hover::before {
    transform: translateX(180%) rotate(18deg);
}

.card.disabled {
    opacity: 0.46;
    pointer-events: none;
    filter: grayscale(0.10);
}

.card .icon {
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.card h2,
.card h3 {
    margin: 0 0 12px;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.card h2 {
    font-size: 1.08rem;
}

.card h3 {
    font-size: 1.08rem;
}

.card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.58;
    position: relative;
    z-index: 1;
}

.card .accent,
.accent {
    position: absolute;
    top: -34px;
    right: -34px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    opacity: 0.10;
    filter: blur(3px);
    background: var(--card-color, var(--ci-petrol));
}

.card::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--ci-petrol), var(--ci-salbei));
    opacity: 0.28;
}

.badge {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.81rem;
    color: #eef4f1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(163, 171, 120, 0.12);
    border-radius: 999px;
    padding: 8px 11px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.box {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        var(--bg-surface);
    border: 1px solid rgba(163, 171, 120, 0.10);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.box h2 {
    margin: 0 0 10px;
    font-size: 1.28rem;
    color: #f2f5f2;
}

.box-intro {
    margin: 0 0 20px;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.95rem;
}

.layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
    align-items: start;
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.stack {
    display: grid;
    gap: 12px;
}

.field {
    margin-bottom: 14px;
}

.field label,
.subheading {
    display: block;
    margin: 0 0 8px;
    color: #eef4f1;
    font-size: 0.9rem;
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    appearance: none;
    font: inherit;
    min-height: 50px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(163, 171, 120, 0.14);
    background: rgba(255,255,255,0.06);
}

.perms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 10px 0 14px;
}

.perm {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    background: var(--bg-surface-strong);
    border: 1px solid rgba(163, 171, 120, 0.10);
    border-radius: 14px;
    padding: 10px 12px;
    color: var(--text-main);
    line-height: 1.35;
}

.perm input {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--ci-orange);
    flex: 0 0 auto;
}

label.inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #edf3ef;
    font-weight: 700;
    margin-top: 4px;
}

label.inline input {
    width: 18px;
    height: 18px;
    accent-color: var(--ci-gruen);
    margin: 0;
}

.form-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

button,
.button {
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(180deg, #ef5c37 0%, #d74424 100%);
    color: #fff;
    font-weight: 700;
    transition: 0.18s ease;
    font: inherit;
    box-shadow: var(--shadow-orange);
    min-height: 48px;
}

button:hover,
.button:hover {
    background: linear-gradient(180deg, #f16a48 0%, #cc4020 100%);
    transform: translateY(-1px);
}

button.secondary,
.button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #eef4f1;
    border: 1px solid rgba(163, 171, 120, 0.16);
    box-shadow: none;
}

button.secondary:hover,
.button.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

button.danger,
.button.danger,
.danger {
    background: linear-gradient(180deg, #c24e37 0%, #9b3321 100%);
    color: #fff;
}

button.danger:hover,
.button.danger:hover,
.danger:hover {
    background: linear-gradient(180deg, #cf5b44 0%, #8d2c1c 100%);
}

.msg {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    line-height: 1.5;
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
}

.msg.ok {
    background: var(--ok-bg);
    border-color: var(--ok-border);
    color: var(--ok-text);
}

.msg.err {
    background: var(--err-bg);
    border-color: var(--err-border);
    color: var(--err-text);
}

.table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    background: var(--bg-surface-strong);
    border: 1px solid rgba(163, 171, 120, 0.10);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th,
td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid rgba(163, 171, 120, 0.08);
    vertical-align: top;
}

th {
    color: #edf3ef;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
}

td {
    color: var(--text-main);
    line-height: 1.5;
}

.muted {
    color: var(--text-soft);
}

.role-badge,
.state-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.role-badge {
    background: rgba(16, 69, 79, 0.26);
    color: #e6f0ec;
    border-color: rgba(16, 69, 79, 0.34);
}

.state-badge.active {
    background: rgba(27, 148, 73, 0.14);
    color: #9fe1b7;
    border-color: rgba(27, 148, 73, 0.24);
}

.state-badge.inactive {
    background: rgba(125, 125, 129, 0.12);
    color: #c0c7c4;
    border-color: rgba(125, 125, 129, 0.18);
}

.rights-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rights-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(163, 171, 120, 0.10);
    color: #d6dfcb;
    border: 1px solid rgba(163, 171, 120, 0.18);
}

details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(163, 171, 120, 0.10);
    border-radius: 16px;
    padding: 14px 14px 12px;
}

details summary {
    cursor: pointer;
    font-weight: 700;
    color: #eef4f1;
    user-select: none;
}

details[open] summary {
    margin-bottom: 14px;
}

.note {
    margin-top: 22px;
    padding: 16px 18px;
    background: rgba(163, 171, 120, 0.10);
    border: 1px solid rgba(163, 171, 120, 0.22);
    border-radius: 16px;
    color: #d3dbc9;
    font-size: 0.95rem;
    line-height: 1.6;
}

.note strong {
    color: #f3f6f4;
}

.center-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.login-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    background: rgba(11, 18, 22, 0.82);
    border: 1px solid rgba(163, 171, 120, 0.10);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.36);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 1;
}

.brand-panel {
    background:
        radial-gradient(circle at top left, rgba(163,171,120,0.10), transparent 30%),
        linear-gradient(180deg, rgba(16, 69, 79, 0.94) 0%, rgba(10, 36, 42, 0.98) 100%);
    color: #f6f8f6;
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 680px;
    position: relative;
}

.brand-panel::after {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 30px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ci-gruen), var(--ci-salbei), var(--ci-orange));
    opacity: 0.95;
}

.brand-content,
.brand-footer {
    position: relative;
    z-index: 1;
    padding-left: 24px;
}

.brand-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    line-height: 0.96;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    max-width: 340px;
}

.brand-divider {
    width: 78px;
    height: 4px;
    border-radius: 999px;
    background: var(--ci-orange);
    margin: 22px 0 24px;
    box-shadow: var(--shadow-orange);
}

.brand-text {
    margin: 0;
    max-width: 450px;
    font-size: 1rem;
    line-height: 1.72;
    color: rgba(246, 248, 246, 0.82);
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.90);
}

.brand-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(246, 248, 246, 0.68);
    font-size: 0.92rem;
    line-height: 1.55;
}

.login-panel {
    padding: 52px 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(228,72,38,0.05), transparent 28%),
        linear-gradient(180deg, rgba(14,20,24,0.86) 0%, rgba(17,24,28,0.94) 100%);
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-box h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: 0.01em;
    color: #f5f7f4;
}

.subtitle {
    margin: 14px 0 28px;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 6px;
}

.login-field {
    margin-bottom: 12px;
}

.login-actions {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.login-actions button {
    width: 100%;
}

.footer {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.footer strong {
    color: #f2f5f2;
}

.focus-card {
    width: 100%;
    max-width: 820px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        var(--bg-surface);
    border: 1px solid rgba(163, 171, 120, 0.10);
    border-radius: 28px;
    padding: 38px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.focus-card::after {
    content: "";
    position: absolute;
    top: -38px;
    right: -38px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163,171,120,0.10), transparent 70%);
}

.focus-card h1 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.1;
    color: #f3f6f4;
    position: relative;
    z-index: 1;
}

.focus-card p {
    color: var(--text-soft);
    line-height: 1.68;
    position: relative;
    z-index: 1;
}

.state-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
    position: relative;
    z-index: 1;
}

.state-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--ci-salbei);
    flex: 0 0 auto;
}

.module-card {
    margin: 24px 0 8px;
    padding: 20px;
    border-radius: 20px;
    background: var(--bg-surface-strong);
    border: 1px solid rgba(163, 171, 120, 0.10);
    position: relative;
    z-index: 1;
}

.module-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(16, 69, 79, 0.26);
    border: 1px solid rgba(16, 69, 79, 0.34);
    color: #e6f0ec;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.module-subtitle {
    font-size: 1.02rem;
    color: var(--text-main);
    margin-bottom: 0;
}

.dashboard-grid {
    align-items: stretch;
}

.dashboard-card {
    min-height: 210px;
    border: 1px solid rgba(163, 171, 120, 0.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008)),
        rgba(11, 19, 23, 0.86);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255,255,255,0.02);
}

.dashboard-card:hover {
    border-color: rgba(163, 171, 120, 0.34);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(163, 171, 120, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.02);
}

.dashboard-card::after {
    background: linear-gradient(90deg, var(--ci-petrol), var(--ci-salbei));
    opacity: 0.34;
}

.dashboard-accent {
    background: radial-gradient(circle, rgba(163, 171, 120, 0.18), transparent 70%);
    opacity: 0.5;
    filter: blur(8px);
}

.dashboard-icon {
    color: var(--ci-salbei);
}

.dashboard-title {
    color: #f3f6f4;
}

.dashboard-card .badge {
    color: #eef4f1;
    background: rgba(16, 69, 79, 0.24);
    border: 1px solid rgba(163, 171, 120, 0.14);
}

.dashboard-card.disabled {
    opacity: 0.42;
    filter: grayscale(0.14);
}

.dashboard-card.disabled .dashboard-icon {
    color: var(--ci-graublau);
}

.dashboard-card.disabled .dashboard-title {
    color: #cfd6d2;
}

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .hero,
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: auto;
    }
}

@media (max-width: 720px) {
    body {
        padding: 0;
    }

    .wrap,
    .page {
        width: min(100%, calc(100% - 20px));
        padding-top: 14px;
        padding-bottom: 28px;
    }

    .topbar {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .hero,
    .box,
    .focus-card {
        padding: 18px;
        border-radius: 20px;
    }

    .brand h1,
    .topbar-copy h1,
    .login-box h1,
    .focus-card h1 {
        font-size: 1.55rem;
    }

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

    .form-actions,
    .actions,
    .topbar-actions {
        flex-direction: column;
    }

    .form-actions button,
    .form-actions .btn,
    .actions .btn,
    .topbar-actions .btn {
        width: 100%;
    }

    .center-shell {
        align-items: stretch;
        padding: 12px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        border-radius: 22px;
        min-height: auto;
    }

    .brand-panel,
    .login-panel {
        padding: 24px 20px;
    }

    .brand-panel {
        min-height: auto;
    }

    .brand-panel::after {
        top: 20px;
        bottom: 20px;
        left: 20px;
    }

    .brand-content,
    .brand-footer {
        padding-left: 14px;
    }

    .brand-title {
        max-width: none;
        font-size: 2rem;
    }

    .brand-text {
        font-size: 0.95rem;
    }

    .login-box {
        max-width: none;
    }

    .subtitle {
        margin-bottom: 22px;
        font-size: 0.95rem;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }

    .dashboard-card {
        min-height: 185px;
    }
}
