/* =========================================================
   Allgemeines Layout
   ========================================================= */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav {
    background-color: #2c3e50;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0 0 0;
}

nav li {
    display: inline;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #34495e;
}

/* =========================================================
   Main / Footer
   ========================================================= */
main {
    padding: 2rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* =========================================================
   Tabellen – Basis
   ========================================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
}

table th,
table td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
    vertical-align: middle;
}

table th {
    background-color: #34495e;
    color: white;
    white-space: nowrap;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #e2e2e2;
}

/* =========================================================
   Formulare
   ========================================================= */
form {
    margin-top: 1rem;
    margin-bottom: 2rem;
    background-color: white;
    padding: 1rem;
    border-radius: 5px;
    max-width: 600px;
}

form input,
form select {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 3px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Formular-Buttons */
form button {
    width: 100%;
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    height: 34px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #34495e;
}

/* =========================================================
   Anwesenheit – Checkboxen (NEU)
   ========================================================= */
.personen-liste {
    border: none;
    margin: 1rem 0 1.5rem 0;
    padding: 0;
}

.person-checkbox {
    display: flex;
    align-items: center;      /* 🔥 perfekte vertikale Ausrichtung */
    gap: 0.6rem;
    margin-bottom: 0.4rem;

    cursor: pointer;
    font-size: 0.95rem;
}

.person-checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.person-checkbox span {
    line-height: 1.2;
}

/* Optional: Hover-Effekt für bessere UX */
.person-checkbox:hover {
    background-color: #f2f2f2;
    border-radius: 4px;
    padding: 0.2rem 0.3rem;
}

/* =========================================================
   Aktionsbuttons (Tabellen)
   ========================================================= */
.actions {
    white-space: nowrap;
    text-align: center;
}

.inline-form {
    display: inline;
}

.actions .inline-form {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.actions button {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    background-image: none !important;
    background-clip: padding-box !important;
}

.actions a.btn,
.actions button.btn {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;

    width: 110px;
    height: 28px;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1;

    border-radius: 4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.actions a.btn:hover,
.actions button.btn:hover {
    background-color: #34495e;
}

.actions button::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

.actions button:focus,
.actions button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    main {
        padding: 1rem;
    }

    form {
        max-width: 100%;
    }
}

/* =========================================================
   Export-Buttons (oben über Tabellen)
   ========================================================= */
.export-bar {
    margin: 0.5rem 0 1rem 0;
    display: flex;
    gap: 0.5rem;
}
