/* ===========================
   GRUNDEINSTELLUNGEN
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI,Arial,sans-serif;
}

body{
    background:#eef2f7;
    color:#222;
}

/* ===========================
   LAYOUT
=========================== */

.app{
    display:flex;
    height:100vh;
}

/* ===========================
   SIDEBAR
=========================== */

.sidebar{
    width:240px;
    background:#2450d3;
    color:white;
    display:flex;
    flex-direction:column;
    padding:25px 18px;
}

.logo{
    font-size:30px;
    font-weight:bold;
    margin-bottom:40px;
}

.sidebar nav{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.sidebar button{

    background:none;
    border:none;

    color:white;

    text-align:left;

    padding:14px;

    border-radius:10px;

    cursor:pointer;

    font-size:16px;

    transition:.2s;

}

.sidebar button:hover{

    background:rgba(255,255,255,.18);

}

/* ===========================
   CONTENT
=========================== */

.content{

    flex:1;

    padding:35px;

    overflow:auto;

}

/* ===========================
   KARTEN
=========================== */

.card{

    background:white;

    border-radius:14px;

    padding:25px;

    box-shadow:0 8px 18px rgba(0,0,0,.08);

    margin-bottom:20px;

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin:25px 0;

}

/* ===========================
   BUTTONS
=========================== */

.btn{

    border:none;

    cursor:pointer;

    padding:12px 18px;

    border-radius:8px;

    font-size:15px;

}

.btn-primary{

    background:#2450d3;

    color:white;

}

.btn-primary:hover{

    background:#173ca7;

}

.btn-danger{

    background:#d92d2d;

    color:white;

}

/* ===========================
   TABELLEN
=========================== */

table{

    width:100%;

    border-collapse:collapse;

}

th{

    text-align:left;

    padding:14px;

    border-bottom:2px solid #ddd;

}

td{

    padding:14px;

    border-bottom:1px solid #eee;

}

/* ===========================
   MODAL
=========================== */

.modal{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    justify-content:center;

    align-items:center;

    z-index:999;

}

.modal-content{

    background:white;

    width:500px;

    max-width:90%;

    border-radius:14px;

    padding:25px;

}

.modal-content h2{

    margin-bottom:20px;

}

.modal-content input,
.modal-content select{

    width:100%;

    padding:12px;

    margin-bottom:15px;

    border:1px solid #ccc;

    border-radius:8px;

    font-size:15px;

}

.modal-buttons{

    display:flex;

    justify-content:flex-end;

    gap:10px;

}

textarea{
    resize:vertical;
    font-family:inherit;
}