/* ============================================================
   CoreScale Kundenportal — gemeinsame Styles
   ============================================================ */

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:1.5rem}
body{background:#0a0a0a;color:#f5f5f5;font-family:'Inter',sans-serif;min-height:100vh;overflow-x:hidden}

/* ============ STATISTIKEN-BEREICH ============ */
.insight-group{margin-top:1.5rem}
.insight-group:first-child{margin-top:0}
.insight-group-head{
    display:flex;align-items:center;gap:.5rem;
    margin-bottom:.85rem;padding-bottom:.55rem;
    border-bottom:1px solid #1a1a1a;
    font-size:.78rem;font-weight:600;color:#aaa;
    text-transform:uppercase;letter-spacing:.08em;
}
.insight-group-head svg{width:14px;height:14px;color:#ff6a00;flex-shrink:0}
.insight-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:.75rem;
}
.insight-card{
    background:#0d0d0d;
    border:1px solid #1a1a1a;
    border-radius:8px;
    padding:.85rem 1rem;
    transition:border-color .25s;
}
.insight-card:hover{border-color:#222}
.insight-label{
    font-size:.65rem;color:#666;
    text-transform:uppercase;letter-spacing:.08em;
    margin-bottom:.4rem;line-height:1.2;
}
.insight-value{
    font-size:1.1rem;font-weight:600;color:#f5f5f5;
    line-height:1.25;margin-bottom:.3rem;
    word-break:break-word;
}
.insight-sub{
    font-size:.68rem;color:#555;line-height:1.35;
}
@media(max-width:720px){
    .insight-grid{grid-template-columns:repeat(2,1fr);gap:.5rem}
    .insight-card{padding:.7rem .8rem}
    .insight-value{font-size:.98rem}
}

/* Liste statt Text-Wurst (Top-Seiten / Top-Keywords) */
.insight-card.insight-list .insight-list{display:flex;flex-direction:column;gap:.15rem;margin:.2rem 0 .35rem}
.insight-list-row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.3rem 0;border-bottom:1px solid #161616;font-size:.8rem}
.insight-list-row:last-child{border-bottom:none}
.insight-list-row .il-key{color:#ddd;font-family:'Inter',sans-serif;font-weight:500;font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.insight-list-row .il-val{color:#ff6a00;font-weight:700;font-size:.82rem;flex-shrink:0;font-variant-numeric:tabular-nums}

/* Mini-Bars (Geräte / Quellen) */
.insight-card.insight-bars .insight-bars{display:flex;flex-direction:column;gap:.5rem;margin:.4rem 0 .4rem}
.insight-bar-row{display:flex;align-items:center;gap:.6rem;font-size:.72rem}
.insight-bar-row .ib-label{color:#bbb;min-width:0;flex-shrink:1;max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.insight-bar-row .ib-track{flex:1;height:6px;background:#161616;border-radius:3px;overflow:hidden;min-width:30px}
.insight-bar-row .ib-fill{display:block;height:100%;background:linear-gradient(90deg,#ff6a00,#ff8c33);border-radius:3px;transition:width .5s ease}
.insight-bar-row .ib-pct{color:#ff6a00;font-weight:700;font-size:.78rem;min-width:38px;text-align:right;font-variant-numeric:tabular-nums}

/* Glow-Puls beim Klick auf Sidebar-Links */
@keyframes panel-glow{
    0%   {box-shadow:0 0 0 0 rgba(255,106,0,0),0 0 0 0 rgba(255,106,0,0);border-color:#1a1a1a;transform:translateY(0)}
    20%  {box-shadow:0 0 0 4px rgba(255,106,0,.22),0 12px 40px rgba(255,106,0,.28);border-color:rgba(255,106,0,.65);transform:translateY(-3px)}
    100% {box-shadow:0 0 0 0 rgba(255,106,0,0),0 0 0 0 rgba(255,106,0,0);border-color:#1a1a1a;transform:translateY(0)}
}
.panel.highlight{animation:panel-glow 1.3s cubic-bezier(.4,0,.2,1)}
a{color:inherit}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-30px)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}

/* ============ LOGIN — Split Screen ============ */
.shell{display:grid;grid-template-columns:1fr 1.1fr;min-height:100vh}

.form-side{
    position:relative;display:flex;flex-direction:column;
    padding:2.5rem 3rem;min-height:100vh;background:#0a0a0a;
    background-image:radial-gradient(rgba(255,255,255,.025) 1px,transparent 1px);background-size:24px 24px;
}
.form-side::before{
    content:'';position:absolute;width:500px;height:500px;border-radius:50%;
    top:-150px;left:-150px;filter:blur(80px);pointer-events:none;
    background:radial-gradient(circle,rgba(255,106,0,.05),transparent 70%);
    animation:float 14s ease-in-out infinite;
}
.form-header{display:flex;align-items:center;gap:.75rem;text-decoration:none}
.form-header .logo{font-size:1.35rem;font-weight:800;letter-spacing:-.02em}
.form-header .logo .a{color:#f5f5f5}
.form-header .logo .b{color:#ff6a00}
.form-header .tag{font-size:.62rem;font-weight:600;color:#666;letter-spacing:.2em;
    text-transform:uppercase;padding:.3rem .55rem;border:1px solid #1f1f1f;border-radius:4px}

.form-wrap{flex:1;display:flex;flex-direction:column;justify-content:center;
    max-width:420px;width:100%;margin:0 auto;position:relative;z-index:1}
.form-title{font-size:2rem;font-weight:700;letter-spacing:-.02em;margin-bottom:.55rem}
.form-sub{color:#777;font-size:.95rem;margin-bottom:2.5rem;line-height:1.5}

.field{margin-bottom:1.15rem}
.field-label{display:block;font-size:.78rem;font-weight:500;color:#aaa;margin-bottom:.5rem}
.field-wrap{position:relative}
.field-icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:#555;pointer-events:none;display:flex}
.field-icon svg{width:16px;height:16px}
.field-input{
    width:100%;background:#111;border:1px solid #1f1f1f;border-radius:9px;
    padding:.95rem 1rem .95rem 2.75rem;color:#f5f5f5;font-family:inherit;
    font-size:.92rem;outline:none;transition:all .25s;
}
.field-input:focus{border-color:#ff6a00;background:#161616;box-shadow:0 0 0 3px rgba(255,106,0,.12)}
.field-wrap:focus-within .field-icon{color:#ff6a00}
.field-input::placeholder{color:#444}
.pw-toggle{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);
    background:transparent;border:none;color:#555;cursor:pointer;padding:.5rem;
    border-radius:6px;display:flex;transition:color .2s}
.pw-toggle:hover{color:#aaa}
.pw-toggle svg{width:16px;height:16px}

.row{display:flex;justify-content:space-between;align-items:center;margin:1.4rem 0 1.7rem}
.check{display:flex;align-items:center;gap:.55rem;cursor:pointer;user-select:none}
.check input{position:absolute;opacity:0;pointer-events:none}
.check-box{width:16px;height:16px;border:1.5px solid #333;border-radius:4px;
    background:#0f0f0f;display:flex;align-items:center;justify-content:center;transition:all .2s}
.check input:checked+.check-box{background:#ff6a00;border-color:#ff6a00}
.check input:checked+.check-box::after{content:'';width:8px;height:5px;
    border-left:2px solid #0a0a0a;border-bottom:2px solid #0a0a0a;
    transform:rotate(-45deg);margin-top:-2px}
.check-label{font-size:.82rem;color:#aaa}
.link-forgot{font-size:.82rem;color:#ff6a00;text-decoration:none;font-weight:500}
.link-forgot:hover{text-decoration:underline}

.submit-btn{
    width:100%;background:#ff6a00;color:#0a0a0a;border:none;border-radius:9px;
    padding:1rem;font-family:inherit;font-size:.95rem;font-weight:700;cursor:pointer;
    transition:all .25s;display:flex;align-items:center;justify-content:center;gap:.5rem;
}
.submit-btn:hover:not(:disabled){background:#ff8c33;transform:translateY(-1px);box-shadow:0 10px 30px rgba(255,106,0,.3)}
.submit-btn:disabled{opacity:.7;cursor:wait}
.submit-btn .spinner{width:14px;height:14px;border:2px solid rgba(10,10,10,.3);
    border-top-color:#0a0a0a;border-radius:50%;animation:spin .8s linear infinite;display:none}
.submit-btn.loading .spinner{display:block}
.submit-btn.loading .label{display:none}

.error,.info{
    border-radius:8px;font-size:.83rem;margin-bottom:1.25rem;
    display:flex;align-items:center;gap:.55rem;padding:.75rem 1rem;
}
.error{background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.2);color:#fca5a5}
.info{background:rgba(56,189,248,.06);border:1px solid rgba(56,189,248,.18);color:#7dd3fc}
.error svg,.info svg{width:14px;height:14px;flex-shrink:0}
.shake{animation:shake .4s}

.hint{margin-top:2rem;padding-top:1.5rem;border-top:1px solid #161616;text-align:center;font-size:.83rem;color:#666}
.hint a{color:#ff6a00;text-decoration:none;font-weight:500}
.hint a:hover{text-decoration:underline}

.form-footer{display:flex;justify-content:space-between;align-items:center;font-size:.72rem;color:#444;margin-top:2rem}
.form-footer a{color:#555;text-decoration:none;margin-left:1rem;transition:color .2s}
.form-footer a:hover{color:#aaa}

.brand-side{
    position:relative;overflow:hidden;
    background:radial-gradient(ellipse at 30% 20%,#1a1208 0%,#0a0a0a 65%);
    display:flex;flex-direction:column;justify-content:center;padding:3rem 4rem;
}
.brand-side::before,.brand-side::after{
    content:'';position:absolute;border-radius:50%;filter:blur(100px);pointer-events:none;
    animation:float 16s ease-in-out infinite;
}
.brand-side::before{width:700px;height:700px;
    background:radial-gradient(circle,rgba(255,106,0,.12),transparent 70%);top:-200px;right:-200px}
.brand-side::after{width:500px;height:500px;
    background:radial-gradient(circle,rgba(255,140,51,.06),transparent 70%);
    bottom:-150px;left:-100px;animation-delay:-8s}
.brand-content{position:relative;z-index:1;max-width:520px}
.brand-eyebrow{display:inline-flex;align-items:center;gap:.5rem;
    background:rgba(255,106,0,.08);border:1px solid rgba(255,106,0,.2);
    padding:.4rem .85rem;border-radius:100px;font-size:.72rem;font-weight:600;
    color:#ff8c33;letter-spacing:.08em;text-transform:uppercase;margin-bottom:2rem}
.brand-eyebrow .dot{width:6px;height:6px;background:#ff6a00;border-radius:50%;
    box-shadow:0 0 0 3px rgba(255,106,0,.2)}
.brand-headline{font-size:2.75rem;font-weight:800;line-height:1.1;letter-spacing:-.025em;margin-bottom:1.25rem}
.brand-headline .accent{color:#ff6a00}
.brand-lead{color:#999;font-size:1.05rem;line-height:1.55;margin-bottom:3rem}
.feature{display:flex;gap:1rem;margin-bottom:1.5rem}
.feature-icon{width:40px;height:40px;border-radius:10px;flex-shrink:0;
    background:rgba(255,106,0,.08);border:1px solid rgba(255,106,0,.15);
    display:flex;align-items:center;justify-content:center;color:#ff6a00}
.feature-icon svg{width:18px;height:18px}
.feature-title{font-size:.95rem;font-weight:600;margin-bottom:.2rem;color:#f5f5f5}
.feature-desc{font-size:.83rem;color:#888;line-height:1.5}
.brand-bottom{position:absolute;bottom:2.5rem;left:4rem;right:4rem;z-index:1;
    display:flex;justify-content:space-between;align-items:center;font-size:.73rem;color:#555}
.brand-bottom .lock{display:flex;align-items:center;gap:.4rem}
.brand-bottom svg{width:12px;height:12px}

/* ============ DASHBOARD ============ */
.sidebar{
    position:fixed;top:0;left:0;width:240px;height:100vh;background:#111;
    border-right:1px solid #1a1a1a;padding:1.5rem;display:flex;flex-direction:column;
    z-index:10;overflow-y:auto;
}
.sidebar-logo{display:flex;flex-direction:column;gap:.6rem;margin-bottom:2.5rem;text-decoration:none}
.sidebar-customer-logo{
    height:48px;width:100%;max-width:180px;
    background-position:left center;background-repeat:no-repeat;background-size:contain;
}
.sidebar-customer-logo.inverted{filter:invert(1) brightness(1.05)}
.sidebar-logo .brand{font-size:1.3rem;font-weight:800;letter-spacing:-.02em}
.sidebar-logo .brand .a{color:#f5f5f5}
.sidebar-logo .brand .b{color:#ff6a00}
.sidebar-logo .tag{font-size:.62rem;font-weight:600;color:#555;letter-spacing:.18em;text-transform:uppercase}
.sidebar-section{font-size:.65rem;font-weight:600;color:#555;text-transform:uppercase;
    letter-spacing:.1em;padding:1.25rem .85rem .5rem}
.sidebar-nav{display:flex;flex-direction:column;gap:.15rem}
.sidebar-link{display:flex;align-items:center;gap:.75rem;padding:.65rem .85rem;border-radius:8px;
    color:#888;text-decoration:none;font-size:.85rem;font-weight:500;transition:all .2s;cursor:pointer}
.sidebar-link:hover{background:#1a1a1a;color:#f5f5f5}
.sidebar-link.active{background:rgba(255,106,0,.1);color:#ff6a00}
.sidebar-link svg{width:16px;height:16px;flex-shrink:0}
.sidebar-link .badge{margin-left:auto;background:#ff6a00;color:#0a0a0a;
    font-size:.65rem;font-weight:700;padding:.1rem .4rem;border-radius:10px}
.sidebar-bottom{margin-top:auto;padding-top:1.5rem;border-top:1px solid #1a1a1a}
.user-card{display:flex;align-items:center;gap:.6rem;padding:.5rem .25rem}
.user-avatar{width:36px;height:36px;border-radius:50%;
    background:linear-gradient(135deg,#ff6a00,#ff8c33);display:flex;align-items:center;
    justify-content:center;font-weight:700;color:#0a0a0a;font-size:.9rem;flex-shrink:0}
.user-info{flex:1;min-width:0}
.user-name{font-size:.8rem;font-weight:600;color:#f5f5f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-role{font-size:.7rem;color:#555}
.logout-btn{margin-top:.5rem;width:100%;padding:.5rem;background:transparent;
    border:1px solid #222;border-radius:6px;color:#666;font-family:inherit;
    font-size:.75rem;cursor:pointer;transition:all .2s;text-decoration:none;
    display:block;text-align:center}
.logout-btn:hover{border-color:#ef4444;color:#ef4444}

.main{margin-left:240px;padding:2rem 2.5rem;min-height:100vh}
.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem}
.topbar h1{font-size:1.5rem;font-weight:700;margin-bottom:.25rem}
.topbar h1 span{color:#ff6a00}
.topbar .crumb{font-size:.75rem;color:#555;letter-spacing:.05em}
.topbar .meta{text-align:right;font-size:.75rem;color:#555}
.topbar .meta strong{color:#888;display:block;font-weight:500}

.welcome-banner{background:linear-gradient(135deg,#161616,#0f0f0f);
    border:1px solid #1a1a1a;border-radius:14px;padding:1.75rem 2rem;
    margin-bottom:2rem;position:relative;overflow:hidden}
.welcome-banner::before{content:'';position:absolute;top:-100px;right:-100px;
    width:300px;height:300px;border-radius:50%;
    background:radial-gradient(circle,rgba(255,106,0,.08),transparent 70%)}
.welcome-banner h2{font-size:1.35rem;font-weight:700;margin-bottom:.4rem;position:relative}
.welcome-banner p{color:#888;font-size:.9rem;position:relative;max-width:680px;line-height:1.55}
.welcome-status{display:inline-flex;align-items:center;gap:.5rem;margin-top:1rem;
    background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.2);
    padding:.35rem .75rem;border-radius:6px;font-size:.78rem;color:#22c55e;position:relative}
.welcome-status .dot{width:8px;height:8px;background:#22c55e;border-radius:50%;animation:pulse 2s infinite}

.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;margin-bottom:2rem}
.stat-card{background:#111;border:1px solid #1a1a1a;border-radius:12px;
    padding:1.5rem;transition:all .3s}
.stat-card:hover{border-color:rgba(255,106,0,.25);transform:translateY(-2px)}
.stat-icon{width:32px;height:32px;border-radius:8px;background:rgba(255,106,0,.1);
    display:flex;align-items:center;justify-content:center;margin-bottom:1rem;color:#ff6a00}
.stat-icon svg{width:16px;height:16px}
.stat-label{font-size:.7rem;color:#555;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.5rem}
.stat-value{font-size:1.85rem;font-weight:700;color:#fff;line-height:1.1}
.stat-value.small{font-size:1.15rem}
.stat-sub{font-size:.75rem;color:#888;margin-top:.6rem}

.grid-2{display:grid;grid-template-columns:1.4fr 1fr;gap:1.5rem;margin-bottom:1.5rem}
.grid-2.alt{grid-template-columns:1fr 1fr}
.panel{background:#111;border:1px solid #1a1a1a;border-radius:12px;padding:1.5rem}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.25rem}
.panel-title{font-size:1rem;font-weight:600}
.panel-action{font-size:.75rem;color:#ff6a00;text-decoration:none;font-weight:500}
.panel-action:hover{text-decoration:underline}

.roadmap{position:relative;padding-left:1.25rem}
.roadmap::before{content:'';position:absolute;left:6px;top:8px;bottom:8px;width:1px;background:#222}
.road-item{position:relative;padding-bottom:1.5rem}
.road-item:last-child{padding-bottom:0}
.road-item::before{content:'';position:absolute;left:-1.25rem;top:4px;
    width:13px;height:13px;border-radius:50%;background:#1a1a1a;border:2px solid #333}
.road-item.done::before{background:#22c55e;border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.15)}
.road-item.active::before{background:#ff6a00;border-color:#ff6a00;
    box-shadow:0 0 0 3px rgba(255,106,0,.2);animation:pulse 2s infinite}
.road-phase{font-size:.68rem;color:#555;text-transform:uppercase;letter-spacing:.1em;margin-bottom:.2rem}
.road-title{font-size:.92rem;font-weight:600;color:#f5f5f5;margin-bottom:.35rem}
.road-desc{font-size:.78rem;color:#777;line-height:1.5;margin-bottom:.5rem}
.road-bar{height:4px;background:#1a1a1a;border-radius:4px;overflow:hidden;max-width:240px}
.road-bar-fill{height:100%;background:linear-gradient(90deg,#ff6a00,#ff8c33);border-radius:4px}

.task-item{display:flex;align-items:flex-start;gap:.85rem;padding:.9rem 0;border-bottom:1px solid #1a1a1a}
.task-item:last-child{border-bottom:none}
.task-check{width:18px;height:18px;border-radius:5px;border:1.5px solid #333;
    flex-shrink:0;margin-top:1px;background:#0a0a0a;cursor:default;transition:all .2s}
.task-check.done{background:#22c55e;border-color:#22c55e}
.task-check.done::after{content:'';display:block;width:5px;height:9px;
    border:solid #0a0a0a;border-width:0 2px 2px 0;transform:rotate(45deg);margin:1px 0 0 5px}
.task-body{flex:1;min-width:0}
.task-title{font-size:.88rem;font-weight:500;color:#f5f5f5;margin-bottom:.2rem;line-height:1.4}
.task-title.done{color:#555;text-decoration:line-through}
.task-meta{display:flex;align-items:center;gap:.6rem;font-size:.72rem;flex-wrap:wrap}
.task-due{color:#888}
.task-due.urgent{color:#ef4444}
.task-tag{padding:.15rem .5rem;border-radius:4px;background:#1a1a1a;color:#888;font-weight:500}
.task-tag.approve{background:rgba(245,158,11,.1);color:#f59e0b}
.task-tag.upload{background:rgba(99,102,241,.1);color:#818cf8}
.task-tag.access{background:rgba(56,189,248,.1);color:#38bdf8}

.doc-item{display:flex;align-items:center;gap:.85rem;padding:.85rem;border-radius:8px;
    transition:background .2s;cursor:pointer;text-decoration:none;color:inherit}
.doc-item:hover{background:#1a1a1a}
.doc-icon{width:36px;height:36px;border-radius:8px;background:#1a1a1a;
    display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#ff6a00}
.doc-icon svg{width:18px;height:18px}
.doc-info{flex:1;min-width:0}
.doc-name{font-size:.85rem;font-weight:500;color:#f5f5f5;margin-bottom:.15rem}
.doc-meta{font-size:.7rem;color:#555}
.doc-action{color:#666}
.empty-state{text-align:center;padding:2rem 1rem;color:#555;font-size:.85rem}

.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}
.team-card{display:flex;align-items:center;gap:1rem;padding:1rem;background:#1a1a1a;border-radius:10px}
.team-avatar{width:48px;height:48px;border-radius:50%;
    background:linear-gradient(135deg,#ff6a00,#ff8c33);display:flex;align-items:center;
    justify-content:center;font-weight:700;color:#0a0a0a;font-size:1rem;flex-shrink:0}
.team-info{flex:1;min-width:0}
.team-name{font-size:.9rem;font-weight:600;margin-bottom:.15rem}
.team-role{font-size:.72rem;color:#888;margin-bottom:.4rem}
.team-contact{display:flex;gap:.5rem}
.team-contact a{display:flex;align-items:center;justify-content:center;
    width:28px;height:28px;border-radius:6px;background:#0f0f0f;color:#888;
    text-decoration:none;transition:all .2s}
.team-contact a:hover{color:#ff6a00;background:rgba(255,106,0,.1)}
.team-contact svg{width:13px;height:13px}

/* ============ RESPONSIVE ============ */

/* Tablet landscape */
@media(max-width:1024px){
    .stats-grid{grid-template-columns:repeat(2,1fr)}
    .grid-2,.grid-2.alt{grid-template-columns:1fr}
}

/* Login: split → single column */
@media(max-width:980px){
    .shell{grid-template-columns:1fr;min-height:100vh}
    .brand-side{display:none}
    .form-side{padding:1.5rem 1.25rem;min-height:100vh}
    .form-footer{flex-direction:column;gap:.6rem;text-align:center;margin-top:1.25rem}
    .form-footer > div:last-child a{margin:0 .35rem}
}

/* Tablet portrait & mobile */
@media(max-width:720px){
    /* Sidebar — schmaler, nur Icons */
    .sidebar{width:64px;padding:1rem .35rem}
    .sidebar-customer-logo{display:none}
    .sidebar-logo .tag,.sidebar-link span,.user-info,.sidebar-section{display:none}
    .sidebar-logo{margin-bottom:1.5rem;align-items:center}
    .sidebar-link{
        justify-content:center;
        padding:.55rem 0;
        position:relative;
        width:44px;
        height:44px;
        margin:0 auto;
    }
    .sidebar-link .badge{
        position:absolute;
        top:-3px;right:-3px;
        margin:0;
        min-width:18px;height:18px;
        font-size:.58rem;
        padding:0 .25rem;
        display:flex;align-items:center;justify-content:center;
        border-radius:9px;
        border:2px solid #111;
    }
    .sidebar-nav{align-items:center}
    .sidebar-bottom{padding-top:1rem}
    .user-card{justify-content:center;padding:.25rem;gap:0}
    .user-avatar{width:32px;height:32px;font-size:.78rem}
    .logout-btn{
        padding:.45rem .25rem;
        font-size:.62rem;
        letter-spacing:.02em;
        margin-top:.6rem;
    }

    /* Main */
    .main{margin-left:64px;padding:1.25rem 1rem 2.5rem}

    /* Topbar — kompakter */
    .topbar{
        flex-direction:column;
        align-items:flex-start;
        gap:.65rem;
        margin-bottom:1.25rem;
    }
    .topbar .crumb{font-size:.7rem}
    .topbar h1{font-size:1.3rem;line-height:1.2}
    .topbar .meta{text-align:left;font-size:.7rem}
    .topbar .meta strong{font-size:.78rem}

    /* Welcome banner */
    .welcome-banner{padding:1.2rem 1.25rem;border-radius:12px;margin-bottom:1.25rem}
    .welcome-banner h2{font-size:1.1rem;margin-bottom:.5rem;line-height:1.3}
    .welcome-banner p{font-size:.85rem;line-height:1.55}
    .welcome-status{margin-top:.85rem;font-size:.72rem;padding:.3rem .65rem}
    .welcome-status .dot{width:7px;height:7px}

    /* Stat-Cards (2 Spalten kompakter) */
    .stats-grid{grid-template-columns:repeat(2,1fr);gap:.6rem;margin-bottom:1.25rem}
    .stat-card{padding:1rem .85rem;border-radius:10px}
    .stat-icon{width:26px;height:26px;border-radius:6px;margin-bottom:.55rem}
    .stat-icon svg{width:13px;height:13px}
    .stat-label{font-size:.6rem;margin-bottom:.35rem}
    .stat-value{font-size:1.35rem}
    .stat-value.small{font-size:.88rem;line-height:1.25}
    .stat-sub{font-size:.62rem;margin-top:.35rem;line-height:1.35}

    /* Panels */
    .grid-2,.grid-2.alt{gap:1rem;margin-bottom:1rem}
    .panel{padding:1rem;border-radius:10px}
    .panel-head{margin-bottom:.9rem}
    .panel-title{font-size:.95rem}
    .panel-action{font-size:.7rem}

    /* Roadmap */
    .roadmap{padding-left:1.1rem}
    .roadmap::before{left:5px}
    .road-item{padding-bottom:1.15rem}
    .road-item::before{width:11px;height:11px;left:-1.1rem;top:4px}
    .road-phase{font-size:.62rem}
    .road-title{font-size:.88rem}
    .road-desc{font-size:.75rem}
    .road-bar{max-width:100%;margin-top:.4rem}

    /* Tasks */
    .task-item{padding:.75rem 0;gap:.7rem}
    .task-check{width:17px;height:17px}
    .task-title{font-size:.85rem;line-height:1.4}
    .task-meta{gap:.45rem;font-size:.68rem}
    .task-tag{padding:.12rem .42rem;font-size:.65rem}

    /* Documents — Ellipsis bei langen Titeln */
    .doc-item{padding:.7rem;gap:.7rem}
    .doc-icon{width:32px;height:32px;border-radius:7px}
    .doc-icon svg{width:15px;height:15px}
    .doc-info{min-width:0;overflow:hidden}
    .doc-name{font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .doc-meta{font-size:.65rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

    /* Team */
    .team-grid{grid-template-columns:1fr;gap:.65rem}
    .team-card{padding:.85rem;gap:.75rem}
    .team-avatar{width:42px;height:42px;font-size:.9rem}
    .team-name{font-size:.85rem}
    .team-role{font-size:.68rem;margin-bottom:.35rem}
    .team-contact a{width:26px;height:26px;border-radius:5px}
    .team-contact svg{width:12px;height:12px}
}

/* Mini-Mobile */
@media(max-width:420px){
    .form-title{font-size:1.5rem}
    .form-sub{font-size:.88rem;margin-bottom:1.75rem}
    .main{padding:1rem .75rem 2.5rem}
    .topbar h1{font-size:1.2rem}
    .welcome-banner{padding:1rem;border-radius:10px}
    .welcome-banner h2{font-size:1rem}
    .welcome-banner p{font-size:.8rem}
    .stat-value{font-size:1.2rem}
    .stat-value.small{font-size:.8rem}
    .stat-card{padding:.85rem .65rem}
}

/* ============================================================
   INSIGHTS PAGE
   ============================================================ */

/* HERO KPI cards */
.insights-hero{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:1rem;
    margin-bottom:2rem;
}
.kpi-card{
    background:linear-gradient(180deg,#111 0%,#0a0a0a 100%);
    border:1px solid #1a1a1a;
    border-radius:14px;
    padding:1.5rem 1.4rem;
    position:relative;
    overflow:hidden;
    transition:border-color .25s,transform .25s;
}
.kpi-card:hover{border-color:rgba(255,106,0,.3);transform:translateY(-2px)}
.kpi-card::before{
    content:'';
    position:absolute;
    top:0;left:0;right:0;
    height:2px;
    background:linear-gradient(90deg,#ff6a00,transparent);
}
.kpi-icon{
    width:36px;height:36px;
    border-radius:9px;
    background:rgba(255,106,0,.08);
    color:#ff6a00;
    display:flex;align-items:center;justify-content:center;
    margin-bottom:1rem;
}
.kpi-icon svg{width:18px;height:18px}
.kpi-label{
    font-size:.78rem;color:#888;text-transform:uppercase;
    letter-spacing:.06em;font-weight:600;margin-bottom:.4rem;
}
.kpi-value{
    font-size:2.4rem;font-weight:700;color:#fff;
    line-height:1;letter-spacing:-.02em;margin-bottom:.5rem;
}
.kpi-change{font-size:.78rem;color:#888;font-weight:500}
.kpi-change.up{color:#4ade80}
.kpi-change.down{color:#ef4444}

/* Gauge (PageSpeed) */
.kpi-gauge .gauge{
    position:relative;
    width:120px;height:120px;
    margin:.4rem auto .5rem;
}
.kpi-gauge .gauge svg{width:100%;height:100%}
.kpi-gauge .gauge-val{
    position:absolute;top:50%;left:50%;
    transform:translate(-50%,-50%);
    font-size:2rem;font-weight:700;color:#fff;
}
.gauge-good{color:#4ade80}
.gauge-mid{color:#f59e0b}
.gauge-bad{color:#ef4444}

/* Insight sections */
.insight-section{
    background:#0d0d0d;
    border:1px solid #1a1a1a;
    border-radius:14px;
    padding:1.8rem;
    margin-bottom:1.5rem;
}
.insight-section-head{
    margin-bottom:1.4rem;
    padding-bottom:1rem;
    border-bottom:1px solid #1a1a1a;
}
.insight-section-head h2{
    font-size:1.15rem;font-weight:600;color:#fff;
    margin-bottom:.25rem;letter-spacing:-.01em;
}
.insight-section-head .muted{
    font-size:.85rem;color:#777;
}

/* Tile grid (Performance, Local SEO) */
.tile-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:.85rem;
}
.tile{
    background:#0a0a0a;
    border:1px solid #1a1a1a;
    border-radius:10px;
    padding:1.1rem;
    transition:border-color .25s;
}
.tile:hover{border-color:#2a2a2a}
.tile.tile-ok{border-color:rgba(74,222,128,.2)}
.tile.tile-ok .tile-icon{color:#4ade80}
.tile-icon{font-size:1.4rem;margin-bottom:.6rem;display:block}
.tile-label{
    font-size:.72rem;color:#888;text-transform:uppercase;
    letter-spacing:.05em;font-weight:600;margin-bottom:.35rem;
}
.tile-value{
    font-size:1.05rem;font-weight:600;color:#fff;line-height:1.3;
}
.tile-sub{
    font-size:.75rem;color:#666;margin-top:.3rem;
}

/* SEO Section */
.seo-grid{
    display:grid;
    grid-template-columns:1fr 1.3fr;
    gap:1.5rem;
    align-items:start;
}
.seo-stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:.85rem;
}
.seo-stat{
    background:#0a0a0a;
    border:1px solid #1a1a1a;
    border-radius:10px;
    padding:1.1rem;
}
.seo-stat-label{
    font-size:.7rem;color:#888;text-transform:uppercase;
    letter-spacing:.06em;font-weight:600;margin-bottom:.35rem;
}
.seo-stat-value{
    font-size:1.7rem;font-weight:700;color:#fff;
    letter-spacing:-.02em;line-height:1;margin-bottom:.3rem;
}
.seo-stat-sub{font-size:.72rem;color:#666}

/* Ranking lists */
.ranking-list{
    background:#0a0a0a;
    border:1px solid #1a1a1a;
    border-radius:10px;
    padding:1.1rem 1.2rem;
}
.ranking-head{
    font-size:.72rem;color:#888;text-transform:uppercase;
    letter-spacing:.06em;font-weight:600;margin-bottom:.9rem;
}
.ranking-row{
    display:grid;
    grid-template-columns:18px 1fr 80px 36px;
    gap:.7rem;
    align-items:center;
    padding:.5rem 0;
    border-bottom:1px solid #141414;
}
.ranking-row:last-child{border-bottom:none}
.ranking-pos{
    font-size:.72rem;color:#555;font-weight:600;
    text-align:center;
}
.ranking-name{
    font-size:.83rem;color:#e5e5e5;font-weight:500;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ranking-bar{
    height:5px;background:#141414;border-radius:3px;
    overflow:hidden;
}
.ranking-bar-fill{
    height:100%;
    background:linear-gradient(90deg,#ff6a00,#ff8c3b);
    border-radius:3px;
    transition:width .6s ease;
}
.ranking-val{
    font-size:.78rem;color:#fff;font-weight:600;
    text-align:right;
}

/* Visitors grid */
.visitors-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap:1rem;
}
.donut-card{
    background:#0a0a0a;
    border:1px solid #1a1a1a;
    border-radius:10px;
    padding:1.1rem 1.2rem;
}
.stack-bar{
    display:flex;
    height:10px;
    background:#141414;
    border-radius:5px;
    overflow:hidden;
    margin:.9rem 0;
}
.stack-seg{
    height:100%;
    transition:width .6s ease;
}
.seg-0{background:#ff6a00}
.seg-1{background:#3b82f6}
.seg-2{background:#a855f7}
.seg-3{background:#facc15}
.seg-4{background:#10b981}
.legend{
    display:flex;flex-direction:column;gap:.45rem;
    font-size:.78rem;color:#aaa;
}
.legend-item{display:flex;align-items:center;gap:.5rem}
.legend-item strong{margin-left:auto;color:#fff;font-weight:600}
.legend-dot{
    width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0;
}
.dot-0{background:#ff6a00}
.dot-1{background:#3b82f6}
.dot-2{background:#a855f7}
.dot-3{background:#facc15}
.dot-4{background:#10b981}

/* Mini stats row */
.mini-stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:.7rem;
    margin-top:1.2rem;
}
.mini-stat{
    background:#0a0a0a;
    border:1px solid #1a1a1a;
    border-radius:10px;
    padding:.85rem 1rem;
    display:flex;align-items:center;gap:.85rem;
}
.mini-stat-icon{
    font-size:1.5rem;
    width:42px;height:42px;
    background:rgba(255,106,0,.06);
    border-radius:9px;
    display:flex;align-items:center;justify-content:center;
}
.mini-stat-value{
    font-size:1.15rem;font-weight:700;color:#fff;line-height:1;
}
.mini-stat-label{font-size:.72rem;color:#777;margin-top:.2rem}

/* Footer */
.insight-footer{
    background:#0d0d0d;
    border:1px solid #1a1a1a;
    border-radius:14px;
    padding:1.5rem 1.8rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;gap:1rem;
    margin-top:1.5rem;
}
.insight-footer p{font-size:.85rem;color:#888;margin:0}
.insight-footer p strong{color:#fff}
.footer-cta{
    background:#ff6a00;color:#fff;
    padding:.65rem 1.15rem;
    border-radius:8px;
    font-size:.85rem;font-weight:600;
    text-decoration:none;
    transition:background .2s;
}
.footer-cta:hover{background:#ff8c3b}

/* Tablet */
@media(max-width:980px){
    .seo-grid{grid-template-columns:1fr}
    .visitors-grid{grid-template-columns:1fr 1fr}
    .visitors-grid .ranking-list{grid-column:1/-1}
}

/* Mobile */
@media(max-width:600px){
    .insight-section{padding:1.2rem}
    .seo-stats{grid-template-columns:1fr 1fr}
    .visitors-grid{grid-template-columns:1fr}
    .kpi-value{font-size:1.9rem}
    .insight-footer{flex-direction:column;align-items:flex-start}
    .ranking-row{grid-template-columns:18px 1fr 32px;gap:.5rem}
    .ranking-bar{display:none}
}

/* PageSpeed Mobile/Desktop Split */
.kpi-split{
    display:flex;
    gap:1rem;
    justify-content:center;
    margin:.5rem 0 .35rem;
    font-size:.78rem;
    color:#aaa;
}
.kpi-split span{display:inline-flex;align-items:center;gap:.3rem}
.kpi-split strong{color:#fff;font-weight:700;font-size:.9rem}

/* ============================================================
   SMART TIPS — auto-generierte Empfehlungen
   ============================================================ */
.smart-tips{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:.85rem;
    margin-bottom:2rem;
}
.smart-tip{
    background:linear-gradient(135deg,rgba(255,106,0,.08),rgba(255,106,0,.02));
    border:1px solid rgba(255,106,0,.18);
    border-radius:12px;
    padding:1.1rem 1.25rem;
    display:flex;gap:.85rem;align-items:flex-start;
}
.smart-tip-icon{
    width:34px;height:34px;
    background:rgba(255,106,0,.15);
    border-radius:8px;
    display:flex;align-items:center;justify-content:center;
    font-size:1.05rem;flex-shrink:0;
}
.smart-tip-title{font-size:.92rem;color:#fff;font-weight:600;margin-bottom:.25rem}
.smart-tip-text{font-size:.82rem;color:#bbb;line-height:1.5}

/* ============================================================
   CONVERSION FUNNEL — Mobile-first Card-Design
   ============================================================ */
.funnel{display:flex;flex-direction:column;gap:.75rem}
.funnel-step{
    background:#0a0a0a;
    border:1px solid #1a1a1a;
    border-radius:12px;
    padding:1rem 1.15rem;
    transition:border-color .25s;
}
.funnel-step:hover{border-color:#222}
.funnel-step-head{
    display:flex;align-items:center;gap:.85rem;
    margin-bottom:.7rem;
}
.funnel-step-icon{
    width:38px;height:38px;
    background:rgba(255,106,0,.12);
    border-radius:9px;
    display:flex;align-items:center;justify-content:center;
    font-size:1.15rem;flex-shrink:0;
}
.funnel-step-info{flex:1;min-width:0}
.funnel-step-label{
    font-size:.95rem;color:#fff;font-weight:600;line-height:1.2;
    margin-bottom:.15rem;
}
.funnel-step-sub{
    font-size:.74rem;color:#777;line-height:1.3;
}
.funnel-step-value{
    font-size:1.5rem;font-weight:700;color:#fff;
    font-variant-numeric:tabular-nums;
    letter-spacing:-.02em;flex-shrink:0;
}
.funnel-step-bar{
    height:8px;
    background:#111;
    border-radius:4px;
    overflow:hidden;
}
.funnel-step-bar-fill{
    height:100%;
    background:linear-gradient(90deg,#ff6a00,#ff8c3b);
    border-radius:4px;
    transition:width .8s cubic-bezier(.4,0,.2,1);
    box-shadow:0 0 12px rgba(255,106,0,.25);
}
.funnel-step-1 .funnel-step-bar-fill{background:linear-gradient(90deg,#ff6a00,#ff7a1c)}
.funnel-step-2 .funnel-step-bar-fill{background:linear-gradient(90deg,#e85d00,#ff6a00)}
.funnel-step-3 .funnel-step-bar-fill{background:linear-gradient(90deg,#cc5200,#e85d00)}
.funnel-step-conv{
    margin-top:.5rem;
    font-size:.72rem;
    color:#666;
    text-align:right;
    font-weight:500;
}
@media(min-width:721px){
    .funnel-step{padding:1.15rem 1.4rem}
    .funnel-step-value{font-size:1.75rem}
    .funnel-step-label{font-size:1rem}
    .funnel-step-sub{font-size:.78rem}
}

/* ============================================================
   QUICK WINS — Low-Hanging-Fruit Keywords
   ============================================================ */
.quickwins{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:.85rem;
}
.quickwin{
    background:#0a0a0a;
    border:1px solid #1a1a1a;
    border-radius:12px;
    padding:1rem 1.15rem;
    transition:border-color .25s;
}
.quickwin:hover{border-color:rgba(255,106,0,.3)}
.quickwin-head{
    display:flex;justify-content:space-between;align-items:center;
    margin-bottom:.85rem;gap:.5rem;
}
.quickwin-query{
    font-size:.92rem;color:#fff;font-weight:600;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.quickwin-pos{
    font-size:.74rem;color:#ff6a00;font-weight:700;
    background:rgba(255,106,0,.1);
    padding:.2rem .55rem;
    border-radius:5px;flex-shrink:0;
}
.quickwin-meter{margin-bottom:.85rem}
.quickwin-bar{
    height:6px;
    background:linear-gradient(90deg,rgba(255,106,0,.08) 0%,rgba(255,106,0,.08) 50%,rgba(74,222,128,.15) 50%,rgba(74,222,128,.15) 100%);
    border-radius:3px;
    position:relative;
    overflow:hidden;
    margin-bottom:.3rem;
}
.quickwin-bar-current{
    position:absolute;left:0;top:0;height:100%;
    background:linear-gradient(90deg,#ff6a00,#ff8c3b);
    border-radius:3px;
    transition:width .8s;
}
.quickwin-bar-target{
    position:absolute;left:0;top:0;width:50%;height:100%;
    border-right:2px dashed rgba(74,222,128,.6);
}
.quickwin-target-label{
    font-size:.7rem;color:#4ade80;
    text-align:right;
    margin-right:48%;  /* knapp links vom 50%-Marker */
}
.quickwin-stats{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:.5rem;
    padding-top:.6rem;
    border-top:1px solid #141414;
}
.quickwin-stats > div{display:flex;flex-direction:column;gap:.15rem}
.quickwin-stats span{font-size:.68rem;color:#666;text-transform:uppercase;letter-spacing:.04em}
.quickwin-stats strong{font-size:.85rem;color:#fff;font-weight:600}
.quickwin-stats strong.gain{color:#4ade80}
.quickwins-hint{
    margin-top:1.1rem;
    padding:.9rem 1.15rem;
    background:rgba(74,222,128,.06);
    border-left:3px solid #4ade80;
    border-radius:8px;
    font-size:.84rem;color:#bbb;line-height:1.55;
}
.quickwins-hint strong{color:#fff}

/* Performance-Sektion gedimmt (weniger wichtig) */
.insight-section-muted{
    opacity:.85;
    background:#0b0b0b;
}
.insight-section-muted .insight-section-head h2{font-size:1rem}

/* Mobile — Quickwins-Stats */
@media(max-width:600px){
    .quickwin-stats{grid-template-columns:1fr 1fr}
    .quickwin-stats > div:last-child{grid-column:1/-1}
    .funnel-step-value{font-size:1.3rem}
    .funnel-step-icon{width:34px;height:34px;font-size:1.05rem}
    .funnel-step-label{font-size:.88rem}
    .funnel-step-sub{font-size:.7rem}
}

/* ============================================================
   INSIGHTS-TEASER (Dashboard → Insights-Page)
   ============================================================ */
.insights-teaser{
    display:flex;align-items:center;gap:1.1rem;
    background:linear-gradient(135deg,rgba(255,106,0,.08),rgba(255,106,0,.02));
    border:1px solid rgba(255,106,0,.2);
    border-radius:12px;
    padding:1.15rem 1.4rem;
    margin-top:1.5rem;
    text-decoration:none;
    transition:transform .25s,border-color .25s;
}
.insights-teaser:hover{
    transform:translateY(-2px);
    border-color:rgba(255,106,0,.4);
}
.insights-teaser-icon{
    width:44px;height:44px;
    background:rgba(255,106,0,.15);
    color:#ff6a00;
    border-radius:10px;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
}
.insights-teaser-icon svg{width:22px;height:22px}
.insights-teaser-body{flex:1;min-width:0}
.insights-teaser-title{
    font-size:1rem;color:#fff;font-weight:600;margin-bottom:.25rem;
}
.insights-teaser-sub{font-size:.82rem;color:#888}
.insights-teaser-arrow{
    color:#ff6a00;font-size:1.4rem;font-weight:300;
    transition:transform .25s;
}
.insights-teaser:hover .insights-teaser-arrow{transform:translateX(4px)}

/* ============================================================
   EMPTY STATE — wenn 0 Besucher
   ============================================================ */
.empty-state{
    background:rgba(255,255,255,.02);
    border:1px dashed #232323;
    border-radius:12px;
    padding:2.2rem 1.8rem;
    text-align:center;
}
.empty-state-icon{
    font-size:2.5rem;
    margin-bottom:.85rem;
    opacity:.85;
}
.empty-state-title{
    font-size:1.05rem;color:#fff;font-weight:600;margin-bottom:.6rem;
}
.empty-state-text{
    font-size:.9rem;color:#aaa;line-height:1.55;
    max-width:520px;margin:0 auto 1.1rem;
}
.empty-state-text strong{color:#ddd}
.empty-state-hint{
    display:inline-block;
    padding:.7rem 1.1rem;
    background:rgba(74,222,128,.06);
    border-left:3px solid #4ade80;
    border-radius:6px;
    font-size:.82rem;color:#bbb;
    text-align:left;
    max-width:480px;
}
.empty-state-hint strong{color:#fff}
