
/* ==========================================================
   GHOSTLINE – INTERNAL EXPERIENCE
   Datei: dashboard.css
   Version: 4.1

   KOMPATIBEL MIT:
   - login.html V4.0
   - dashboard.html V4.0
   - dashboard.js V4.0
   - style.css V4.1

   Bereiche:
   01. Login-Hintergrund
   02. Login-Karte
   03. Login-Branding
   04. Login-Formular
   05. Dashboard-Hintergrund
   06. Sidebar
   07. Dashboard-Header
   08. Panels & Statistiken
   09. Formulare & Tabellen
   10. Buttons & Animationen
   11. Responsive Design
   ========================================================== */


/* ==========================================================
   01. GEMEINSAME DESIGNVARIABLEN
   ========================================================== */

:root {
    --dash-purple: #8f43da;
    --dash-neon: #b66bff;
    --dash-ice: #a7d9ff;

    --dash-glass:
        linear-gradient(
            145deg,
            rgba(39, 23, 59, 0.88),
            rgba(13, 9, 23, 0.94)
        );

    --dash-border:
        rgba(182, 107, 255, 0.25);

    --dash-shadow:
        0 22px 65px rgba(0, 0, 0, 0.29);

    --dash-glow:
        0 0 33px rgba(143, 67, 218, 0.24);
}

.auth-page,
.dashboard-page {
    color: var(--white);
}

.dashboard-page {
    isolation: isolate;
}


/* ==========================================================
   02. LOGIN-HINTERGRUND
   ========================================================== */

.auth-page {
    display: flex;
    flex-direction: column;

    min-height: 100vh;
    min-height: 100svh;

    isolation: isolate;

    background: #08060d;
}

.auth-background,
.dashboard-background {
    position: fixed;
    inset: 0;

    z-index: -1;

    overflow: hidden;
    pointer-events: none;

    background: #08060d;
}

.auth-background-image {
    position: absolute;
    inset: -45px;

    background:
        url("images/banner.png")
        center / cover no-repeat;

    opacity: 0.52;

    animation:
        dashBannerZoom 25s ease-in-out infinite alternate;
}

.auth-background-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(43, 17, 67, 0.32),
            rgba(8, 6, 13, 0.93) 85%
        ),
        linear-gradient(
            110deg,
            rgba(8, 6, 13, 0.95),
            rgba(35, 14, 57, 0.52),
            rgba(8, 6, 13, 0.94)
        );
}


/* ==========================================================
   03. BEWEGTE LICHTQUELLEN & NEBEL
   ========================================================== */

.auth-orb,
.dashboard-orb {
    position: absolute;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(166, 80, 241, 0.6),
            rgba(118, 42, 183, 0.23) 43%,
            transparent 75%
        );

    opacity: 0.55;
    filter: blur(75px);

    will-change: transform;

    animation:
        dashOrbFloat 17s ease-in-out infinite alternate;
}

.auth-orb-one {
    top: -160px;
    left: -150px;
}

.auth-orb-two {
    right: -170px;
    bottom: -190px;

    animation-delay: -7s;
}

.auth-grid,
.dashboard-background-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(182, 107, 255, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(182, 107, 255, 0.055) 1px,
            transparent 1px
        );

    background-size: 68px 68px;

    mask-image:
        linear-gradient(
            180deg,
            transparent,
            black 25%,
            black 85%,
            transparent
        );

    animation:
        dashGridShift 35s linear infinite;
}

.auth-fog {
    position: absolute;
    inset: -20%;

    background:
        radial-gradient(
            ellipse at 15% 80%,
            rgba(143, 67, 218, 0.3),
            transparent 46%
        ),
        radial-gradient(
            ellipse at 85% 20%,
            rgba(182, 107, 255, 0.17),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 50% 105%,
            rgba(167, 217, 255, 0.11),
            transparent 48%
        );

    filter: blur(44px);

    animation:
        dashFogDrift 20s ease-in-out infinite alternate;
}

.auth-particles {
    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(
            rgba(231, 201, 255, 0.7) 1px,
            transparent 1.5px
        ),
        radial-gradient(
            rgba(167, 217, 255, 0.48) 1px,
            transparent 1.5px
        );

    background-size:
        120px 120px,
        170px 170px;

    background-position:
        0 0,
        40px 65px;

    opacity: 0.23;

    animation:
        dashParticleShift 40s linear infinite;
}


/* ==========================================================
   04. LOGIN-HEADER
   ========================================================== */

.auth-header {
    position: relative;
    z-index: 5;

    min-height: 85px;

    display: flex;
    align-items: center;

    padding: 20px 5%;
}

.auth-back {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 11px 17px;

    border: 1px solid var(--dash-border);
    border-radius: 11px;

    background:
        linear-gradient(
            125deg,
            rgba(40, 23, 62, 0.77),
            rgba(13, 9, 23, 0.75)
        );

    backdrop-filter: blur(16px);

    color: #e4d0f9;
    font-size: 12px;
    font-weight: 750;

    box-shadow:
        0 0 20px rgba(143, 67, 218, 0.09);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.auth-back:hover {
    transform: translateX(-5px);

    border-color: var(--dash-neon);

    box-shadow: var(--dash-glow);
}


/* ==========================================================
   05. LOGIN-KARTE
   ========================================================== */

.auth-main {
    position: relative;

    display: grid;
    place-items: center;

    flex: 1;

    padding: 30px 16px 55px;
}

.auth-card {
    position: relative;
    isolation: isolate;

    width: min(510px, 100%);

    padding: 42px 43px 32px;

    border: 1px solid rgba(182, 107, 255, 0.38);
    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(35, 21, 53, 0.88),
            rgba(11, 8, 20, 0.94)
        );

    backdrop-filter: blur(30px) saturate(135%);
    -webkit-backdrop-filter: blur(30px) saturate(135%);

    box-shadow:
        0 35px 95px rgba(0, 0, 0, 0.55),
        0 0 75px rgba(143, 67, 218, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    overflow: hidden;

    animation:
        dashCardEnter 1s cubic-bezier(.18,.8,.25,1) both;

    transition:
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.auth-card:hover {
    border-color:
        rgba(203, 144, 255, 0.65);

    box-shadow:
        0 40px 110px rgba(0, 0, 0, 0.6),
        0 0 90px rgba(143, 67, 218, 0.25);
}

.auth-card-glow {
    position: absolute;

    top: -170px;
    left: 50%;

    width: 450px;
    height: 450px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(143, 67, 218, 0.33),
            transparent 70%
        );

    filter: blur(35px);

    pointer-events: none;

    animation:
        dashGlowPulse 6s ease-in-out infinite alternate;
}

.auth-card-border {
    position: absolute;

    top: 0;
    left: 13%;
    right: 13%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #b66bff,
            #a7d9ff,
            transparent
        );

    box-shadow:
        0 0 22px rgba(182, 107, 255, 0.85);
}

.auth-card > *:not(
    .auth-card-glow,
    .auth-card-border
) {
    position: relative;
    z-index: 1;
}


/* ==========================================================
   06. LOGO & BRANDING
   ========================================================== */

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 20px;

    text-align: center;
}

.auth-logo-wrapper {
    position: relative;

    display: grid;
    place-items: center;

    width: 147px;
    height: 147px;

    margin-bottom: 8px;
}

.auth-logo-wrapper::before {
    content: "";

    position: absolute;
    inset: 12px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(182, 107, 255, 0.52),
            rgba(143, 67, 218, 0.13) 50%,
            transparent 73%
        );

    filter: blur(20px);

    animation:
        dashGlowPulse 4s ease-in-out infinite alternate;
}

.auth-logo {
    position: relative;

    width: 135px;
    height: 135px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 21px rgba(182, 107, 255, 0.48)
        );

    animation:
        dashLogoFloat 6s ease-in-out infinite;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;
}

.auth-brand-name {
    font-size: 31px;
    font-weight: 950;

    letter-spacing: 4px;
}

.auth-brand-name span {
    color: var(--dash-neon);

    text-shadow:
        0 0 23px rgba(182, 107, 255, 0.4);
}

.auth-brand-subtitle {
    color: var(--muted);

    font-size: 9px;
    font-weight: 750;

    letter-spacing: 2.7px;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    margin: 20px 0 24px;

    color: var(--dash-neon);
    font-size: 18px;

    text-shadow:
        0 0 17px rgba(182, 107, 255, 0.65);

    animation:
        dashSymbolPulse 4s ease-in-out infinite;
}


/* ==========================================================
   07. LOGIN-ÜBERSCHRIFT
   ========================================================== */

.auth-heading {
    text-align: center;
}

.auth-eyebrow {
    margin-bottom: 10px;

    color: var(--dash-neon);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2.7px;
}

.auth-heading h1 {
    font-size: clamp(28px, 4vw, 37px);
    font-weight: 900;

    letter-spacing: -1px;
    line-height: 1.2;

    margin-bottom: 14px;
}

.auth-heading h1 span {
    color: var(--dash-neon);

    text-shadow:
        0 0 25px rgba(182, 107, 255, 0.25);
}

.auth-heading > p:last-child {
    max-width: 365px;

    margin-inline: auto;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.8;
}


/* ==========================================================
   08. LOGIN-FORMULAR
   ========================================================== */

.auth-form {
    display: grid;
    gap: 19px;

    margin-top: 27px;
}

.auth-field {
    display: grid;
    gap: 9px;
}

.auth-field label {
    color: #e1cafa;

    font-size: 12px;
    font-weight: 750;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper input {
    width: 100%;
    height: 53px;

    padding: 0 16px;

    border: 1px solid var(--dash-border);
    border-radius: 11px;

    background:
        linear-gradient(
            125deg,
            rgba(8, 6, 13, 0.75),
            rgba(26, 13, 41, 0.7)
        );

    color: white;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.auth-input-wrapper input:hover {
    border-color:
        rgba(182, 107, 255, 0.5);
}

.auth-input-wrapper input:focus {
    border-color: var(--dash-neon);

    box-shadow:
        0 0 0 3px rgba(143, 67, 218, 0.14),
        0 0 25px rgba(143, 67, 218, 0.15);
}

.auth-input-wrapper:has(.password-toggle) input {
    padding-right: 105px;
}

.password-toggle {
    position: absolute;

    right: 9px;
    top: 9px;

    padding: 8px 11px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: rgba(104, 45, 154, 0.28);

    color: #e4cefa;

    font-size: 11px;
    font-weight: 750;

    transition:
        background 0.3s,
        border-color 0.3s;
}

.password-toggle:hover {
    background: rgba(143, 67, 218, 0.4);
    border-color: var(--dash-border);
}


/* ==========================================================
   09. LOGIN-BUTTON & FOOTER
   ========================================================== */

.auth-submit {
    position: relative;

    display: block;

    width: 100%;
    min-height: 52px;

    padding: 12px 20px;

    border: 1px solid rgba(233, 205, 255, 0.45);
    border-radius: 11px;

    background:
        linear-gradient(
            110deg,
            #6124a0,
            #9647d9,
            #b66bff
        );

    background-size: 210% 100%;

    color: white;

    font-weight: 850;
    font-size: 14px;

    box-shadow:
        0 8px 24px rgba(143, 67, 218, 0.27);

    animation:
        dashGradientMove 8s ease-in-out infinite;

    transition:
        transform 0.3s,
        box-shadow 0.3s;

    overflow: hidden;
}

.auth-submit:not(:disabled):hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 32px rgba(182, 107, 255, 0.42);
}

.auth-submit:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.auth-form-status {
    color: #ccbadf;

    text-align: center;
    font-size: 12px;

    min-height: 20px;
}

.auth-footer {
    margin-top: 26px;
    padding-top: 22px;

    border-top: 1px solid var(--dash-border);

    text-align: center;

    color: var(--muted);
    font-size: 12px;
}

.preview-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 19px;

    border: 1px solid rgba(182, 107, 255, 0.52);
    border-radius: 11px;

    background:
        linear-gradient(
            125deg,
            rgba(95, 43, 144, 0.65),
            rgba(38, 22, 60, 0.82)
        );

    color: #f0deff;
    font-size: 12px;
    font-weight: 750;

    box-shadow:
        0 0 20px rgba(143, 67, 218, 0.13);

    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

.preview-link:hover {
    transform: translateY(-3px);

    border-color: var(--dash-neon);

    box-shadow:
        0 0 32px rgba(143, 67, 218, 0.32);
}

.auth-location {
    margin-top: 16px;
    font-size: 11px;
}

.auth-page-footer {
    position: relative;

    padding: 20px;

    text-align: center;

    color: var(--muted);
    font-size: 11px;
}


/* ==========================================================
   10. DASHBOARD-HINTERGRUND
   ========================================================== */

.dashboard-background {
    background:
        radial-gradient(
            ellipse at 72% 12%,
            rgba(61, 24, 100, 0.37),
            transparent 44%
        ),
        radial-gradient(
            ellipse at 35% 88%,
            rgba(54, 21, 88, 0.24),
            transparent 50%
        ),
        #08060d;
}

.dashboard-background::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(
            rgba(218, 193, 255, 0.55) 1px,
            transparent 1.5px
        );

    background-size: 135px 135px;

    opacity: 0.11;

    animation:
        dashParticleShift 50s linear infinite;
}

.dashboard-orb-one {
    top: -150px;
    right: -150px;

    opacity: 0.35;
}

.dashboard-orb-two {
    bottom: -170px;
    left: 20%;

    opacity: 0.28;

    animation-delay: -8s;
}


/* ==========================================================
   11. DASHBOARD-GRUNDLAYOUT
   ========================================================== */

.dashboard-layout {
    display: flex;

    min-height: 100vh;
}

.dashboard-main-wrapper {
    display: flex;
    flex-direction: column;

    flex: 1;
    min-width: 0;

    margin-left: 280px;
}


/* ==========================================================
   12. SIDEBAR
   ========================================================== */

.dashboard-sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 1100;

    display: flex;
    flex-direction: column;

    width: 280px;

    overflow-y: auto;
    overflow-x: hidden;

    background:
        linear-gradient(
            160deg,
            rgba(36, 20, 55, 0.97),
            rgba(12, 8, 21, 0.98) 70%
        );

    border-right:
        1px solid rgba(182, 107, 255, 0.27);

    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);

    box-shadow:
        15px 0 55px rgba(0, 0, 0, 0.23),
        inset -1px 0 0 rgba(255, 255, 255, 0.025);

    scrollbar-width: thin;
    scrollbar-color: #64318f transparent;

    transition:
        transform 0.35s cubic-bezier(.2,.8,.2,1);
}

/* Oberer Neonstreifen */

.dashboard-sidebar::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--dash-neon),
            var(--dash-ice),
            transparent
        );

    box-shadow:
        0 0 23px rgba(182, 107, 255, 0.7);
}

/* Dezente Lichtquelle hinter Navigation */

.dashboard-sidebar::after {
    content: "";

    position: fixed;

    top: 110px;
    left: -120px;

    width: 340px;
    height: 340px;

    background:
        radial-gradient(
            circle,
            rgba(143, 67, 218, 0.12),
            transparent 70%
        );

    filter: blur(32px);

    pointer-events: none;
}


/* ==========================================================
   13. SIDEBAR-BRANDING
   ========================================================== */

.sidebar-brand {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 23px 18px;

    border-bottom: 1px solid var(--dash-border);

    background:
        linear-gradient(
            110deg,
            rgba(143, 67, 218, 0.09),
            transparent
        );
}

.sidebar-brand img {
    width: 63px;
    height: 63px;

    flex-shrink: 0;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 17px rgba(182, 107, 255, 0.52)
        );

    animation:
        dashLogoFloat 6.5s ease-in-out infinite;
}

.sidebar-brand strong {
    display: block;

    font-size: 19px;
    font-weight: 950;

    letter-spacing: 1px;
    line-height: 1.2;
}

.sidebar-brand strong span {
    color: var(--dash-neon);

    text-shadow:
        0 0 20px rgba(182, 107, 255, 0.4);
}

.sidebar-brand small {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 8px;
    font-weight: 750;

    letter-spacing: 1.15px;
}


/* ==========================================================
   14. SIDEBAR-NAVIGATION
   ========================================================== */

.sidebar-navigation {
    position: relative;
    z-index: 1;

    flex: 1;

    padding: 23px 13px;
}

.sidebar-group {
    margin-bottom: 27px;
}

.sidebar-group p {
    margin: 0 0 10px;

    padding-inline: 12px;

    color: #aa92c5;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.65px;
}

.sidebar-link {
    position: relative;

    display: block;

    width: 100%;

    margin-bottom: 5px;
    padding: 12px 15px;

    border: 1px solid transparent;
    border-radius: 11px;

    background: transparent;

    color: #cbb8dd;

    font-size: 12.5px;
    font-weight: 700;
    text-align: left;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.sidebar-link::after {
    content: "";

    position: absolute;

    right: 0;
    top: 0;
    bottom: 0;

    width: 45%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(182, 107, 255, 0.13)
        );

    opacity: 0;

    transition:
        opacity 0.3s ease;
}

.sidebar-link:hover {
    color: white;

    transform: translateX(4px);

    background:
        rgba(143, 67, 218, 0.13);

    border-color:
        rgba(182, 107, 255, 0.2);
}

.sidebar-link:hover::after {
    opacity: 1;
}

.sidebar-link.active {
    color: white;

    background:
        linear-gradient(
            100deg,
            rgba(129, 54, 196, 0.39),
            rgba(143, 67, 218, 0.08)
        );

    border-color:
        rgba(182, 107, 255, 0.39);

    box-shadow:
        inset 3px 0 0 var(--dash-neon),
        0 0 25px rgba(143, 67, 218, 0.13);
}

.sidebar-link.active::after {
    opacity: 1;
}


/* ==========================================================
   15. SIDEBAR-FOOTER
   ========================================================== */

.sidebar-footer {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns: 45px 1fr;

    align-items: center;
    gap: 11px;

    padding: 19px 16px 23px;

    border-top: 1px solid var(--dash-border);

    background:
        linear-gradient(
            120deg,
            rgba(143, 67, 218, 0.12),
            rgba(10, 6, 17, 0.1)
        );
}

.sidebar-avatar {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border: 1px solid var(--dash-border);
    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #51227b,
            #aa5be6
        );

    color: white;
    font-weight: 950;

    box-shadow:
        0 0 25px rgba(143, 67, 218, 0.25);
}

.sidebar-footer strong {
    display: block;
    font-size: 12px;
}

.sidebar-footer small {
    display: block;

    font-size: 10px;
    color: var(--muted);
}

.sidebar-footer > a {
    grid-column: 1 / -1;

    padding: 10px;

    border: 1px solid var(--dash-border);
    border-radius: 10px;

    background:
        rgba(143, 67, 218, 0.12);

    text-align: center;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.3s,
        border-color 0.3s;
}

.sidebar-footer > a:hover {
    background: rgba(143, 67, 218, 0.3);
    border-color: var(--dash-neon);
}


/* ==========================================================
   16. DASHBOARD-HEADER
   ========================================================== */

.dashboard-header {
    position: sticky;
    top: 0;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 17px;

    min-height: 90px;

    padding: 17px 36px;

    background:
        linear-gradient(
            110deg,
            rgba(9, 6, 16, 0.9),
            rgba(32, 18, 49, 0.78),
            rgba(9, 6, 16, 0.9)
        );

    border-bottom: 1px solid var(--dash-border);

    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.15);
}

.dashboard-header::after {
    content: "";

    position: absolute;

    bottom: -1px;
    left: 15%;
    right: 15%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(182, 107, 255, 0.55),
            transparent
        );
}

.dashboard-header .eyebrow {
    margin-bottom: 3px;

    font-size: 10px;
}

.dashboard-header h1 {
    margin: 0;

    font-size: 28px;
    font-weight: 900;

    letter-spacing: -0.8px;
}

.dev-pill {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 9px 14px;

    border: 1px solid rgba(182, 107, 255, 0.32);
    border-radius: 999px;

    background:
        linear-gradient(
            100deg,
            rgba(143, 67, 218, 0.2),
            rgba(143, 67, 218, 0.08)
        );

    color: #eedcff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.4px;

    white-space: nowrap;
}

.dev-pill::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--dash-neon);

    box-shadow:
        0 0 12px rgba(182, 107, 255, 0.8);

    animation:
        dashSymbolPulse 3s ease-in-out infinite;
}

.dashboard-menu-toggle {
    display: none;

    padding: 7px 12px;

    border: 1px solid var(--dash-border);
    border-radius: 10px;

    background: rgba(47, 26, 68, 0.8);

    color: white;
    font-size: 22px;
}


/* ==========================================================
   17. DASHBOARD-INHALT
   ========================================================== */

.dashboard-content {
    flex: 1;

    width: 100%;
    min-width: 0;

    padding: 38px;
}

.dashboard-section {
    animation:
        dashSectionReveal 0.48s cubic-bezier(.2,.8,.2,1) both;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 20px;

    margin-bottom: 28px;
}

.dashboard-section-header h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 900;

    letter-spacing: -1px;

    margin: 0 0 8px;
}

.dashboard-section-header p {
    color: var(--muted);

    font-size: 13px;

    margin: 0;
}


/* ==========================================================
   18. ENTWICKLUNGSHINWEIS
   ========================================================== */

.dashboard-notice {
    position: relative;

    margin-bottom: 29px;
    padding: 19px 23px;

    border: 1px solid rgba(182, 107, 255, 0.34);
    border-left: 3px solid var(--dash-neon);
    border-radius: 13px;

    background:
        radial-gradient(
            ellipse at left center,
            rgba(143, 67, 218, 0.17),
            transparent 75%
        ),
        linear-gradient(
            110deg,
            rgba(35, 19, 52, 0.9),
            rgba(17, 11, 28, 0.9)
        );

    backdrop-filter: blur(14px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.15),
        0 0 28px rgba(143, 67, 218, 0.09);
}

.dashboard-notice strong {
    display: block;

    margin-bottom: 5px;

    color: #edd4ff;
    font-size: 13px;
}

.dashboard-notice p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.75;
}


/* ==========================================================
   19. DASHBOARD GLASS-PANELS
   ========================================================== */

.dashboard-panel,
.dashboard-stat-card,
.management-card {
    position: relative;
    isolation: isolate;

    margin-bottom: 23px;
    padding: 28px;

    border: 1px solid var(--dash-border);
    border-radius: 18px;

    background: var(--dash-glass);

    backdrop-filter: blur(17px) saturate(125%);
    -webkit-backdrop-filter: blur(17px) saturate(125%);

    box-shadow:
        var(--dash-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    overflow: hidden;

    transition:
        transform 0.4s cubic-bezier(.2,.8,.2,1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.dashboard-panel::before,
.dashboard-stat-card::before,
.management-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 10%;
    right: 10%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(218, 193, 255, 0.45),
            transparent
        );

    pointer-events: none;
}

.dashboard-stat-card::after,
.management-card::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -100px;
    right: -100px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(143, 67, 218, 0.26),
            transparent 72%
        );

    filter: blur(25px);

    pointer-events: none;

    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}

.dashboard-stat-card:hover,
.management-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(182, 107, 255, 0.68);

    box-shadow:
        0 28px 68px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(143, 67, 218, 0.2);
}

.dashboard-stat-card:hover::after,
.management-card:hover::after {
    transform: scale(1.3);
}

.dashboard-panel h3 {
    margin-bottom: 18px;

    font-size: 19px;
    font-weight: 850;
}

.dashboard-panel p,
.management-card p {
    color: var(--muted);

    font-size: 13px;
    line-height: 1.8;
}


/* ==========================================================
   20. STATISTIKKARTEN
   ========================================================== */

.dashboard-stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 29px;
}

.dashboard-stat-card {
    min-height: 165px;

    margin-bottom: 0;
    padding: 25px;
}

.stat-card-header {
    position: relative;
    z-index: 1;

    color: #c8b1df;

    font-size: 12px;
    font-weight: 700;
}

.stat-card-value {
    position: relative;
    z-index: 1;

    display: block;

    margin-top: 22px;

    color: white;

    font-size: clamp(27px, 2.5vw, 36px);
    font-weight: 900;

    line-height: 1.2;

    overflow-wrap: anywhere;

    text-shadow:
        0 0 23px rgba(182, 107, 255, 0.18);
}

.stat-card-description {
    display: block;

    margin-top: 7px;

    color: #9a87ac;
    font-size: 11px;
}


/* ==========================================================
   21. WILLKOMMENSBEREICH
   ========================================================== */

.mini-visual {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    gap: 30px;

    min-height: 205px;

    padding: 32px 38px;

    margin-bottom: 30px;

    border: 1px solid rgba(182, 107, 255, 0.36);
    border-radius: 20px;

    background:
        linear-gradient(
            110deg,
            rgba(48, 24, 77, 0.9),
            rgba(19, 12, 32, 0.94)
        );

    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(143, 67, 218, 0.1);

    overflow: hidden;
}

.mini-visual::before {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    top: -135px;
    right: -120px;

    z-index: -1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(182, 107, 255, 0.26),
            transparent 70%
        );

    filter: blur(30px);

    animation:
        dashOrbFloat 13s ease-in-out infinite alternate;
}

.mini-visual img {
    width: 145px;
    height: 145px;

    flex-shrink: 0;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 23px rgba(182, 107, 255, 0.52)
        );

    animation:
        dashLogoFloat 7s ease-in-out infinite;
}

.mini-visual h2 {
    font-size: clamp(25px, 3.4vw, 41px);
    font-weight: 900;

    letter-spacing: -1px;

    margin: 0 0 12px;
}

.mini-visual p {
    max-width: 590px;

    color: var(--muted);
    font-size: 13px;
}


/* ==========================================================
   22. VERWALTUNGSKARTEN
   ========================================================== */

.dashboard-management-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-bottom: 25px;
}

.management-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 205px;

    margin: 0;
    padding: 31px;
}

.management-card h3 {
    font-size: 20px;
    font-weight: 850;

    margin-bottom: 13px;
}

.management-card .dashboard-button {
    margin-top: auto;
}


/* ==========================================================
   23. FORMULARE
   ========================================================== */

.dashboard-form-group {
    display: grid;
    gap: 9px;

    margin-bottom: 20px;
}

.dashboard-form-group label {
    color: #e0c9f6;

    font-size: 12px;
    font-weight: 750;
}

.dashboard-form-group input,
.dashboard-form-group select,
.dashboard-form-group textarea,
.dashboard-search input {
    width: 100%;
    min-width: 0;

    min-height: 46px;

    padding: 12px 15px;

    border: 1px solid var(--dash-border);
    border-radius: 11px;

    background:
        linear-gradient(
            125deg,
            rgba(8, 6, 13, 0.8),
            rgba(24, 13, 39, 0.77)
        );

    color: white;

    outline: none;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.dashboard-form-group input:hover,
.dashboard-form-group select:hover,
.dashboard-form-group textarea:hover,
.dashboard-search input:hover {
    border-color:
        rgba(182, 107, 255, 0.5);
}

.dashboard-form-group input:focus,
.dashboard-form-group select:focus,
.dashboard-form-group textarea:focus,
.dashboard-search input:focus {
    border-color: var(--dash-neon);

    background: rgba(19, 10, 31, 0.95);

    box-shadow:
        0 0 0 3px rgba(143, 67, 218, 0.14),
        0 0 22px rgba(143, 67, 218, 0.12);
}

.dashboard-form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.dashboard-form-group select option {
    background: #171022;
    color: white;
}

.dashboard-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* ==========================================================
   24. BUTTONS
   ========================================================== */

.dashboard-button,
.button-secondary,
.button-danger {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 11px 19px;

    border: 1px solid rgba(218, 193, 255, 0.37);
    border-radius: 11px;

    background:
        linear-gradient(
            110deg,
            #6425a2,
            #9546da,
            #b66bff
        );

    background-size: 210% 100%;

    color: white;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 7px 24px rgba(143, 67, 218, 0.23);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.dashboard-button::before,
.button-secondary::before,
.button-danger::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255, 255, 255, 0.22) 50%,
            transparent 80%
        );

    transform: translateX(-140%);

    transition:
        transform 0.75s ease;

    pointer-events: none;
}

.dashboard-button:hover,
.button-secondary:hover,
.button-danger:hover {
    transform: translateY(-3px);

    border-color: #e2c0ff;

    box-shadow:
        0 0 30px rgba(182, 107, 255, 0.35);
}

.dashboard-button:hover::before,
.button-secondary:hover::before,
.button-danger:hover::before {
    transform: translateX(140%);
}

.button-secondary {
    background:
        linear-gradient(
            125deg,
            rgba(53, 33, 78, 0.95),
            rgba(30, 19, 44, 0.95)
        );
}

.button-danger {
    background:
        linear-gradient(
            115deg,
            #67273f,
            #ae4267
        );

    border-color:
        rgba(236, 130, 166, 0.4);

    box-shadow:
        0 5px 20px rgba(174, 66, 103, 0.15);
}

.button-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}


/* ==========================================================
   25. SUCHE & TABELLEN
   ========================================================== */

.dashboard-search {
    display: flex;
    align-items: center;

    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 22px;
}

.dashboard-search input {
    flex: 1;
}

.dashboard-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--dash-border);
    border-radius: 14px;

    background:
        rgba(12, 8, 21, 0.45);

    scrollbar-color: #693a92 transparent;
}

.dashboard-table {
    width: 100%;
    min-width: 560px;

    border-collapse: collapse;

    text-align: left;
}

.dashboard-table th {
    padding: 17px 16px;

    background:
        linear-gradient(
            110deg,
            rgba(143, 67, 218, 0.22),
            rgba(143, 67, 218, 0.08)
        );

    border-bottom: 1px solid var(--dash-border);

    color: #ead4fc;

    font-size: 11px;
    font-weight: 850;

    letter-spacing: 0.45px;
    white-space: nowrap;
}

.dashboard-table td {
    padding: 16px;

    border-bottom:
        1px solid rgba(182, 107, 255, 0.09);

    color: #d1c0e0;

    font-size: 12px;

    vertical-align: middle;
}

.dashboard-table tbody tr {
    transition:
        background 0.25s ease;
}

.dashboard-table tbody tr:hover {
    background:
        rgba(143, 67, 218, 0.12);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-table .button-row {
    min-width: 160px;
}


/* ==========================================================
   26. LEERE BEREICHE
   ========================================================== */

.dashboard-empty-state {
    padding: 34px 22px;

    border: 1px dashed rgba(182, 107, 255, 0.35);
    border-radius: 13px;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(143, 67, 218, 0.14),
            transparent 74%
        ),
        rgba(13, 9, 22, 0.54);

    color: var(--muted);

    text-align: center;
    font-size: 13px;
}


/* ==========================================================
   27. BENACHRICHTIGUNGEN & KLEINE ELEMENTE
   ========================================================== */

.dashboard-notification {
    margin-bottom: 19px;
    padding: 13px 18px;

    border: 1px solid rgba(182, 107, 255, 0.5);
    border-radius: 11px;

    background:
        linear-gradient(
            110deg,
            rgba(90, 42, 126, 0.87),
            rgba(35, 21, 53, 0.93)
        );

    box-shadow:
        0 0 25px rgba(143, 67, 218, 0.15);

    color: white;
    font-size: 12px;

    animation:
        dashSectionReveal 0.35s ease both;
}

.pill {
    display: inline-block;

    padding: 5px 11px;

    border: 1px solid var(--dash-border);
    border-radius: 999px;

    background:
        rgba(143, 67, 218, 0.17);

    color: #e5cefa;
    font-size: 11px;
}

.notice-text {
    color: #a8efd1 !important;
    font-size: 12px;
}

.disabled-hint {
    color: var(--muted);
    font-size: 11px;
}

.preview-image {
    width: 92px;
    height: 60px;

    object-fit: cover;
    border-radius: 9px;
}

.dashboard-check {
    display: flex;
    align-items: center;

    gap: 9px;

    font-size: 13px;
}

.dashboard-check input {
    accent-color: var(--dash-neon);
}


/* ==========================================================
   28. RECHNUNGSSUMMEN
   ========================================================== */

.item-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 24px;

    margin-top: 20px;
    padding: 21px 24px;

    border: 1px solid var(--dash-border);
    border-radius: 13px;

    background:
        linear-gradient(
            110deg,
            rgba(143, 67, 218, 0.17),
            rgba(19, 12, 29, 0.76)
        );
}

.item-summary strong {
    color: white;

    font-size: 27px;
    font-weight: 900;

    text-shadow:
        0 0 25px rgba(182, 107, 255, 0.28);
}


/* ==========================================================
   29. UMSATZDIAGRAMME
   ========================================================== */

.bar-chart {
    display: grid;
    gap: 15px;
}

.bar-row {
    display: grid;

    grid-template-columns:
        minmax(95px, 170px) 1fr auto;

    gap: 14px;
    align-items: center;

    font-size: 12px;
}

.bar-row strong {
    white-space: nowrap;
}

.bar-track {
    position: relative;

    height: 14px;

    border-radius: 99px;

    background: rgba(56, 33, 78, 0.85);

    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.3);

    overflow: hidden;
}

.bar-fill {
    position: relative;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #6f2db1,
            #ae5bf0,
            #d5a3ff
        );

    box-shadow:
        0 0 15px rgba(182, 107, 255, 0.5);

    animation:
        dashBarGrow 0.95s ease both;

    transform-origin: left;
}

.bar-fill::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent
        );

    animation:
        dashBarLight 4s ease-in-out infinite;
}


/* ==========================================================
   30. FOOTER & MOBILE OVERLAY
   ========================================================== */

.dashboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;
    gap: 15px;

    min-height: 74px;

    padding: 20px 38px;

    border-top: 1px solid var(--dash-border);

    background:
        rgba(8, 6, 13, 0.54);

    color: #9987ac;
    font-size: 11px;
}

.dashboard-sidebar-overlay {
    position: fixed;
    inset: 0;

    z-index: 1050;

    width: 100%;
    height: 100%;

    border: 0;

    background: rgba(5, 3, 9, 0.74);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}


/* ==========================================================
   31. KEYFRAME-ANIMATIONEN
   ========================================================== */

@keyframes dashBannerZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.12);
    }
}

@keyframes dashOrbFloat {
    0% {
        transform:
            translate(0, 0) scale(1);
    }

    50% {
        transform:
            translate(55px, -45px) scale(1.14);
    }

    100% {
        transform:
            translate(-42px, 62px) scale(0.96);
    }
}

@keyframes dashGridShift {
    to {
        background-position:
            68px 136px,
            68px 136px;
    }
}

@keyframes dashFogDrift {
    0% {
        transform:
            translateX(-7%) scale(1);
    }

    100% {
        transform:
            translateX(7%) scale(1.14);
    }
}

@keyframes dashParticleShift {
    to {
        background-position:
            120px 240px,
            -170px 170px;
    }
}

@keyframes dashLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes dashCardEnter {
    from {
        opacity: 0;
        transform:
            translateY(35px) scale(0.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0) scale(1);
    }
}

@keyframes dashSectionReveal {
    from {
        opacity: 0;
        transform: translateY(19px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dashGlowPulse {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

@keyframes dashSymbolPulse {
    0%, 100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

@keyframes dashGradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes dashBarGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes dashBarLight {
    0%, 100% {
        transform: translateX(-110%);
    }

    65% {
        transform: translateX(110%);
    }
}


/* ==========================================================
   32. RESPONSIVE – KLEINERE DESKTOPS
   ========================================================== */

@media (max-width: 1250px) {
    .dashboard-stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-content {
        padding: 29px;
    }
}


/* ==========================================================
   33. RESPONSIVE – TABLET & MOBIL
   ========================================================== */

@media (max-width: 950px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-sidebar.open {
        transform: translateX(0);

        box-shadow:
            20px 0 80px rgba(0, 0, 0, 0.62);
    }

    .dashboard-main-wrapper {
        margin-left: 0;
    }

    .dashboard-menu-toggle {
        display: block;
    }

    .dashboard-header {
        padding: 16px 23px;
    }

    .dashboard-content {
        padding: 26px 22px;
    }
}

@media (max-width: 650px) {
    .auth-header {
        min-height: 69px;
        padding: 15px 5%;
    }

    .auth-main {
        padding: 20px 15px 37px;
    }

    .auth-card {
        padding: 32px 23px 28px;
        border-radius: 20px;
    }

    .auth-logo-wrapper {
        width: 118px;
        height: 118px;
    }

    .auth-logo {
        width: 112px;
        height: 112px;
    }

    .auth-brand-name {
        font-size: 26px;
        letter-spacing: 3px;
    }

    .auth-heading h1 {
        font-size: 30px;
    }

    .dashboard-header {
        gap: 10px;
        padding: 15px 17px;
    }

    .dashboard-header h1 {
        font-size: 21px;
    }

    .dashboard-header .eyebrow {
        font-size: 8px;
    }

    .dev-pill {
        font-size: 8px;
        padding: 7px 9px;
    }

    .dashboard-content {
        padding: 22px 15px;
    }

    .dashboard-panel {
        padding: 22px 17px;
    }

    .dashboard-stats-grid {
        gap: 13px;
    }

    .dashboard-stat-card {
        min-height: 145px;
        padding: 17px;
    }

    .stat-card-value {
        font-size: 27px;
    }

    .dashboard-management-grid,
    .dashboard-form-grid {
        grid-template-columns: 1fr;
    }

    .management-card {
        padding: 25px;
    }

    .mini-visual {
        padding: 23px;
        gap: 15px;
    }

    .mini-visual img {
        width: 78px;
        height: 78px;
    }

    .mini-visual h2 {
        font-size: 25px;
    }

    .dashboard-search {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-footer {
        padding: 20px 15px;
        justify-content: center;
        text-align: center;
    }

    .bar-row {
        grid-template-columns:
            minmax(65px, 85px) 1fr auto;

        gap: 8px;
        font-size: 10px;
    }

    .dashboard-sidebar {
        width: min(280px, 90vw);
    }
}

@media (max-width: 380px) {
    .auth-card {
        padding: 28px 17px;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .mini-visual {
        flex-direction: column;
        align-items: flex-start;
    }

    .dev-pill {
        display: none;
    }
}


/* ==========================================================
   34. BARRIEREFREIHEIT
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after,
    .dashboard-page *,
    .dashboard-page *::before,
    .dashboard-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

    .auth-card,
    .dashboard-section {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================
   ENDE – GHOSTLINE DASHBOARD.CSS V4.1
   ========================================================== */
