/* ============================================================================
   Avatar-Reservierung Stylesheet - LA MIDNIGHT BRUTALIST
   Reservierungsverwaltung für Avatare
   ============================================================================ */

/* Haupt-Container */
.avres_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
}

/* Formular-Container */
.avres_form {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.avres_field {
    margin-bottom: var(--space-md);
}

.avres_field:last-child {
    margin-bottom: 0;
}

/* Beschriftung der Eingabefelder */
.avres_field label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text, #e5e5e5);
    font-size: 0.875rem;
}

/* Eingabefelder */
.avres_input {
    width: 100%;
    padding: var(--space-sm);
    background: var(--bg-input, #111111);
    border: 1px solid var(--border-light, #2a2a2a);
    color: var(--text, #e5e5e5);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Focus-Status für Eingabefelder */
.avres_input:focus,
.avres_input:active {
    background: var(--bg-input, #111111);
    border-color: var(--border, #1a1a1a);
    outline: none;
    box-shadow: none;
}

/* Select-Dropdown-Styling */
select.avres_input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e5e5e5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    padding-right: 2.5rem;
}

/* Hilfstext unter Feldern */
.avres_hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted, #888888);
    margin-top: var(--space-xs);
}

/* Buttons */
.avres_button {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card, #0f0f0f);
    border: 1px solid var(--border-light, #2a2a2a);
    color: var(--text, #e5e5e5);
    font-size: 0.875rem;
    font-weight: 400;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Button Hover-Effekt */
.avres_button:hover {
    background: var(--bg-alt, #0a0a0a);
    border-color: var(--border, #1a1a1a);
}

/* Suchfeld-Container */
.avres_search {
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-lg);
}

/* Grid-Layout für Listen */
.avres_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    padding: 0 var(--space-lg);
}

/* Kategorie-Container */
.avres_category {
    background: transparent;
}

/* Kategorie-Titel */
.avres_title {
    padding: var(--space-sm) 0;
    color: var(--text, #e5e5e5);
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light, #2a2a2a);
    margin-bottom: 0;
}

/* Tabellen-Styling */
.avres_table {
    width: 100%;
    border-collapse: collapse;
}

/* Spaltenüberschriften */
.avres_header td {
    padding: var(--space-sm);
    color: var(--text-muted, #888888);
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light, #2a2a2a);
}

.avres_header td:first-child {
    padding-left: 0;
}

/* Tabellenzeilen */
.avres_row {
    background: transparent;
}

.avres_row:hover {
    background: transparent;
}

/* Tabellenzellen */
.avres_cell {
    padding: var(--space-sm);
    color: var(--text, #e5e5e5);
    font-size: 0.9rem;
    font-weight: 400;
    border-bottom: 1px solid var(--border-light, #2a2a2a);
    vertical-align: middle;
}

.avres_cell:first-child {
    padding-left: 0;
}

.avres_row:last-child .avres_cell {
    border-bottom: none;
}

/* Action Buttons im Tabel */
.avres_actions {
    white-space: nowrap;
}

.avres_actions .avres_button {
    padding: var(--space-xs) var(--space-sm);
    margin-right: var(--space-xs);
    font-size: 0.75rem;
}

.avres_actions .avres_button:last-child {
    margin-right: 0;
}

/* Leere Liste Anzeige */
.avres_empty {
    text-align: center;
    padding: var(--space-lg) 0;
    grid-column: 1 / -1;
}

.avres_empty p {
    margin: 0;
    color: var(--text-muted, #888888);
}

/* Nachrichten-Bereich */
.avres_message {
    padding: var(--space-sm) var(--space-md);
    margin: 0 var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--border-light, #2a2a2a);
    color: var(--text, #e5e5e5);
}

/* Links im Kategorien-Bereich */
.avres_category a {
    color: var(--text, #e5e5e5);
    text-decoration: none;
}

.avres_category a:hover {
    color: var(--accent, #ff4422);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

/* Tablets - Einspaltiges Grid Layout */
@media (max-width: 900px) {
    .avres_list {
        grid-template-columns: 1fr;
    }
}

/* Mobile Geräte - Vollständiger Layout-Wechsel */
@media (max-width: 768px) {
    .avres_container {
        padding: var(--space-sm);
    }

    .avres_form,
    .avres_search,
    .avres_list {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    /* Tabelle wird zu Blöcken auf Mobile */
    .avres_table,
    .avres_table thead,
    .avres_table tbody,
    .avres_row,
    .avres_cell {
        display: block;
    }

    .avres_table thead tr {
        display: none;
    }

    /* Tabellenzeilen als separate Blöcke */
    .avres_row {
        margin-bottom: var(--space-sm);
        padding-bottom: var(--space-sm);
        border-bottom: 1px solid var(--border-light, #2a2a2a);
    }

    /* Zellen mit Flex für Label/Wert Paare */
    .avres_cell {
        display: flex;
        justify-content: space-between;
        padding: var(--space-xs) 0;
        border-bottom: none;
    }

    /* Action Buttons flexibel anordnen */
    .avres_actions {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .avres_actions .avres_button {
        margin-right: 0;
    }
}