:root {
    --drk-red: #e30613;
    --drk-red-dark: #b8000d;
    --text-dark: #1f2933;
    --text-muted: #6b7280;
    --bg-soft: #f4f5f7;
    --card-bg: rgba(255, 255, 255, 0.94);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    --radius-lg: 26px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background: var(--bg-soft);
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28)),
        url("../images/background.jpeg") center center / cover no-repeat;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card {
    width: min(430px, 100%);
    padding: 30px;
    border-radius: var(--radius-lg);
    background: rgba(18, 24, 33, 0.78);
    box-shadow: var(--shadow);
    color: #ffffff;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-area {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.brand-logo {
    max-width: 215px;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.login-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    line-height: 1.1;
}

.login-heading p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

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

.login-form label {
    font-size: 0.9rem;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.93);
    color: var(--text-dark);
    font-size: 1rem;
}

.login-form input:focus {
    outline: 3px solid rgba(227, 6, 19, 0.35);
    border-color: var(--drk-red);
}

.login-form button {
    margin-top: 8px;
    padding: 15px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--drk-red);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.login-form button:hover {
    background: var(--drk-red-dark);
    transform: translateY(-1px);
}

.login-note {
    margin: 18px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.76);
    text-align: center;
}

.app-page {
    min-height: 100vh;
    background: #eef1f5;
}

.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 285px 1fr;
}

.sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    box-shadow: 10px 0 35px rgba(15, 23, 42, 0.04);
}

.sidebar-logo {
    padding: 10px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.sidebar-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.nav-title {
    margin: 0 0 10px;
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.module-nav {
    display: grid;
    gap: 8px;
}

.nav-item {
    display: block;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(227, 6, 19, 0.08);
    color: var(--drk-red-dark);
    border-color: rgba(227, 6, 19, 0.18);
}

.dashboard {
    padding: 28px;
    overflow-x: hidden;
}

.topbar {
    min-height: 76px;
    padding: 16px 22px;
    border-radius: 24px;
    background: var(--drk-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 12px 32px rgba(227, 6, 19, 0.22);
}

.eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.86;
}

.topbar h1 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.logout-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.hero-panel {
    margin-top: 22px;
    min-height: 220px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 46%, rgba(255, 255, 255, 0.54) 100%),
        url("../images/background.jpeg") center center / cover no-repeat;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    padding: 34px;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
}

.hero-content h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.hero-content h2::after {
    content: "";
    display: block;
    width: 84px;
    height: 5px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--drk-red);
}

.hero-content p {
    margin: 20px 0 0;
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.6;
}

.module-section {
    margin-top: 28px;
}

.module-section h2,
.info-box h2 {
    margin: 0 0 16px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.module-card {
    min-height: 135px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border-bottom: 6px solid #d1d5db;
}

.module-card h3 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.module-card p {
    margin: 0;
    font-weight: 800;
}

.status-ready {
    border-bottom-color: #16a34a;
}

.status-ready p {
    color: #15803d;
}

.status-progress {
    border-bottom-color: #f59e0b;
}

.status-progress p {
    color: #b45309;
}

.status-unavailable {
    border-bottom-color: #9ca3af;
}

.status-unavailable p {
    color: #6b7280;
}

.info-box {
    margin-top: 28px;
    padding: 22px 26px;
    max-width: 100%;
    overflow-wrap: anywhere;
    border-radius: var(--radius-md);
    background: #ffffff;
    border-left: 7px solid var(--drk-red);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.info-box p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

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

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

@media (max-width: 760px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .sidebar-logo img {
        max-width: 260px;
        margin: 0 auto;
    }

    .dashboard {
        padding: 18px;
    }

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

    .hero-panel {
        padding: 24px;
    }

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

    .login-shell {
        padding: 18px;
    }

    .login-card {
        padding: 24px;
    }
}

.error-box {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(227, 6, 19, 0.16);
    border: 1px solid rgba(227, 6, 19, 0.45);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.4;
}

.user-box {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
}

.user-box span {
    display: block;
    font-weight: 900;
}

.user-box small {
    display: block;
    opacity: 0.82;
    font-weight: 700;
}

.success-box {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(22, 163, 74, 0.48);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.4;
}

.inline-link {
    color: #ffffff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.inline-link:hover {
    color: #ffd6d9;
}

.admin-panel {
    margin-top: 28px;
    padding: 0;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.admin-table th {
    background: #f9fafb;
    color: #374151;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-table td {
    color: #1f2933;
    font-size: 0.94rem;
}

.user-admin-form {
    display: contents;
}

.admin-table select {
    width: 100%;
    min-width: 190px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #1f2933;
    font-weight: 700;
}

.small-button {
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: var(--drk-red);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.small-button:hover {
    background: var(--drk-red-dark);
}


.app-footer {
    margin-top: 34px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(209, 213, 219, 0.9);
    color: #6b7280;
    font-size: 0.84rem;
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    text-align: center;
}

.login-footer {
    width: min(430px, 100%);
    margin-top: 18px;
    padding: 13px 18px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(18, 24, 33, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: center;
    text-align: center;
}

@media (max-width: 760px) {
    .app-footer,
    .login-footer {
        flex-direction: column;
        gap: 5px;
    }
}

.mpg-form {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mpg-form label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 800;
}

.mpg-form input,
.mpg-form select,
.mpg-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    background: #ffffff;
    color: #1f2933;
    font: inherit;
    font-weight: 600;
}

.mpg-form input:focus,
.mpg-form select:focus,
.mpg-form textarea:focus {
    outline: 3px solid rgba(227, 6, 19, 0.18);
    border-color: var(--drk-red);
}

.notes-field {
    width: 100%;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.status-einsatzbereit {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.status-eingeschränkt {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.status-prüfung_fällig {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.status-defekt {
    background: rgba(227, 6, 19, 0.13);
    color: var(--drk-red-dark);
}

@media (max-width: 1180px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.due-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.due-ok {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.due-soon {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.due-overdue {
    background: rgba(227, 6, 19, 0.14);
    color: var(--drk-red-dark);
}

.due-none,
.due-unknown {
    background: rgba(107, 114, 128, 0.14);
    color: #4b5563;
}

.mpg-device-table input,
.mpg-device-table select {
    width: 100%;
    min-width: 150px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #1f2933;
    font-weight: 700;
}

.mpg-device-table input:focus,
.mpg-device-table select:focus {
    outline: 3px solid rgba(227, 6, 19, 0.16);
    border-color: var(--drk-red);
}

.device-row-form {
    display: contents;
}

.device-actions {
    display: grid;
    gap: 8px;
    min-width: 130px;
}

.danger-button {
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: #6b7280;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.danger-button:hover {
    background: var(--drk-red-dark);
}

.mpg-device-table .due-pill {
    margin-top: 7px;
}

.mpg-device-table {
    table-layout: fixed;
    min-width: 100%;
}

.mpg-device-table th:nth-child(1),
.mpg-device-table td:nth-child(1) {
    width: 17%;
}

.mpg-device-table th:nth-child(2),
.mpg-device-table td:nth-child(2) {
    width: 12%;
}

.mpg-device-table th:nth-child(3),
.mpg-device-table td:nth-child(3) {
    width: 18%;
}

.mpg-device-table th:nth-child(4),
.mpg-device-table td:nth-child(4) {
    width: 13%;
}

.mpg-device-table th:nth-child(5),
.mpg-device-table td:nth-child(5) {
    width: 16%;
}

.mpg-device-table th:nth-child(6),
.mpg-device-table td:nth-child(6) {
    width: 14%;
}

.mpg-device-table th:nth-child(7),
.mpg-device-table td:nth-child(7) {
    width: 10%;
}

.mpg-device-table input,
.mpg-device-table select {
    min-width: 0;
    font-size: 0.86rem;
}

.mpg-device-table td {
    overflow: visible;
}

.admin-table-wrap {
    overflow-x: auto;
}

.mpg-device-table.admin-table {
    width: 100%;
    min-width: 0 !important;
}

.mpg-device-table th,
.mpg-device-table td {
    padding: 12px 10px;
}

.mpg-device-table input,
.mpg-device-table select {
    padding: 8px 9px;
    font-size: 0.82rem;
}

.mpg-device-table th:nth-child(1),
.mpg-device-table td:nth-child(1) {
    width: 16%;
}

.mpg-device-table th:nth-child(2),
.mpg-device-table td:nth-child(2) {
    width: 10%;
}

.mpg-device-table th:nth-child(3),
.mpg-device-table td:nth-child(3) {
    width: 18%;
}

.mpg-device-table th:nth-child(4),
.mpg-device-table td:nth-child(4) {
    width: 12%;
}

.mpg-device-table th:nth-child(5),
.mpg-device-table td:nth-child(5) {
    width: 16%;
}

.mpg-device-table th:nth-child(6),
.mpg-device-table td:nth-child(6) {
    width: 15%;
}

.mpg-device-table th:nth-child(7),
.mpg-device-table td:nth-child(7) {
    width: 13%;
}

.device-actions {
    min-width: 0;
}

.device-actions .small-button,
.device-actions .danger-button {
    width: 100%;
    padding: 9px 10px;
    font-size: 0.78rem;
}

.admin-table-wrap {
    overflow-x: visible;
}

.mpg-stats-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mpg-stat-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border-left: 7px solid #9ca3af;
}

.mpg-stat-card span {
    display: block;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mpg-stat-card strong {
    display: block;
    margin-top: 10px;
    color: #1f2933;
    font-size: 2.2rem;
    line-height: 1;
}

.status-ready-card {
    border-left-color: #16a34a;
}

.status-soon-card {
    border-left-color: #f59e0b;
}

.status-critical-card {
    border-left-color: var(--drk-red);
}

@media (max-width: 1050px) {
    .mpg-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .mpg-stats-grid {
        grid-template-columns: 1fr;
    }
}

.section-title-row {
    margin-bottom: 14px;
}

.section-title-row h2 {
    margin: 0;
}

.filter-bar {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    background: #ffffff;
    color: #1f2933;
    font: inherit;
    font-weight: 700;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: 3px solid rgba(227, 6, 19, 0.16);
    border-color: var(--drk-red);
}

.reset-button {
    padding: 10px 14px;
    border-radius: 12px;
    background: #6b7280;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
}

.reset-button:hover {
    background: #4b5563;
}

@media (max-width: 900px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

.due-pill-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.15;
    white-space: normal;
    min-width: 0;
}

.due-pill-stacked strong {
    font-size: 0.76rem;
    line-height: 1.1;
}

.due-pill-stacked small {
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0.9;
}

.detail-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.detail-item {
    padding: 16px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.detail-item span {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.detail-item strong {
    display: block;
    color: #1f2933;
    font-size: 1rem;
    line-height: 1.35;
}

.detail-notes {
    white-space: pre-wrap;
}

.detail-link {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--drk-red-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.detail-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1050px) {
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.history-form {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.history-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-list {
    display: grid;
    gap: 14px;
}

.history-entry {
    padding: 16px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.history-entry div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.history-entry strong {
    color: #1f2933;
    font-size: 1rem;
}

.history-entry span {
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 800;
}

.history-entry p {
    margin: 0;
    color: #374151;
    line-height: 1.55;
    white-space: pre-wrap;
}

@media (max-width: 760px) {
    .history-form-grid {
        grid-template-columns: 1fr;
    }
}

.mpg-device-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.mpg-device-table tbody tr:last-child {
    border-bottom: 0;
}

.mpg-device-table td {
    border-bottom: 0 !important;
    vertical-align: middle;
}

.mpg-device-table .device-actions {
    border-left: 1px solid #eef0f3;
    background: #ffffff;
    align-content: center;
}

.mpg-device-table .device-actions form {
    margin: 0;
}

.mpg-device-table .device-actions::before {
    content: "";
    display: none;
}

.mpg-device-table .due-pill {
    max-width: 100%;
}

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

.history-form label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 800;
}

.history-form select,
.history-form input,
.history-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    background: #ffffff;
    color: #1f2933;
    font: inherit;
    font-weight: 700;
}

.history-form textarea {
    min-height: 110px;
    resize: vertical;
}

.history-form select:focus,
.history-form input:focus,
.history-form textarea:focus {
    outline: 3px solid rgba(227, 6, 19, 0.16);
    border-color: var(--drk-red);
}

.history-form .notes-field {
    display: grid;
    width: 100%;
}

.history-form .small-button {
    width: 100%;
}

@media (max-width: 760px) {
    .history-form .form-grid {
        grid-template-columns: 1fr;
    }
}

.history-entry {
    border-left: 7px solid #9ca3af;
}

.history-pruefung {
    border-left-color: #16a34a;
}

.history-defekt {
    border-left-color: var(--drk-red);
}

.history-wartung {
    border-left-color: #64748b;
}

.history-statusaenderung {
    border-left-color: #f59e0b;
}

.history-notiz {
    border-left-color: #9ca3af;
}

.filter-bar {
    grid-template-columns: 2fr 1fr 1fr auto auto;
}

@media (max-width: 1050px) {
    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }
}

.section-title-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--drk-red);
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

.export-button:hover {
    background: var(--drk-red-dark);
}

@media (max-width: 620px) {
    .section-title-row-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .export-button {
        width: 100%;
    }
}

.export-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.secondary-export {
    background: #6b7280;
}

.secondary-export:hover {
    background: #4b5563;
}

@media (max-width: 620px) {
    .export-actions {
        width: 100%;
        flex-direction: column;
    }

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


.product-name {
    margin-bottom: 10px;
    color: var(--drk-red);
    font-size: 0.92rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.app-name {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* KatS|Pad Branding bewusst nicht komplett in Versalien */
.app-name,
.product-name {
    text-transform: none !important;
    letter-spacing: 0.04em;
}

.eyebrow {
    text-transform: none !important;
    letter-spacing: 0.03em;
}
