* {
    box-sizing: border-box;
}
body {
    font-family: system-ui, sans-serif;
    background: #f4f1ec;
    color: #2b2b2b;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.login-box {
    max-width: 340px;
    margin: 60px auto 0;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}
nav {
    margin-bottom: 20px;
    text-align: center;
}
nav a {
    color: #8a6d3b;
    text-decoration: none;
    font-weight: 600;
}
h1 {
    color: #6b4f2a;
    text-align: center;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
label {
    display: block;
    width: 100%;
    max-width: 38ch;
    margin: 0 auto 14px;
    font-weight: 600;
    text-align: left;
}
input[type=text], input[type=password], input[type=file] {
    display: block;
    width: 100%;
    max-width: 38ch;
    margin: 4px auto 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
button, .button-link {
    background: #b8860b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
button:hover, .button-link:hover {
    background: #9c7209;
}
.button-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.error {
    color: #b00020;
    background: #ffe0e0;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}
.success {
    color: #14620e;
    background: #e0ffe4;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.coin-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}
.coin-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
}
.coin-card h3 {
    margin: 10px 0 4px;
    color: #6b4f2a;
}
.coin-card p {
    margin: 2px 0;
    font-size: 0.9em;
    text-align: left;
}

/* --- Mobile-Optimierung --- */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .login-box {
        margin-top: 20px;
        padding: 20px;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    label, input[type=text], input[type=password], input[type=file] {
        max-width: 100%;
    }
}
