/* =========================================================
   PWA / B2B APP UI
   ========================================================= */

body{
    background:#edf2f7;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    color:#111;
    margin:0;
}

/* =========================================================
   APP WRAPPER
   ========================================================= */

.pwa-dashboard{
    max-width:1200px;
    margin:40px auto;
    padding:0 20px 80px;
}

/* =========================================================
   HERO
   ========================================================= */

.dashboard-hero{
    background:linear-gradient(135deg,#ffffff,#e9edf3);
    border-radius:32px;
    padding:24px 36px;
    margin-bottom:32px;
    box-shadow:0 10px 40px rgba(0,0,0,.05);
    position:relative;
    overflow:hidden;
}

.dashboard-hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,0));
    pointer-events:none;
}

.dashboard-label{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#86868b;
}

.dashboard-hero h1{
    margin:10px 0 18px;
    font-size:32px;
    line-height:1.05;
    letter-spacing:-0.05em;
    color:#111;
}

.dashboard-hero p{
    font-size:16px;
    color:#6e6e73;
    max-width:700px;
    margin:0;
}

/* =========================================================
   GRID
   ========================================================= */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:18px;
}

/* =========================================================
   CARD (FIXED: ICON LEFT + TEXT RIGHT)
   ========================================================= */

.dashboard-card{
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);

    border-radius:28px;

    padding:22px;

    text-decoration:none !important;
    color:#111 !important;

    border:1px solid rgba(255,255,255,.7);

    box-shadow:
        0 4px 10px rgba(0,0,0,.02),
        0 18px 45px rgba(0,0,0,.06);

    transition:all .3s ease;

    display:flex;
    flex-direction:row;        /* 🔥 WICHTIG */
    align-items:center;        /* 🔥 WICHTIG */

    gap:16px;

    min-height:120px;

    cursor:pointer;

    position:relative;
    overflow:hidden;
}

/* GLASS EFFECT */
.dashboard-card::before{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0));
    pointer-events:none;
}

/* HOVER */
.dashboard-card:hover{
    transform:translateY(-8px);
    box-shadow:0 28px 60px rgba(0,0,0,.10);
}

/* ACTIVE */
.dashboard-card:active{
    transform:scale(.98);
}

/* =========================================================
   ICON
   ========================================================= */

.dashboard-icon{
    width:56px;
    height:56px;
    min-width:56px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#f5f7fa;
    border-radius:20px;

    font-size:28px;

    flex-shrink:0;

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.8),
        0 4px 10px rgba(0,0,0,.03);
}

/* =========================================================
   TEXT BLOCK
   ========================================================= */

.dashboard-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

/* TITLE */
.dashboard-card h3{
    margin:0 0 6px;
    font-size:18px !important;
    line-height:1.2;
    letter-spacing:-0.02em;
}

/* TEXT */
.dashboard-card p{
    margin:0;
    font-size:14px;
    color:#6e6e73;
    line-height:1.45;
}

/* =========================================================
   SPECIAL CARD
   ========================================================= */

.logout-card{
    background:#a4a4a4 !important;
    color:#fff !important;
    border:none;
}

.logout-card h3{
    color:#fff;
}

.logout-card p{
    color:rgba(255,255,255,.7);
}

.logout-card .dashboard-icon{
    background:rgba(223, 223, 223, 0.08);
    box-shadow:none;
}

/* =========================================================
   LINKS
   ========================================================= */

.pwa-dashboard a{
    text-decoration:none !important;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.pwa-dashboard button,
.pwa-dashboard .button,
.pwa-dashboard input[type="submit"]{
    background:#111 !important;
    color:#fff !important;
    border:none;
    border-radius:14px;
    padding:14px 22px;
    font-weight:600;
    cursor:pointer;
    transition:.2s ease;
}

.pwa-dashboard button:hover,
.pwa-dashboard .button:hover,
.pwa-dashboard input[type="submit"]:hover{
    opacity:.88;
}

/* =========================================================
   INPUTS
   ========================================================= */

.pwa-dashboard input,
.pwa-dashboard textarea,
.pwa-dashboard select{
    width:100%;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid #ddd;
    background:#fafafa;
    font-size:15px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:980px){
    .pwa-dashboard{
        padding:0 16px 120px;
    }

    .dashboard-hero{
        padding:10px 20px;
    }

    .dashboard-hero h1{
        font-size:28px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width:768px){
    .dashboard-grid{
        grid-template-columns:1fr;
    }

    .dashboard-card{
        min-height:auto;
        padding:18px;
        border-radius:24px;
    }

    .dashboard-icon{
        width:52px;
        height:52px;
        min-width:52px;
        font-size:24px;
    }

    .dashboard-card h3{
        font-size:17px !important;
    }

    .dashboard-card p{
        font-size:13px;
    }

    .dashboard-hero{
        border-radius:26px;
    }

    .dashboard-hero h1{
        font-size:24px;
    }
}