/* ====================================================
   ROOT & GLOBAL STYLES
   ==================================================== */
:root {
    --bg: #f7f8fb;
    --card: #e5e4e4;
    --accent: #c774ff;
    --highlight: #e9c0fb;
    --muted: #6b7280;
    --radius: 12px;
    font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: #111;
    font-size: 16px;
}

/* ====================================================
   LAYOUT & CONTAINER
   ==================================================== */
.container {
    max-width: 100%;
    margin: 0;
    padding: 12px;
}

header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

header h1 {
    margin: 0;
    font-size: 20px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 6px 18px rgba(20, 20, 50, 0.04);
    margin: 20px 0;
}

/* ====================================================
   FORMULARE
   ==================================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}

input[type=text],
input[type=email],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    font-size: 15px;
    background: var(--highlight);
}

.actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

/* ====================================================
   BUTTONS
   ==================================================== */
button {
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    margin: 10px;
}

button:hover {
    background: #ffffff;
    color: #C874FF;
    outline: 2px solid #C874FF;
}

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

/* ====================================================
   CONFIRMATION BOX
   ==================================================== */
.confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px;
    text-align: center;
}

.confirm .ok {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: rgba(107, 33, 168, 0.12);
    display: grid;
    place-items: center;
    font-size: 30px;
    color: var(--accent);
}

/* ====================================================
   TABLES
   ==================================================== */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid #f1f3f7;
}

th {
    font-size: 13px;
    color: var(--muted);
}

/* ====================================================
   FILTER MENUS
   ==================================================== */
.filter-container {
    position: relative;
    display: inline-block;
}

.filter-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.filter-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: fadeIn 0.15s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-menu label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.filter-menu input {
    margin-right: 6px;
}

/* ====================================================
   IMPRESSUM
   ==================================================== */
#impressum {
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
}

.impressum-container {
    background-color: #fff;
    border: 2px solid #b084cc;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #333;
}

.impressum-container h1 {
    color: #7a3eb1;
    text-align: center;
    margin-bottom: 20px;
}

.impressum-container h2 {
    color: #7a3eb1;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.impressum-container p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.impressum-container a {
    color: #7a3eb1;
    text-decoration: none;
    transition: 0.2s ease;
}

.impressum-container a:hover {
    text-decoration: underline;
    color: #9a55d0;
}

/* ====================================================
   ZURÜCK-BUTTON
   ==================================================== */
.zurueck-link {
    background: var(--accent);
    color: var(--bg);
    border: 0;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    margin: 10px;
    padding: 5px;
    width: 250px;
}

.zurueck-link a {
    color: var(--bg);
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.zurueck-link:hover {
    background: #ffffff;
    color: var(--accent);
    outline: 2px solid var(--accent);
}

.zurueck-link:hover a {
    color: var(--accent);
}

/* ====================================================
   FOOTER
   ==================================================== */
footer.footer {
    text-align: right;
    padding: 5px 40px 5px 5px;
    background: var(--card);
    border-top: 1px solid #e6e9ef;
    margin-top: 20px;
    color: var(--accent);
}

footer.footer a {
    color: var(--accent);
    text-decoration: none;
}

/* ====================================================
   POPUP OVERLAY
   ==================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.popup {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.popup button {
    background: var(--accent);
    color: var(--bg);
    border: 0;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    margin: 10px;
    padding: 5px;
    width: 250px;
}

.popup button:hover {
    background: #ffffff;
    color: var(--accent);
    outline: 2px solid var(--accent);
}