:root {
    --banino-dark: #003b39;
    --banino-dark-deep: #002f2d;
    --banino-primary: #08766f;
    --banino-primary-hover: #06645e;
    --banino-red: #ef444d;
    --banino-turquoise: #55c7c5;
    --banino-background: #f5f8f8;
    --banino-border: #dfe9e8;
    --banino-text: #122525;
    --banino-muted: #667776;
}

/* Seitenhintergrund */
.fi-body {
    color: var(--banino-text);
    background:
        radial-gradient(
            circle at 75% 0%,
            rgb(85 199 197 / 8%),
            transparent 28rem
        ),
        var(--banino-background);
}

/* Kopfzeile */
.fi-topbar nav {
    min-height: 72px;
    background: rgb(255 255 255 / 96%);
    border-bottom: 1px solid var(--banino-border);
    box-shadow: 0 4px 20px rgb(0 59 57 / 5%);
    backdrop-filter: blur(12px);
}

/* Logo */
.fi-logo {
    width: 44px !important;
    height: 44px !important;
    padding: 2px;
    object-fit: contain;
    background: white;
    border-radius: 11px;
}

/* Seitenleiste */
.fi-sidebar,
.fi-sidebar-header {
    background: var(--banino-dark);
    border-color: rgb(255 255 255 / 10%);
}

.fi-sidebar {
    width: 280px;
    border-right: 1px solid rgb(85 199 197 / 18%);
    box-shadow: 8px 0 30px rgb(0 59 57 / 8%);
}

.fi-sidebar-nav {
    padding: 1.5rem 0.75rem;
}

/* Navigationsgruppen */
.fi-sidebar-group-label {
    color: rgb(255 255 255 / 52%);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Navigationseinträge */
.fi-sidebar-item-label {
    color: rgb(255 255 255 / 80%);
    font-weight: 500;
}

.fi-sidebar-item-icon {
    color: rgb(255 255 255 / 62%);
}

.fi-sidebar-item-btn {
    border-radius: 12px !important;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.fi-sidebar-item-btn:hover {
    background: rgb(255 255 255 / 10%) !important;
    transform: translateX(2px);
}

.fi-sidebar-item-btn:hover .fi-sidebar-item-label,
.fi-sidebar-item-btn:hover .fi-sidebar-item-icon {
    color: white !important;
}

/* Aktiver Navigationseintrag */
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn,
.fi-sidebar-item.fi-active > a,
.fi-sidebar-item-active .fi-sidebar-item-button {
    background: var(--banino-primary) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
}

.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon,
.fi-sidebar-item-active .fi-sidebar-item-label,
.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: white !important;
}

/* Hauptinhalt */
.fi-main {
    padding-top: 2rem;
}

/* Überschriften */
.fi-header-heading {
    color: var(--banino-dark);
    font-weight: 800;
    letter-spacing: -0.035em;
}

/* Breadcrumbs */
.fi-breadcrumbs-item-label {
    color: var(--banino-muted);
}

/* Sections, Tabellen und Karten */
.fi-section,
.fi-ta-ctn {
    overflow: hidden;
    background: white;
    border: 1px solid var(--banino-border);
    border-radius: 20px;
    box-shadow:
        0 2px 5px rgb(0 59 57 / 3%),
        0 15px 40px rgb(0 59 57 / 7%);
}

/* Statistik-Karten */
.fi-wi-stats-overview-stat {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--banino-border);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgb(0 59 57 / 7%);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.fi-wi-stats-overview-stat::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--banino-primary),
        var(--banino-turquoise)
    );
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgb(0 59 57 / 12%);
}

.fi-wi-stats-overview-stat-value {
    color: var(--banino-dark);
    font-weight: 800;
}

/* Tabellenkopf */
.fi-ta-header,
.fi-ta-header-toolbar {
    background: white;
}

.fi-ta-header-cell {
    color: var(--banino-dark);
    font-weight: 700;
    background: #edf5f4;
}

/* Tabellenzeilen */
.fi-ta-row {
    transition: background-color 160ms ease;
}

.fi-ta-row:hover {
    background: #f3faf9;
}

/* Leerer Tabellenzustand */
.fi-ta-empty-state {
    min-height: 250px;
    background:
        radial-gradient(
            circle at center,
            rgb(85 199 197 / 10%),
            transparent 15rem
        ),
        white;
}

.fi-ta-empty-state-icon-ctn {
    color: var(--banino-primary);
    background: #e4f4f2;
}

.fi-ta-empty-state-heading {
    color: var(--banino-dark);
    font-weight: 700;
}

/* Buttons */
.fi-btn {
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.fi-btn-color-primary {
    color: white;
    background: var(--banino-primary);
    border-radius: 9999px;
    box-shadow: 0 8px 18px rgb(8 118 111 / 20%);
}

.fi-btn-color-primary:hover {
    background: var(--banino-primary-hover);
    box-shadow: 0 12px 25px rgb(8 118 111 / 28%);
    transform: translateY(-1px);
}

.fi-btn-color-danger {
    color: white;
    background: var(--banino-red);
    border-radius: 9999px;
}

/* Eingabefelder immer klar erkennbar */
.fi-fo-field-wrp .fi-input-wrp {
    min-height: 44px;
    overflow: hidden;
    background: #f8fbfb !important;
    border: 1px solid #c9dcda !important;
    border-radius: 12px !important;
    box-shadow:
        0 1px 2px rgb(0 59 57 / 3%),
        inset 0 0 0 1px rgb(255 255 255 / 55%) !important;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

/* Hover */
.fi-fo-field-wrp .fi-input-wrp:hover {
    background: white !important;
    border-color: #8db9b5 !important;
    box-shadow: 0 3px 10px rgb(0 59 57 / 7%) !important;
}

/* Aktives Eingabefeld */
.fi-fo-field-wrp .fi-input-wrp:focus-within {
    background: white !important;
    border-color: var(--banino-primary) !important;
    box-shadow:
        0 0 0 3px rgb(8 118 111 / 14%),
        0 6px 16px rgb(0 59 57 / 8%) !important;
}

/* Textfelder */
.fi-fo-field-wrp .fi-input,
.fi-fo-field-wrp input,
.fi-fo-field-wrp textarea,
.fi-fo-field-wrp select {
    color: var(--banino-text) !important;
}

/* Platzhalter */
.fi-fo-field-wrp input::placeholder,
.fi-fo-field-wrp textarea::placeholder {
    color: #8a9b9a !important;
}

/* Textbereiche */
.fi-fo-field-wrp textarea {
    min-height: 110px;
    padding: 0.8rem !important;
    background: #f8fbfb !important;
}

/* Labels deutlicher darstellen */
.fi-fo-field-wrp-label {
    margin-bottom: 0.4rem;
}

.fi-fo-field-wrp-label label,
.fi-fo-field-wrp-label span {
    color: var(--banino-dark) !important;
    font-weight: 650 !important;
}

/* Pflichtstern */
.fi-fo-field-wrp-label .text-danger-600 {
    color: var(--banino-red) !important;
}

/* Deaktivierte Felder */
.fi-fo-field-wrp .fi-input-wrp:has(input:disabled),
.fi-fo-field-wrp .fi-input-wrp:has(select:disabled) {
    cursor: not-allowed;
    background: #eef3f2 !important;
    border-style: dashed !important;
    opacity: 0.72;
}

/* Badges */
.fi-badge {
    border-radius: 9999px;
    font-weight: 700;
}

/* Dropdowns und Dialoge */
.fi-dropdown-panel,
.fi-modal-window {
    border: 1px solid var(--banino-border);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgb(0 59 57 / 15%);
}

/* Mobile Darstellung */
@media (max-width: 1024px) {
    .fi-sidebar {
        width: 300px;
        box-shadow: 15px 0 50px rgb(0 47 45 / 25%);
    }

    .fi-main {
        padding-top: 1rem;
    }
}

/* Banino Dashboard Hero */
.banino-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 3rem;
    min-height: 430px;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    color: white;
    background:
        linear-gradient(
            135deg,
            var(--banino-dark-deep),
            var(--banino-dark)
        );
    border-radius: 28px;
    box-shadow: 0 25px 70px rgb(0 59 57 / 20%);
}

.banino-hero__glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(10px);
    pointer-events: none;
}

.banino-hero__glow--one {
    top: -180px;
    right: 20%;
    width: 430px;
    height: 430px;
    background: rgb(85 199 197 / 10%);
}

.banino-hero__glow--two {
    right: -120px;
    bottom: -200px;
    width: 450px;
    height: 450px;
    background: rgb(239 68 77 / 8%);
}

.banino-hero__content,
.banino-hero__visual {
    position: relative;
    z-index: 1;
}

.banino-hero__brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.banino-hero__logo {
    display: grid;
    width: 52px;
    height: 52px;
    padding: 4px;
    place-items: center;
    background: white;
    border-radius: 14px;
}

.banino-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banino-hero__brand-name {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 0.9;
}

.banino-hero__brand-name span {
    color: var(--banino-red);
}

.banino-hero__brand-name strong {
    color: var(--banino-turquoise);
}

.banino-hero__badge {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1.4rem;
    color: rgb(255 255 255 / 82%);
    font-size: 0.75rem;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 9999px;
}

.banino-hero__badge span {
    width: 7px;
    height: 7px;
    background: var(--banino-red);
    border-radius: 50%;
}

.banino-hero__title {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: clamp(2.3rem, 4.6vw, 4.5rem);
    font-weight: 850;
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.banino-hero__red {
    color: var(--banino-red);
}

.banino-hero__turquoise {
    color: var(--banino-turquoise);
}

.banino-hero__description {
    max-width: 680px;
    margin-top: 1.5rem;
    color: rgb(255 255 255 / 75%);
    font-size: 1rem;
    line-height: 1.75;
}

.banino-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.banino-hero__button {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.banino-hero__button:hover {
    color: white;
    transform: translateY(-2px);
}

.banino-hero__button--primary {
    background: var(--banino-red);
    box-shadow: 0 10px 25px rgb(239 68 77 / 25%);
}

.banino-hero__button--secondary {
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 28%);
}

.banino-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
    color: rgb(255 255 255 / 67%);
    font-size: 0.78rem;
}

.banino-hero__visual {
    display: flex;
    align-items: center;
}

.banino-hero__visual-card {
    width: 100%;
    padding: 1rem;
    color: var(--banino-text);
    background: rgb(255 255 255 / 97%);
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgb(0 0 0 / 25%);
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
}

.banino-hero__visual-header {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--banino-border);
}

.banino-hero__visual-header > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.banino-hero__visual-header > span:nth-child(1) {
    background: #ff5f57;
}

.banino-hero__visual-header > span:nth-child(2) {
    background: #febc2e;
}

.banino-hero__visual-header > span:nth-child(3) {
    background: #28c840;
}

.banino-hero__visual-header small {
    margin-left: 0.5rem;
    color: var(--banino-muted);
}

.banino-hero__visual-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-top: 1rem;
}

.banino-mini-stat {
    padding: 1rem 0.75rem;
    background: white;
    border: 1px solid var(--banino-border);
    border-radius: 14px;
}

.banino-mini-stat strong {
    display: block;
    color: var(--banino-primary);
    font-size: 1.3rem;
}

.banino-mini-stat span {
    color: var(--banino-muted);
    font-size: 0.68rem;
}

.banino-mini-stat--warning strong {
    color: #f59e0b;
}

.banino-mini-stat--danger strong {
    color: var(--banino-red);
}

.banino-mini-stat--success strong {
    color: #16b981;
}

.banino-hero__progress {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    margin-top: 1rem;
    background: #f7faf9;
    border-radius: 16px;
}

.banino-hero__progress > div {
    display: grid;
    grid-template-columns: 130px 1fr 38px;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.7rem;
}

.banino-hero__progress i {
    height: 6px;
    overflow: hidden;
    background: #e4eeee;
    border-radius: 9999px;
}

.banino-hero__progress b {
    display: block;
    height: 100%;
    background: var(--banino-primary);
    border-radius: inherit;
}

@media (max-width: 1100px) {
    .banino-hero {
        grid-template-columns: 1fr;
    }

    .banino-hero__visual-card {
        transform: none;
    }
}

@media (max-width: 640px) {
    .banino-hero {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .banino-hero__visual {
        display: none;
    }

    .banino-hero__title {
        font-size: 2.5rem;
    }

    .banino-hero__features {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Dashboard-Vorschau im Hero kleiner darstellen */
.banino-hero__visual {
    justify-content: center;
}

.banino-hero__visual-card {
    width: 82%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}