:root {
    --red: #cf1f2c;
    --red-dark: #a81721;

    --sidebar: #17191d;
    --sidebar-soft: #22252a;

    --bg: #f5f6f8;
    --surface: #ffffff;

    --text: #1f2328;
    --muted: #7a8088;

    --border: #e4e7eb;

    --sidebar-width: 280px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
}


/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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


/* APP */

.app {
    min-height: 100vh;
    display: flex;
}


/* SIDEBAR */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    display: flex;
    flex-direction: column;

    width: var(--sidebar-width);
    height: 100vh;

    box-sizing: border-box;

    padding: 26px 20px 20px;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(207, 31, 44, 0.12),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #1b1d21 0%,
            #121416 100%
        );

    color: #ffffff;

    z-index: 100;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    display: flex;
    flex-direction: column;

    width: var(--sidebar-width);
    height: 100vh;

    box-sizing: border-box;

    padding: 26px 20px 20px;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(207, 31, 44, 0.12),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #1b1d21 0%,
            #121416 100%
        );

    color: #ffffff;

    z-index: 100;
}
/* BRAND */

.brand {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 0 8px 26px;
    margin-bottom: 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo,
.brand-mark {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #ffffff;

    overflow: hidden;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.brand-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-mark {
    background: var(--red);
    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.brand-name {
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.brand-connect {
    margin-top: 2px;

    color: #ff4d59;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: 0.8px;
}


/* NAVIGATION */

.navigation {
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    min-height: 48px;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 0 14px;
    margin-bottom: 5px;

    border-radius: var(--radius-sm);

    color: #b6bbc2;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    box-shadow:
        0 7px 16px rgba(207, 31, 44, 0.22);
}
/* Aufklappbare Navigation */

.nav-group {
    margin-bottom: 5px;
}

.nav-group-toggle {
    width: 100%;
    margin-bottom: 0;

    border: 0;
    background: transparent;
    color: #b6bbc2;

    font-family: inherit;
    text-align: left;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
}

.nav-group-label {
    flex: 1;
}

.nav-group-arrow {
    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.65;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.nav-group.open .nav-group-arrow {
    transform: rotate(90deg);
    opacity: 1;
}


/* Untermenü */

.nav-submenu {
    display: none;

    padding-top: 5px;
}

.nav-group.open .nav-submenu {
    display: block;
}

.nav-sub-item {
    min-height: 40px;

    margin-left: 18px;
    margin-bottom: 3px;

    padding-left: 16px;

    font-size: 13px;

    border-left:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius:
        0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-sub-item .nav-icon {
    width: 20px;
    min-width: 20px;
}

.nav-sub-item .nav-icon svg {
    width: 17px;
    height: 17px;
}



.nav-icon {
    width: 24px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;

    font-size: 18px;
}

.nav-section {
    margin: 30px 14px 12px;

    color: #63686f;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.6px;
}


/* SIDEBAR FOOTER */

.sidebar-footer {
    padding: 18px 10px 2px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: #6d7279;

    font-size: 11px;
    line-height: 1.6;
}


/* MAIN */

.main {
    width: calc(100% - var(--sidebar-width));

    margin-left: var(--sidebar-width);

    min-height: 100vh;
}


/* TOPBAR */

.topbar {
    min-height: 96px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 38px;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 50;

    backdrop-filter: blur(14px);
}

.topbar h1 {
    font-size: 25px;
    font-weight: 760;

    letter-spacing: -0.5px;
}

.topbar p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 13px;
}


/* USER */

.user {
    display: flex;
    align-items: center;
    gap: 13px;
}

.user-info {
    display: flex;
    flex-direction: column;

    text-align: right;
}

.user-info strong {
    font-size: 13px;
    font-weight: 650;
}

.user-info span {
    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
}

.avatar {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #23262b,
            #111315
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 750;

    box-shadow: var(--shadow-sm);
}


/* CONTENT */

.content {
    width: 100%;
    max-width: 1600px;

    padding: 34px 38px 50px;
}


/* WELCOME CARD */

.welcome-card {
    position: relative;

    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 44px 48px;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at 88% 52%,
            rgba(207, 31, 44, 0.28),
            transparent 27%
        ),
        linear-gradient(
            120deg,
            #181a1e 0%,
            #25282d 100%
        );

    color: #ffffff;

    box-shadow: var(--shadow-md);
}

.welcome-card::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -155px;
    right: -80px;

    border: 48px solid rgba(255, 255, 255, 0.025);

    border-radius: 50%;
}

.welcome-card::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: 70px;
    bottom: -125px;

    border: 35px solid rgba(207, 31, 44, 0.10);

    border-radius: 50%;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 15px;

    color: #ff666f;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2.2px;
}

.welcome-card h2 {
    max-width: 650px;

    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.06;

    letter-spacing: -1.5px;
}

.welcome-card h2 span {
    color: var(--red);
}

.welcome-card p {
    max-width: 560px;

    margin-top: 18px;

    color: #b9bdc3;

    font-size: 14px;
    line-height: 1.65;
}


/* HERO LOGO */

.welcome-symbol {
    position: relative;
    z-index: 2;

    min-width: 220px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding-right: 20px;

    font-size: 76px;
}

.welcome-symbol img {
    width: 180px;
    max-height: 180px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 14px 20px rgba(0, 0, 0, 0.30)
        );
}


/* STATS */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-top: 22px;
}

.stat-card {
    position: relative;

    min-height: 140px;

    display: flex;
    flex-direction: column;

    padding: 25px 24px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.06);
}

.stat-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 24px;

    width: 38px;
    height: 4px;

    background: var(--red);

    border-radius: 0 0 5px 5px;
}

.stat-label {
    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.stat-card strong {
    margin-top: 12px;

    font-size: 32px;
    font-weight: 760;

    line-height: 1;
}

.stat-card small {
    margin-top: 9px;

    color: #9a9ea4;

    font-size: 11px;
}


/* DASHBOARD GRID */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);

    gap: 20px;

    margin-top: 22px;
}

.panel {
    min-height: 270px;

    padding: 26px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 20px;

    border-bottom: 1px solid #eceef0;
}

.panel-eyebrow {
    display: block;

    margin-bottom: 6px;

    color: var(--red);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.panel h3 {
    font-size: 17px;
    font-weight: 700;
}

.panel-header a {
    color: var(--red);

    font-size: 11px;
    font-weight: 700;

    transition: color 0.18s ease;
}

.panel-header a:hover {
    color: var(--red-dark);
}

.empty-state {
    min-height: 170px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    color: #a1a5ab;

    font-size: 12px;
    text-align: center;
}


/* RESPONSIVE */

@media (max-width: 1200px) {

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

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

}


@media (max-width: 900px) {

    :root {
        --sidebar-width: 230px;
    }

    .sidebar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-name {
        font-size: 11px;
    }

    .brand-connect {
        font-size: 17px;
    }

    .content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .topbar {
        padding-left: 24px;
        padding-right: 24px;
    }

}


@media (max-width: 760px) {

    .sidebar {
        display: none;
    }

    .main {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        min-height: 82px;

        padding: 16px 20px;
    }

    .topbar h1 {
        font-size: 21px;
    }

    .topbar p {
        font-size: 12px;
    }

    .user-info {
        display: none;
    }

    .content {
        padding: 22px 18px 38px;
    }

    .welcome-card {
        min-height: 220px;

        padding: 32px 28px;
    }

    .welcome-card h2 {
        font-size: 32px;
    }

    .welcome-symbol {
        display: none;
    }

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

    .panel {
        padding: 22px;
    }

}


@media (max-width: 420px) {

    .welcome-card {
        padding: 28px 22px;
    }

    .welcome-card h2 {
        font-size: 28px;
    }

    .welcome-card p {
        font-size: 13px;
    }

}
.avatar {
    overflow: hidden;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

.page-heading h2 {
    font-size: 30px;
    letter-spacing: -0.8px;
}

.page-heading p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(207, 31, 44, 0.18);
    transition: 0.18s ease;
}

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

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

.firedepartment-card {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: 0.18s ease;
}

.firedepartment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.firedepartment-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.firedepartment-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    background: #f4f5f6;
    font-size: 30px;
}

.firedepartment-logo img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.firedepartment-area {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.firedepartment-title h3 {
    font-size: 17px;
}

.firedepartment-title p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.firedepartment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 2px;
}

.firedepartment-details div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.firedepartment-details span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.firedepartment-details strong {
    font-size: 12px;
    font-weight: 600;
}

.firedepartment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.firedepartment-footer a {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 7px;
    background: #edf7ef;
    color: #368545;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

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

@media (max-width: 760px) {
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

.area-card {
    min-height: 170px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: 0.18s ease;
}

.area-card:hover {
    transform: translateY(-2px);
    border-color: rgba(207, 31, 44, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.area-number {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(207, 31, 44, 0.18);
}

.area-content {
    flex: 1;
}

.area-content span {
    display: block;
    margin-bottom: 7px;
    color: var(--red);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.area-content h3 {
    font-size: 21px;
    letter-spacing: -0.4px;
}

.area-content p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.area-arrow {
    color: var(--red);
    font-size: 26px;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .area-grid {
        grid-template-columns: 1fr;
    }
}
.org-chart {
    position: relative;
    margin-top: 35px;
    padding: 10px 20px 50px;
}

.org-root {
    width: 420px;
    max-width: 100%;
    min-height: 110px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #191b1f, #26292e);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.org-root-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #fff;
    padding: 6px;
}

.org-root-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.org-root span {
    display: block;
    margin-bottom: 6px;
    color: #ff5b65;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.org-root h3 {
    font-size: 22px;
    font-weight: 750;
}


.org-line-vertical {
    width: 2px;
    height: 45px;
    margin: 0 auto;
    background: #d9dde2;
}

.org-line-horizontal {
    width: calc(100% - 120px);
    height: 2px;
    margin: 0 auto;
    background: #d9dde2;
}


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

.org-area-wrapper {
    position: relative;
    padding-top: 40px;
}

.org-branch {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 40px;
    background: #d9dde2;
}


.org-area-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.org-area-card:hover {
    transform: translateY(-4px);
    border-color: rgba(207, 31, 44, 0.35);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}


.org-area-number {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        var(--red),
        var(--red-dark)
    );
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(207, 31, 44, 0.18);
}


.org-area-text span {
    display: block;
    margin-bottom: 6px;
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.org-area-text h3 {
    font-size: 18px;
    font-weight: 700;
}

.org-area-text p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}


.org-area-arrow {
    position: absolute;
    right: 16px;
    bottom: 13px;
    color: var(--red);
    font-size: 18px;
    font-weight: 700;
}


@media (max-width: 1200px) {

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

    .org-line-horizontal {
        display: none;
    }

    .org-area-wrapper {
        padding-top: 20px;
    }

    .org-branch {
        display: none;
    }
}


@media (max-width: 760px) {

    .org-chart {
        padding-left: 0;
        padding-right: 0;
    }

    .org-areas {
        grid-template-columns: 1fr;
    }

    .org-line-vertical {
        height: 25px;
    }

    .org-root {
        width: 100%;
    }
}
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    transition: 0.18s ease;
}

.secondary-button:hover {
    border-color: rgba(207, 31, 44, 0.35);
    color: var(--red);
}

.kbm-symbol {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 15px;
    background: #202328;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}
.org-level-head {
    width: 360px;
    max-width: 100%;
    min-height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--red);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.org-level-number {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--red);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.org-level-info span {
    display: block;
    margin-bottom: 4px;
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.org-level-info h3 {
    font-size: 17px;
    font-weight: 750;
}

.org-level-info p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}
.login-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(207, 31, 44, 0.10),
            transparent 35%
        ),
        #181a1e;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-panel {
    width: 440px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 30px;
    background: #202328;
    color: #fff;
}

.login-logo {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 14px;
    background: #fff;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-content {
    padding: 38px 36px 34px;
}

.login-content h1 {
    margin-top: 10px;
    font-size: 29px;
    letter-spacing: -0.7px;
}

.login-content > p {
    margin-top: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.login-field label {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8f9fa;
    outline: none;
    font: inherit;
    transition: 0.18s ease;
}

.login-field input:focus {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(207, 31, 44, 0.08);
}

.login-button {
    height: 48px;
    margin-top: 5px;
    border: 0;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: 0.18s ease;
}

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

.login-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #fff0f1;
    color: #a91f2a;
    font-size: 11px;
    font-weight: 600;
}

.login-footer {
    padding: 17px 30px;
    border-top: 1px solid var(--border);
    background: #fafafa;
    color: var(--muted);
    text-align: center;
    font-size: 9px;
}
.firedepartment-org-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 24px 22px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.firedepartment-org-card:hover {
    transform: translateY(-3px);
    border-color: rgba(207, 31, 44, 0.3);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
}

.firedepartment-org-logo {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 16px;
    background: #f4f5f6;
    font-size: 32px;
}

.firedepartment-org-logo img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.firedepartment-org-content {
    flex: 1;
}

.firedepartment-org-content > span {
    display: block;
    margin-bottom: 6px;
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.firedepartment-org-content h3 {
    font-size: 17px;
    font-weight: 750;
}

.firedepartment-org-content p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.firedepartment-org-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.firedepartment-org-footer a {
    color: var(--red);
    font-size: 11px;
    font-weight: 750;
}
.firedepartment-detail-head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
    padding: 24px 26px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.firedepartment-detail-logo {
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: #f4f5f6;
    font-size: 38px;
}

.firedepartment-detail-logo img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.firedepartment-detail-title {
    flex: 1;
}

.firedepartment-detail-title > span {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.firedepartment-detail-title h2 {
    margin: 0;
    font-size: 25px;
}

.firedepartment-detail-title p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.firedepartment-detail-status {
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf8f0;
    color: #277a3e;
    font-size: 10px;
    font-weight: 750;
}

.detail-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.detail-tab {
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.detail-tab.active {
    background: var(--red);
    color: #fff;
}

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

.detail-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.detail-card-header {
    margin-bottom: 18px;
}

.detail-card-header span {
    display: block;
    margin-bottom: 4px;
    color: var(--red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.detail-card-header h3 {
    margin: 0;
    font-size: 16px;
}

.detail-list {
    display: flex;
    flex-direction: column;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row > span {
    color: var(--muted);
    font-size: 10px;
}

.detail-row strong {
    max-width: 65%;
    text-align: right;
    font-size: 11px;
    font-weight: 650;
}

.detail-row a {
    color: var(--red);
}

.detail-notes {
    color: #34373c;
    font-size: 11px;
    line-height: 1.7;
}

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

@media (max-width: 900px) {

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

    .firedepartment-detail-head {
        align-items: flex-start;
    }

    .detail-tabs {
        overflow-x: auto;
    }

}
/* =========================================================
   Feuerwehr Detail
   ========================================================= */

.fd-detail-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
    padding: 32px 34px;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(
            circle at top right,
            rgba(207, 31, 44, 0.22),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #202226 0%,
            #292c31 100%
        );
    color: #fff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.fd-detail-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -100px;
    width: 230px;
    height: 230px;
    border: 45px solid rgba(255, 255, 255, 0.025);
    border-radius: 50%;
    pointer-events: none;
}

.fd-detail-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 25px;
    min-width: 0;
}

.fd-detail-logo {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    font-size: 42px;
}

.fd-detail-logo img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}

.fd-detail-identity {
    min-width: 0;
}

.fd-detail-label {
    margin-bottom: 7px;
    color: #ef6470;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.fd-detail-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.fd-detail-name-row h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 780;
    line-height: 1.15;
    letter-spacing: -0.6px;
}

.fd-afs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.5px;
}

.fd-detail-fullname {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.fd-detail-hierarchy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 14px;
}

.fd-detail-hierarchy span {
    position: relative;
    margin-right: 9px;
    padding-right: 13px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 10px;
    font-weight: 600;
}

.fd-detail-hierarchy span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: 0;
    color: rgba(255, 255, 255, 0.25);
}

.fd-back-button {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: 0.18s ease;
}

.fd-back-button:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}


/* Tabs */

.fd-detail-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 22px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.fd-detail-tab {
    padding: 9px 15px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 720;
    text-decoration: none;
    transition: 0.15s ease;
}

.fd-detail-tab:hover {
    background: #f5f5f6;
    color: #292b30;
}

.fd-detail-tab.active {
    background: var(--red);
    color: #fff;
}


/* Übersicht */

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

.fd-detail-card {
    min-height: 200px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.025);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.fd-detail-card:hover {
    transform: translateY(-2px);
    border-color: rgba(207, 31, 44, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.055);
}

.fd-detail-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.fd-detail-card-icon {
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(207, 31, 44, 0.075);
    color: var(--red);
    font-size: 17px;
    font-weight: 800;
}

.fd-detail-card-label {
    display: block;
    margin-bottom: 2px;
    color: var(--red);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 1.1px;
}

.fd-detail-card-top h2 {
    margin: 0;
    color: #292b30;
    font-size: 15px;
    font-weight: 750;
}

.fd-primary-value {
    color: #292b30;
    font-size: 13px;
    font-weight: 720;
}

.fd-secondary-value {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}


/* Kontakt */

.fd-contact-items {
    display: flex;
    flex-direction: column;
}

.fd-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

.fd-contact-item:last-child {
    border-bottom: none;
}

.fd-contact-item span {
    color: var(--muted);
    font-size: 9px;
}

.fd-contact-item strong {
    max-width: 68%;
    overflow: hidden;
    color: #313338;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-contact-item:hover strong {
    color: var(--red);
}


/* Organisation */

.fd-organization-list {
    display: flex;
    flex-direction: column;
}

.fd-organization-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.fd-organization-row:last-child {
    border-bottom: none;
}

.fd-organization-row span {
    color: var(--muted);
    font-size: 9px;
}

.fd-organization-row strong {
    max-width: 60%;
    color: #313338;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}


/* Bemerkungen */

.fd-notes-section {
    margin-top: 22px;
}

.fd-notes-heading {
    margin-bottom: 10px;
    padding-left: 2px;
}

.fd-notes-heading span {
    display: block;
    margin-bottom: 3px;
    color: var(--red);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 1.1px;
}

.fd-notes-heading h2 {
    margin: 0;
    color: #292b30;
    font-size: 16px;
    font-weight: 750;
}

.fd-notes-box {
    min-height: 100px;
    padding: 22px 23px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: #404247;
    font-size: 11px;
    line-height: 1.75;
}

.fd-empty-text {
    color: var(--muted);
    font-size: 10px;
}


/* Responsive */

@media (max-width: 1100px) {

    .fd-detail-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {

    .fd-detail-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px;
    }

    .fd-detail-hero-main {
        align-items: flex-start;
    }

    .fd-detail-logo {
        width: 80px;
        height: 80px;
    }

    .fd-detail-name-row h1 {
        font-size: 23px;
    }

    .fd-back-button {
        align-self: flex-start;
    }

    .fd-detail-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .fd-detail-tab {
        flex-shrink: 0;
    }

}

@media (max-width: 520px) {

    .fd-detail-hero-main {
        flex-direction: column;
    }

}
/* =========================================================
   Ansprechpartner
   ========================================================= */

.fd-contacts-section {
    margin-top: 34px;
    padding-top: 8px;
    scroll-margin-top: 25px;
}

.fd-section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.fd-section-label {
    display: block;
    margin-bottom: 4px;
    color: var(--red);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 1.2px;
}

.fd-section-title-row h2 {
    margin: 0;
    color: #292b30;
    font-size: 19px;
    font-weight: 760;
}

.fd-section-title-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.fd-contact-count {
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(207, 31, 44, 0.08);
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

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

.fd-person-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.025);
    transition: 0.18s ease;
}

.fd-person-card:hover {
    transform: translateY(-2px);
    border-color: rgba(207, 31, 44, 0.16);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
}

.fd-person-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.fd-person-avatar {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: #25282d;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.fd-person-main {
    min-width: 0;
}

.fd-person-role {
    display: block;
    margin-bottom: 3px;
    color: var(--red);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.8px;
}

.fd-person-main h3 {
    margin: 0;
    color: #292b30;
    font-size: 15px;
    font-weight: 750;
}

.fd-person-data {
    display: flex;
    flex-direction: column;
}

.fd-person-data-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

.fd-person-data-row:last-child {
    border-bottom: 0;
}

.fd-person-data-row > span {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 9px;
}

.fd-person-data-row strong {
    color: #313338;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
}

a.fd-person-data-row:hover strong {
    color: var(--red);
}

.fd-person-notes {
    margin-top: 15px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #f6f6f7;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.6;
}

.fd-empty-section {
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

@media (max-width: 900px) {

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

}
/* =========================================================
   Feuerwehr Detail - echte Tabs
   ========================================================= */

.fd-tab-content {
    display: none;
}

.fd-tab-content.active {
    display: block;
}

button.fd-detail-tab {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

button.fd-detail-tab.active {
    background: var(--red);
    color: #fff;
}
/* =========================================================
   Ansprechpartner - mehrere Funktionen
   ========================================================= */

.fd-person-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.fd-person-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(207, 31, 44, 0.08);
    color: var(--red);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.45px;
    line-height: 1.2;
}

.fd-person-role-badge.muted {
    background: #f1f1f2;
    color: var(--muted);
}
/* =========================================================
   Sidebar - unterer Bereich / Abmelden
   ========================================================= */

.sidebar-bottom {
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.sidebar-logout-form {
    margin: 0 14px 12px;
}

.sidebar-logout-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;

    border: 0;
    border-radius: 9px;

    background: transparent;
    color: rgba(255, 255, 255, 0.62);

    font-family: inherit;
    font-size: 10px;
    font-weight: 650;

    cursor: pointer;
    transition: 0.18s ease;
}

.sidebar-logout-button:hover {
    background: rgba(207, 31, 44, 0.16);
    color: #ffffff;
}

.sidebar-logout-icon {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 7px;

    background: rgba(255, 255, 255, 0.06);

    font-size: 13px;
}

.sidebar-footer {
    padding: 14px 26px 20px;
}
.sidebar-bottom {
    margin-top: auto;
    width: 100%;
}

.sidebar-logout-form {
    margin: 0 0 12px 0;
    padding: 0;
}

.sidebar-logout-button {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 12px;

    border: none;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.72);

    font-family: inherit;
    font-size: 11px;
    font-weight: 650;

    cursor: pointer;
    text-align: left;

    transition: 0.18s ease;
}

.sidebar-logout-button:hover {
    background: rgba(207, 31, 44, 0.18);
    color: #ffffff;
}

.sidebar-logout-icon {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(255, 255, 255, 0.06);
}

.sidebar-footer {
    padding: 12px 12px 0;
}
.sidebar-logout-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* =========================================================
   Navigation - Abmelden
   ========================================================= */

.nav-logout-form {
    margin: 0;
    padding: 0;
}

.nav-logout-button {
    width: 100%;
    border: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    background: transparent;
}

.nav-logout-button:hover {
    color: #ffffff;
    background: rgba(207, 31, 44, 0.14);
}
/* =========================================================
   Feuerwehr Detail - bessere Lesbarkeit
   ========================================================= */

/* Überschriften der Karten */
.fd-detail-card-label,
.fd-section-label,
.fd-notes-heading span {
    font-size: 9px;
}

/* Kartenüberschriften */
.fd-detail-card-top h2 {
    font-size: 17px;
}

/* Hauptwerte */
.fd-primary-value {
    font-size: 14px;
}

/* Untergeordnete Werte */
.fd-secondary-value {
    font-size: 12px;
}

/* Kontaktbereich Übersicht */
.fd-contact-item span {
    font-size: 11px;
}

.fd-contact-item strong {
    font-size: 12px;
}

/* Organisation */
.fd-organization-row span {
    font-size: 11px;
}

.fd-organization-row strong {
    font-size: 12px;
}

/* Ansprechpartner */
.fd-section-title-row h2 {
    font-size: 21px;
}

.fd-section-title-row p {
    font-size: 12px;
}

.fd-person-main h3 {
    font-size: 17px;
}

/* Funktionen eines Ansprechpartners */
.fd-person-role-badge {
    min-height: 23px;
    padding: 4px 8px;
    font-size: 9px;
}

/* Bezeichnungen wie Telefon, Mobil, E-Mail */
.fd-person-data-row > span {
    font-size: 11px;
}

/* eigentliche Kontaktdaten */
.fd-person-data-row strong {
    font-size: 12px;
}

/* Bemerkungen beim Ansprechpartner */
.fd-person-notes {
    font-size: 11px;
}

/* allgemeine Bemerkungen */
.fd-notes-box {
    font-size: 12px;
}

/* Tabs */
.fd-detail-tab {
    font-size: 11px;
}

/* Hierarchie oben */
.fd-detail-hierarchy span {
    font-size: 11px;
}
/* =========================================================
   Ansprechpartner bearbeiten
   ========================================================= */

.contact-edit-page {
    max-width: 1050px;
}

.contact-edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}

.contact-edit-label {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.2px;
}

.contact-edit-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 760;
}

.contact-edit-header p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.contact-form-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.contact-form-section {
    padding: 26px 28px;
    border-bottom: 1px solid var(--border);
}

.contact-form-section-header {
    margin-bottom: 20px;
}

.contact-form-section-header span {
    display: block;
    margin-bottom: 4px;
    color: var(--red);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.2px;
}

.contact-form-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
}

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

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

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

.contact-form-field label {
    color: #44474c;
    font-size: 11px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #f9fafb;
    color: var(--text);
    font: inherit;
    font-size: 12px;
    outline: none;
    transition: 0.18s ease;
}

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

.form-control:focus {
    border-color: var(--red);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(207, 31, 44, 0.07);
}

.contact-role-selection ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    list-style: none;
}

.contact-role-selection label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fafafa;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
}

.contact-role-selection input {
    accent-color: var(--red);
}

.contact-active-field {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
}

.contact-active-field input {
    accent-color: var(--red);
}

.contact-active-field label {
    font-size: 11px;
    font-weight: 700;
}

.contact-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 28px;
    background: #fafafa;
}

.errorlist {
    margin-top: 3px;
    list-style: none;
    color: #b4232d;
    font-size: 10px;
    font-weight: 650;
}

.form-error-box {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #fff0f1;
    color: #a91f2a;
    font-size: 11px;
}

@media (max-width: 800px) {

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

    .contact-form-field-full {
        grid-column: auto;
    }

    .contact-role-selection ul {
        grid-template-columns: 1fr;
    }

    .contact-edit-header {
        flex-direction: column;
    }

}
/* =========================================================
   Ansprechpartner - Bearbeiten
   ========================================================= */

.fd-person-header {
    align-items: flex-start;
}

.fd-person-main {
    flex: 1;
}

.fd-person-edit-button {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 0 10px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #ffffff;
    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    transition: 0.18s ease;
}

.fd-person-edit-button:hover {
    border-color: rgba(207, 31, 44, 0.30);
    background: rgba(207, 31, 44, 0.05);
    color: var(--red);
}
/* =========================================================
   APP NAVIGATION - SAUBERE TRENNUNG
   Mobile bis 600px / Desktop ab 601px
   ========================================================= */

.mobile-header,
.mobile-topbar,
.mobile-menu-button,
.mobile-brand,
.sidebar-mobile-header,
.mobile-menu-overlay {
    display: none;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 601px) {

    .mobile-header,
    .mobile-topbar,
    .mobile-menu-button,
    .mobile-brand,
    .sidebar-mobile-header,
    .mobile-menu-overlay {
        display: none !important;
    }

    .sidebar {
        position: fixed !important;
        inset: 0 auto 0 0 !important;

        display: flex !important;
        flex-direction: column !important;

        width: var(--sidebar-width) !important;
        height: 100vh !important;

        padding: 26px 20px 20px !important;

        transform: none !important;

        z-index: 100 !important;
    }

    .desktop-brand {
        display: flex !important;
    }

    .main {
        width: calc(100% - var(--sidebar-width)) !important;
        margin-left: var(--sidebar-width) !important;
    }

    .topbar {
        display: flex !important;
    }

}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 600px) {

    body.mobile-menu-active {
        overflow: hidden;
    }


    /* Hauptbereich */

    .main {
        width: 100% !important;
        margin-left: 0 !important;
        min-width: 0 !important;
    }


    /* Desktop Header weg */

    .topbar {
        display: none !important;
    }


    /* =====================================================
       MOBILE TOPBAR
       ===================================================== */

    .mobile-header {
        position: sticky !important;
        top: 0 !important;

        display: flex !important;
        align-items: center !important;

        gap: 14px !important;

        width: 100% !important;
        height: 68px !important;

        padding: 0 14px !important;

        background: #ffffff !important;

        border-bottom: 1px solid var(--border) !important;

        box-shadow:
            0 4px 18px rgba(0, 0, 0, 0.05) !important;

        z-index: 800 !important;
    }


    /* Hamburger */

    .mobile-menu-button {
        flex: 0 0 48px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 48px !important;
        height: 48px !important;

        padding: 0 !important;

        border: 0 !important;
        border-radius: 12px !important;

        background: #202328 !important;
        color: #ffffff !important;

        font-size: 28px !important;
        line-height: 1 !important;

        cursor: pointer !important;
    }


    /* Überschrift */

    .mobile-brand {
        display: flex !important;
        align-items: baseline !important;

        gap: 5px !important;

        white-space: nowrap !important;

        font-size: 14px !important;
    }

    .mobile-brand strong {
        color: #252932 !important;
        font-weight: 800 !important;
    }

    .mobile-brand span {
        color: var(--red) !important;
        font-weight: 800 !important;
    }


    /* =====================================================
       MOBILE SIDEBAR
       ===================================================== */

    .sidebar {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;

        display: flex !important;
        flex-direction: column !important;

        width: 88vw !important;
        max-width: 320px !important;

        height: 100dvh !important;

        padding: 0 !important;

        transform: translateX(-105%) !important;

        transition: transform 0.25s ease !important;

        z-index: 2000 !important;

        box-shadow:
            18px 0 45px rgba(0, 0, 0, 0.28) !important;
    }


    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }


    /* normales Desktop Logo weg */

    .desktop-brand {
        display: none !important;
    }


    /* Kopf im Menü */

    .sidebar-mobile-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        flex-shrink: 0 !important;

        min-height: 86px !important;

        padding: 20px !important;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .sidebar-mobile-header .brand-name {
        font-size: 12px !important;
    }

    .sidebar-mobile-header .brand-connect {
        font-size: 19px !important;
    }


    /* X */

    .mobile-menu-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 44px !important;
        height: 44px !important;

        padding: 0 !important;

        border: 0 !important;
        border-radius: 11px !important;

        background:
            rgba(255, 255, 255, 0.08) !important;

        color: #ffffff !important;

        font-size: 28px !important;

        cursor: pointer !important;
    }


    /* Navigation */

    .navigation {
        flex: 1 !important;

        display: flex !important;
        flex-direction: column !important;

        padding: 16px !important;

        overflow-y: auto !important;
    }

    .navigation .nav-item {
        min-height: 52px !important;

        font-size: 15px !important;
    }
    .navigation .nav-sub-item {
        min-height: 44px !important;
        margin-left: 18px;
        font-size: 14px !important;
    }


    /* =====================================================
       OVERLAY
       ===================================================== */

    .mobile-menu-overlay {
        position: fixed !important;

        inset: 0 !important;

        display: block !important;

        background:
            rgba(10, 12, 15, 0.58) !important;

        opacity: 0 !important;
        visibility: hidden !important;

        transition:
            opacity 0.2s ease,
            visibility 0.2s ease !important;

        z-index: 1900 !important;
    }

    .mobile-menu-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }


    /* Inhalt */

    .content {
        width: 100% !important;

        padding:
            18px 14px 30px !important;
    }

}
/* Logo im mobilen Seitenmenü */

.mobile-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-sidebar-logo {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 4px;

    border-radius: 12px;

    background: #ffffff;

    overflow: hidden;
}

.mobile-sidebar-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}
/* =========================================================
   MOBILE HEADER - LOGO
   ========================================================= */

.mobile-brand {
    align-items: center !important;
    gap: 10px !important;
}

.mobile-brand-logo {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 3px;

    border-radius: 10px;

    background: #ffffff;

    overflow: hidden;
}

.mobile-brand-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.mobile-brand-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
/* =========================================================
   Ansprechpartner - Kopfbereich
   ========================================================= */

.fd-contact-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fd-contact-section-title h2 {
    margin: 0 0 5px;

    font-size: 24px;
    font-weight: 750;
}

.fd-contact-section-title p {
    margin: 0;
    opacity: 0.65;
}


/* Ansprechpartner hinzufügen */

.fd-add-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    flex-shrink: 0;

    min-height: 46px;
    padding: 0 19px;

    border: 0;
    border-radius: 12px;

    background: #d71920;
    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 6px 18px rgba(215, 25, 32, 0.18);

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.fd-add-contact-button:hover {
    background: #bd151b;
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 8px 22px rgba(215, 25, 32, 0.25);
}

.fd-add-contact-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
    font-weight: 400;
    line-height: 1;
}


/* Mobile */

@media (max-width: 600px) {

    .fd-contact-section-header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .fd-add-contact-button {
        width: 100%;
    }

}

/* =========================================================
   OFFENE ÄNDERUNGEN
   ========================================================= */

.change-request-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.change-request-header h2 {
    margin: 4px 0 5px;
}

.change-request-header p {
    margin: 0;
    opacity: 0.65;
}

.change-request-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.change-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 20px 22px;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.07);
}

.change-request-card-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.change-request-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(215, 25, 32, 0.14);

    font-size: 24px;
    font-weight: 500;
}

.change-request-info h3 {
    margin: 4px 0 8px;

    font-size: 20px;
}

.change-request-meta {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 12px;
    font-weight: 700;

    opacity: 0.65;
}

.change-request-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.change-request-roles span {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);

    font-size: 12px;
    font-weight: 600;
}

.change-request-submitted {
    margin-top: 10px;

    font-size: 12px;

    opacity: 0.55;
}

.change-request-actions {
    flex-shrink: 0;
}

@media (max-width: 700px) {

    .change-request-card {
        flex-direction: column;
        align-items: stretch;
    }

    .change-request-actions .fd-add-contact-button {
        width: 100%;
    }

}
/* =========================================================
   ÄNDERUNGSANTRAG - DETAIL / VERGLEICH
   ========================================================= */

.change-detail-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;

    overflow: hidden;
    border-radius: 12px;
}

.change-detail-data > div {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.035);
}

.change-detail-data span,
.change-comparison-row span {
    display: block;
    margin-bottom: 4px;

    font-size: 12px;
    opacity: 0.55;
}

.change-comparison-heading {
    margin: 30px 0 18px;
}

.change-comparison-heading h2 {
    margin: 5px 0;
}

.change-comparison-heading p {
    margin: 0;
    opacity: 0.65;
}

.change-match-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.change-match-card {
    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.04);
}

.change-match-status {
    display: inline-flex;

    margin-bottom: 16px;
    padding: 7px 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

.change-match-status.same-person {
    background: rgba(30, 180, 90, 0.14);
}

.change-match-status.possible-change {
    background: rgba(230, 160, 20, 0.15);
}

.change-match-name h3 {
    margin: 0 0 8px;
}

.change-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 16px;

    margin-top: 22px;
}

.change-comparison-column {
    padding: 18px;

    border-radius: 12px;

    background: rgba(0, 0, 0, 0.12);
}

.change-comparison-label {
    display: block;

    margin-bottom: 15px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;

    opacity: 0.5;
}

.change-comparison-row {
    padding: 10px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.change-comparison-row:last-child {
    border-bottom: 0;
}

.change-comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    opacity: 0.4;
}

.change-no-match {
    padding: 22px;

    border-radius: 16px;
    border: 1px solid rgba(30, 180, 90, 0.18);

    background: rgba(30, 180, 90, 0.06);
}

.change-no-match p {
    margin: 7px 0 0;
    opacity: 0.7;
}


@media (max-width: 700px) {

    .change-detail-data {
        grid-template-columns: 1fr;
    }

    .change-comparison-grid {
        grid-template-columns: 1fr;
    }

    .change-comparison-arrow {
        transform: rotate(90deg);
    }

}
/* =========================================================
   ÄNDERUNGSANTRAG - FREIGABE
   ========================================================= */

.change-review-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 22px;
}

.change-review-actions form {
    margin: 0;
}

.change-approve-button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 20px;

    border: 0;
    border-radius: 12px;

    background: #d71920;
    color: #ffffff;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(215, 25, 32, 0.18);

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.change-approve-button:hover {
    background: #bd151b;

    transform: translateY(-1px);

    box-shadow: 0 8px 22px rgba(215, 25, 32, 0.25);
}

@media (max-width: 600px) {

    .change-review-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .change-review-actions form {
        width: 100%;
    }

    .change-approve-button,
    .change-review-actions .fd-back-button {
        width: 100%;
    }

}
/* =========================================================
   DASHBOARD - STATISTIK LINKS / HINWEISE
   ========================================================= */

.stat-card-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.stat-card-link:hover {
    color: inherit;
    text-decoration: none;

    transform: translateY(-2px);
}

.stat-card-alert {
    border-color: rgba(215, 25, 32, 0.35);

    box-shadow:
        0 0 0 1px rgba(215, 25, 32, 0.06),
        0 8px 24px rgba(215, 25, 32, 0.08);
}

.stat-card-alert strong {
    color: #d71920;
}
/* =========================================================
   ÄNDERUNGSANTRAG - ENTSCHEIDUNGEN
   ========================================================= */

.change-match-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 22px;
}

.change-match-actions form {
    margin: 0;
}

.change-reject-button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;

    background: transparent;
    color: inherit;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.change-reject-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);

    transform: translateY(-1px);
}


@media (max-width: 600px) {

    .change-match-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .change-match-actions form {
        width: 100%;
    }

    .change-match-actions button {
        width: 100%;
    }

}
.change-secondary-button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 18px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.06);
    color: inherit;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.change-secondary-button:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);

    transform: translateY(-1px);
}

@media (max-width: 600px) {

    .change-secondary-button {
        width: 100%;
    }

}

/* =========================================================
   KONTAKTSUCHE
   ========================================================= */

.contact-overview-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-search-card {
    padding: 28px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.035);
}

.contact-search-header {
    margin-bottom: 24px;
}

.contact-search-header h2 {
    margin: 4px 0 5px;

    font-size: 25px;
    font-weight: 750;
}

.contact-search-header p {
    margin: 0;
    opacity: 0.65;
}

.contact-search-grid {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.4fr)
        minmax(200px, 1fr)
        minmax(200px, 1fr);

    gap: 18px;
}

.contact-search-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;
    margin-top: 22px;
}


/* =========================================================
   KONTAKT ERGEBNISSE
   ========================================================= */

.contact-result-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.contact-result-header h2 {
    margin: 4px 0 0;

    font-size: 25px;
}

.contact-result-count {
    padding: 8px 13px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);

    font-size: 13px;
    font-weight: 700;
}

.contact-result-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 18px;
}

.contact-result-card {
    display: flex;
    flex-direction: column;

    min-height: 260px;

    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.035);

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.contact-result-card:hover {
    transform: translateY(-2px);

    border-color: rgba(255, 255, 255, 0.14);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);
}

.contact-result-card-header h3 {
    margin: 0 0 6px;

    font-size: 20px;
    font-weight: 750;
}

.contact-result-firedepartment {
    color: #d71920;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;
}

.contact-result-firedepartment:hover {
    text-decoration: underline;
}


/* =========================================================
   FUNKTIONS-TAGS
   ========================================================= */

.contact-role-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 18px;
}

.contact-role-tag {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(215, 25, 32, 0.12);
    border: 1px solid rgba(215, 25, 32, 0.22);

    color: #d71920;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   KONTAKTDATEN
   ========================================================= */

.contact-result-details {
    display: flex;
    flex-direction: column;

    gap: 11px;

    margin-top: 20px;
}

.contact-result-detail {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.contact-result-detail span {
    opacity: 0.55;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-result-detail a {
    color: inherit;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.contact-result-detail a:hover {
    color: #d71920;
}

.contact-result-footer {
    margin-top: auto;
    padding-top: 22px;
}

.contact-result-link {
    color: inherit;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    opacity: 0.7;
}

.contact-result-link:hover {
    color: #d71920;

    opacity: 1;
}


/* =========================================================
   KONTAKTSUCHE MOBILE
   ========================================================= */

@media (max-width: 850px) {

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

}

@media (max-width: 600px) {

    .contact-search-card {
        padding: 20px;
    }

    .contact-search-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .contact-search-actions a,
    .contact-search-actions button {
        width: 100%;
    }

    .contact-result-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

}
/* =========================================================
   KONTAKTSUCHE - TABELLE
   ========================================================= */

.contact-reset-button {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;

    background: transparent;
    color: inherit;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.contact-reset-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: inherit;
    transform: translateY(-1px);
}


.contact-table-wrapper {
    width: 100%;
    overflow-x: auto;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.025);
}


.contact-table {
    width: 100%;
    min-width: 1200px;

    border-collapse: collapse;
}


.contact-table thead {
    background: rgba(255, 255, 255, 0.04);
}


.contact-table th {
    padding: 15px 16px;

    text-align: left;

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    opacity: 0.6;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.contact-table td {
    padding: 17px 16px;

    vertical-align: top;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    font-size: 14px;
}


.contact-table tbody tr:last-child td {
    border-bottom: 0;
}


.contact-table tbody tr {
    transition: background 0.15s ease;
}


.contact-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}


.contact-table-name strong {
    white-space: nowrap;
    font-size: 15px;
}


.contact-table-firedepartment {
    color: #d71920;

    font-weight: 700;
    text-decoration: none;
}


.contact-table-firedepartment:hover {
    text-decoration: underline;
}


.contact-table-link {
    color: inherit;
    text-decoration: none;

    white-space: nowrap;
}


.contact-table-link:hover {
    color: #d71920;
}


.contact-table-address {
    display: flex;
    flex-direction: column;
    gap: 3px;

    min-width: 170px;
}


.contact-table-empty {
    opacity: 0.35;
}


.contact-table-action {
    text-align: right;
}


.contact-table-open {
    color: inherit;

    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;

    opacity: 0.7;
}


.contact-table-open:hover {
    color: #d71920;
    opacity: 1;
}


.contact-table .contact-role-tags {
    margin-top: 0;

    min-width: 160px;
}


@media (max-width: 600px) {

    .contact-search-actions {
        flex-direction: column-reverse;
    }

    .contact-search-actions a,
    .contact-search-actions button {
        width: 100%;
    }

}
/* =========================================================
   KONTAKTE - KOPFBEREICH
   ========================================================= */

.contact-page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.contact-page-toolbar h2 {
    margin: 4px 0 5px;

    font-size: 26px;
}

.contact-page-toolbar p {
    margin: 0;

    opacity: 0.65;
}


/* =========================================================
   ÄNDERUNGSANTRÄGE
   ========================================================= */

.contact-change-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 46px;

    padding: 0 16px;

    border-radius: 12px;

    background: #d71920;

    color: #ffffff;

    font-size: 14px;
    font-weight: 750;

    text-decoration: none;

    white-space: nowrap;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.contact-change-request-button:hover {
    color: #ffffff;

    opacity: 0.9;

    transform: translateY(-1px);
}


.contact-change-request-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 24px;
    height: 24px;

    padding: 0 7px;

    border-radius: 999px;

    background: #ffffff;

    color: #d71920;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================================
   SORTIERBARE TABELLENKÖPFE
   ========================================================= */

.contact-sort-link {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: inherit;

    text-decoration: none;

    opacity: 0.75;

    transition:
        color 0.15s ease,
        opacity 0.15s ease;
}


.contact-sort-link:hover {
    color: #d71920;

    opacity: 1;
}


.contact-sort-link.active {
    color: #d71920;

    opacity: 1;
}


/* =========================================================
   BEMERKUNGEN
   ========================================================= */

.contact-table-notes {
    min-width: 160px;
    max-width: 280px;

    white-space: normal;

    line-height: 1.45;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .contact-page-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-change-request-button {
        width: 100%;
    }

}
/* =========================================================
   KONTAKTE - FREIGABEHINWEIS
   ========================================================= */

.contact-approval-info {
    margin-bottom: 22px;
    padding: 16px 18px;

    border: 1px solid rgba(215, 25, 32, 0.18);
    border-left: 4px solid #d71920;
    border-radius: 12px;

    background: rgba(215, 25, 32, 0.06);
}

.contact-approval-info strong {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;
    font-weight: 800;
}

.contact-approval-info p {
    margin: 0;

    font-size: 13px;
    line-height: 1.55;

    opacity: 0.75;
}
/* =========================================================
   KONTAKTE - AKTIONEN
   ========================================================= */

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

.contact-new-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 16px;

    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;

    background: #ffffff;
    color: #222222;

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition: 0.2s ease;
}

.contact-new-request-button:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 25, 32, 0.35);
}

.contact-new-request-button span {
    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   FEUERWEHR AUSWAHL
   ========================================================= */

.contact-create-select-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.contact-create-select-header h2 {
    margin: 4px 0 6px;
}

.contact-create-select-header p {
    margin: 0;
    opacity: 0.7;
}

.contact-create-select-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(280px, 1fr)
    );
    gap: 14px;
}

.contact-create-select-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;

    text-decoration: none;
    color: inherit;

    transition: 0.2s ease;
}

.contact-create-select-card:hover {
    transform: translateY(-2px);

    border-color: rgba(215, 25, 32, 0.35);

    box-shadow:
        0 8px 24px
        rgba(0, 0, 0, 0.06);
}

.contact-create-select-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: rgba(215, 25, 32, 0.08);

    font-size: 20px;
}

.contact-create-select-name {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-create-select-name strong {
    font-size: 14px;
}

.contact-create-select-name span {
    margin-top: 2px;

    font-size: 12px;
    opacity: 0.6;
}

.contact-create-select-arrow {
    font-size: 20px;
    font-weight: 700;
    opacity: 0.4;
}

@media (max-width: 700px) {

    .contact-create-select-header {
        flex-direction: column;
    }

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

}
/* =========================================================
   ÄNDERUNGSANTRÄGE - PRÜFUNG / RÜCKFRAGE
   ========================================================= */

.change-review-section {
    margin-top: 28px;
    padding: 22px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
}

.change-review-heading {
    margin-bottom: 18px;
}

.change-review-heading h3 {
    margin: 4px 0 6px;

    font-size: 18px;
}

.change-review-heading p {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;

    opacity: 0.7;
}

.change-review-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.change-review-form label {
    font-size: 13px;
    font-weight: 800;
}

.change-review-form textarea {
    width: 100%;
    min-height: 110px;

    padding: 13px 14px;

    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;

    resize: vertical;

    font: inherit;
    font-size: 14px;

    background: #ffffff;

    box-sizing: border-box;
}

.change-review-form textarea:focus {
    outline: none;

    border-color: rgba(215, 25, 32, 0.55);

    box-shadow:
        0 0 0 3px
        rgba(215, 25, 32, 0.08);
}

.change-review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 6px;

    flex-wrap: wrap;
}

@media (max-width: 700px) {

    .change-review-actions {
        flex-direction: column;
    }

    .change-review-actions button {
        width: 100%;
    }

}
.change-question-card {
    margin-bottom: 24px;
    padding: 22px;

    background: #fff8e8;

    border: 1px solid rgba(190, 130, 0, 0.25);
    border-left: 4px solid #d99a00;
    border-radius: 14px;
}

.change-question-card h3 {
    margin: 5px 0 10px;
    font-size: 18px;
}

.change-question-text {
    margin: 0;

    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

.change-question-meta {
    margin-top: 14px;

    font-size: 12px;
    opacity: 0.7;
}
/* =========================================================
   ÄNDERUNGSANTRÄGE - NACHRICHTENVERLAUF
   ========================================================= */

.change-message-history {
    margin: 24px 0;
    padding: 22px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
}

.change-message-history-header {
    margin-bottom: 18px;
}

.change-message-history-header h3 {
    margin: 5px 0 0;
    font-size: 18px;
}

.change-message-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.change-message {
    padding: 16px 18px;

    border-radius: 12px;

    border: 1px solid rgba(0, 0, 0, 0.08);
}

.change-message.reviewer {
    background: #fff8e8;
    border-left: 4px solid #d99a00;
}

.change-message.submitter {
    background: #f6f7f8;
    border-left: 4px solid #d71920;
}

.change-message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 8px;

    font-size: 12px;
    opacity: 0.72;
}

.change-message-text {
    font-size: 14px;
    line-height: 1.6;
}
/* =========================================================
   MEINE ÄNDERUNGSANTRÄGE
   ========================================================= */

.request-overview-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.request-table-wrapper {
    overflow-x: auto;
}

.request-table {
    width: 100%;
    border-collapse: collapse;
}

.request-table thead {
    background: #f7f8fa;
}

.request-table th {
    padding: 14px 20px;
    text-align: left;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #6b7280;

    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.request-table td {
    padding: 18px 20px;
    vertical-align: middle;

    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.request-table tbody tr {
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.request-table tbody tr:hover {
    background: #fafafa;
}

.request-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Person */

.request-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.request-person-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: #25292d;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.request-person strong {
    display: block;

    color: #1f2933;

    font-size: 14px;
}

.request-person span {
    display: block;

    margin-top: 3px;

    color: #7b8490;

    font-size: 12px;
}


/* Feuerwehr */

.request-firedepartment {
    font-size: 13px;
    color: #343a40;
}


/* Art */

.request-type {
    display: inline-flex;

    padding: 6px 10px;

    border-radius: 8px;

    background: #f1f3f5;

    color: #505862;

    font-size: 12px;
    font-weight: 600;
}


/* Status allgemein */

.request-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.request-status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: currentColor;
}


/* In Prüfung */

.request-status-pending {
    background: #eef2f6;
    color: #52606d;
}


/* Rückfrage */

.request-status-question {
    background: #fff4d6;
    color: #a46600;
}


/* Genehmigt */

.request-status-approved {
    background: #e8f7ee;
    color: #21834a;
}


/* Abgelehnt */

.request-status-rejected {
    background: #fdebec;
    color: #c51f2c;
}


/* Datum */

.request-date strong {
    display: block;

    color: #343a40;

    font-size: 13px;
}

.request-date span {
    display: block;

    margin-top: 2px;

    color: #8a929b;

    font-size: 11px;
}


/* Öffnen */

.request-action-cell {
    text-align: right;
}

.request-open-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border-radius: 9px;

    background: #25292d;

    color: #ffffff;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.request-open-button:hover {
    background: #d71920;
    transform: translateY(-1px);
}


/* Leerzustand */

.request-empty-state {
    padding: 55px 30px;
    text-align: center;
}

.request-empty-icon {
    width: 48px;
    height: 48px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #f3f4f6;

    color: #707780;

    font-size: 20px;
    font-weight: 700;
}

.request-empty-state h3 {
    margin: 0 0 6px;

    font-size: 16px;
}

.request-empty-state p {
    margin: 0;

    color: #7b8490;

    font-size: 13px;
}


/* Mobile */

@media (max-width: 900px) {

    .request-table th,
    .request-table td {
        padding: 14px;
    }

    .request-person-icon {
        width: 36px;
        height: 36px;
    }
}
/* =========================================================
   KONTAKTE - AKTIONSZENTRALE
   ========================================================= */

.contact-page-toolbar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
}

.contact-page-toolbar-heading h2 {
    margin: 5px 0 5px;
}

.contact-page-toolbar-heading p {
    margin: 0;
    color: #7b8490;
}


/* Aktionskarten */

.contact-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.contact-action-card {
    min-height: 82px;
    padding: 15px 16px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: #ffffff;

    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;

    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);

    color: #25292d;
    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.contact-action-card:hover {
    transform: translateY(-2px);

    border-color: rgba(215, 25, 32, 0.25);

    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.08);
}


/* Icon */

.contact-action-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #25292d;
    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
}


/* Neuer Ansprechpartner = Rot */

.contact-action-new .contact-action-icon {
    background: #d71920;
}


/* Inhalt */

.contact-action-content {
    min-width: 0;
    flex: 1;
}

.contact-action-content strong {
    display: block;

    margin-bottom: 3px;

    font-size: 13px;
    font-weight: 700;

    color: #25292d;
}

.contact-action-content span {
    display: block;

    font-size: 11px;

    color: #858d96;
}


/* Pfeil */

.contact-action-arrow {
    color: #a1a7ad;
    font-size: 18px;
}


/* Zähler */

.contact-action-counter {
    min-width: 29px;
    height: 29px;

    padding: 0 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
}


/* Eigene Rückfrage */

.contact-action-counter.question {
    background: #fff1c7;
    color: #9b6200;
}


/* Anzahl eigene Anträge */

.contact-action-counter.neutral {
    background: #eef1f4;
    color: #626b74;
}


/* Offene Prüfvorgänge */

.contact-action-counter.review {
    background: #fde9ea;
    color: #c51f2c;
}


/* Mobile / Tablet */

@media (max-width: 1100px) {

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

}
/* =========================================================
   MEINE ÄNDERUNGSANTRÄGE - KOPFBEREICH
   ========================================================= */

.request-page-header {
    margin-bottom: 26px;
}

.request-page-heading {
    margin-bottom: 22px;
}

.request-page-heading h2 {
    margin: 5px 0 5px;

    font-size: 24px;
    font-weight: 750;

    color: #25292d;
}

.request-page-heading p {
    margin: 0;

    font-size: 14px;
    color: #7b8490;
}

.request-page-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 850px;
}

.request-back-card .contact-action-icon {
    background: #25292d;
}

@media (max-width: 800px) {

    .request-page-actions {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   Feuerwehr-Karten
   ========================================================= */

.firedepartment-logo {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;
}

.firedepartment-logo img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}

.firedepartment-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 4px;
}

.firedepartment-card-title > span:first-child {
    color: var(--muted);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.afs-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 20px;

    padding: 2px 7px;

    border-radius: 6px;

    background: rgba(207, 31, 44, 0.10);
    color: var(--red);

    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
}


/* =========================================================
   BENUTZERVERWALTUNG
   ========================================================= */

.user-management-card {
    overflow: hidden;
    margin-top: 24px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);
}

.user-management-header,
.user-management-row {
    display: grid;

    grid-template-columns:
        minmax(240px, 1.4fr)
        100px
        minmax(160px, .9fr)
        minmax(180px, 1fr)
        90px
        110px;

    align-items: center;
    gap: 20px;
}

.user-management-header {
    min-height: 48px;
    padding: 0 22px;

    background: #f6f7f8;

    border-bottom: 1px solid var(--border);

    color: #7a7f86;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.user-management-row {
    min-height: 86px;
    padding: 16px 22px;

    border-bottom: 1px solid #eceef0;
}

.user-management-row:last-child {
    border-bottom: 0;
}

.user-management-person {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.user-management-person > div:last-child {
    min-width: 0;
}

.user-management-person strong {
    display: block;

    color: #24272c;

    font-size: 14px;
}

.user-management-person span,
.user-management-person small {
    display: block;

    margin-top: 3px;

    color: #858a90;

    font-size: 11px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-management-avatar {
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 12px;

    background: #202328;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.user-management-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-access-badge,
.user-status {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
}

.user-access-badge.internal {
    background: rgba(207, 31, 44, .09);
    color: var(--red);
}

.user-access-badge.external {
    background: #f0f1f2;
    color: #62676d;
}

.user-status.active {
    background: #edf6ef;
    color: #347547;
}

.user-status.inactive {
    background: #f1f1f1;
    color: #888d92;
}

.user-management-role strong {
    display: block;

    color: #3d4146;

    font-size: 12px;
}

.user-management-role span {
    display: block;

    margin-top: 4px;

    color: #8a8f94;

    font-size: 10px;
}

.user-management-muted {
    color: #a1a5a9;
}

.user-management-actions {
    text-align: right;
}

.user-edit-button {
    min-height: 34px;

    padding: 0 12px;

    border: 1px solid #dfe2e5;
    border-radius: 8px;

    background: #ffffff;
    color: #555a60;

    font-family: inherit;
    font-size: 10px;
    font-weight: 750;
}

.user-edit-button:disabled {
    opacity: .55;
}

.user-management-empty {
    padding: 40px;

    text-align: center;

    color: #8a8f94;

    font-size: 13px;
}


@media (max-width: 1100px) {

    .user-management-header {
        display: none;
    }

    .user-management-row {
        grid-template-columns:
            minmax(220px, 1fr)
            90px
            minmax(150px, .8fr)
            90px
            100px;
    }

    .user-management-row > div:nth-child(4) {
        display: none;
    }

}


@media (max-width: 760px) {

    .user-management-row {
        grid-template-columns: 1fr auto;

        gap: 14px;

        padding: 18px;
    }

    .user-management-row > div:nth-child(2),
    .user-management-row > div:nth-child(3),
    .user-management-row > div:nth-child(4) {
        display: none;
    }

}

/* =========================================================
   INSPEKTION CONNECT - PRIMARY BUTTON
   ========================================================= */

.button.button-primary,
a.button.button-primary,
button.button.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 0 18px;

    border: 1px solid var(--red) !important;
    border-radius: 10px;

    background: var(--red) !important;
    color: #ffffff !important;

    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;

    text-decoration: none !important;
    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(207, 31, 44, 0.18);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.button.button-primary:hover,
a.button.button-primary:hover,
button.button.button-primary:hover {
    background: #b91d29 !important;
    border-color: #b91d29 !important;
    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(207, 31, 44, 0.24);
}
/* =========================================================
   BENUTZERFORMULAR
   ========================================================= */

.user-create-form {
    width: 100%;
    max-width: 1180px;
}


/* Karten */

.user-form-card {
    overflow: hidden;

    margin-top: 22px;

    border: 1px solid #e4e6e8;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.035);
}


/* Kartenkopf */

.user-form-card-header {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 72px;

    padding: 16px 22px;

    border-bottom: 1px solid #eceef0;

    background:
        linear-gradient(
            90deg,
            rgba(207, 31, 44, 0.045),
            rgba(255, 255, 255, 0) 45%
        );
}

.user-form-card-header > span {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--red);
    color: #ffffff;

    font-size: 11px;
    font-weight: 850;

    box-shadow:
        0 5px 12px rgba(207, 31, 44, 0.18);
}

.user-form-card-header strong {
    display: block;

    color: #25282d;

    font-size: 14px;
    font-weight: 800;
}

.user-form-card-header small {
    display: block;

    margin-top: 4px;

    color: #8a8f94;

    font-size: 11px;
    font-weight: 500;
}


/* Formularinhalt */

.user-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px 24px;

    padding: 24px;
}


/* Einzelnes Feld */

.user-form-field {
    min-width: 0;
}

.user-form-field label {
    display: block;

    margin-bottom: 8px;

    color: #45494f;

    font-size: 11px;
    font-weight: 750;
}

.user-form-field input:not([type="checkbox"]),
.user-form-field select,
.user-form-field textarea {
    width: 100%;
    min-height: 44px;

    padding: 0 13px;

    border: 1px solid #dfe2e5;
    border-radius: 10px;

    outline: none;

    background: #fafbfb;
    color: #272b30;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.user-form-field textarea {
    min-height: 110px;

    padding-top: 12px;
    padding-bottom: 12px;

    resize: vertical;
}

.user-form-field input:not([type="checkbox"]):hover,
.user-form-field select:hover,
.user-form-field textarea:hover {
    border-color: #cdd1d5;

    background: #ffffff;
}

.user-form-field input:not([type="checkbox"]):focus,
.user-form-field select:focus,
.user-form-field textarea:focus {
    border-color: rgba(207, 31, 44, .75);

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(207, 31, 44, .08);
}


/* Hilfetext */

.user-form-field > small {
    display: block;

    margin-top: 6px;

    color: #92979c;

    font-size: 10px;
    line-height: 1.45;
}


/* Fehler */

.user-field-error,
.user-form-errors {
    margin-top: 7px;

    color: var(--red);

    font-size: 10px;
    font-weight: 700;
}

.user-form-errors {
    padding: 14px 16px;

    border: 1px solid rgba(207, 31, 44, .18);
    border-radius: 10px;

    background: rgba(207, 31, 44, .05);
}


/* Checkbox-Bereich */

.user-form-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px 32px;

    padding:
        0 24px 24px;
}

.user-form-options label {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #4b5055;

    font-size: 11px;
    font-weight: 650;

    cursor: pointer;
}

.user-form-options input[type="checkbox"] {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: var(--red);

    cursor: pointer;
}


/* Footer */

.user-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid #eceef0;
}


/* normaler sekundärer Button */

.user-form-footer .button:not(.button-primary),
.page-header .button:not(.button-primary) {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 16px;

    border: 1px solid #dfe2e5;
    border-radius: 10px;

    background: #ffffff;
    color: #555a60;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition:
        border-color .15s ease,
        background .15s ease;
}

.user-form-footer .button:not(.button-primary):hover,
.page-header .button:not(.button-primary):hover {
    border-color: #cdd1d5;

    background: #f7f8f8;

    color: #292d32;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

    .user-form-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 20px;
    }

    .user-form-card-header {
        padding: 15px 18px;
    }

    .user-form-options {
        align-items: flex-start;
        flex-direction: column;

        gap: 14px;

        padding:
            0 20px 20px;
    }

    .user-form-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .user-form-footer .button {
        width: 100%;
    }

}
.user-form-field-wide {
    grid-column: 1 / -1;
}

@media (max-width: 760px) {
    .user-form-field-wide {
        grid-column: auto;
    }
}
a.user-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

a.user-edit-button:hover {
    border-color: rgba(207, 31, 44, .30);
    background: rgba(207, 31, 44, .05);
    color: var(--red);
}

/* =========================================================
   AUTH / PASSWORT / LOGIN
   ========================================================= */

.auth-page {
    min-height: 100vh;
    padding: 48px 24px;
    background: #f4f5f6;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 36px;
}

.auth-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.auth-brand-text strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #25282b;
}

.auth-brand-text span {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--red);
}

@media (max-width: 600px) {

    .auth-page {
        padding: 30px 16px;
    }

    .auth-brand {
        margin-bottom: 26px;
    }

    .auth-brand img {
        width: 50px;
        height: 50px;
    }

}
/* =========================================================
   ERSTE ANMELDUNG / PASSWORT FESTLEGEN
   ========================================================= */

.password-setup-wrapper {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.password-setup-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7e9;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(20, 24, 28, 0.10);
}

.password-setup-accent {
    height: 5px;
    width: 100%;
    background: var(--red);
}


/* Header */

.password-setup-header {
    padding: 34px 42px 28px;
    text-align: center;
}

.password-setup-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    margin: 0 auto 18px;

    border-radius: 14px;

    background: rgba(207, 31, 44, 0.08);
    border: 1px solid rgba(207, 31, 44, 0.12);

    font-size: 22px;
}

.password-setup-label {
    display: block;
    margin-bottom: 8px;

    color: var(--red);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.password-setup-header h1 {
    margin: 0;

    color: #202428;

    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
}

.password-setup-header p {
    max-width: 480px;
    margin: 13px auto 0;

    color: #6b7177;

    font-size: 14px;
    line-height: 1.65;
}


/* Formular */

.password-setup-form {
    padding: 0 42px 36px;
}

.password-setup-section {
    padding: 25px;

    background: #f7f8f9;
    border: 1px solid #eceef0;
    border-radius: 14px;
}

.password-field {
    margin-bottom: 20px;
}

.password-field:last-child {
    margin-bottom: 0;
}

.password-field label {
    display: block;
    margin-bottom: 7px;

    color: #353a3f;

    font-size: 12px;
    font-weight: 750;
}

.password-field input {
    box-sizing: border-box;
    width: 100%;
    height: 46px;

    padding: 0 14px;

    border: 1px solid #d8dce0;
    border-radius: 9px;

    background: #ffffff;
    color: #25292d;

    font: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.password-field input:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px rgba(207, 31, 44, 0.08);
}


/* Trennung Startpasswort / neues Passwort */

.password-divider {
    height: 1px;
    margin: 24px 0;

    background: #e1e4e7;
}


/* Passwort-Hinweise */

.password-help {
    margin-top: 9px;

    color: #777d82;

    font-size: 11px;
    line-height: 1.55;
}

.password-help ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.password-help li {
    margin: 3px 0;
}


/* Fehler */

.password-field-error,
.password-setup-error {
    margin-top: 8px;

    color: #b91d29;

    font-size: 12px;
}

.password-field-error ul,
.password-setup-error ul {
    margin: 0;
    padding-left: 18px;
}

.password-setup-error {
    margin-bottom: 18px;
    padding: 12px 14px;

    background: rgba(207, 31, 44, 0.06);
    border: 1px solid rgba(207, 31, 44, 0.16);
    border-radius: 9px;
}


/* Button */

.password-setup-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 48px;

    margin-top: 22px;
    padding: 0 20px;

    border: 0;
    border-radius: 10px;

    background: var(--red);
    color: #ffffff;

    font: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.password-setup-submit:hover {
    background: #b91d29;
}

.password-setup-submit:active {
    transform: translateY(1px);
}

.password-setup-submit span {
    font-size: 18px;
}


/* Footer */

.password-setup-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 16px 20px;

    border-top: 1px solid #eceef0;
    background: #fafafa;

    color: #858a8f;

    font-size: 10px;
}

.password-security-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #36a269;
}


/* Mobile */

@media (max-width: 600px) {

    .password-setup-wrapper {
        max-width: none;
    }

    .password-setup-card {
        border-radius: 14px;
    }

    .password-setup-header {
        padding: 28px 22px 23px;
    }

    .password-setup-header h1 {
        font-size: 23px;
    }

    .password-setup-form {
        padding: 0 20px 25px;
    }

    .password-setup-section {
        padding: 20px;
    }

}
/* =========================================================
   PASSWORT-ANFORDERUNGEN
   ========================================================= */

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-top: 12px;
    padding: 13px 15px;

    background: #ffffff;
    border: 1px solid #e5e7e9;
    border-radius: 9px;
}

.password-requirement {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #777d82;

    font-size: 11px;
    line-height: 1.45;

    transition: color .15s ease;
}

.password-requirement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 16px;
    width: 16px;
    height: 16px;

    font-size: 12px;
    font-weight: 800;
}


/* Live erfüllte Kriterien */

.password-requirement.fulfilled {
    color: #27845a;
}

.password-requirement.fulfilled
.password-requirement-icon {
    color: #27845a;
}


/* Kriterien, die Django serverseitig prüft */

.password-requirement-server {
    color: #8b9095;
}

.password-requirement-server
.password-requirement-icon {
    color: #a8adb1;
}
/* =========================================================
   AUSWERTUNG – FUNKTIONEN MULTISELECT
   ========================================================= */

.role-select {
    position: relative;
    width: 100%;
}


/* ---------------------------------------------------------
   GESCHLOSSENES DROPDOWN
   --------------------------------------------------------- */

.role-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    text-align: left;
    cursor: pointer;
}

.role-select-trigger:hover {
    background: #ffffff;
    border-color: #c9ccd1;
}

.role-select.open .role-select-trigger {
    border-color: var(--red);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(207, 31, 44, 0.07);
}

.role-select-arrow {
    flex-shrink: 0;
    color: #777b82;
    font-size: 9px;
    transition: transform 0.18s ease;
}

.role-select.open .role-select-arrow {
    transform: rotate(180deg);
}


/* ---------------------------------------------------------
   DROPDOWN-FENSTER
   --------------------------------------------------------- */

.role-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    z-index: 1000;

    display: none;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.10),
        0 3px 8px rgba(0, 0, 0, 0.05);
}

.role-select.open .role-select-dropdown {
    display: block;
}


/* ---------------------------------------------------------
   KOPF
   --------------------------------------------------------- */

.role-select-header {
    padding: 13px 14px 10px;
    border-bottom: 1px solid var(--border);
}

.role-select-header strong {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
}

.role-select-header span {
    display: block;
    margin-top: 2px;
    color: #8a8d92;
    font-size: 10px;
}


/* ---------------------------------------------------------
   AKTIONEN
   --------------------------------------------------------- */

.role-select-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 10px;

    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.role-select-actions button {
    padding: 6px 9px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: #ffffff;
    color: #55595f;

    font: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.18s ease;
}

.role-select-actions button:hover {
    border-color: var(--red);
    color: var(--red);
}


/* ---------------------------------------------------------
   FUNKTIONSLISTE
   --------------------------------------------------------- */

.role-select-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
}

.role-select-item {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 38px;
    padding: 7px 9px;

    border-radius: 7px;

    color: var(--text);

    font-size: 11px;
    font-weight: 650;

    cursor: pointer;

    transition: 0.15s ease;
}

.role-select-item:hover {
    background: #f5f6f7;
}


/* Original-Checkbox verstecken */

.role-select-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* Eigene Checkbox */

.role-select-check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: #ffffff;
    color: transparent;

    font-size: 10px;
    font-weight: 800;

    transition: 0.15s ease;
}

.role-select-item input:checked + .role-select-check {
    border-color: var(--red);
    background: var(--red);
    color: #ffffff;
}

.role-select-item:has(input:checked) {
    background: rgba(207, 31, 44, 0.045);
}

.role-select-name {
    line-height: 1.25;
}


/* ---------------------------------------------------------
   FUSSZEILE
   --------------------------------------------------------- */

.role-select-footer {
    padding: 9px 12px;

    border-top: 1px solid var(--border);
    background: #fafafa;

    color: #8a8d92;

    font-size: 9px;
}


/* ---------------------------------------------------------
   LEERE LISTE
   --------------------------------------------------------- */

.role-select-empty {
    padding: 14px;

    color: #8a8d92;
    font-size: 11px;
    text-align: center;
}
/* =========================================================
   AUSWERTUNGSZENTRALE
   ========================================================= */

.report-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}


/* Karte */

.report-category-card {
    min-height: 220px;
    padding: 22px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;

    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);

    color: #25292d;
    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}


/* Aktive / anklickbare Karte */

.report-category-card-link:hover {
    transform: translateY(-3px);

    border-color: rgba(215, 25, 32, 0.28);

    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}


/* Icon */

.report-category-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 13px;

    background: #25292d;
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}


/* Aktive Kontakte-Karte */

.report-category-card-link .report-category-icon {
    background: #d71920;
}


/* Inhalt */

.report-category-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.report-category-content h3 {
    margin: 5px 0 7px;

    color: #25292d;

    font-size: 20px;
    font-weight: 750;
}

.report-category-content p {
    margin: 0 0 22px;

    color: #858d96;

    font-size: 12px;
    line-height: 1.6;
}


/* Öffnen */

.report-category-open {
    margin-top: auto;

    color: #d71920;

    font-size: 11px;
    font-weight: 750;
}


/* In Vorbereitung */

.report-category-coming {
    align-self: flex-start;
    margin-top: auto;

    padding: 6px 9px;

    border-radius: 7px;

    background: #f3f4f5;
    color: #8a8f95;

    font-size: 10px;
    font-weight: 700;
}


/* Noch nicht verfügbare Karten etwas zurücknehmen */

.report-category-card:not(.report-category-card-link) {
    background: #fbfbfc;
}

.report-category-card:not(.report-category-card-link)
.report-category-icon {
    background: #6f757b;
}


/* Responsive */

@media (max-width: 1050px) {

    .report-category-grid {
        grid-template-columns: 1fr;
    }

    .report-category-card {
        min-height: 180px;
    }

}
/* =========================================================
   AUSWERTUNGEN – SEITENAUFBAU
   ========================================================= */

.reports-page {
    width: 100%;
}

.reports-heading {
    margin-bottom: 26px;
    text-align: left;
}

.reports-heading h2 {
    margin: 5px 0 6px;

    color: #25292d;

    font-size: 24px;
    font-weight: 750;
    line-height: 1.2;
}

.reports-heading p {
    margin: 0;

    color: #858d96;

    font-size: 12px;
    line-height: 1.6;
}


/* Symbole */

.report-category-icon svg {
    width: 27px;
    height: 27px;
}

.report-category-icon-active {
    background: #d71920;
}


/* Die Karten sollen oben sauber beginnen */

.report-category-grid {
    margin-top: 0;
}


/* Aktive Karte */

.report-category-card-link .report-category-icon {
    background: #d71920;
}


/* Icon beim Hover minimal hervorheben */

.report-category-card-link:hover .report-category-icon {
    transform: scale(1.04);
}

.report-category-icon {
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}
/* =========================================================
   KONTAKTE – KOPFBEREICH LINKSBÜNDIG
   ========================================================= */

.contact-page-toolbar {
    align-items: stretch;
    text-align: left;
}

.contact-page-toolbar-heading {
    width: 100%;
    text-align: left;
}

.contact-page-toolbar-heading h2,
.contact-page-toolbar-heading p,
.contact-page-toolbar-heading .contact-edit-label {
    text-align: left;
}
/* =========================================================
   AUSWERTUNGEN – EXPORT
   ========================================================= */

.report-export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 18px 0;
}

.report-export-button {
    min-height: 42px;
    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 9px;

    background: #ffffff;

    color: #25292d;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.report-export-button:hover {
    transform: translateY(-1px);

    border-color: rgba(215, 25, 32, 0.30);

    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);

    color: #d71920;
}

.report-export-button svg {
    flex: 0 0 auto;
}
/* =========================================================
   DASHBOARD – LETZTER EINSATZ
   ========================================================= */

.latest-incident {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-top: 4px;
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: #f9fafb;
}

.latest-incident-icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.latest-incident-icon svg {
    width: 36px;
    height: 36px;

    display: block;

    color: #ffffff;
}


/* Einsatzarten */

.latest-incident-icon.fire {
    background: #cf1f2c;
}

.latest-incident-icon.technical {
    background: #2878d0;
}

.latest-incident-icon.rescue {
    background: #20965d;
}

.latest-incident-icon.abc {
    background: #e39a21;
}

.latest-incident-icon.other {
    background: #747a80;
}

.latest-incident-icon svg {
    width: 34px;
    height: 34px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}



.latest-incident-content {
    min-width: 0;
}

.latest-incident-meta {
    margin-bottom: 6px;

    color: #777b82;
    font-size: 11px;
    font-weight: 650;
}

.latest-incident-title {
    color: var(--red);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}

.latest-incident-catchword {
    margin-top: 5px;

    color: var(--text);
    font-size: 12px;
    font-weight: 650;
}

.latest-incident-location {
    display: flex;
    align-items: center;
    gap: 6px;

    margin-top: 12px;

    color: #666a70;
    font-size: 11px;
    font-weight: 650;
}

.latest-incident-location svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}



/* =====================================================
   INSPEKTION CONNECT – LEHRGANGSVERWALTUNG
   ===================================================== */

.course-management {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.course-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
    min-width: 0;
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 26px;
}

.course-eyebrow {
    display: block;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 9px;
}

.course-card-header h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}

.course-card-header p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.course-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 14px 20px;
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.course-total strong {
    font-size: 28px;
    font-weight: 800;
}

.course-total span {
    font-size: 12px;
    color: var(--muted);
}

/* SUCHE */

.course-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.course-search input {
    flex: 1;
    min-width: 220px;
    height: 46px;
    padding: 0 16px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}

.course-search input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(207,31,44,0.08);
}

.course-search button {
    height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--red);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.course-search button:hover {
    background: var(--red-dark);
}

.course-search a {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

/* TABELLEN */

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

.course-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.course-table th {
    padding: 15px 14px;
    text-align: left;
    background: #f7f8fa;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.course-table th:first-child {
    border-radius: 10px 0 0 10px;
}

.course-table th:last-child {
    border-radius: 0 10px 10px 0;
}

.course-table td {
    padding: 17px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.course-table tbody tr:last-child td {
    border-bottom: none;
}

.course-table tbody tr:hover {
    background: #fafbfc;
}

.course-table td strong {
    font-weight: 700;
}

.course-row-link {
    color: var(--red);
    font-weight: 700;
    white-space: nowrap;
}

.course-row-link:hover {
    text-decoration: underline;
}

.course-empty {
    padding: 35px !important;
    text-align: center;
    color: var(--muted) !important;
}

/* WEISSE ZURÜCK-KACHEL */

.course-top-actions {
    display: flex;
    align-items: center;
}

.course-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;

    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);

    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.course-back-button:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.course-back-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* STAMMDATEN */

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

.course-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 0;
}

.course-info span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: var(--muted);
}

.course-info strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    overflow-wrap: anywhere;
}

.course-info-wide {
    grid-column: 1 / -1;
}

/* STATUS */

.course-status {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    background: #f0f1f3;
    color: #555b63;
}

.course-status-confirmed {
    background: #eaf2ff;
    color: #255ca8;
}

.course-status-attended {
    background: #e8f7ee;
    color: #237548;
}

.course-status-waiting {
    background: #fff3dd;
    color: #94620c;
}

.course-status-cancelled,
.course-status-no_show {
    background: #fff0f1;
    color: #b42330;
}

/* RESPONSIVE */

@media (max-width: 700px) {
    .course-card {
        padding: 20px;
    }

    .course-card-header h2 {
        font-size: 21px;
    }

    .course-info-grid {
        grid-template-columns: 1fr;
    }

    .course-info-wide {
        grid-column: auto;
    }

    .course-search button {
        flex: 1;
    }
}

/* LEHRGANGSVERWALTUNG – ÜBERSICHT */

.course-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    background: var(--red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.course-create-button:hover {
    background: var(--red-dark);
    color: #fff;
}

.course-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.course-filters a {
    padding: 11px 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.course-filters a:hover {
    border-color: var(--red);
    color: var(--red);
}

.course-filters a.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
/* LEHRGANGSVERWALTUNG – ANMELDUNGEN */

.course-registration-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.course-registration-filters input,
.course-registration-filters select {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 13px;
}

.course-registration-filters input {
    flex: 2 1 220px;
}

.course-registration-filters select {
    flex: 1 1 160px;
}

.course-registration-filters button {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.course-registration-filters button:hover {
    background: var(--red-dark);
}

.course-filter-reset {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.course-filter-reset:hover {
    color: var(--red);
}

@media (max-width: 700px) {
    .course-registration-filters {
        flex-direction: column;
        align-items: stretch;
    }
}
/* LEHRGANGSVERWALTUNG – SEITENNAVIGATION */

.course-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.course-pagination-info {
    font-size: 13px;
    color: #64748b;
}

.course-pagination-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}

.course-pagination-links a {
    padding: 9px 14px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.course-pagination-links a:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.course-pagination-links span {
    font-weight: 600;
    color: #475569;
}


/* =====================================================
   IC DASHBOARD 2.0
   ===================================================== */

.ic-dashboard-stats {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.ic-dashboard-stats:empty {
    display: none;
}

.ic-dashboard-section {
    margin-bottom: 24px;
}

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

.ic-board-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
    color: #18181b;
}

.ic-board-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ic-board-category {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 6px;
    color: color-mix(in srgb, var(--category-color) 75%, #18181b);
    background: color-mix(in srgb, var(--category-color) 12%, white);
    font-size: 11px;
    font-weight: 700;
}

.ic-board-meta time {
    color: #71717a;
    font-size: 11px;
}

.ic-board-important {
    color: #cf1f2c;
    font-size: 11px;
    font-weight: 700;
}

.ic-board-card h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ic-board-card p {
    margin: 0 0 8px;
    color: #71717a;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ic-board-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e4e4e7;
}

.ic-board-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #cf1f2c;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.ic-board-link:hover {
    text-decoration: underline;
}

.ic-board-attachments {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #f4f4f5;
    color: #52525b;
    font-size: 11px;
    font-weight: 600;
}

.ic-board-attachments svg {
    width: 14px;
    height: 14px;
    color: #cf1f2c;
}

.ic-board-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(680px, calc(100% - 32px));
    max-height: 85vh;
    overflow: auto;
    padding: 28px;
    border: 0;
    border-top: 5px solid #cf1f2c;
    border-radius: 16px;
    background: #fff;
    color: #18181b;
    box-shadow: 0 24px 80px #0004;
}

.ic-board-dialog::backdrop {
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(3px);
}

.ic-board-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ic-board-close {
    border: 0;
    background: #f4f4f5;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
}

.ic-board-dialog h2 {
    margin: 18px 0 8px;
    overflow-wrap: anywhere;
}

.ic-board-author {
    color: #71717a;
    font-size: 12px;
    margin-bottom: 24px;
}

.ic-board-content {
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.ic-board-file-list {
    display: grid;
    gap: 10px;
    border-top: 1px solid #e4e4e7;
    margin-top: 24px;
    padding-top: 18px;
}

.ic-board-file {
    padding: 12px;
    background: #f4f4f5;
    border-radius: 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.ic-dashboard-list {
    display: flex;
    flex-direction: column;
}

.ic-dashboard-list-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e4e4e7;
}

.ic-dashboard-list-row:last-child {
    border-bottom: 0;
}

.ic-dashboard-list-row .latest-incident-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.ic-dashboard-list-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ic-dashboard-list-content strong {
    font-size: 14px;
}

.ic-dashboard-list-content span {
    font-size: 12px;
}

.ic-dashboard-list-content small {
    color: #71717a;
    font-size: 11px;
}

.ic-dashboard-list-link {
    text-decoration: none;
    color: inherit;
}

.ic-dashboard-list-link:hover strong {
    color: #cf1f2c;
}

.ic-dashboard-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 52px;
    background: #f4f4f5;
    border-radius: 9px;
}

.ic-dashboard-date strong {
    font-size: 21px;
    color: #cf1f2c;
    line-height: 1.1;
}

.ic-dashboard-date small {
    color: #71717a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.ic-dashboard-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #e4e4e7;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}

.ic-dashboard-task:last-child {
    border-bottom: 0;
}

.ic-dashboard-task strong {
    min-width: 32px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #fef2f2;
    color: #cf1f2c;
    text-align: center;
}

.ic-dashboard-all-done {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
}

.ic-dashboard-all-done > span {
    color: #15803d;
    font-size: 26px;
    font-weight: 700;
}

.ic-dashboard-all-done div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ic-dashboard-all-done small {
    color: #71717a;
}

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

.ic-quick-grid a {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 17px;
    border: 1px solid #e4e4e7;
    border-left: 3px solid #cf1f2c;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.ic-quick-grid a:hover {
    background: #f4f4f5;
    border-color: #cf1f2c;
    color: #18181b;
}

.ic-quick-grid span {
    font-size: 14px;
    font-weight: 700;
}

.ic-quick-grid small {
    color: #71717a;
    font-size: 11px;
}

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

@media (max-width: 650px) {
    .ic-board-grid,
    .ic-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .ic-board-dialog {
        padding: 20px;
    }
}


/* =====================================================
   IC DASHBOARD – OPTISCHE OPTIMIERUNGEN
   ===================================================== */

.ic-dashboard-list-row .latest-incident-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: none;
}

.ic-dashboard-list-row .latest-incident-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.ic-dashboard-list-row .latest-incident-icon.fire {
    background: #cf1f2c15;
    color: #cf1f2c;
}

.ic-dashboard-list-row .latest-incident-icon.technical {
    background: #d9770615;
    color: #d97706;
}

.ic-dashboard-list-row .latest-incident-icon.rescue {
    background: #16a34a15;
    color: #16a34a;
}

.ic-dashboard-list-row .latest-incident-icon.abc {
    background: #9333ea15;
    color: #9333ea;
}

.ic-dashboard-list-row .latest-incident-icon.other {
    background: #64748b15;
    color: #64748b;
}


/* =====================================================
   IC SIDEBAR – SCROLLBAR
   ===================================================== */

.sidebar,
.sidebar .navigation {
    scrollbar-width: thin;
    scrollbar-color: #484c54 transparent;
}

.sidebar::-webkit-scrollbar,
.sidebar .navigation::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.sidebar::-webkit-scrollbar-track,
.sidebar .navigation::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar .navigation::-webkit-scrollbar-thumb {
    background: #484c54;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar .navigation::-webkit-scrollbar-thumb:hover {
    background: #737780;
}

.sidebar::-webkit-scrollbar-corner,
.sidebar .navigation::-webkit-scrollbar-corner {
    background: transparent;
}

/* IC Dashboard – kontrastreiche Einsatzsymbole */

.ic-dashboard-list-row .latest-incident-icon.fire {
    background: #cf1f2c;
}

.ic-dashboard-list-row .latest-incident-icon.technical {
    background: #d97706;
}

.ic-dashboard-list-row .latest-incident-icon.rescue {
    background: #15803d;
}

.ic-dashboard-list-row .latest-incident-icon.abc {
    background: #9333ea;
}

.ic-dashboard-list-row .latest-incident-icon.other {
    background: #64748b;
}

.ic-dashboard-list-row .latest-incident-icon {
    color: #ffffff;
    opacity: 1;
}

.ic-dashboard-list-row .latest-incident-icon svg,
.ic-dashboard-list-row .latest-incident-icon svg * {
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2;
    opacity: 1;
}


/* =====================================================
   IC SIDEBAR – AUTO-HIDE SCROLLBAR
   ===================================================== */

.sidebar,
.sidebar .navigation {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.sidebar.is-scrolling,
.sidebar .navigation.is-scrolling {
    scrollbar-color: #484c54 transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.sidebar .navigation::-webkit-scrollbar-thumb {
    background: transparent;
}

.sidebar.is-scrolling::-webkit-scrollbar-thumb,
.sidebar .navigation.is-scrolling::-webkit-scrollbar-thumb {
    background: #484c54;
    border-radius: 10px;
}



/* IC Dashboard – Abstände */

.ic-dashboard-stats {
    margin-bottom: 24px;
}

.ic-dashboard-stats + .ic-dashboard-section {
    margin-top: 24px;
}

.ic-dashboard-section > .panel-header {
    margin-bottom: 20px;
}

.ic-board-grid {
    margin-top: 20px;
}



/* =====================================================
   IC SCHWARZES BRETT – ARCHIV
   ===================================================== */

.ic-board-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.ic-board-filter input,
.ic-board-filter select {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d4d4d8;
    border-radius: 9px;
    background: #fff;
    color: #18181b;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.ic-board-filter input {
    flex: 1;
    min-width: 180px;
}

.ic-board-filter select {
    min-width: 200px;
}

.ic-board-filter input:focus,
.ic-board-filter select:focus {
    border-color: #cf1f2c;
    box-shadow: 0 0 0 3px #cf1f2c15;
}

.ic-board-result-count {
    color: #71717a;
    font-size: 12px;
    margin-bottom: 18px;
}

.ic-board-card[hidden],
#bulletin-no-results[hidden] {
    display: none !important;
}

.ic-board-download {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #18181b;
    text-decoration: none;
    border: 1px solid transparent;
}

.ic-board-download svg {
    color: #cf1f2c;
    flex-shrink: 0;
}

.ic-board-download:hover {
    border-color: #cf1f2c;
    background: #fef2f2;
}

#bulletin-no-results {
    padding: 30px;
    text-align: center;
}

@media (max-width: 650px) {
    .ic-board-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .ic-board-filter input,
    .ic-board-filter select {
        width: 100%;
        min-width: 0;
    }
}



/* =====================================================
   IC SCHWARZES BRETT – MITTEILUNGSVERWALTUNG
   ===================================================== */

.ic-bm-header {
    flex-wrap: wrap;
    gap: 16px;
}

.ic-bm-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ic-bm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #fff;
    color: #27272a;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ic-bm-button:hover {
    background: #f4f4f5;
}

.ic-bm-button.ic-bm-primary {
    background: #cf1f2c;
    border-color: #cf1f2c;
    color: #fff;
}

.ic-bm-button.ic-bm-primary:hover {
    background: #b61925;
    color: #fff;
}

.ic-bm-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    margin-top: 20px;
}

.ic-bm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ic-bm-table th {
    padding: 14px 16px;
    text-align: left;
    background: #f4f4f5;
    color: #52525b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.ic-bm-table td {
    padding: 16px;
    border-top: 1px solid #e4e4e7;
    vertical-align: middle;
}

.ic-bm-table tbody tr:hover {
    background: #fafafa;
}

.ic-bm-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 180px;
    overflow-wrap: anywhere;
}

.ic-bm-title strong {
    font-size: 14px;
}

.ic-bm-title small {
    color: #71717a;
    font-size: 11px;
}

.ic-bm-status {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.ic-bm-status.published {
    background: #dcfce7;
    color: #166534;
}

.ic-bm-status.draft {
    background: #fef3c7;
    color: #92400e;
}

.ic-bm-visibility {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ic-bm-visibility span {
    padding: 5px 8px;
    border-radius: 5px;
    background: #e4e4e7;
    color: #3f3f46;
    font-size: 11px;
    font-weight: 600;
}

.ic-bm-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e4e4e7;
    border-radius: 7px;
    background: #fff;
    color: #52525b;
}

.ic-bm-icon-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ic-bm-icon-button:hover {
    border-color: #71717a;
    background: #f4f4f5;
}

.ic-bm-icon-button.danger {
    color: #cf1f2c;
}

.ic-bm-icon-button.danger:hover {
    background: #fef2f2;
    border-color: #cf1f2c;
}

.ic-bm-empty {
    padding: 30px;
    text-align: center;
    color: #71717a;
}

.ic-bm-table tr[hidden],
#management-empty[hidden] {
    display: none !important;
}

.ic-bm-message {
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 8px;
    background: #f4f4f5;
    color: #27272a;
    font-size: 13px;
}



/* =====================================================
   IC SCHWARZES BRETT – FORMULARE
   ===================================================== */

.ic-bm-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ic-bm-form > .ic-dashboard-section {
    margin-bottom: 0;
}

.ic-bm-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.ic-bm-full {
    grid-column: 1 / -1;
}

.ic-bm-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.ic-bm-field > label {
    font-size: 13px;
    font-weight: 600;
}

.ic-bm-form .ic-form-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #fff;
    color: #18181b;
    font: inherit;
    font-size: 14px;
}

.ic-bm-form textarea.ic-form-input {
    min-height: 220px;
    resize: vertical;
    line-height: 1.7;
}

.ic-bm-form .ic-form-input:focus {
    outline: none;
    border-color: #cf1f2c;
    box-shadow: 0 0 0 3px #cf1f2c15;
}

.ic-bm-options {
    display: grid;
    gap: 12px;
}

.ic-bm-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e4e4e7;
    border-radius: 9px;
    cursor: pointer;
}

.ic-bm-option:hover {
    border-color: #a1a1aa;
}

.ic-bm-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #cf1f2c;
}

.ic-bm-option > span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ic-bm-option strong {
    font-size: 14px;
}

.ic-bm-option small {
    color: #71717a;
    font-size: 12px;
    line-height: 1.5;
}

.ic-bm-attachment-row {
    padding: 18px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    margin-bottom: 12px;
}

.ic-bm-attachment-row[hidden] {
    display: none !important;
}

.ic-bm-attachment-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ic-bm-existing-file {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: #f4f4f5;
    border-radius: 7px;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.ic-bm-existing-file span {
    color: #71717a;
    font-size: 11px;
}

.ic-bm-existing-file a {
    color: #cf1f2c;
    font-size: 13px;
    font-weight: 600;
}

.ic-bm-remove {
    margin-top: 14px;
    border: 0;
    background: transparent;
    color: #cf1f2c;
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ic-bm-remove:hover {
    text-decoration: underline;
}

.ic-bm-hint {
    display: block;
    margin-top: 14px;
    color: #71717a;
    font-size: 12px;
}

.ic-bm-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
}

.ic-bm-form .errorlist {
    list-style: none;
    margin: 8px 0;
    padding: 12px;
    border-radius: 7px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
}

.ic-bm-delete-panel {
    max-width: 640px;
    margin: 0 auto;
    padding: 30px;
}

.ic-bm-delete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #fef2f2;
    color: #cf1f2c;
    margin-bottom: 20px;
}

.ic-bm-delete-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ic-bm-delete-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    margin: 20px 0;
    background: #f4f4f5;
    border-radius: 9px;
}

.ic-bm-delete-panel p {
    line-height: 1.7;
    margin-bottom: 24px;
}

.ic-bm-delete-panel .ic-bm-actions {
    justify-content: flex-end;
}

@media (max-width: 750px) {

    .ic-bm-form-grid,
    .ic-bm-attachment-fields {
        grid-template-columns: 1fr;
    }

    .ic-bm-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .ic-bm-form-footer .ic-bm-actions {
        flex-direction: column;
        align-items: stretch;
    }

}


.ic-bm-board-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}



/* =====================================================
   IC MITTEILUNGSKATEGORIEN
   ===================================================== */

.ic-category-color {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
}

.ic-category-color > span {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.ic-bm-status.inactive {
    background: #e4e4e7;
    color: #71717a;
}

.ic-bm-icon-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ic-category-picker {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ic-color-input {
    width: 65px;
    height: 44px;
    padding: 3px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.ic-category-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.ic-category-presets button {
    width: 34px;
    height: 34px;
    border: 2px solid transparent;
    border-radius: 7px;
    cursor: pointer;
}

.ic-category-presets button:hover {
    outline: 2px solid #a1a1aa;
    outline-offset: 3px;
}

.ic-category-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: #f4f4f5;
    border-radius: 9px;
}

.ic-category-preview small {
    color: #71717a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}



/* =====================================================
   IC UPLOADHINWEIS
   ===================================================== */

.ic-bm-upload-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 9px;
    color: #52525b;
    font-size: 12px;
    line-height: 1.6;
}

.ic-bm-upload-info > svg {
    flex-shrink: 0;
    color: #cf1f2c;
    margin-top: 2px;
}

.ic-bm-upload-info strong {
    display: block;
    color: #27272a;
    font-size: 13px;
    margin-bottom: 5px;
}

.ic-bm-upload-info p {
    margin: 3px 0;
}



/* =====================================================
   EXTERNES SCHWARZES BRETT – VERWALTUNG
   ===================================================== */

.ic-external-bulletin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.ic-external-bulletin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    box-sizing: border-box;
    border: 1px solid #dfe1e5;
    border-radius: 9px;
    background: #fff;
    color: #30343a;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.ic-external-bulletin-button:hover {
    background: #f5f5f6;
    border-color: #bfc3c8;
    text-decoration: none;
}

.ic-external-bulletin-primary {
    background: #cf1f2c;
    border-color: #cf1f2c;
    color: #fff;
}

.ic-external-bulletin-primary:hover {
    background: #b71925;
    border-color: #b71925;
    color: #fff;
}

@media (max-width: 600px) {

    .ic-external-bulletin-actions {
        justify-content: stretch;
    }

    .ic-external-bulletin-button {
        flex: 1 1 auto;
    }

}



/* =====================================================
   BENUTZERGRUPPENVERWALTUNG
   ===================================================== */

.ic-group-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ic-group-filters input {
    flex: 1;
    min-width: 180px;
}

.ic-group-filters select {
    width: 180px;
}

.ic-group-filters .ic-form-input {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    box-sizing: border-box;
}

.ic-group-description {
    display: block;
    margin-top: 5px;
    color: #71717a;
    font-size: 12px;
    font-weight: 400;
}

.ic-group-member-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.ic-bm-table tr[hidden] {
    display: none !important;
}

@media (max-width: 600px) {

    .ic-group-filters input,
    .ic-group-filters select {
        width: 100%;
        flex: 1 1 100%;
    }

}



/* =====================================================
   BENUTZERGRUPPEN - BENUTZERZUWEISUNG
   ===================================================== */

.ic-user-groups {
    grid-column: 1 / -1;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid rgba(128,128,128,.2);
}

.ic-user-groups-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
}

.ic-user-groups-header strong {
    font-size: 14px;
    font-weight: 600;
}

.ic-user-groups-header small {
    font-size: 12px;
    color: #71717a;
}

.ic-user-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.ic-user-group-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid rgba(128,128,128,.25);
    border-radius: 9px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    box-sizing: border-box;
}

.ic-user-group-option:hover {
    border-color: #cf1f2c;
}

.ic-user-group-option:has(input:checked) {
    border-color: #cf1f2c;
    background: rgba(207,31,44,.06);
}

.ic-user-group-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #cf1f2c;
    cursor: pointer;
}



/* =====================================================
   BENUTZERGRUPPEN - MITGLIEDERÜBERSICHT
   ===================================================== */

.ic-group-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.ic-group-link:hover {
    color: #cf1f2c;
    text-decoration: underline;
}

.ic-group-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0 24px;
}

.ic-group-stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid rgba(128,128,128,.2);
    border-radius: 12px;
    background: rgba(128,128,128,.04);
}

.ic-group-stat small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #71717a;
}

.ic-group-stat strong {
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

.ic-group-member-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ic-group-member-filters input {
    flex: 1;
    min-width: 220px;
}

.ic-group-member-filters select {
    max-width: 220px;
}

.ic-group-member-filters .ic-form-input {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(128,128,128,.25);
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
}

.ic-group-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
}

.ic-group-page-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ic-group-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid rgba(128,128,128,.25);
    border-radius: 7px;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.ic-group-page:hover {
    border-color: #cf1f2c;
    color: #cf1f2c;
}

.ic-group-page.active {
    background: #cf1f2c;
    border-color: #cf1f2c;
    color: #fff;
}

.ic-group-page-ellipsis {
    padding: 0 6px;
    color: #71717a;
}

@media (max-width: 700px) {

    .ic-group-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ic-group-member-filters input,
    .ic-group-member-filters select {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

}



/* BENUTZERGRUPPEN - MITGLIEDER HINZUFÜGEN */

.ic-group-select,
#select-page {
    width: 17px;
    height: 17px;
    accent-color: #cf1f2c;
    cursor: pointer;
}

.ic-group-row-selected {
    background: rgba(207,31,44,.06) !important;
}

.ic-group-selection-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(128,128,128,.2);
    border-radius: 10px;
    background: rgba(128,128,128,.04);
}

.ic-group-selection-footer small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #71717a;
}

.ic-group-selection-footer button:disabled {
    opacity: .45;
    cursor: not-allowed;
}



/* MITTEILUNGSKATEGORIEN - BERECHTIGUNGSMATRIX */

.ic-category-permissions {
    margin-top: 16px;
}

.ic-category-permissions th:nth-child(2),
.ic-category-permissions th:nth-child(3),
.ic-category-permissions td:nth-child(2),
.ic-category-permissions td:nth-child(3) {
    text-align: center;
    width: 140px;
}

.ic-category-permissions input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: #cf1f2c;
    cursor: pointer;
}

.ic-category-permissions input:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.ic-category-permissions td small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: .65;
}

.ic-permission-section td {
    padding: 13px 16px;
    background: rgba(128,128,128,.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ic-permission-inactive {
    opacity: .55;
}

.ic-permission-info {
    margin-top: 20px;
    padding: 16px 20px;
    border-left: 3px solid #cf1f2c;
    border-radius: 6px;
    background: rgba(128,128,128,.06);
    font-size: 13px;
    line-height: 1.6;
}

.ic-permission-info p {
    margin: 8px 0 0;
}

@media (max-width: 600px) {

    .ic-category-permissions th:nth-child(2),
    .ic-category-permissions th:nth-child(3),
    .ic-category-permissions td:nth-child(2),
    .ic-category-permissions td:nth-child(3) {
        width: 80px;
    }

}



/* SCHWARZES BRETT - RÄUMLICHE EMPFÄNGERAUSWAHL */

.ic-notice-scope-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.ic-notice-scope-options input,
.ic-notice-target-option input {
    width: 18px;
    height: 18px;
    accent-color: #cf1f2c;
    flex-shrink: 0;
}

.ic-notice-target-box {
    padding: 20px;
    border: 1px solid rgba(128,128,128,.2);
    border-radius: 10px;
    margin-top: 16px;
    background: rgba(128,128,128,.04);
}

.ic-notice-target-box h4 {
    margin: 0 0 16px;
}

.ic-notice-target-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ic-notice-target-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(128,128,128,.18);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.ic-notice-target-option:has(input:checked) {
    border-color: #cf1f2c;
    background: rgba(207,31,44,.07);
}

#notice-department-search {
    width: 100%;
    margin-bottom: 16px;
}

#notice-department-list {
    max-height: 380px;
    overflow-y: auto;
}

.ic-notice-target-summary {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    margin-top: 20px;
    border-left: 3px solid #cf1f2c;
    border-radius: 6px;
    background: rgba(128,128,128,.06);
    font-size: 13px;
}

#notice-target-section[hidden],
.ic-notice-target-box[hidden],
.ic-notice-target-option[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .ic-notice-target-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ic-notice-scope-options,
    .ic-notice-target-grid {
        grid-template-columns: 1fr;
    }
}



/* SCHWARZES BRETT - LIVE-EMPFAENGERVORSCHAU */

.ic-recipient-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.ic-recipient-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid rgba(128,128,128,.2);
    border-radius: 10px;
    background: rgba(128,128,128,.05);
}

.ic-recipient-card small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: .7;
}

.ic-recipient-card strong {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.ic-recipient-card span {
    font-size: 13px;
    opacity: .65;
}

.ic-recipient-mail {
    border-color: rgba(207,31,44,.4);
}

.ic-recipient-mail strong {
    color: #cf1f2c;
}

.ic-recipient-status {
    margin-top: 16px;
    font-size: 13px;
    opacity: .8;
}

.ic-recipient-warning {
    margin-top: 12px;
    padding: 12px 16px;
    border-left: 3px solid #eab308;
    border-radius: 6px;
    background: rgba(234,179,8,.08);
    font-size: 13px;
}

.ic-recipient-warning[hidden] {
    display: none !important;
}

@media (max-width: 600px) {

    .ic-recipient-grid {
        gap: 8px;
    }

    .ic-recipient-card {
        padding: 12px;
    }

    .ic-recipient-card strong {
        font-size: 28px;
    }

}






/* IC – Kenntnisnahme von Mitteilungen */

.ic-acknowledgement-action {
    margin-top: 24px;
    padding: 18px;
    background: #f5f6f8;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #20252b;
}

.ic-notice-dialog > .ic-acknowledgement-action {
    margin: 0 30px 24px;
}

.ic-acknowledgement-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ic-acknowledgement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #fce8ea;
    color: #cf1f2c;
    border-radius: 10px;
}

.ic-acknowledgement-text {
    flex: 1;
    min-width: 0;
}

.ic-acknowledgement-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.ic-acknowledgement-action p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.ic-acknowledgement-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.ic-acknowledgement-action .ic-acknowledgement-overdue {
    color: #cf1f2c;
    font-weight: 600;
}

.ic-acknowledgement-deadline {
    font-weight: 600;
}

.ic-acknowledgement-confirmed {
    color: #198754;
}

@media (max-width: 600px) {

    .ic-notice-dialog > .ic-acknowledgement-action {
        margin: 0 16px 16px;
    }

    .ic-acknowledgement-buttons {
        flex-direction: column;
    }

    .ic-acknowledgement-buttons button {
        width: 100%;
    }

}


/* Sekundäre Aktion bei offener Kenntnisnahme */

.ic-notice-dialog .ic-modal-close.ic-modal-close-secondary {
    background: #fff;
    color: #475569;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.ic-notice-dialog .ic-modal-close.ic-modal-close-secondary:hover {
    background: #f3f4f6;
    color: #20252b;
}


/* Kenntnisnahme – Fortschrittsanzeige */

.ic-ack-progress {
    min-width: 140px;
    max-width: 210px;
}

.ic-ack-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 7px;
}

.ic-ack-progress-head span {
    color: #71717a;
    font-size: 12px;
}

.ic-ack-progress-track {
    height: 6px;
    border-radius: 6px;
    background: #e5e7eb;
    overflow: hidden;
}

.ic-ack-progress-fill {
    height: 100%;
    border-radius: 6px;
    background: #cf1f2c;
}

.ic-ack-progress-label {
    margin-top: 6px;
    font-size: 11px;
    color: #71717a;
}

.ic-ack-progress.is-complete .ic-ack-progress-fill {
    background: #198754;
}

.ic-ack-progress.is-complete .ic-ack-progress-label {
    color: #198754;
    font-weight: 600;
}

.ic-ack-progress-muted {
    font-size: 12px;
    color: #71717a;
}


/* Kenntnisnahmeverwaltung */

.ic-ack-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 13px;
    color: #71717a;
    margin: 16px 0 24px;
}

.ic-ack-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ic-ack-stat {
    padding: 20px;
    border: 1px solid #e4e4e7;
    border-top: 3px solid #52525b;
    border-radius: 12px;
    background: #fff;
}

.ic-ack-stat span {
    display: block;
    font-size: 13px;
    color: #71717a;
    margin-bottom: 10px;
}

.ic-ack-stat strong {
    font-size: 30px;
    line-height: 1;
    color: #20252b;
}

.ic-ack-stat.confirmed {
    border-top-color: #198754;
}

.ic-ack-stat.confirmed strong {
    color: #198754;
}

.ic-ack-stat.opened {
    border-top-color: #d97706;
}

.ic-ack-stat.opened strong {
    color: #d97706;
}

.ic-ack-stat.pending {
    border-top-color: #cf1f2c;
}

.ic-ack-stat.pending strong {
    color: #cf1f2c;
}

.ic-ack-summary {
    padding: 20px;
    background: #f5f6f8;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    margin-bottom: 24px;
}

.ic-ack-summary .ic-ack-progress-track {
    height: 10px;
    margin-top: 12px;
}

.ic-ack-summary-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #71717a;
}

.ic-ack-filter {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr;
    gap: 14px;
    align-items: end;
    margin-bottom: 20px;
}

.ic-ack-filter .ic-form-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ic-ack-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ic-ack-results {
    font-size: 12px;
    color: #71717a;
    margin-bottom: 12px;
}

.ic-ack-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ic-ack-status.confirmed {
    color: #166534;
    background: #dcfce7;
}

.ic-ack-status.opened {
    color: #92400e;
    background: #fef3c7;
}

.ic-ack-status.pending {
    color: #991b1b;
    background: #fee2e2;
}

.ic-ack-overdue {
    color: #cf1f2c;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.ic-ack-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
    font-size: 13px;
    color: #71717a;
}

.ic-ack-pagination-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ic-ack-page-number {
    padding: 0 8px;
    font-weight: 600;
}

.ic-ack-detail-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    padding: 8px;
    margin: -8px;
}

.ic-ack-detail-link:hover {
    background: #f5f6f8;
}

.ic-ack-detail-hint {
    display: block;
    margin-top: 7px;
    color: #cf1f2c;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .ic-ack-stat-grid,
    .ic-ack-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .ic-ack-filter {
        grid-template-columns: 1fr;
    }

    .ic-ack-stat {
        padding: 14px;
    }

    .ic-ack-stat strong {
        font-size: 24px;
    }

    .ic-ack-pagination {
        justify-content: center;
    }
}


/* Individuelles Ablaufdatum nur bei Auswahl anzeigen */

#ic-custom-expiry[hidden] {
    display: none !important;
}


/* Archivierte Mitteilungen */

.ic-bm-status.archived {
    background: rgba(113, 113, 122, 0.15);
    color: #71717a;
    border: 1px solid rgba(113, 113, 122, 0.25);
}

.ic-bm-expiry {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #71717a;
    line-height: 1.4;
}


/* Archivfilter und Kennzeichnung */

.ic-board-card[hidden],
.notice[data-archive][hidden] {
    display: none !important;
}

.ic-board-filter {
    flex-wrap: wrap;
}

#bulletin-archive,
#archive-status {
    min-width: 190px;
}

.ic-board-archived {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    margin: 5px 0;
    border-radius: 6px;
    background: rgba(113, 113, 122, 0.12);
    border: 1px solid rgba(113, 113, 122, 0.25);
    color: #71717a;
    font-size: 11px;
    font-weight: 600;
}


/* Zeitgesteuerte Veröffentlichung */

.ic-publication-settings {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.ic-publication-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.ic-publication-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
}

.ic-publication-option:has(input:checked) {
    border-color: #cf1f2c;
    background: rgba(207, 31, 44, 0.07);
}

.ic-publication-option input {
    accent-color: #cf1f2c;
}

#ic-scheduled-publication {
    margin-top: 18px;
}

#ic-scheduled-publication[hidden] {
    display: none !important;
}

.ic-publication-info {
    margin-top: 12px;
    padding: 12px;
    border-left: 3px solid #cf1f2c;
    background: rgba(128, 128, 128, 0.06);
    border-radius: 5px;
    font-size: 13px;
}


/* Veröffentlichungsstatus */

.ic-bm-status.scheduled {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.ic-bm-status.pending {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}


/* =====================================================
   IC GLOBAL MESSAGES
   ===================================================== */

.ic-system-messages {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.ic-system-messages:empty {
    display: none;
}

.ic-system-message {
    --ic-message-color: #80b5ef;
    --ic-message-bg: rgba(65, 130, 210, .10);

    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid var(--ic-message-color);
    border-left: 4px solid var(--ic-message-color);
    border-radius: 10px;
    background: var(--ic-message-bg);
}

.ic-system-message.success {
    --ic-message-color: #49b77b;
    --ic-message-bg: rgba(49, 165, 105, .10);
}

.ic-system-message.warning {
    --ic-message-color: #dba94a;
    --ic-message-bg: rgba(219, 169, 74, .10);
}

.ic-system-message.error {
    --ic-message-color: #e45b64;
    --ic-message-bg: rgba(228, 91, 100, .10);
}

.ic-system-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    height: 25px;
    border: 2px solid var(--ic-message-color);
    border-radius: 50%;
    color: var(--ic-message-color);
    font-weight: 700;
    font-size: 14px;
}

.ic-system-message-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.5;
}

.ic-system-message-content strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ic-message-color);
}

.ic-system-message-close {
    background: transparent;
    border: 0;
    color: inherit;
    opacity: .7;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.ic-system-message-close:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .ic-system-message {
        padding: 12px;
        gap: 10px;
    }
}


/* =====================================================
   IC ACK REMINDER HISTORY
   ===================================================== */

.ic-ack-selection-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
}

.ic-ack-selection-hint,
.ic-ack-reminder-meta {
    font-size: 12px;
    opacity: .75;
}

.ic-ack-check-cell {
    width: 38px;
    text-align: center;
}

.ic-ack-check-cell input {
    width: 17px;
    height: 17px;
    accent-color: #dc2626;
    cursor: pointer;
}

.ic-ack-check-cell input:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.ic-ack-selection-bar button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.ic-ack-reminder-cell {
    min-width: 180px;
}

.ic-ack-mail-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    margin: 5px 0;
}

.ic-ack-mail-status.pending,
.ic-ack-mail-status.processing {
    background: rgba(245,158,11,.14);
    color: #d97706;
}

.ic-ack-mail-status.sent {
    background: rgba(22,163,74,.14);
    color: #16a34a;
}

.ic-ack-mail-status.failed {
    background: rgba(220,38,38,.14);
    color: #dc2626;
}

.ic-ack-mail-status.skipped {
    background: rgba(148,163,184,.14);
    color: #94a3b8;
}

.ic-ack-reminder-history {
    margin-top: 6px;
    font-size: 12px;
}

.ic-ack-reminder-history summary {
    cursor: pointer;
    font-weight: 600;
}

.ic-ack-history-entry {
    padding: 10px;
    margin-top: 8px;
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 8px;
    background: rgba(148,163,184,.05);
    line-height: 1.6;
}

.ic-ack-history-error {
    color: #dc2626;
    overflow-wrap: anywhere;
}


/* =====================================================
   IC ACK VERSION NAVIGATION AND MODERN FILTERS
   ===================================================== */

.ic-ack-version-panel,
.ic-ack-filter.ic-ack-filter-modern {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 20px;
    color: #20252b;
    margin: 20px 0;
}

.ic-ack-version-heading,
.ic-ack-filter-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #71717a;
}

.ic-ack-version-heading {
    margin-bottom: 14px;
}

.ic-ack-version-navigation {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 6px;
}

.ic-ack-version-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 auto;
    gap: 5px;
    min-width: 125px;
    padding: 13px 20px;
    border: 1px solid #d4d4d8;
    border-radius: 9px;
    background: #f5f6f8;
    color: #20252b;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.ic-ack-version-button strong {
    font-size: 15px;
    font-weight: 700;
}

.ic-ack-version-button span {
    font-size: 11px;
    color: #71717a;
}

.ic-ack-version-button:hover {
    background: #e4e4e7;
    border-color: #cf1f2c;
    color: #cf1f2c;
}

.ic-ack-version-button.is-active {
    background: #cf1f2c;
    border-color: #cf1f2c;
    color: #cf1f2c;
}

.ic-ack-version-button.is-active span {
    color: #fff;
    opacity: .85;
}

.ic-ack-version-button:focus-visible {
    outline: 2px solid #cf1f2c;
    outline-offset: 2px;
}


/* Empfängerfilter */

.ic-ack-filter.ic-ack-filter-modern {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1.4fr)
        minmax(0, 1.2fr);
    gap: 18px;
    align-items: end;
}

.ic-ack-filter-heading {
    grid-column: 1 / -1;
    padding-bottom: 4px;
}

.ic-ack-filter-modern .ic-bm-field > label {
    color: #3f3f46;
    font-size: 12px;
    font-weight: 600;
}

.ic-ack-filter-modern .ic-form-input,
.ic-ack-page-size .ic-form-input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background-color: #ffffff;
    color: #20252b;
    font: inherit;
    font-size: 13px;
    color-scheme: light;
    transition: border-color .15s, box-shadow .15s;
}

.ic-ack-filter-modern .ic-form-input:focus,
.ic-ack-page-size .ic-form-input:focus {
    outline: none;
    border-color: #cf1f2c;
    box-shadow: 0 0 0 3px rgba(207,31,44,.18);
}

.ic-ack-filter-modern .ic-form-input::placeholder {
    color: #a1a1aa;
}

.ic-ack-filter-modern select.ic-form-input,
.ic-ack-page-size select.ic-form-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.ic-ack-filter-modern select option,
.ic-ack-page-size select option {
    background: #ffffff;
    color: #20252b;
}


/* Suchfeld */

.ic-ack-search-wrap {
    position: relative;
}

.ic-ack-search-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: #71717a;
    pointer-events: none;
}

.ic-ack-search-wrap .ic-form-input {
    padding-left: 40px;
}


/* Filterschaltflächen */

.ic-ack-filter-modern .ic-ack-filter-actions {
    grid-column: 1 / -1;
    padding-top: 4px;
    gap: 10px;
}

.ic-ack-filter-modern .ic-ack-filter-actions .ic-bm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #f5f6f8;
    color: #20252b;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
}

.ic-ack-filter-modern .ic-ack-filter-actions .ic-bm-primary {
    background: #cf1f2c;
    border-color: #cf1f2c;
    color: #fff;
}

.ic-ack-filter-modern .ic-ack-filter-actions .ic-bm-button:hover {
    filter: brightness(1.12);
}


/* Tabellenkopf */

.ic-ack-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0 16px;
}

.ic-ack-table-toolbar .ic-ack-results {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

.ic-ack-table-toolbar .ic-ack-results strong {
    font-size: 16px;
    color: inherit;
}

.ic-ack-page-size {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ic-ack-page-size label {
    font-size: 12px;
    font-weight: 500;
}

.ic-ack-page-size .ic-form-input {
    width: 85px;
    min-height: 36px;
    padding-top: 7px;
    padding-bottom: 7px;
}


/* Responsive Darstellung */

@media (max-width: 1000px) {

    .ic-ack-filter.ic-ack-filter-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ic-ack-search-field {
        grid-column: 1 / -1;
    }

}

@media (max-width: 550px) {

    .ic-ack-filter.ic-ack-filter-modern {
        grid-template-columns: minmax(0, 1fr);
    }

    .ic-ack-version-panel,
    .ic-ack-filter.ic-ack-filter-modern {
        padding: 14px;
    }

    .ic-ack-version-button {
        min-width: 100px;
        padding: 12px 15px;
    }

    .ic-ack-filter-modern .ic-ack-filter-actions {
        justify-content: stretch;
    }

    .ic-ack-filter-modern .ic-ack-filter-actions .ic-bm-button {
        flex: 1;
    }

}



/* IC ACK - Schriftfarbe der aktiven Version */

.ic-ack-version-navigation .ic-ack-version-button.is-active,
.ic-ack-version-navigation .ic-ack-version-button.is-active strong,
.ic-ack-version-navigation .ic-ack-version-button.is-active span,
.ic-ack-version-navigation .ic-ack-version-button.is-active:hover {
    color: #ffffff !important;
}

.ic-ack-version-navigation .ic-ack-version-button.is-active {
    background: #cf1f2c;
    border-color: #cf1f2c;
}

.ic-ack-version-navigation .ic-ack-version-button.is-active span {
    opacity: 1;
}



/* =====================================================
   IC BULLETIN REVISION HISTORY
   ===================================================== */

.ic-revision-page {
    color: #20252b;
}

.ic-revision-muted {
    color: #71717a;
    font-size: 13px;
    line-height: 1.6;
}

.ic-revision-timeline {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.ic-revision-card {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-left: 4px solid #a1a1aa;
    border-radius: 12px;
    overflow: hidden;
}

.ic-revision-card.is-latest {
    border-left-color: #cf1f2c;
}

.ic-revision-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    cursor: pointer;
    list-style: none;
}

.ic-revision-header::-webkit-details-marker {
    display: none;
}

.ic-revision-header:hover {
    background: #fafafa;
}

.ic-revision-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 10px;
    background: #f4f4f5;
    color: #52525b;
    font-size: 19px;
    font-weight: 700;
}

.ic-revision-card.is-latest .ic-revision-number {
    background: #cf1f2c;
    color: #fff !important;
}

.ic-revision-heading {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
}

.ic-revision-heading strong {
    font-size: 16px;
    color: #20252b;
}

.ic-revision-heading span {
    font-size: 14px;
}

.ic-revision-heading small {
    color: #71717a;
    font-size: 12px;
}

.ic-revision-badge {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f4f4f5;
    color: #52525b;
    font-size: 11px;
    font-weight: 600;
}

.ic-revision-badge.current {
    background: #dcfce7;
    color: #166534;
}

.ic-revision-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #71717a;
    border-bottom: 2px solid #71717a;
    transform: rotate(45deg);
    margin: 0 4px 4px;
}

.ic-revision-card[open] .ic-revision-chevron {
    transform: rotate(225deg);
}

.ic-revision-body {
    display: grid;
    gap: 20px;
    padding: 24px;
    border-top: 1px solid #e4e4e7;
}

.ic-revision-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ic-revision-meta > div {
    padding: 16px;
    background: #f5f6f8;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
}

.ic-revision-meta span {
    display: block;
    color: #71717a;
    font-size: 12px;
    margin-bottom: 6px;
}

.ic-revision-meta strong {
    font-size: 14px;
    color: #20252b;
    overflow-wrap: anywhere;
}

.ic-revision-section {
    display: grid;
    gap: 10px;
}

.ic-revision-section h4 {
    margin: 0;
    font-size: 15px;
    color: #20252b;
}

.ic-revision-section p {
    margin: 0;
    font-size: 13px;
}

.ic-revision-text,
.ic-revision-content {
    padding: 16px;
    background: #f5f6f8;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.ic-revision-change {
    border: 1px solid #e4e4e7;
    border-radius: 9px;
    padding: 16px;
}

.ic-revision-change > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
}

.ic-revision-diff {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ic-revision-old,
.ic-revision-new {
    padding: 14px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.ic-revision-old {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.ic-revision-new {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.ic-revision-diff span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ic-revision-info {
    padding: 14px 16px;
    border-left: 3px solid #cf1f2c;
    background: #f5f6f8;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.6;
}

.ic-revision-info.success {
    border-left-color: #198754;
    background: #f0fdf4;
    color: #166534;
}

.ic-revision-subsection {
    border: 1px solid #e4e4e7;
    border-radius: 9px;
    overflow: hidden;
}

.ic-revision-subsection > summary {
    padding: 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.ic-revision-subsection > summary:hover {
    background: #f5f6f8;
}

.ic-revision-subsection .ic-revision-content {
    margin: 0 12px 12px;
}

.ic-revision-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #fff;
    color: #20252b;
    text-decoration: none;
}

.ic-revision-attachment:hover {
    border-color: #cf1f2c;
}

.ic-revision-attachment svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #cf1f2c;
}

.ic-revision-attachment small {
    display: block;
    color: #71717a;
    font-size: 11px;
}

.ic-revision-action:hover {
    color: #cf1f2c;
}

@media (max-width: 650px) {

    .ic-revision-meta,
    .ic-revision-diff {
        grid-template-columns: 1fr;
    }

    .ic-revision-header,
    .ic-revision-body {
        padding: 15px;
    }

    .ic-revision-heading {
        min-width: 120px;
    }

}



/* IC SIDEBAR SCROLL FIX */

.sidebar {
    box-sizing: border-box !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

.sidebar > .navigation {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #494c52 transparent;
}

.sidebar > :not(.navigation) {
    flex-shrink: 0;
}

.sidebar .navigation::-webkit-scrollbar {
    width: 4px;
}

.sidebar .navigation::-webkit-scrollbar-thumb {
    background: #494c52;
    border-radius: 8px;
}

.sidebar .navigation::-webkit-scrollbar-track {
    background: transparent;
}
