/* style.css - Das Aussehen der Website */

:root {
    --hintergrund: #12121a;
    --karte: #1e1e2b;
    --text: #eaeaf2;
    --akzent: #8b7bff;   /* Hier Farbe aendern, um das Design anzupassen */
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--hintergrund);
    color: var(--text);
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--karte);
}

nav a { color: var(--text); text-decoration: none; margin-left: 1.2rem; }
nav a:hover { color: var(--akzent); }
nav .logo { font-weight: bold; margin-left: 0; color: var(--akzent); }

main { max-width: 900px; margin: 0 auto; padding: 2rem; }

.hero { text-align: center; padding: 4rem 0; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.4rem;
    background: var(--akzent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}
.button:hover { opacity: 0.85; }

.karten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.karte {
    background: var(--karte);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid transparent;
}
.karte:hover { border-color: var(--akzent); }

footer { text-align: center; padding: 2rem; opacity: 0.6; }

/* ---- Erweiterungen fuer Dashboard, Galerie, Bewertungen ---- */
a { color: var(--akzent); }
h1, h2 { margin-top: 1.6rem; }
.lead { font-size: 1.15rem; opacity: 0.85; }
.flash { background: var(--akzent); color: #fff; padding: 0.7rem 1rem; border-radius: 8px; margin-bottom: 1rem; }

.karte { display: block; color: inherit; text-decoration: none; }
.karte img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 0.6rem; }
.karte h2 { margin-top: 0; font-size: 1.2rem; }

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.galerie img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.bild-admin img { cursor: default; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.88); display: flex;
            align-items: center; justify-content: center; z-index: 10; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

.text { background: var(--karte); padding: 1rem 1.4rem; border-radius: 12px; margin: 1rem 0; }
.text img { max-width: 100%; }
.text pre { background: #0b0b12; padding: 0.8rem; border-radius: 8px; overflow-x: auto; }
.text code { background: #0b0b12; padding: 0.1rem 0.3rem; border-radius: 4px; }
.text table { border-collapse: collapse; }
.text th, .text td { border: 1px solid #333; padding: 0.3rem 0.6rem; }

.review { background: var(--karte); margin: 0; padding: 1.2rem; border-radius: 12px; }
.review footer { padding: 0; text-align: left; opacity: 0.7; }
.sterne { color: #ffc857; letter-spacing: 2px; }

.dateien { list-style: none; padding: 0; }
.dateien li { margin: 0.4rem 0; }

.form { display: grid; gap: 1rem; max-width: 640px; }
.form label { display: grid; gap: 0.3rem; }
input, textarea, select { background: var(--karte); color: var(--text); border: 1px solid #333;
                          border-radius: 8px; padding: 0.6rem; font: inherit; }
.honig { position: absolute; left: -9999px; }
button.button { border: 0; cursor: pointer; font: inherit; }
.grau { background: #444; }
.klein { background: #333; color: var(--text); border: 0; border-radius: 6px; padding: 0.25rem 0.6rem; cursor: pointer; margin-top: 0.3rem; }
.admin-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.admin-links .button { margin-top: 0; }

table { width: 100%; border-collapse: collapse; }
td { padding: 0.6rem; border-bottom: 1px solid #2a2a38; vertical-align: top; }
