/* Globale Stile */
body {
    background-color: black;
    color: #f0f0f0; /* Helleres Grau für besseren Kontrast auf Schwarz */
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: #d89904; /* Akzentfarbe für Links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #1a1a1a; /* Dunkles Grau für den Header */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #d89904; /* Akzentfarbe als untere Linie */
}

header h1 {
    margin: 0;
    color: #d89904; /* Akzentfarbe für die Überschrift */
    font-size: 1.8em;
}

/* Download Button */
.download-button {
    background-color: #d89904; /* Akzentfarbe */
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #b37d03; /* Etwas dunklere Akzentfarbe beim Hover */
    text-decoration: none;
}

/* Galerie Layout */
main.gallery {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsives Grid */
    gap: 15px; /* Abstand zwischen den Bildern */
}

.gallery-item {
    border: 2px solid #333; /* Dunkelgrauer Rand */
    border-radius: 4px;
    overflow: hidden; /* Stellt sicher, dass das Bild im Rahmen bleibt */
    background-color: #1a1a1a;
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.gallery-item:hover {
   transform: scale(1.03); /* Leichter Zoom-Effekt beim Hover */
   border-color: #d89904; /* Akzentfarbe für den Rand beim Hover */
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto; /* Behält das Seitenverhältnis bei */
    aspect-ratio: 1 / 1; /* Sorgt für quadratische Vorschaubilder, passt das Seitenverhältnis an */
    object-fit: cover; /* Skaliert das Bild, um den Container zu füllen, schneidet ggf. ab */
}

/* Meldungen */
.no-images, .error {
    color: #aaa;
    text-align: center;
    grid-column: 1 / -1; /* Nimmt die gesamte Breite ein */
    padding: 50px 20px;
}

/* Footer (optional) */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #888;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        padding: 15px;
    }
    header h1 {
        margin-bottom: 10px;
        font-size: 1.5em;
    }
    main.gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Kleinere Bilder auf kleinen Screens */
        gap: 10px;
    }
    .download-button { width: 100%; text-align: center; }
    .login-form { margin: 30px 15px; padding: 20px; }
}

/* Gemeinsame Login-Form Styles (Index + Backend) */
a.header-logo-link {
    display: inline-block;
    line-height: 0;
    margin-right: auto;
}
img.header-logo {
    height: 45px;
    width: auto;
    max-width: 100%;
    vertical-align: middle;
}
.login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    text-align: center;
}
.login-form label {
    display: block;
    margin-bottom: 10px;
    color: #f0f0f0;
}
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="number"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #555;
    background-color: #333;
    color: #f0f0f0;
    border-radius: 3px;
}
.login-form button {
    background-color: #d89904;
    color: black;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.login-form button:hover { background-color: #b37d03; }
.login-error { color: #ff6b6b; margin-top: 15px; font-weight: bold; }

.language-switcher { color: white; display:flex; gap: 5px; align-items:center; justify-content:center; }
.language-switcher a { color: white; font-size: 0.9em; }
.language-switcher a.active { color: #d89904; font-weight: bold; text-decoration: none; }

.logout-button {
    background-color: #555;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: normal;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.logout-button:hover { background-color: #777; text-decoration: none; }
