/* Login, Bestenliste, Passwort, Admin – das Spiel bringt sein eigenes CSS mit */
* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh;
    background: #0b0f0c; color: #c8f7d2;
    font-family: "DejaVu Sans Mono", Consolas, monospace;
}
a { color: #39ff7a; }
.muted { color: #7fa88a; font-size: 13px; line-height: 1.5; }
.card {
    background: #111a14; border: 1px solid #1f3a28; border-radius: 10px;
    padding: 20px; box-shadow: 0 0 40px rgba(57, 255, 122, .08);
}
input {
    padding: 10px; font: inherit; font-size: 16px;
    background: #050805; color: #c8f7d2;
    border: 1px solid #2c5a3a; border-radius: 6px;
}
input:focus { outline: 2px solid #39ff7a; outline-offset: 1px; }
button {
    padding: 10px 14px; font: inherit; font-weight: bold; cursor: pointer;
    background: #39ff7a; color: #04140a; border: 0; border-radius: 6px;
}
button:hover { background: #6bff9a; }
button.zweit { background: #1f3a28; color: #c8f7d2; border: 1px solid #2c5a3a; font-weight: normal; }
button.zweit:hover { background: #2c5a3a; }
button.gefahr { background: #3a1212; color: #ffb4b4; border: 1px solid #6b2020; font-weight: normal; }
button.gefahr:hover { background: #6b2020; }
button.link { background: none; color: #7fa88a; padding: 6px 0; font-weight: normal; }
button.link:hover { color: #39ff7a; }
.flash { margin: 14px 0; padding: 10px 12px; border-radius: 6px; }
.flash.fehler { background: #3a1212; color: #ffb4b4; border: 1px solid #6b2020; }
.flash.ok { background: #10301b; color: #b4ffcb; border: 1px solid #2c5a3a; }
.hash {
    margin-top: 14px; padding: 10px; word-break: break-all; font-size: 13px;
    background: #050805; border: 1px dashed #2c5a3a; border-radius: 6px;
}
.tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #1f3a28; color: #39ff7a; }

/* Login */
body.login { display: flex; align-items: center; justify-content: center; padding: 16px; }
body.login .card { width: 100%; max-width: 380px; padding: 28px 24px; }
body.login h1 { margin: 0; font-size: 26px; color: #39ff7a; letter-spacing: 1px; }
body.login h1 span { color: #c8f7d2; font-weight: normal; }
body.login form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }

/* Seiten mit Navigation */
.nav {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
    padding: 12px 16px; border-bottom: 1px solid #1f3a28; background: #0e1510;
}
.nav .logo { color: #39ff7a; font-weight: bold; text-decoration: none; font-size: 18px; }
.nav .logo span { color: #c8f7d2; font-weight: normal; }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.nav nav a { text-decoration: none; color: #c8f7d2; }
.nav nav a:hover { color: #39ff7a; }
.nav form { margin: 0; }
.inhalt { max-width: 1000px; margin: 0 auto; padding: 16px; }
.inhalt h1 { color: #39ff7a; font-size: 22px; }
.schmal { max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.schmal label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #7fa88a; }
.zeile { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.zeile input[type=text], .zeile input[type=password] { flex: 1 1 180px; min-width: 0; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; }

/* Sicherung (admin.php) */
.inhalt h2 { color: #39ff7a; font-size: 18px; margin-top: 32px; }
.sicherung { display: flex; flex-direction: column; gap: 18px; }
.sicherung p { margin: 0 0 10px; font-size: 14px; }
.sicherung form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid #1f3a28; padding-top: 16px; }
.sicherung form p { flex-basis: 100%; }
.sicherung input[type=file] { font-size: 14px; max-width: 100%; }
a.knopf {
    display: inline-block; padding: 10px 14px; border-radius: 6px; text-decoration: none; font-weight: bold;
    background: #39ff7a; color: #04140a;
}
a.knopf:hover { background: #6bff9a; }

/* Tabellen */
.tabelle-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #1f3a28; text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: #7fa88a; font-weight: normal; font-size: 12px; text-transform: uppercase; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
tr.ich td { background: #10301b; }
.aktionen { display: flex; flex-wrap: wrap; gap: 6px; }
.aktionen form { display: flex; gap: 4px; margin: 0; }
.aktionen input { padding: 6px 8px; font-size: 13px; width: 150px; }
.aktionen button { padding: 6px 10px; font-size: 13px; }

/* Einladungen / Passwort-Links */
.unten { margin-top: 16px; text-align: center; }
.tag.warn { background: #3a2a08; color: #ffb000; }
form.inline { display: flex; gap: 4px; margin: 0; }
form.inline input { padding: 6px 8px; font-size: 13px; width: 200px; }
form.inline button { padding: 6px 10px; font-size: 13px; }

/* Statistik (statistik.php) */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kachel { background: #111a14; border: 1px solid #1f3a28; border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.kachel span { color: #7fa88a; font-size: 12px; }
.kachel b { color: #39ff7a; font-size: 22px; font-variant-numeric: tabular-nums; }
.kachel small { display: block; margin-top: 4px; color: #7fa88a; font-size: 12px; font-weight: normal; line-height: 1.4; }
.balken { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 12px 12px 26px; }
.balken-tag { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.balken-wert { background: #39ff7a; border-radius: 3px 3px 0 0; min-height: 0; }
.balken-tag:hover .balken-wert { background: #6bff9a; }
.balken-tag span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #7fa88a; white-space: nowrap; }
tr.offen td { color: #7fa88a; }
