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

:root{
--bg:#07090d;
--panel:rgba(255,255,255,.08);
--panel2:rgba(255,255,255,.12);
--line:rgba(255,255,255,.14);
--text:#f6f7fb;
--muted:#aab3c2;
--yellow:#ffd400;
--green:#25d366;
--blue:#4da3ff;
--red:#ff5252;
--radius:22px;
--shadow:0 24px 70px rgba(0,0,0,.45);
}

body{
font-family:Inter,Arial,sans-serif;
background:
radial-gradient(circle at top left,rgba(255,212,0,.18),transparent 28%),
radial-gradient(circle at top right,rgba(37,211,102,.12),transparent 30%),
linear-gradient(135deg,#05070b,#111827 60%,#050608);
color:var(--text);
min-height:100vh;
overflow-x:hidden;
}

button,input,select,textarea{
font-family:inherit;
}

.hidden{
display:none!important;
}

/* LOGIN */

.login{
min-height:100vh;
display:grid;
place-items:center;
padding:20px;
}

.loginbox{
width:min(430px,100%);
padding:30px;
border-radius:30px;
background:var(--panel);
border:1px solid var(--line);
backdrop-filter:blur(18px);
box-shadow:var(--shadow);
}

.logo{
display:flex;
align-items:center;
gap:14px;
margin-bottom:25px;
}

.mark{
width:55px;
height:55px;
border-radius:18px;
background:linear-gradient(135deg,var(--yellow),#fff2a0);
color:#000;
font-weight:1000;
display:grid;
place-items:center;
}

.logo h1{
font-size:25px;
}

.logo p{
color:var(--muted);
font-size:13px;
margin-top:4px;
}

/* APP */

.app{
display:grid;
grid-template-columns:280px 1fr;
min-height:100vh;
}

.sidebar{
padding:24px 18px;
background:rgba(0,0,0,.25);
border-right:1px solid var(--line);
backdrop-filter:blur(20px);
position:sticky;
top:0;
height:100vh;
overflow:auto;
}

.nav{
display:grid;
gap:9px;
margin-top:24px;
}

.nav button,.btn{
border:1px solid var(--line);
background:rgba(255,255,255,.07);
color:var(--text);
padding:13px 15px;
border-radius:16px;
font-weight:900;
cursor:pointer;
text-decoration: none;
display: inline-block;
text-align: center;
}

.nav button{
text-align:left;
}

.nav button.active,
.nav button:hover{
background:rgba(255,212,0,.14);
border-color:rgba(255,212,0,.55);
}

.btn.yellow{
background:var(--yellow);
color:#000;
border:0;
}

.btn.green{
background:var(--green);
color:#05120a;
border:0;
}

.btn.red{
background:var(--red);
color:white;
border:0;
}

.main{
padding:25px;
overflow:hidden;
}

.top{
display:flex;
justify-content:space-between;
gap:15px;
align-items:flex-start;
margin-bottom:20px;
flex-wrap:wrap;
}

h2{
font-size:32px;
}

.sub{
color:var(--muted);
margin-top:5px;
}

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

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

.stat,.panel{
background:var(--panel);
border:1px solid var(--line);
border-radius:var(--radius);
backdrop-filter:blur(18px);
box-shadow:var(--shadow);
}

.stat{
padding:20px;
}

.stat b{
font-size:32px;
display:block;
}

.stat span{
color:var(--muted);
font-size:13px;
}

.grid{
display:grid;
grid-template-columns:1.08fr .92fr;
gap:18px;
}

.panelhead{
padding:17px 18px;
border-bottom:1px solid var(--line);
display:flex;
justify-content:space-between;
align-items:center;
gap:10px;
}

.panelbody{
padding:18px;
}

.row{
display:grid;
grid-template-columns:42px 1fr auto;
gap:12px;
padding:14px 18px;
border-bottom:1px solid var(--line);
cursor:pointer;
}

.row:hover{
background:rgba(255,255,255,.06);
}

.avatar{
width:42px;
height:42px;
border-radius:14px;
background:linear-gradient(135deg,var(--yellow),#fff2a0);
display:grid;
place-items:center;
color:#000;
font-weight:1000;
}

.row p{
font-size:13px;
color:var(--muted);
margin-top:4px;
}

.badge{
padding:7px 10px;
border-radius:999px;
font-size:12px;
font-weight:1000;
white-space:nowrap;
}

.Neu{
background:rgba(77,163,255,.18);
color:#9dccff;
}

.Kontaktiert{
background:rgba(255,212,0,.18);
color:#ffe477;
}

.Rückruf{
background:rgba(255,82,82,.18);
color:#ffaaa7;
}

.Gebucht{
background:rgba(37,211,102,.18);
color:#8cffbc;
}

.Verloren{
background:rgba(16ab3c2,.18);
color:#aab3c2;
}

input,select,textarea{
width:100%;
padding:12px 13px;
border-radius:14px;
border:1px solid var(--line);
background:rgba(0,0,0,.28);
color:var(--text);
outline:none;
}

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

.formgrid{
display:grid;
grid-template-columns:1fr 1fr;
gap:11px;
}

.full{
grid-column:1/-1;
}

.table{
display:grid;
gap:10px;
}

.mini{
background:rgba(0,0,0,.22);
border:1px solid var(--line);
padding:14px;
border-radius:16px;
}

.mini small{
color:var(--muted);
}

.mobile-only {
display: none !important;
}

.timeline{
display:grid;
gap:10px;
margin-top:14px;
}

.event{
background:rgba(255,255,255,.06);
border-left:3px solid var(--yellow);
padding:11px 13px;
border-radius:13px;
}

.event small{
color:var(--muted);
}

@media(max-width:980px){
.app{
grid-template-columns:1fr;
}
.sidebar{
display:none;
}
.sidebar.mobile-open {
display: block !important;
position: fixed;
top: 0;
left: 0;
width: min(280px, 85vw);
height: 100vh;
z-index: 100;
background: rgba(0,0,0,0.85);
box-shadow: 10px 0 30px rgba(0,0,0,0.5);
transform: translateX(0);
animation: slideIn 0.3s ease forwards;
overflow-y: auto;
}
.main{
padding:16px 13px 20px;
}
.grid,
.stats,
.formgrid{
grid-template-columns:1fr;
}
h2{
font-size:28px;
}
.mobile-only {
display: flex !important;
}
@keyframes slideIn {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
}
