*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    background:#f4f6f9;
    color:#222;
}

/* ---------- Login ---------- */

.login-screen{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
}

.login-box{
    background:white;
    padding:40px;
    border-radius:8px;
    box-shadow:0 3px 15px rgba(0,0,0,.15);
}

/* ---------- Header ---------- */

.topbar{
    height:60px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 20px;

    background:#2c3e50;
    color:white;
}

.topbar h1{
    font-size:24px;
}

.toolbar{
    display:flex;
    gap:10px;
    align-items:center;
}

.toolbar input{
    width:280px;
}

/* ---------- Controls ---------- */

button{

    padding:8px 16px;

    border:none;
    border-radius:4px;

    background:#3498db;
    color:white;

    cursor:pointer;

    transition:.15s;
}

button:hover{
    background:#2980b9;
}

input,
select{

    width:100%;

    padding:7px;

    border:1px solid #ccc;
    border-radius:4px;

    font-size:14px;
}

/* ---------- Tabellen ---------- */

.listTable{

    width:calc(100% - 40px);

    margin:20px;

    border-collapse:collapse;

    background:white;

    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.listTable th{

    background:#34495e;

    color:white;

    padding:10px;

    text-align:left;
}

.listTable td{

    padding:8px 10px;

    border-bottom:1px solid #eee;
}

.listTable tbody tr{

    cursor:pointer;
}

.listTable tbody tr:hover{

    background:#ecf6ff;
}

/* ---------- Dialog ---------- */

.modal{

    display:none;

    position:fixed;

    left:0;
    top:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.45);

    overflow:auto;

    z-index:1000;
}

.modal-content{

    width:700px;

    margin:40px auto;

    background:white;

    border-radius:8px;

    padding:20px;

    box-shadow:0 5px 25px rgba(0,0,0,.3);
}

.modal-content.large{

    width:1000px;
}

/* ---------- Dialog Header ---------- */

.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;
}

.modal-header button{

    width:34px;
    height:34px;

    padding:0;

    background:#c0392b;
}

.modal-header button:hover{

    background:#962d22;
}

/* ---------- Detail ---------- */

.detailTable{

    width:100%;

    border-collapse:collapse;

    margin-bottom:15px;
}

.detailTable td{

    padding:8px;
}

.detailTable td:first-child{

    width:180px;

    font-weight:bold;
}

/* ---------- Abschnitt ---------- */

.sectionHeader{

    margin-top:25px;
    margin-bottom:10px;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.sectionHeader h3{

    font-size:20px;
}

.right{

    text-align:right;

    margin-top:15px;
}

/* ---------- Trennlinie ---------- */

hr{

    margin:25px 0;

    border:none;

    border-top:1px solid #ddd;
}

.importPreview
{
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
}

.importPreviewHeader
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.importPreviewTable
{
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.importPreviewTable th,
.importPreviewTable td
{
    padding: 6px 8px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
}

.importPreviewTable th
{
    background: #f5f5f5;
}

.importPreviewTable tr:hover
{
    background: #f8f8f8;
}

.importPreviewTable td:last-child
{
    white-space: normal;
}

/* ---------- Responsive ---------- */

@media(max-width:1100px){

    .modal-content.large{

        width:95%;
    }

    .modal-content{

        width:95%;
    }

    .toolbar{

        flex-wrap:wrap;
    }

    .toolbar input{

        width:180px;
    }

}