: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);
}

.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-topbar,
.sidebar-mobile-header,
.mobile-menu-overlay {
    display: none;
}


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

@media (min-width: 601px) {

    .mobile-topbar,
    .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-topbar {
        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;
    }


    /* =====================================================
       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 {
    display: flex;
    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;
}