/* ================================================= */
/* --- GRUNDLAYOUT & DASHBOARD STILE --- */
/* ================================================= */

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9; 
    margin: 0; 
    padding: 2rem; 
}

.container { 
    max-width: 960px; 
    margin: auto; 
    background: white; 
    padding: 2rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
}

h1, h2, h3 { 
    color: #333; 
    border-bottom: 2px solid #eef;
    padding-bottom: 10px;
    margin-top: 0;
}

a { 
    color: #007bff; 
    text-decoration: none; 
}
a:hover {
    text-decoration: underline;
}

/* --- Dashboard-Navigation & Logout Button --- */
nav {
    margin-top: 1.5rem;
}

nav a { 
    display: inline-block; 
    background: #007bff; /* Das Standard-Blau für die Buttons */
    color: white !important; /* Wichtig, damit der Link nicht blau bleibt */
    padding: 10px 15px; 
    text-decoration: none; 
    border-radius: 5px; 
    margin-right: 10px; 
    margin-bottom: 10px;
    transition: background-color 0.2s;
}

nav a:hover { 
    background: #0056b3; 
    text-decoration: none;
}

.logout { 
    float: right; 
    background: #dc3545; /* Rot für den Logout-Button */
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.logout:hover {
    background: #c82333;
}


/* ================================================= */
/* --- BISHERIGE STILE (bleiben unverändert) --- */
/* ================================================= */

/* --- Formulare --- */
/* ... dein bisheriger Code für Formulare ... */

/* --- Formulare --- */
.form-box {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}
input[type="text"], textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Wichtig für korrekte Breite */
}
textarea {
    min-height: 80px;
    resize: vertical;
}
button, .cancel-button {
    font-size: 1rem;
    padding: 10px 15px;
    background-color: #007bff; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
    transition: background-color 0.2s;
}
button:hover {
    background-color: #0056b3;
}
.cancel-button {
    background-color: #6c757d;
    display: inline-block;
    margin-left: 10px;
}
.cancel-button:hover {
    background-color: #5a6268;
    color: white;
    text-decoration: none;
}

/* --- Tabellen --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th {
    background-color: #f8f9fa;
}
tr:hover {
    background-color: #f1f1f1;
}
.actions a {
    margin-right: 10px;
}

/* --- Spezifische Stile für Links im Admin-Menü --- */
nav a.view-gallery-link {
    background-color: #28a745 !important;
}
nav a.view-gallery-link:hover {
    background-color: #218838;
}

/* ========================================= */
/* --- NEUE STILE FÜR DAS ADMIN DASHBOARD --- */
/* ========================================= */

/* Entfernt die alten Button-Stile von der Dashboard-Navigation */
nav {
    display: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    display: block;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #343a40;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    text-decoration: none;
}

.card-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    color: #007bff;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ========================================= */
/* --- NEUE STILE FÜR DIE ADMIN LOGIN-SEITE --- */
/* ========================================= */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.login-box h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.login-logo {
    display: block;
    max-width: 80px;
    height: auto;
    margin: 0 auto 1.5rem auto;
}

.login-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-box button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-box button:hover {
    background-color: #0056b3;
}

.login-box .error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    text-align: center;
}

/* Spezialfarbe für den "Zur Galerie" Button */
.dashboard-card.special .card-icon {
    color: #28a745;
}

/* --- Nachrichten --- */
.messages { margin-bottom: 1.5rem; }
.message { 
    padding: 1rem; 
    border-radius: 5px; 
}
.message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb;}
.message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;}


