/* Globale Stile und Hintergrund */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 40px 20px;
    color: #fff;
    background: #1a1a2e; /* Dunkler Hintergrund */
    background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Container für zentrierten Inhalt */
.container {
    max-width: 900px;
    margin: 0 auto;
}

h1, h2 {
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

/* --- Der "Liquid Glass" Effekt --- */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Für Safari */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 25px;
    margin-bottom: 25px;
}

/* --- Formular-Stile --- */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input[type="text"],
form input[type="password"],
form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box; /* Wichtig für Padding */
}

form input::placeholder,
form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

form button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background-color: #e94560;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #c63a50;
}

/* --- Login/Logout Navigation --- */
.nav-admin {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-admin a {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-admin a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Login Modal --- */
.modal {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    /* Glass-Effekt auch für das Modal */
    background: rgba(40, 40, 60, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #fff;
}


/* --- Wunschliste --- */
.wish-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wish-card {
    /* Erbt den .glass-card Stil */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wish-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

/* Status-Markierungen */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending { background-color: #f39c12; color: #fff; }
.status-approved { background-color: #2980b9; color: #fff; }
.status-done { background-color: #27ae60; color: #fff; }
.status-rejected { background-color: #c0392b; color: #fff; }

.wish-body {
    line-height: 1.6;
}

/* Admin-Aktionen */
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 10px;
}

.admin-actions form {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.admin-actions select {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: #fff;
}

.admin-actions option {
    background: #1a1a2e;
    color: #fff;
}

.admin-actions button {
    background-color: #0f3460;
    font-size: 0.9rem;
    padding: 8px 12px;
}
.admin-actions button:hover {
    background-color: #16213e;
}
.admin-actions .delete-btn {
    background-color: #c0392b;
}
.admin-actions .delete-btn:hover {
    background-color: #a02d21;
}

/* --- Fehlermeldungen --- */
.error-message, .success-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error-message {
    background-color: rgba(192, 57, 43, 0.7);
    border: 1px solid #c0392b;
    color: #fff;
}

.success-message {
    background-color: rgba(39, 174, 96, 0.7);
    border: 1px solid #27ae60;
    color: #fff;
}

/* Spezielle Fehlermeldung für den Client-seitigen Spam-Schutz */
#spam-error {
    display: none; /* Standardmäßig versteckt */
}

#spam-error .login-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    text-decoration: underline;
}
/* --- HINZUGEFÜGT: Sprachwechsler --- */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-right: auto; /* Schiebt es nach links */
}
.lang-switcher a, .lang-switcher span {
    color: #fff;
    text-decoration: none;
    padding: 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}
.lang-switcher a:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* Aktive Sprache hervorheben */
.lang-switcher span {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}