﻿:root {
    --fcc-primary: #013e57;
    --fcc-primary-dark: #00283c;
    --fcc-secondary: #18a3a1;
    --fcc-secondary-light: #00aaaa;
    --fcc-gold: #d4af37;
    --fcc-background: #f3f7fa;
    --fcc-surface: #ffffff;
    --fcc-text: #102f46;
    --fcc-muted: #6f8291;
    --fcc-border: #e4ecef;
    --fcc-radius: 18px;
    --fcc-shadow: 0 10px 30px rgba(2, 40, 60, .08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--fcc-background);
    color: var(--fcc-text);
    font-family: Inter, Lato, Arial, sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   NORMALE EINGABEFELDER
   ========================================================= */

body input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
body textarea {
    color: var(--fcc-text) !important;
    background: linear-gradient( 135deg, rgba(24, 163, 161, 0.14), rgba(1, 62, 87, 0.075) ) !important;
    border: 1px solid rgba(24, 163, 161, 0.36) !important;
    border-radius: 18px !important;
    padding: 12px 15px !important;
    outline: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 5px 14px rgba(1, 62, 87, 0.045) !important;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}


    /* =========================================================
   INPUT HOVER
   ========================================================= */

    body input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):hover,
    body textarea:hover {
        background: linear-gradient( 135deg, rgba(24, 163, 161, 0.18), rgba(1, 62, 87, 0.10) ) !important;
        border-color: rgba(24, 163, 161, 0.55) !important;
    }


    /* =========================================================
   INPUT FOCUS
   ========================================================= */

    body input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):focus,
    body textarea:focus {
        background: linear-gradient( 135deg, rgba(24, 163, 161, 0.22), rgba(1, 62, 87, 0.12) ) !important;
        border-color: rgba(24, 163, 161, 0.80) !important;
        box-shadow: 0 0 0 3px rgba(24, 163, 161, 0.12), 0 8px 22px rgba(1, 62, 87, 0.07) !important;
    }


    /* =========================================================
   PLACEHOLDER
   ========================================================= */

    body input::placeholder,
    body textarea::placeholder {
        color: rgba(16, 47, 70, 0.50) !important;
        opacity: 1;
    }


/* =========================================================
   SUCHFELDER
   ========================================================= */

body input[type="search"] {
    min-width: 180px;
}


    /* Chrome / Edge Suchfeld-X entfernen */

    body input[type="search"]::-webkit-search-cancel-button {
        display: none;
        -webkit-appearance: none;
    }


/* =========================================================
   CUSTOM SELECT
   ========================================================= */

body select,
body select::picker(select) {
    appearance: base-select;
}


/* Geschlossenes Dropdown */

body select {
    color: var(--fcc-text) !important;
    background: linear-gradient( 135deg, rgba(24, 163, 161, 0.14), rgba(1, 62, 87, 0.075) ) !important;
    border: 1px solid rgba(24, 163, 161, 0.36) !important;
    border-radius: 18px !important;
    padding: 12px 14px !important;
    outline: none !important;
    cursor: pointer;
    width: auto !important;
    min-width: 155px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 5px 14px rgba(1, 62, 87, 0.045) !important;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}


/* =========================================================
   SELECTS IN FORMULAREN BLEIBEN BREIT
   ========================================================= */

body .form-field select {
    width: 100% !important;
    min-width: 0;
}


/* =========================================================
   FILTER-DROPDOWNS BLEIBEN KOMPAKT RECHTS
   ========================================================= */

body .customer-filter,
body .object-filter,
body .einsatz-filter,
body .vertrag-filter {
    width: auto !important;
    min-width: 150px;
    flex: 0 0 auto;
}


/* =========================================================
   TOOLBAR-SUCHFELDER NEHMEN RESTLICHEN PLATZ
   ========================================================= */

body .customer-search,
body .object-search,
body .einsatz-search,
body .vertrag-search {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 180px;
}


/* =========================================================
   SELECT HOVER
   ========================================================= */

body select:hover {
    background: linear-gradient( 135deg, rgba(24, 163, 161, 0.18), rgba(1, 62, 87, 0.10) ) !important;
    border-color: rgba(24, 163, 161, 0.55) !important;
}


/* =========================================================
   SELECT FOCUS / OFFEN
   ========================================================= */

body select:focus,
body select:open {
    background: linear-gradient( 135deg, rgba(24, 163, 161, 0.22), rgba(1, 62, 87, 0.12) ) !important;
    border-color: rgba(24, 163, 161, 0.80) !important;
    box-shadow: 0 0 0 3px rgba(24, 163, 161, 0.12), 0 8px 22px rgba(1, 62, 87, 0.07) !important;
}


/* =========================================================
   DROPDOWN-PFEIL
   ========================================================= */

body select::picker-icon {
    color: var(--fcc-primary) !important;
    opacity: 0.80;
    margin-left: 12px;
    transition: transform 0.18s ease, opacity 0.18s ease !important;
}


body select:hover::picker-icon,
body select:focus::picker-icon {
    opacity: 1;
}


body select:open::picker-icon {
    transform: rotate(180deg);
}


/* =========================================================
   AUFGEKLAPPTES DROPDOWN
   ========================================================= */

body select::picker(select) {
    margin-top: 7px;
    padding: 7px;
    background: rgba(235, 248, 248, 0.97);
    border: 1px solid rgba(24, 163, 161, 0.30);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(1, 62, 87, 0.16);
    backdrop-filter: blur(16px);
    overflow: hidden;
}


/* =========================================================
   DROPDOWN OPTIONEN
   ========================================================= */

body select option {
    color: #102f46;
    background: transparent;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 2px 0;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}


    /* OPTION HOVER */

    body select option:hover,
    body select option:focus-visible {
        background: rgba(24, 163, 161, 0.12);
        color: #013e57;
    }


    /* AUSGEWÄHLTE OPTION */

    body select option:checked {
        background: rgba(24, 163, 161, 0.20);
        color: #013e57;
        font-weight: 700;
    }


    /* CHECKMARK */

    body select option::checkmark {
        color: #18a3a1;
    }


/* =========================================================
   TEXTAREA
   ========================================================= */

body textarea {
    resize: vertical;
    min-height: 100px;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

body input[type="checkbox"] {
    accent-color: var(--fcc-secondary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}


/* =========================================================
   DEAKTIVIERTE FELDER
   ========================================================= */

body input:disabled,
body select:disabled,
body textarea:disabled {
    background: rgba(24, 163, 161, 0.07) !important;
    border-color: rgba(24, 163, 161, 0.18) !important;
    color: rgba(16, 47, 70, 0.50) !important;
    box-shadow: none !important;
    cursor: not-allowed;
}


/* =========================================================
   BLAZOR VALIDIERUNG
   ========================================================= */

body input.invalid,
body select.invalid,
body textarea.invalid {
    border-color: rgba(24, 163, 161, 0.80) !important;
    box-shadow: 0 0 0 3px rgba(24, 163, 161, 0.12) !important;
}


body .validation-message {
    color: #087c7a !important;
}


/* =========================================================
   CHROME / EDGE AUTOFILL
   ========================================================= */

body input:-webkit-autofill,
body input:-webkit-autofill:hover,
body input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--fcc-text) !important;
    -webkit-box-shadow: 0 0 0 1000px #dff3f2 inset !important;
    border-radius: 18px !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    body .customer-filter,
    body .object-filter,
    body .einsatz-filter,
    body .vertrag-filter {
        width: 100% !important;
    }

    body .customer-search,
    body .object-search,
    body .einsatz-search,
    body .vertrag-search {
        width: 100% !important;
    }
}
/* =========================================================
   FCC MOBILE LAYOUT
   ========================================================= */

.fcc-mobile-menu-button {
    display: none;
}

.fcc-mobile-overlay {
    display: none;
}

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }


    /* =====================================================
       GESAMTLAYOUT
       ===================================================== */

    .fcc-layout {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 100vh;
    }


    /* =====================================================
       SIDEBAR -> MOBILE DRAWER
       ===================================================== */

    .fcc-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(82vw, 310px) !important;
        max-width: 310px !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        z-index: 1002;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 12px 0 35px rgba(0, 40, 60, 0.24);
    }


    .fcc-layout.mobile-menu-open .fcc-sidebar {
        transform: translateX(0);
    }


    /* =====================================================
       OVERLAY
       ===================================================== */

    .fcc-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(0, 25, 40, 0.48);
        z-index: 1001;
        cursor: pointer;
    }


    /* =====================================================
       HAUPTBEREICH
       ===================================================== */

    .fcc-main {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
    }


    /* =====================================================
       HEADER
       ===================================================== */

    .fcc-header {
        width: 100% !important;
        min-height: 64px !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px;
        padding: 10px 14px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }


        .fcc-header > strong {
            flex: 1 1 auto;
            min-width: 0;
            margin: 0;
            font-size: 16px !important;
            line-height: 1.2 !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }


    /* =====================================================
       HAMBURGER
       ===================================================== */

    .fcc-mobile-menu-button {
        display: flex !important;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 9px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.10);
        color: #ffffff;
        cursor: pointer;
    }


        .fcc-mobile-menu-button svg {
            display: block;
            width: 24px;
            height: 24px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }


    /* =====================================================
       SEITENINHALT
       ===================================================== */

    .fcc-content {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 18px 14px 32px !important;
        box-sizing: border-box;
    }


    /* =====================================================
       GLOBALE FORMULARE MOBIL
       ===================================================== */

    body input[type="search"] {
        min-width: 0 !important;
    }

    body .customer-filter,
    body .object-filter,
    body .einsatz-filter,
    body .vertrag-filter {
        width: 100% !important;
        min-width: 0 !important;
    }

    body .customer-search,
    body .object-search,
    body .einsatz-search,
    body .vertrag-search {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* =========================================================
   KLEINE IPHONES
   ========================================================= */

@media (max-width: 430px) {

    .fcc-header {
        min-height: 60px !important;
        padding-left: 11px !important;
        padding-right: 11px !important;
    }


        .fcc-header > strong {
            font-size: 15px !important;
        }


    .fcc-mobile-menu-button {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        padding: 8px;
    }


    .fcc-content {
        padding: 15px 11px 28px !important;
    }


    .fcc-sidebar {
        width: min(86vw, 300px) !important;
    }
}