/* =========================================
   VERWALTUNG.CSS – Admin-Bereich
   Gleiches Design wie Rest der App (site.css Tokens)
========================================= */

/* ================================
   SEITEN-LAYOUT
=============================== */
.verwaltung-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

/* .verwaltung-box Basis in site.css; nur Abstände ergänzen */
.verwaltung-box {
    padding: 26px;
}

.verwaltung-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.verwaltung-head h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #0f2230;
}

/* ================================
   LISTEN (wie Karten/Boxen der App)
=============================== */
.verwaltung-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.verwaltung-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.verwaltung-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.verwaltung-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0f2230;
}

.verwaltung-sub {
    font-size: 16px;
    color: #666;
}

.verwaltung-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.verwaltung-actions a {
    color: #1f73d9;
    text-decoration: none;
    font-weight: 600;
}

.verwaltung-actions a:hover {
    text-decoration: underline;
}

.verwaltung-empty {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* ================================
   LOGIN (gleiche Box wie kampagne-box)
=============================== */
.verwaltung-login-page {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.verwaltung-login-box {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.verwaltung-login-box h1 {
    margin-top: 0;
    margin-bottom: 22px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #0f2230;
    text-align: center;
}

.verwaltung-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.verwaltung-form-row input {
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 16px;
}

.verwaltung-login-error {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 10px;
    background: #fce8e8;
    color: #a12626;
}

/* ================================
   BUTTONS (App-Theme: Nav-Farbe)
=============================== */
.verwaltung-button {
    display: inline-block;
    padding: 10px 18px;
    background: #173744;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.verwaltung-button:hover {
    background: #1d5362;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.verwaltung-login-button {
    width: 100%;
    margin-top: 8px;
}

/* ================================
   FORMULARE (Inputs wie filter-bar)
=============================== */
.verwaltung-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px 20px;
}

.verwaltung-form-row.full {
    grid-column: 1 / -1;
}

.verwaltung-input,
.verwaltung-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

.verwaltung-textarea {
    min-height: 180px;
    resize: vertical;
}

.verwaltung-subbox {
    margin-top: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.verwaltung-subbox h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #0f2230;
}

.verwaltung-simple-list {
    margin: 0;
    padding-left: 18px;
}

/* Klasse/Level-Paare nebeneinander */
.verwaltung-klasse-row {
    display: flex;
    gap: 16px;
}

.verwaltung-klasse-row > .verwaltung-klasse,
.verwaltung-klasse-row > .verwaltung-level {
    flex: 1 1 0;
}

/* ================================
   LÖSCHEN / FEHLER
=============================== */
.verwaltung-delete-link {
    color: #b42323;
}

.verwaltung-delete-link:hover {
    color: #8f1b1b;
}

.verwaltung-delete-button {
    background: #b42323;
    color: #fff !important;
}

.verwaltung-delete-button:hover {
    background: #8f1b1b;
    color: #fff !important;
    text-decoration: none;
}

.verwaltung-error {
    margin: 0;
    color: #b42323;
    font-weight: 600;
}

/* ================================
   SPEZIFISCHE BOXEN
=============================== */
.verwaltung-charakter-edit-box .verwaltung-actions,
.verwaltung-kampagne-edit-box .verwaltung-actions {
    margin-top: 22px;
}

.verwaltung-charsets-box,
.verwaltung-gebiete-box {
    margin-top: 28px;
}

.verwaltung-simple-list-wrap {
    margin-top: 10px;
}

.verwaltung-main-charset {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.verwaltung-orte-list {
    margin-top: 14px;
    gap: 10px;
}

.verwaltung-item-klein {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.verwaltung-name-klein {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0f2230;
}

.verwaltung-empty-klein {
    margin-top: 12px;
    margin-bottom: 0;
}

.verwaltung-preview-img {
    width: 180px;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* ================================
   RESPONSIVE (wie site.css)
=============================== */
@media (max-width: 900px) {
    .verwaltung-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .verwaltung-actions {
        width: 100%;
    }

    .verwaltung-form-grid {
        grid-template-columns: 1fr;
    }

    .verwaltung-form-row.full {
        grid-column: auto;
    }
}
