/* ====================================================== */
/* ================ ALLGEMEINE EINSTELLUNGEN ============ */
/* ====================================================== */

body {
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;          /* Seite füllt ganze Höhe */
    margin: 0;
    background-color: #f4f4f9;
}

/* ====================================================== */
/* ================ SIDEBAR (MENÜ) ====================== */
/* ====================================================== */

.sidebar {
    width: 250px;
    background-color: #343a40;
    color: white;
    padding-top: 20px;
    position: fixed;
    height: 100%;           /* Feste Höhe */
}

.sidebar a {
    color: white;
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    margin: 10px 0;
}

.sidebar a:hover {
    background-color: #575d63;
}

.sidebar .btn-danger {
    background-color: #dc3545;
    border: none;
    color: white;
    text-align: center;
    padding: 12px 20px;
    cursor: pointer;
}

.sidebar .btn-danger:hover {
    background-color: #c82333;
}

/* ====================================================== */
/* ================ HAUPTINHALT ========================= */
/* ====================================================== */

.content {
    margin-left: 250px;  /* Platz für Sidebar */
    padding: 20px;
    width: 100%;
}

.main-content {
    margin-top: 20px;
}

h1 {
    color: #007bff;
}

/* ====================================================== */
/* ================ NACHRICHTEN / MELDUNGEN ============ */
/* ====================================================== */
.msg {
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
    max-width: 800px;   /* Optional, um Nachrichten nicht zu breit zu machen */
}
.msg-success {
    background-color: #d4edda;
    color: #155724;
}
.msg-error {
    background-color: #f8d7da;
    color: #721c24;
}
.msg-delete {
    background-color: #f8d7da;
    color: #721c24;
}

/* ====================================================== */
/* ================ EVENT-TABELLE ======================= */
/* ====================================================== */

.event-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    max-width: 1200px; /* Optional, je nach Layout */
}
.event-table th,
.event-table td {
    border: 1px solid #ccc;
    padding: 8px;
    vertical-align: middle;
}
.event-table th {
    background-color: #eee;
    text-align: left;
}

/* Kleine Banner-Vorschau in der Tabelle */
.event-thumb {
    max-width: 150px;    /* Bild breit auf 150px begrenzt */
    height: auto;
    border: 1px solid #ccc;
    border-radius: 3px;
    display: block;      /* damit Zeilenumbruch klar ist */
}

/* ====================================================== */
/* ================ STATUS ============================== */
/* ====================================================== */

.status {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}
.status.active {
    background-color: #d4edda;
    color: #155724;
}
.status.upcoming {
    background-color: #cce5ff;
    color: #004085;
}
.status.ended {
    background-color: #e2e3e5;
    color: #383d41;
}

/* ====================================================== */
/* ================ ICON-BUTTONS ======================== */
/* ====================================================== */

.icon-btn {
    display: inline-block;
    margin: 0 5px;
}
.icon-btn img {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

/* ====================================================== */
/* ================ FORMULARE =========================== */
/* ====================================================== */

label {
    font-weight: bold;
}

input[type="file"],
input[type="text"],
input[type="number"] {
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 4px;
}

/* ====================================================== */
/* ================ FLATPICKR-OVERRIDES (optional) ====== */
/* ====================================================== */

.datetimepicker {
    width: 180px; /* Schmale Eingabefelder */
    padding: 4px;
}
