/* Produktion – Stil wie Lager/Arbeitskleidung (Link-Grün, kein Firmen-Design). */
:root {
    --primary: #008245; --primary-dark: #006234; --primary-light: #65B32E;
    --bg: #f0f4f0; --surface: #fff; --text: #1e293b; --text-muted: #64748b; --border: #e2e8e2;
    --shadow: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
    --radius: 8px; --radius-sm: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px;
       line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--primary); }
h1 { font-size: 1.5rem; margin: 0 0 16px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }

/* Navigation: Standard aus /var/www/html/gemeinsam/navbar/ (navbar_kopf() in templates/header.php) */

.container { max-width: 1150px; margin: 24px auto; padding: 0 16px; }

/* Karten, Tabellen, Formulare */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
        box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; }
tr.klickbar { cursor: pointer; }
tr.klickbar:hover td { background: #f6faf6; }
.muted { color: var(--text-muted); font-size: .85rem; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.breit, .breit { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .88rem; }
input[type=text], input[type=number], input[type=search], input[type=date], select, textarea {
    font: inherit; padding: 7px 10px; border: 1px solid #cbd5cb; border-radius: var(--radius-sm); background: #fff; width: 100%; }
textarea { min-height: 80px; resize: vertical; }
.filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filter .form-group { min-width: 160px; }

.btn { display: inline-block; font: inherit; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-sm);
       border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: .82rem; }
.aktionen { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert-erfolg { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-fehler { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-hinweis { background: #fefce8; color: #854d0e; border: 1px solid #fde047; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-fertig    { background: #d1fae5; color: #065f46; }
.badge-storniert { background: #f3f4f6; color: #4b5563; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; }
.details dt { color: var(--text-muted); font-size: .88rem; }
.details dd { margin: 0; }

/* Startseite: Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.kachel { display: block; color: inherit; text-decoration: none; margin: 0; }
.kachel:hover { border-color: var(--primary); }
.kachel h2 { color: var(--primary); }
.kachel p { margin: 0 0 8px; }
[hidden] { display: none !important; }

/* Login-Hinweis */
.login-karte { max-width: 460px; margin: 80px auto; text-align: center; }
