﻿*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
    font-family:Segoe UI,Arial,sans-serif;
    background:#020b18;
    color:#fff;
}

body{
    display:flex;
    flex-direction:column;
}

/* HAUPTLAYOUT */

.layout{
    flex:1;
    display:grid;
    grid-template-columns:280px 1fr 320px;
    overflow:hidden;
}

/* LINKE SEITE */

.left{
    background:linear-gradient(90deg,#020b18,#071325);
    padding:20px;
}

.logo{
    width:340px;
    max-width:100%;
    height:auto;
    display:block;
    margin-bottom:15px;
}

.left h1{
    font-size:42px;
    line-height:1;
    margin-bottom:10px;
}

.left h1 span{
    color:#1f7cff;
}

.sub{
    font-size:15px;
    color:#c7d1df;
    margin-bottom:20px;
}

.menu-card{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    padding:12px;
    margin-bottom:8px;
}

.menu-card h3{
    font-size:18px;
    margin-bottom:4px;
}

.menu-card p{
    font-size:12px;
    color:#c7d1df;
}

/* HERO */

.hero{
    position:relative;
    background:url('/images/gpsportal/hero.jpg') center center no-repeat;
    background-size:cover;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.25);
}

.hero-overlay{
    position:absolute;
    left:40px;
    right:40px;
    bottom:30px;
    z-index:10;
}

.hero-badge{
    display:inline-block;
    padding:10px 18px;
    border-radius:30px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(6px);
    margin-bottom:20px;
    font-size:14px;
}

.hero-overlay h2{
    font-size:52px;
    line-height:1.1;
    margin-bottom:20px;
    max-width:700px;
}

.hero-overlay p{
    font-size:22px;
    line-height:1.5;
    max-width:700px;
    margin-bottom:30px;
}

/* STATISTIK */

.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.stat{
    background:rgba(5,15,35,.85);
    border-radius:14px;
    padding:14px;
    text-align:center;
    backdrop-filter:blur(5px);
}

.stat span{
    display:block;
    font-size:26px;
    font-weight:700;
    margin-bottom:4px;
}

/* LOGIN */

.right{
    background:#03101f;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.login-card{
    width:100%;
    max-width:290px;
    background:#fff;
    color:#111;
    border-radius:22px;
    padding:24px;
}

.login-card h2{
    font-size:32px;
    margin-bottom:10px;
}

.login-card p{
    font-size:14px;
    margin-bottom:15px;
    color:#555;
}

.login-card label{
    display:block;
    margin-bottom:6px;
    margin-top:10px;
    font-weight:600;
}

.input{
    width:100%;
    padding:12px;
    border:1px solid #d7dde6;
    border-radius:10px;
}

.remember{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    margin-bottom:12px;
}

.btn{
    width:100%;
    border:0;
    border-radius:10px;
    padding:14px;
    font-size:16px;
    font-weight:700;
    color:#fff;
    cursor:pointer;
    background:linear-gradient(90deg,#2c6cff,#d54ce8);
}

.login-links{
    text-align:center;
    margin-top:15px;
}

.login-links a{
    color:#4f46e5;
    text-decoration:none;
}

/* FOOTER */

.footer{
    height:48px;
    background:#06111f;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;
    font-size:12px;
    color:#aeb9ca;
}

/* GPS PINS */

.gps-layer{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:5;
}

/* Leuchtender GPS Punkt */

.gps-pin{
    position:absolute;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#4fc3ff;
    box-shadow:
        0 0 8px #4fc3ff,
        0 0 20px #4fc3ff,
        0 0 35px #4fc3ff;
}

/* Pulsierender Ring */

.gps-pin::after{
    content:"";
    position:absolute;
    left:-13px;
    top:-13px;
    width:42px;
    height:42px;
    border:2px solid rgba(79,195,255,.45);
    border-radius:50%;
    animation:gpsPulse 4s infinite;
}

/* Positionen passend zum Hero Bild */

.pin1{
    top:18%;
    left:22%;
    animation:gpsFloat1 8s ease-in-out infinite;
}

.pin2{
    top:13%;
    left:51%;
    animation:gpsFloat2 7s ease-in-out infinite;
}

.pin3{
    top:18%;
    left:72%;
    animation:gpsFloat3 9s ease-in-out infinite;
}

.pin4{
    top:33%;
    left:31%;
    animation:gpsFloat2 6s ease-in-out infinite;
}

.pin5{
    top:35%;
    left:78%;
    animation:gpsFloat1 8s ease-in-out infinite;
}

.pin6{
    top:52%;
    left:57%;
    animation:gpsFloat3 10s ease-in-out infinite;
}

/* Animationen */

@keyframes gpsPulse{

    0%{
        transform:scale(.4);
        opacity:1;
    }

    100%{
        transform:scale(2.2);
        opacity:0;
    }

}

@keyframes gpsFloat1{

    0%,100%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-10px);
    }

}

@keyframes gpsFloat2{

    0%,100%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-14px);
    }

}

@keyframes gpsFloat3{

    0%,100%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-8px);
    }

}
.footer a{
    color:#aeb9ca;
    text-decoration:none;
}

.footer a:hover{
    color:#ffffff;
}
/* =========================
   PORTAL APP
========================= */

.portal-app{
    display:flex;
    min-height:100vh;
    background:
    radial-gradient(circle at top,#071325,#020b18 70%);
}

.portal-sidebar{
    width:260px;
    min-width:260px;
    background:linear-gradient(
        180deg,
        #020b18,
        #071325
    );
    border-right:1px solid rgba(255,255,255,.08);
    display:flex;
    flex-direction:column;
}

.portal-sidebar-logo{
    padding:25px;
    text-align:center;
}

.portal-sidebar-logo img{
    max-width:180px;
}

.portal-nav{
    padding:10px;
}

.portal-nav a{
    display:block;
    color:#d7e1ef;
    text-decoration:none;
    padding:14px 18px;
    margin-bottom:6px;
    border-radius:12px;
    transition:.2s;
}

.portal-nav a:hover{
    background:rgba(255,255,255,.08);
}

.portal-user{
    margin-top:auto;
    padding:20px;
    border-top:1px solid rgba(255,255,255,.08);
}

.portal-logout{
    width:100%;
    margin-top:12px;
    border:0;
    border-radius:10px;
    padding:12px;
    font-weight:700;
    color:#fff;
    cursor:pointer;
    background:linear-gradient(
        90deg,
        #2c6cff,
        #d54ce8
    );
}

.portal-content{
    flex:1;
    display:flex;
    flex-direction:column;
    min-width:0;
}

.portal-topbar{
    height:70px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:0 30px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.portal-component{
    padding:15px;
    overflow:auto;
}
/* =========================
   DASHBOARD
========================= */

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.dashboard-header h1{
    margin:0;
    font-size:42px;
    color:#fff;
}

.dashboard-header p{
    margin-top:10px;
    color:#cbd5e1;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:20px;
}

.card{
    background:rgba(8,20,45,.95);
    border:1px solid rgba(59,130,246,.2);
    border-radius:18px;
    padding:15px;
}

.card h3{
    margin:0;
    color:#94a3b8;
    font-size:15px;
}

.card h1{
    margin-top:8px;
    margin-bottom:0;
    color:#fff;
    font-size:34px;
}

.quick-links{
    display:flex;
    gap:12px;
    margin:20px 0;
}

.quick-links a{
    background:#2c6cff;
    color:#fff;
    text-decoration:none;
    padding:12px 20px;
    border-radius:12px;
    font-weight:600;
}

.content-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    margin-bottom:20px;
}

.map-box,
.activity-box,
.vehicle-table{
    background:rgba(8,20,45,.95);
    border:1px solid rgba(59,130,246,.2);
    border-radius:18px;
    padding:15px;
}

.map-box h2,
.activity-box h2,
.vehicle-table h2{
    margin-top:0;
    color:#fff;
}

#map{
    width:100%;
    height:420px;
    border-radius:12px;
}

.activity-item{
    padding:12px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.vehicle-table table{
    width:100%;
    border-collapse:collapse;
}

.vehicle-table th{
    text-align:left;
    color:#cbd5e1;
    padding:12px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.vehicle-table td{
    padding:12px;
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.status-online{
    color:#22c55e;
    font-weight:700;
}

.status-offline{
    color:#ef4444;
    font-weight:700;
}

.status-unknown{
    color:#f59e0b;
    font-weight:700;
}

.logout-btn{
    border:0;
    border-radius:10px;
    padding:12px 20px;
    color:#fff;
    font-weight:700;
    cursor:pointer;
    background:linear-gradient(
        90deg,
        #2c6cff,
        #d54ce8
    );
}

@media(max-width:1400px){

    .cards{
        grid-template-columns:repeat(2,1fr);
    }

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

@media(max-width:900px){

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

    .dashboard-header{
        flex-direction:column;
        align-items:flex-start;
    }
}
.dashboard-summary{
    margin-bottom:20px;
}

.summary-box{
    background:rgba(8,20,45,.95);
    border:1px solid rgba(59,130,246,.2);
    border-radius:18px;
    padding:20px;
}

.summary-box h2{
    margin-top:0;
    color:#fff;
}

.summary-table{
    width:100%;
    border-collapse:collapse;
}

.summary-table td{
    padding:12px;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.summary-table td:last-child{
    text-align:right;
    font-weight:700;
}


/* GPS-PORTAL-BASEMAP-SWITCHER-START */

.leaflet-container {
    background-color: #182332;
}

.leaflet-tile-pane,
.leaflet-tile {
    filter: none !important;
    opacity: 1 !important;
}

.leaflet-control-layers {
    background: rgba(22, 32, 47, 0.97);
    color: #edf4fc;
    border: 1px solid rgba(124, 151, 184, 0.38);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.leaflet-control-layers-expanded {
    padding: 10px 12px;
    min-width: 210px;
}

.leaflet-control-layers label {
    color: #edf4fc;
    font-size: 14px;
    margin: 5px 0;
}

.leaflet-control-layers input {
    margin-right: 7px;
}

.leaflet-control-layers-toggle {
    width: 38px;
    height: 38px;
    background-color: rgba(245, 248, 252, 0.97);
    border-radius: 7px;
}

.leaflet-control-zoom a {
    background-color: rgba(245, 248, 252, 0.97);
    color: #142033;
}

.leaflet-control-zoom a:hover {
    background-color: #ffffff;
    color: #0b63ce;
}

.leaflet-control-attribution {
    background: rgba(18, 27, 40, 0.86) !important;
    color: #dce6f2;
}

.leaflet-control-attribution a {
    color: #75baff;
}

/* GPS-PORTAL-BASEMAP-SWITCHER-END */


/* GPS-PORTAL-LAYER-CONTROL-FIX-START */

.leaflet-control-layers,
.leaflet-control-layers-expanded,
.leaflet-control-layers-list,
.leaflet-control-layers-base,
.leaflet-control-layers-overlays {
    background: #111827 !important;
    color: #f8fafc !important;
}

.leaflet-control-layers {
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

.leaflet-control-layers-expanded {
    min-width: 240px !important;
    padding: 12px 14px !important;
    background: #111827 !important;
    color: #f8fafc !important;
}

.leaflet-control-layers label,
.leaflet-control-layers label span,
.leaflet-control-layers-base label,
.leaflet-control-layers-base label span,
.leaflet-control-layers-overlays label,
.leaflet-control-layers-overlays label span {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #f8fafc !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #f8fafc !important;
}

.leaflet-control-layers-base label,
.leaflet-control-layers-overlays label {
    display: block !important;
    margin: 7px 0 !important;
    padding: 3px 4px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.leaflet-control-layers-base label:hover,
.leaflet-control-layers-overlays label:hover {
    background: rgba(59, 130, 246, 0.16) !important;
}

.leaflet-control-layers-selector {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 8px 0 0 !important;
    accent-color: #3b82f6;
}

.leaflet-control-layers-separator {
    border-top: 1px solid rgba(148, 163, 184, 0.28) !important;
    margin: 8px 0 !important;
}

/* Das geschlossene Ebenen-Symbol bleibt hell */
.leaflet-control-layers-toggle {
    background-color: #f8fafc !important;
    border-radius: 7px !important;
    opacity: 1 !important;
}

/* GPS-PORTAL-LAYER-CONTROL-FIX-END */

