﻿:root {
    /* FireSafetyPilot – Markenfarben */
    --fsp-red: #C62828;
    --fsp-red-dark: #9F2020;
    --fsp-charcoal: #30343B;
    /* Oberflächen */
    --fsp-background: #F5F6F8;
    --fsp-surface: #FFFFFF;
    --fsp-border: #DEE2E6;
    /* Schriftfarben */
    --fsp-text: #30343B;
    --fsp-text-muted: #6C757D;
    /* Gestaltung */
    --fsp-border-radius: 10px;
    --fsp-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* FireSafetyPilot – Primäre Schaltflächen */
/* FireSafetyPilot – Standardschaltflächen */

.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #414750;
    --bs-btn-border-color: #414750;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #30343B;
    --bs-btn-hover-border-color: #30343B;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #30343B;
    --bs-btn-active-border-color: #30343B;
    --bs-btn-focus-shadow-rgb: 65, 71, 80;
    border-radius: var(--fsp-border-radius);
    font-weight: 600;
    padding: 10px 20px;
}

/* FireSafetyPilot – Anmeldeseite */

.fsp-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--fsp-background);
    padding: 24px;
}

.fsp-login-card {
    width: 100%;
    max-width: 460px;
    background-color: var(--fsp-surface);
    border: 1px solid var(--fsp-border);
    border-radius: 16px;
    box-shadow: var(--fsp-shadow);
    padding: 36px;
}

@media (max-width: 576px) {
    .fsp-login-card {
        padding: 24px;
    }
}

/* FireSafetyPilot – Kopfzeile */

.fsp-header-title {
    color: var(--fsp-charcoal);
    font-size: 1rem;
    font-weight: 600;
}

/* FireSafetyPilot – Navigation */


.fsp-nav-placeholder {
    opacity: 0.75;
    cursor: default;
}

/* FireSafetyPilot – Seitenleiste */

.sidebar {
    background: var(--fsp-charcoal);
}

    /* Markenname */

    .sidebar .navbar-brand {
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 700;
    }

    /* Navigationspunkte */

    .sidebar .nav-link {
        color: #D5D9DF;
        border-radius: 8px;
        margin-bottom: 4px;
    }

        /* Maus über einem Menüpunkt */

        .sidebar .nav-link:hover {
            background-color: #414750;
            color: #ffffff;
        }

        /* Aktiver Menüpunkt */

        .sidebar .nav-link.active {
            background-color: #505761;
            color: #ffffff;
            font-weight: 600;
        }

    /* Noch nicht verfügbare Menüpunkte */

    .sidebar .fsp-nav-placeholder {
        color: #AEB6C2;
        opacity: 0.75;
    }

/* FireSafetyPilot – Logo in der Seitenleiste */

.fsp-sidebar-logo {
    display: block;
    width: 100%;
    max-width: 190px;
    height: auto;
}

.sidebar .navbar-brand {
    display: block;
    width: 100%;
    margin-right: 0;
}

/* FireSafetyPilot – heller Logobereich */

/* FireSafetyPilot – Logo und Kopfbereich */

.sidebar .top-row.navbar {
    height: 60px;
    min-height: 60px;
    padding: 0 16px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar .top-row .container-fluid {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
}

.sidebar .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.fsp-sidebar-logo {
    display: block;
    width: 100%;
    max-width: 175px;
    height: auto;
}

/* FireSafetyPilot – Dashboard */

.fsp-dashboard-card {
    height: 100%;
    min-height: 190px;
    padding: 24px;
    background-color: var(--fsp-surface);
    border: 1px solid var(--fsp-border);
    border-radius: var(--fsp-border-radius);
    box-shadow: var(--fsp-shadow);
}

    .fsp-dashboard-card h2 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--fsp-charcoal);
        margin-bottom: 14px;
    }

    .fsp-dashboard-card p {
        font-size: 0.9rem;
        color: var(--fsp-text-muted);
        line-height: 1.5;
        margin-bottom: 20px;
    }

.fsp-dashboard-status {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fsp-text-muted);
    background-color: var(--fsp-background);
    border-radius: 6px;
    padding: 5px 10px;
}

/* FireSafetyPilot – Benutzeranzeige */

.fsp-header-user {
    color: var(--fsp-charcoal);
    font-size: 0.9rem;
    font-weight: 500;
}

/* FireSafetyPilot – Benutzerbereich in der Kopfzeile */

.fsp-header-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.fsp-header-logout {
    color: var(--fsp-charcoal);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    padding: 7px 12px;
    border: 1px solid var(--fsp-border);
    border-radius: 7px;
    background-color: #ffffff;
}

    .fsp-header-logout:hover {
        background-color: var(--fsp-background);
        color: var(--fsp-charcoal);
    }

/* FireSafetyPilot – Menüschalter für Tablets */

.fsp-mobile-menu-button {
    display: none;
    background: transparent;
    border: none;
    color: var(--fsp-charcoal);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
}

    .fsp-mobile-menu-button:hover {
        background-color: #E9ECEF;
    }

@media (max-width: 1199.98px) {
    .fsp-mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: auto;
    }
}

/* FireSafetyPilot – Schließen der Tablet-Navigation */

.fsp-sidebar-close {
    display: none;
}

@media (max-width: 1199.98px) {

    .fsp-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        right: 8px;
        z-index: 10;
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 6px;
        background: transparent;
        color: var(--fsp-charcoal);
        font-size: 1.6rem;
        cursor: pointer;
    }

        .fsp-sidebar-close:hover {
            background-color: #E9ECEF;
        }
}

/* Einheitliche Schriftgröße in der Kopfzeile */
.fsp-header-tenant {
    font-size: 0.875rem;
    font-weight: 400;
}
/* Only the graphical plan workspace replaces the administration shell.
   Ancestors remain mounted to preserve selected object, tab and tree expansion. */
body:has(.fsp-plan-workspace) {
    overflow: hidden;
}

.page:has(.fsp-plan-workspace) .sidebar,
.page:has(.fsp-plan-workspace) .sidebar.fsp-sidebar-open,
.page:has(.fsp-plan-workspace) .fsp-topbar,
.page:has(.fsp-plan-workspace) .fsp-navigation-backdrop {
    display: none;
}

.fsp-main-content:has(.fsp-plan-workspace) {
    visibility: hidden;
}

.fsp-main-content:has(.fsp-plan-workspace) .fsp-plan-workspace {
    visibility: visible;
}