
body {
    background-color: #0e0e0e;
    color: #e0e0e0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a { color: #5cc9ff; text-decoration: none; }
a:hover { color: #82dfff; }

header {
    background: #1a1a1a;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #222;
    position: static;
    top: 0;
    z-index: 1;
}
header h1 { color: #fff; margin: 0; font-size: 20px; }
nav a { margin: 0 10px; color: #ccc; font-weight: 500; }
nav a:hover { color: #fff; }

.container {
    max-width: 1585px;
    margin-left: auto;
    margin-right: unset;
    padding: 20px;
    padding-bottom: 115px;
}


h1, h2, h3, h4 {
    color: #fff;
    font-weight: 600;
}

::selection {
    background: #af151a;
    color: white;
}

.button, .slr-return, .dataTables_wrapper div.dt-buttons > .dt-button, .btn, #lsf-reset-filters, #slt-reset-filters {
    background-color: #af151a;
    border: none;
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    line-height: 1em;
    font-size: 16px;
    border-radius: 0px;
    transition: background 0.2s ease-in-out;
    font-family: "Segoe UI", Roboto, sans-serif;
}
.button:hover, .dataTables_wrapper div.dt-buttons > .dt-button:hover, .btn:hover, #lsf-reset-filters:hover, #slt-reset-filters:hover {
    background-color: #912226;
    color: white;
}

.small-btn {
    padding: 5px 10px;
    font-size: 14px;
}

.slr-return {
    margin-top: 0px;
    float: right;
}

.add-new-rental, .button-primary {
    margin-top: -12px !important;
}

#lsf-reset-filters, #slt-reset-filters {
    background-color: #af151a;
    border: none;
    color: #fff;
    padding: 10px 20px;
    margin-top: 0;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.dataTables_wrapper div.dt-buttons > .dt-button:hover:not(.disabled) {
    border: 0;
    background-color: #912226;
}

.lsf-filter-reset {
    margin-left: auto;
}

.dataTables_wrapper div.dt-buttons > .dt-button {
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    color: #eee;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}
table th, table td {
    padding: 10px;
    border-bottom: 1px solid #333;
}
table th {
    background: #222;
    color: #fff;
}
table tr:hover {
    background: #2a2a2a;
}

.card {
    /*background: #1a1a1a;*/
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.6);*/
}

.card h1 {
    margin-top: 0;
}

.login-menu {
    width: 260px;
    background-color: #1a1a1a;
    min-width: 260px;
    text-align: center;
    min-height: calc(100vh - 76px);
}

/* ── Sidebar-Tab (Lasche) ─────────────────────────────────────────────────── */
.sidebar-tab {
    display: none; /* Desktop: versteckt */
}

@media (max-width: 768px) {

    /* Sidebar als Drawer off-screen */
    aside.login-menu {
        position: fixed;
        left: -260px;
        top: 75px;
        height: calc(100vh - 75px);
        min-height: unset;
        overflow-y: auto;
        z-index: 200;
        transition: left 0.3s cubic-bezier(.4, 0, .2, 1);
        box-shadow: none;
    }

    body.sidebar-open aside.login-menu {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
    }

    /* Lasche */
    .sidebar-tab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 22px;
        height: 56px;
        background: #1a1a1a;
        border: 1px solid #2a2a2a;
        border-left: none;
        border-radius: 0 8px 8px 0;
        cursor: pointer;
        color: #e0e0e0;
        font-size: 13px;
        z-index: 201;
        transition: left 0.3s cubic-bezier(.4, 0, .2, 1), background 0.2s;
        padding: 0;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.5);
    }

    .sidebar-tab:hover {
        background: #252525;
        color: #fff;
    }

    body.sidebar-open .sidebar-tab {
        left: 260px;
    }

    .sidebar-tab-icon {
        transition: transform 0.3s ease;
        display: block;
    }

    body.sidebar-open .sidebar-tab-icon {
        transform: rotate(180deg);
    }

    /* Overlay hinter der Sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 199;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }
}

footer {
    background: #1a1a1a;
    padding: 20px;
    text-align: center;
    color: #777;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.site-header {
    background: #1a1a1a;
    padding: 15px 30px; /* Mehr seitlicher Abstand */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2a2a2a;
    position: sticky;
    top: 0;
    z-index: 5;
    height: 45px; /* Feste Höhe */
}

/* Logo Placeholder Styling */
.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #cccccc;
}

.main-menu ul {
    display: flex;
    gap: 15px; /* Abstand zwischen den Menüpunkten */
    list-style-type: none;
}

/* Main Navigation Styling */
.main-navigation .main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px; /* Abstand zwischen den Menüpunkten */
}

.main-navigation a {
    display: block;
    color: #e0e0e0;
    padding: 6px 10px; /* Abgerundete Ecken */
    font-weight: 500;
    text-decoration: none;
    position: relative;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease, color 0.3s ease;
}

/* Hover-Effekt für Menüpunkte */
.main-navigation a:hover {
    border-bottom: 3px solid #af151a;
    color: #fff;
}

/* Styling für den aktiven Menüpunkt */
.main-navigation .current-menu-item > a {
    border-bottom: 3px solid #af151a;
    color: #fff;
}

/* Entfernt die alten, einfachen Header-Stile, um Konflikte zu vermeiden */
header h1, nav a {
    /* Diese alten Regeln werden durch die neuen, spezifischeren oben ersetzt. */
    /* Du kannst sie auskommentieren oder löschen, wenn du magst. */
    margin: 0;
}

input, textarea, select {
    font-size: 14px;

}

.lsf-textarea {
    background-color: #0e0e0e;
    border: 0;
    padding: 10px 15px;
    color: white;
}

.lsf-input {
    background-color: #0e0e0e;
    border: 0;
    padding: 10px 15px;
    color: white;
}

.user-form-group {
    display: flex;
    gap: 40px;
}

.slt-ticket-form input[type="text"],
.slt-ticket-form textarea,
#slr-rental-create input[type="text"],
#slr-rental-create textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px;
}

.slt-ticket-form label,
#slr-rental-create label {
    display: block;
    margin-bottom: 5px;
}

textarea {
    height: 120px;
}

.dataTables_wrapper div.dt-buttons > .dt-button {
    background: #af151a;
}

.title-icon {
    margin-right: 7px;
    top: 1px;
    position: relative;
}

.back-link {
    color: white;
}