*{box-sizing:border-box}

:root{
    --bg:#eef3fb;
    --ink:#071225;
    --muted:#667085;
    --white:#fff;
    --border:rgba(215,225,242,.95);
    --blue:#2f6bff;
    --violet:#8a5cff;
    --green:#16825a;
    --red:#be3d3d;
    --gold:#a67c00;
    --shadow:0 24px 80px rgba(19,35,67,.13);
}

html,body{
    margin:0;
    min-height:100%;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    background:
        radial-gradient(circle at top left,rgba(47,107,255,.16),transparent 32%),
        radial-gradient(circle at top right,rgba(138,92,255,.16),transparent 34%),
        linear-gradient(180deg,#f6f8fc 0%,#eaf0f8 100%);
    color:var(--ink);
}

a{text-decoration:none;color:inherit}

.main{
    width:min(1380px,calc(100% - 48px));
    margin:0 auto;
    padding:28px 0 70px;
}

/* TOPBAR */

.topbar{
    position:sticky;
    top:0;
    z-index:99;
    display:flex;
    align-items:center;
    gap:18px;
    padding:14px 24px;
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(20px);
    border-bottom:1px solid var(--border);
    box-shadow:0 12px 40px rgba(19,35,67,.08);
}

.brand-logo{
    display:flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
    font-weight:950;
}

.brand-logo span{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    background:linear-gradient(135deg,#8bd7ff,#9d7cff);
    box-shadow:0 10px 24px rgba(90,128,255,.35);
    color:#071225;
    font-weight:950;
}

.brand-logo strong{
    font-size:19px;
    letter-spacing:-.4px;
}

.nav{
    display:flex;
    align-items:center;
    gap:8px;
    overflow-x:auto;
    flex:1;
}

.nav a{
    display:inline-flex;
    padding:10px 13px;
    border-radius:14px;
    color:#4b5563;
    font-weight:850;
    font-size:14px;
    white-space:nowrap;
}

.nav a:hover,
.nav a.active{
    background:#eef2ff;
    color:#17213a;
}

.user-pill{
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 12px;
    border-radius:16px;
    background:#f6f8fc;
    border:1px solid var(--border);
    font-weight:850;
    white-space:nowrap;
}

.user-pill a{
    color:#4f46e5;
}

/* HERO */

.hero{
    background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(245,248,255,.86));
    border:1px solid var(--border);
    border-radius:34px;
    padding:34px;
    margin-bottom:26px;
    box-shadow:var(--shadow);
}

.hero span{
    display:inline-flex;
    padding:8px 14px;
    border-radius:999px;
    background:#eef2ff;
    color:#3154c9;
    font-weight:950;
}

.hero h1{
    font-size:clamp(36px,4vw,58px);
    line-height:1.02;
    letter-spacing:-2px;
    margin:14px 0 8px;
}

.hero p{
    margin:0;
    font-size:18px;
    color:#334155;
}

/* CARDS */

.card{
    background:rgba(255,255,255,.9);
    border:1px solid var(--border);
    border-radius:28px;
    padding:26px;
    margin-bottom:24px;
    box-shadow:var(--shadow);
}

.card h3{
    margin:0 0 18px;
    font-size:24px;
    letter-spacing:-.7px;
}

/* FORMS */

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

label{
    display:block;
    margin:14px 0 7px;
    font-weight:950;
    color:#56627f;
    font-size:14px;
}

input,select,textarea{
    width:100%;
    padding:14px 15px;
    border:1px solid #dce5f4;
    border-radius:16px;
    font-size:15px;
    background:#fff;
    color:var(--ink);
    outline:none;
}

textarea{
    min-height:110px;
    resize:vertical;
}

button,.btn{
    border:0;
    border-radius:15px;
    padding:12px 16px;
    font-weight:950;
    background:linear-gradient(135deg,var(--blue),var(--violet));
    color:#fff;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.btn.secondary{
    background:#eef2ff;
    color:#17213a;
    border:1px solid #dce5ff;
}

button.danger,.btn.danger,.danger{
    background:#d94c4c;
    color:#fff;
}

.actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

/* CLIENT PROFILE */

.client-wallet-profile{
    display:grid;
    grid-template-columns:190px 1fr;
    gap:26px;
    margin-bottom:24px;
    padding:30px;
    border-radius:36px;
    background:
        radial-gradient(circle at 18% 12%,rgba(255,255,255,.22),transparent 32%),
        radial-gradient(circle at 88% 18%,rgba(139,92,246,.42),transparent 34%),
        linear-gradient(135deg,#071225 0%,#14294d 48%,#5b42f3 100%);
    color:#fff;
    box-shadow:0 28px 80px rgba(10,25,60,.28);
    align-items:center;
}

.client-photo-wrap{
    width:190px;
    height:190px;
    border-radius:34px;
    overflow:hidden;
    background:
        radial-gradient(circle at 30% 20%,rgba(255,255,255,.18),transparent 40%),
        linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.05));
    border:1px solid rgba(255,255,255,.24);
    display:flex;
    align-items:center;
    justify-content:center;
}

.client-photo-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.client-photo-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:78px;
    font-weight:950;
    background:linear-gradient(135deg,#8bd7ff,#9d7cff);
    color:#071225;
}

.client-profile-main h2{
    font-size:clamp(38px,5vw,62px);
    line-height:1;
    letter-spacing:-2px;
    margin:26px 0 12px;
    color:#fff;
}

.client-profile-main p{
    font-size:18px;
    font-weight:850;
    color:rgba(255,255,255,.88);
}

.wallet-badge{
    display:inline-flex;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.22);
    font-weight:950;
    color:#fff;
}

.client-info-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(150px,1fr));
    gap:14px;
    margin-top:24px;
}

.client-info-grid div{
    min-height:94px;
    padding:16px;
    border-radius:22px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.16);
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.client-info-grid span{
    display:block;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:rgba(255,255,255,.66);
    margin-bottom:8px;
}

.client-info-grid strong{
    display:block;
    font-size:15px;
    line-height:1.35;
    color:#fff;
}

/* WALLET KPI */

.wallet-stack{
    display:grid;
    grid-template-columns:repeat(5,minmax(190px,220px));
    gap:18px;
    overflow-x:auto;
    padding:2px 4px 24px;
    margin-bottom:24px;
    scroll-snap-type:x mandatory;
    align-items:stretch;
}

.wallet-card{
    min-height:180px;
    border-radius:28px;
    padding:22px;
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    box-shadow:0 22px 60px rgba(20,35,70,.20);
    scroll-snap-align:start;
    overflow:hidden;
}

.wallet-card span,
.wallet-card strong,
.wallet-card small{
    opacity:1;
    color:inherit;
    text-shadow:0 1px 8px rgba(0,0,0,.12);
}

.wallet-card span{
    font-size:15px;
    line-height:1.25;
    font-weight:950;
}

.wallet-card strong{
    display:block;
    font-size:clamp(28px,3.3vw,40px);
    line-height:1.05;
    letter-spacing:-1.3px;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}

.wallet-card small{
    font-size:13px;
    font-weight:850;
}

.wallet-card.blue{background:linear-gradient(145deg,#2458ff,#7147ff)}
.wallet-card.green{background:linear-gradient(145deg,#128052,#45d487)}
.wallet-card.red{background:linear-gradient(145deg,#bd3d36,#ff7168)}
.wallet-card.gold{background:linear-gradient(145deg,#f5b800,#ffe66b);color:#1d1600}
.wallet-card.dark{background:linear-gradient(145deg,#071225,#2d354b);color:#fff}

/* TABLES */

.table-wrap{
    overflow-x:auto;
    border-radius:22px;
    border:1px solid var(--border);
    background:rgba(255,255,255,.55);
}

.table{
    width:100%;
    min-width:980px;
    border-collapse:separate;
    border-spacing:0;
    table-layout:fixed;
}

.table th{
    background:#f8faff;
    color:#56627f;
    font-weight:950;
    text-align:left;
    padding:15px;
    border-bottom:1px solid #dfe7f5;
    font-size:13px;
}

.table td{
    padding:15px;
    border-bottom:1px solid #edf2fb;
    vertical-align:middle;
    background:rgba(255,255,255,.72);
}

.table td.num,.table th.num{
    text-align:right;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}

.green{color:var(--green)}
.red{color:var(--red)}
.blue{color:var(--blue)}
.gold{color:var(--gold)}
.muted{color:var(--muted)}

.alert{
    padding:15px 18px;
    border-radius:18px;
    margin-bottom:18px;
    font-weight:950;
}

.success{background:#e5f8ed;color:#177247}
.error{background:#ffe8e8;color:#a52c2c}
.info{background:#e8edff;color:#3154c9}

/* MOBILE */

@media(max-width:900px){
    .main{
        width:calc(100% - 24px);
        padding:16px 0 50px;
    }

    .topbar{
        flex-direction:column;
        align-items:flex-start;
        padding:12px;
    }

    .nav{
        width:100%;
    }

    .user-pill{
        width:100%;
        justify-content:space-between;
    }

    .hero{
        border-radius:26px;
        padding:24px;
    }

    .hero h1{
        font-size:34px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .client-wallet-profile{
        grid-template-columns:1fr;
        padding:24px;
    }

    .client-photo-wrap{
        width:140px;
        height:140px;
    }

    .client-info-grid{
        grid-template-columns:1fr;
    }

    .wallet-stack{
        grid-template-columns:repeat(5,175px);
    }

    .wallet-card{
        min-height:155px;
        padding:18px;
        border-radius:26px;
    }

    .wallet-card strong{
        font-size:28px;
    }

    .table{
        min-width:930px;
    }
}
/* /* =========================================================
   FINAL KPI / WALLET FIX – TEXT & LESBARKEIT
   ========================================================= */

/* Grundfarbe je Karte */
.wallet-card.blue,
.wallet-card.green,
.wallet-card.red,
.wallet-card.dark {
    color: #ffffff !important;
}

.wallet-card.gold {
    color: #1c1600 !important;
}

/* ALLE Textelemente innerhalb Karten */
.wallet-card span,
.wallet-card strong,
.wallet-card small {
    opacity: 1 !important;
    color: inherit !important;
}

/* Spezifisch: dunkle Karten → weiß */
.wallet-card.blue span,
.wallet-card.blue strong,
.wallet-card.blue small,
.wallet-card.green span,
.wallet-card.green strong,
.wallet-card.green small,
.wallet-card.red span,
.wallet-card.red strong,
.wallet-card.red small,
.wallet-card.dark span,
.wallet-card.dark strong,
.wallet-card.dark small {
    color: #ffffff !important;
}

/* Goldene Karte → dunkler Text */
.wallet-card.gold span,
.wallet-card.gold strong,
.wallet-card.gold small {
    color: #1c1600 !important;
}

/* Titel (z.B. "Steuerfälle") */
.wallet-card span {
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
}

/* Hauptwert (z.B. 840,00 €) */
.wallet-card strong {
    font-size: clamp(30px, 3.5vw, 42px) !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    letter-spacing: -1.5px !important;
    white-space: nowrap !important;
}

/* Untertext (z.B. "noch offen") */
.wallet-card small {
    font-size: 13px !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}

/* Schatten entfernen → cleaner Look */
.wallet-card strong,
.wallet-card span,
.wallet-card small {
    text-shadow: none !important;
}

/* Hover Effekt (optional Premium) */
.wallet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
    transition: all .2s ease;
}/* =========================================================
   FINAL FIX: Beträge vollständig anzeigen – ohne ...
   ========================================================= */

.wallet-stack {
    grid-template-columns: repeat(5, minmax(230px, 250px)) !important;
    gap: 18px !important;
}

.wallet-card {
    min-width: 230px !important;
    padding: 22px 24px !important;
}

.wallet-card strong {
    width: 100% !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap !important;
    font-size: clamp(26px, 2.8vw, 36px) !important;
    letter-spacing: -1px !important;
    line-height: 1.05 !important;
}

/* Lange Euro-Beträge etwas kleiner, aber vollständig */
.wallet-card.green strong,
.wallet-card.gold strong,
.wallet-card.red strong {
    font-size: clamp(25px, 2.6vw, 34px) !important;
}

/* iPad / kleinere Displays */
@media (max-width: 1100px) {
    .wallet-stack {
        grid-template-columns: repeat(5, 245px) !important;
        overflow-x: auto !important;
    }

    .wallet-card {
        min-width: 245px !important;
    }

    .wallet-card strong {
        font-size: 32px !important;
    }
}

/* Handy */
@media (max-width: 700px) {
    .wallet-stack {
        grid-template-columns: repeat(5, 225px) !important;
    }

    .wallet-card {
        min-width: 225px !important;
    }

    .wallet-card strong {
        font-size: 28px !important;
    }
}

/* =========================================================
   DASHBOARD FINAL UI
   ========================================================= */

.dash-hero {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 22px;
    margin-bottom: 24px;
    padding: 34px;
    border-radius: 36px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,255,255,.20), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(139,92,246,.42), transparent 34%),
        linear-gradient(135deg, #071225 0%, #14294d 48%, #5b42f3 100%);
    box-shadow: 0 28px 80px rgba(10,25,60,.28);
}

.dash-hero h2 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -2.4px;
    margin: 26px 0 12px;
}

.dash-hero p {
    font-size: 19px;
    font-weight: 850;
    color: rgba(255,255,255,.84);
    margin: 0;
}

.dash-hero-user {
    align-self: start;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.18);
}

.dash-hero-user span,
.dash-hero-user small {
    display: block;
    color: rgba(255,255,255,.72);
    font-weight: 850;
}

.dash-hero-user strong {
    display: block;
    font-size: 24px;
    margin: 8px 0;
}

.dashboard-wallets {
    grid-template-columns: repeat(5, minmax(220px, 250px)) !important;
    margin-bottom: 26px !important;
}

.dashboard-wallets .wallet-card {
    min-height: 190px !important;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    margin-bottom: 22px;
}

.dash-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.dash-panel {
    min-height: 220px;
}

.mini-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mini-kpi {
    padding: 24px;
    border-radius: 24px;
    min-height: 140px;
}

.mini-kpi span {
    display: block;
    font-weight: 950;
    margin-bottom: 16px;
}

.mini-kpi strong {
    display: block;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 950;
    letter-spacing: -1.4px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.green-soft {
    background: #e7f8ef;
    color: #146c43;
}

.red-soft {
    background: #ffe8e8;
    color: #9b2525;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.clean-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clean-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(215,225,242,.9);
}

.clean-item:hover {
    background: #eef2ff;
}

.clean-item strong {
    display: block;
    font-weight: 950;
    margin-bottom: 4px;
}

.clean-item span {
    display: block;
    color: #667085;
    font-size: 13px;
    font-weight: 750;
}

.clean-item em {
    font-style: normal;
    font-weight: 950;
    color: #3154c9;
    white-space: nowrap;
}

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

    .dashboard-wallets {
        grid-template-columns: repeat(5, 235px) !important;
        overflow-x: auto !important;
    }
}

@media(max-width: 700px) {
    .dash-hero {
        padding: 24px;
        border-radius: 28px;
    }

    .dash-hero h2 {
        font-size: 38px;
    }

    .mini-kpi-grid {
        grid-template-columns: 1fr;
    }
} 
/* =========================================================
   LOGIN UI FINAL
   ========================================================= */

.login-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
        radial-gradient(circle at 20% 10%, rgba(47,107,255,.22), transparent 34%),
        radial-gradient(circle at 85% 15%, rgba(138,92,255,.22), transparent 34%),
        linear-gradient(180deg, #f6f8fc 0%, #eaf0f8 100%);
}

.login-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 28px;
    align-items: stretch;
}

.login-brand {
    border-radius: 40px;
    padding: 42px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 12%, rgba(255,255,255,.24), transparent 32%),
        radial-gradient(circle at 90% 18%, rgba(139,92,246,.42), transparent 34%),
        linear-gradient(135deg, #071225 0%, #14294d 48%, #5b42f3 100%);
    box-shadow: 0 28px 80px rgba(10,25,60,.28);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: linear-gradient(135deg, #8bd7ff, #9d7cff);
    color: #071225;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 36px;
    margin-bottom: 28px;
}

.login-brand h1 {
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -2.5px;
    margin: 0 0 14px;
}

.login-brand p {
    font-size: 20px;
    font-weight: 850;
    color: rgba(255,255,255,.82);
    margin: 0;
}

.login-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(215,225,242,.95);
    border-radius: 40px;
    padding: 38px;
    box-shadow: 0 24px 80px rgba(19,35,67,.13);
}

.login-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3154c9;
    font-weight: 950;
    margin-bottom: 22px;
}

.login-card h2 {
    font-size: 42px;
    line-height: 1;
    letter-spacing: -1.6px;
    margin: 0 0 10px;
}

.login-muted {
    color: #667085;
    font-weight: 750;
    margin-bottom: 24px;
}

.login-error {
    background: #ffe8e8;
    color: #9b2525;
    padding: 15px 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 950;
}

.login-button {
    width: 100%;
    margin-top: 20px;
    padding: 15px 18px;
    font-size: 16px;
}

@media(max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 260px;
    }

    .login-card {
        padding: 28px;
    }
}