/* ================================================
   🌐 BASIS
================================================ */

*{
 box-sizing:border-box;
}

body{
 margin:0;
 font-family:Arial, sans-serif;
 background:#f4f6f8;
 color:#222;
}


/* ================================================
   🔐 LOGIN FIX – ALTES LAYOUT WIEDERHERSTELLEN
================================================ */

body.login-page .login-box{
 width:100%;
 max-width:420px;
 background:#fff;
 padding:40px;
 border-radius:12px;
 box-shadow:0 10px 30px rgba(0,0,0,.08);
}

body.login-page input{
 width:48%;
 display:inline-block;
 margin-right:2%;
}

body.login-page input:last-child{
 margin-right:0;
}

body.login-page button{
 width:100%;
 margin-top:10px;
}








/* ================================================
   📦 APP CONTAINER
================================================ */

.box{
 width:95%;
 max-width:1300px;
 margin:30px auto;
 background:#fff;
 padding:30px;
 border-radius:12px;
 box-shadow:0 6px 20px rgba(0,0,0,.08);
 overflow:hidden;
}

/* ================================================
   🔘 BUTTONS
================================================ */

button{
 width:100%;
 padding:10px;
 border:none;
 border-radius:6px;
 background:#0066cc;
 color:#fff;
 cursor:pointer;
}

button:hover{
 background:#0052a3;
}

.btn{
 display:block;
 width:100%;
 padding:8px 12px;
 border-radius:6px;
 text-decoration:none;
 background:#0066cc;
 color:#fff;
}

.btn:hover{
 background:#0052a3;
}


/* ================================================
   🧾 KASSE TABELLE SAUBER
================================================ */

.kasse{
 width:100%;
 border-collapse:collapse;
 margin-top:20px;
 table-layout:fixed;
}

.kasse th{
 text-align:left;
 font-weight:600;
 padding:10px 8px;
 border-bottom:2px solid #ccc;
}

.kasse td{
 padding:12px 8px;
 vertical-align:top;
 border-bottom:1px solid #e5e5e5;
}

.kasse tr:hover{
 background:#f8fbff;
}

/* Feste Spaltenbreiten */

.kasse th:nth-child(1),
.kasse td:nth-child(1){ width:80px; }

.kasse th:nth-child(2),
.kasse td:nth-child(2){ width:60px; }

.kasse th:nth-child(3),
.kasse td:nth-child(3){ width:110px; }

.kasse th:nth-child(4),
.kasse td:nth-child(4){ width:260px; }

.kasse th:nth-child(5),
.kasse td:nth-child(5){ width:140px; }

.kasse th:nth-child(6),
.kasse td:nth-child(6){ width:140px; }

.kasse th:nth-child(7),
.kasse td:nth-child(7),
.kasse th:nth-child(8),
.kasse td:nth-child(8){
 width:110px;
 text-align:right;
}

/* Dropdowns sauber */
.kasse select{
 width:100%;
 max-width:100%;
 box-sizing:border-box;
}




/* ================================================
   📈 DASHBOARD CARDS
================================================ */

.stats{
 display:flex;
 gap:20px;
 flex-wrap:wrap;
 margin-top:25px;
}

.card{
 flex:1;
 min-width:260px;
 padding:25px;
 border-radius:12px;
 background:#f5f7fb;
 box-shadow:0 4px 15px rgba(0,0,0,.05);
}

.card h3{
 margin:0 0 10px 0;
 font-size:18px;
}

.card p{
 margin:0;
 font-size:26px;
 font-weight:bold;
}

.card.kontostand{ background:#e8f0ff; }
.card.ein{ background:#eaf7ec; }
.card.aus{ background:#fdeaea; }

/* ================================================
   🧭 TOP NAVIGATION
================================================ */

.topnav{
 position:sticky;
 top:0;
 background:#0066cc;
 color:#fff;
 padding:12px 30px;
 display:flex;
 justify-content:space-between;
 align-items:center;
 z-index:1000;
}

.nav-left,
.nav-center,
.nav-right{
 display:flex;
 align-items:center;
 gap:15px;
}

.nav-center{
 flex:1;
 justify-content:center;
}

.nav-left{ flex:1; }
.nav-right{ flex:1; justify-content:flex-end; }

.nav-center a{
 color:#fff;
 text-decoration:none;
 padding:6px 8px;
 position:relative;
}

.nav-center a.active::after{
 content:"";
 position:absolute;
 bottom:-5px;
 left:0;
 width:100%;
 height:3px;
 background:#fff;
}

.saldo{
 padding:8px 14px;
 border-radius:8px;
 font-weight:bold;
 background:#004a99;
}

.saldo.plus{ background:#1a8f2a; }
.saldo.minus{ background:#c0392b; }

.logout{
 background:#c0392b !important;
 padding:6px 10px;
 border-radius:6px;
 color:#fff;
 text-decoration:none;
}



/* ================================================
   🧱 DASHBOARD SIDEBAR STABIL & SAUBER
================================================ */

.dashboard-layout{
    display:flex;
    align-items:stretch;
}

/* Graue Sidebar links */
.dashboard-sidebar{
    width:240px;
    flex-shrink:0;
    background:#eef1f5;
    padding:25px 20px;
    min-height:calc(100vh - 60px);
    border-right:1px solid #ddd;
}

/* Titel */
.dashboard-sidebar h4{
    margin-top:0;
    margin-bottom:18px;
    font-size:16px;
    color:#444;
}

/* Sidebar Links */
.side-link{
    display:block;
    padding:10px 12px;
    margin-bottom:10px;
    border-radius:6px;
    text-decoration:none;
    background:#ffffff;
    color:#333;
    font-size:14px;
    transition:.2s;
    border:1px solid #ddd;
}

.side-link:hover{
    background:#0066cc;
    color:#fff;
    border-color:#0066cc;
}

/* Content rechts */
.dashboard-content{
    flex:1;
    padding:30px;
}



/* ================================================
   🌙 DARK MODE
================================================ */

body.darkmode{
 background:#121212;
 color:#eee;
}

body.darkmode .box{
 background:#1e1e1e;
}

body.darkmode .topnav{
 background:#111;
}

/* ================================================
   📱 MOBILE
================================================ */

@media(max-width:800px){

 .dashboard-layout{
  flex-direction:column;
 }

 .dashboard-sidebar{
  width:100%;
  min-height:auto;
  border-right:none;
 }

 .dashboard-content{
  padding:15px;
 }

 .stats{
  flex-direction:column;
 }

}


/* ================================================
   📅 JAHR-DROPDOWN GROSS & WICHTIG
================================================ */

select[name="jahr"]{
 appearance:none;
 -webkit-appearance:none;
 -moz-appearance:none;

 font-size:20px;
 font-weight:bold;

 padding:10px 16px;
 border:3px solid #0066cc;
 border-radius:10px;

 background:#ffffff;
 color:#0066cc;

 cursor:pointer;
 min-width:120px;

 box-shadow:0 4px 10px rgba(0,0,0,.08);
 transition:.2s;
}

select[name="jahr"]:hover{
 background:#f0f6ff;
}

select[name="jahr"]:focus{
 outline:none;
 box-shadow:0 0 0 4px rgba(0,102,204,.25);
}


/* ================================================
   📅 dashboard
================================================ */




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

.jahr-select{
    font-size:18px;
    font-weight:bold;
    padding:8px 14px;
    border:2px solid #0066cc;
    border-radius:8px;
    background:#fff;
    color:#0066cc;
    cursor:pointer;
}


