/* Farbwerte bewusst identisch zu den Konfigurator-Apps (--red/--dark/--card/--border/--white
   aus apps/kabinen/src/index.css) und zu _shared/ahs-common.css, für visuelle Konsistenz
   innerhalb der AHS-Tool-Familie. Kein Build-Step hier (reines Server-gerendertes Vanilla-JS,
   analog JÜRGEN) — Werte daher direkt kopiert statt importiert. */
:root {
  --red: #CC0000;
  --red-dark: #A30000;
  --dark: #161616;
  --card: #1e1e1e;
  --border: #282828;
  --muted: #888;
  --muted2: #555;
  --white: #ffffff;
  --ok-bg: #0d2b1a; --ok-fg: #3daa72; --ok-border: #1a4a2d;
  --err-bg: #2b0d0d; --err-fg: #cc4444; --err-border: #4a1a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0d0d0d; color: var(--white); min-height: 100vh;
}
button, input, select { font-family: inherit; font-size: 14px; }

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--dark); border-bottom: 3px solid var(--red);
}
.header h1 { font-size: 18px; letter-spacing: 0.02em; }
.header h1 b { color: var(--red); }
.header .userRow { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.btn {
  padding: 8px 16px; border-radius: 6px; border: 1px solid var(--border);
  background: transparent; color: var(--white); cursor: pointer; font-weight: 600;
}
.btn:hover { border-color: var(--muted2); }
.btnPrimary { background: var(--red); border-color: var(--red); }
.btnPrimary:hover { background: var(--red-dark); }

.main { max-width: 960px; margin: 0 auto; padding: 24px; }

.loginBox {
  max-width: 360px; margin: 80px auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 32px; text-align: center;
}
.loginBox h2 { margin-bottom: 20px; }
.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; letter-spacing: 0.05em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 5px;
  background: #111; color: var(--white); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.errMsg { color: var(--err-fg); font-size: 13px; margin: 10px 0; }

.groupBlock { margin-bottom: 24px; }
.groupTitle { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin-bottom: 8px; font-weight: 700; }
.produktRow {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: 6px; margin-bottom: 6px;
}
.produktRow .name { flex: 1; }
.produktRow .name strong { display: block; }
.produktRow .name span { font-size: 12px; color: var(--muted); }
.produktRow .preis { font-weight: 700; color: #B30000; min-width: 90px; text-align: right; }
.produktRow .actions { display: flex; gap: 6px; }
.produktRow .actions button { padding: 5px 10px; font-size: 12px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.formCard { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formGrid .full { grid-column: 1 / -1; }
.formActions { display: flex; gap: 10px; margin-top: 16px; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Ersetzt vormals inline style="..."-Attribute in app.js (CSP-Härtung 09.08.2026,
   siehe CLAUDE.md „Sicherheits-Härtung") — style-src kann dadurch ohne unsafe-inline
   auskommen. */
.btnFull { width: 100%; }
.btnFullBlock { width: 100%; display: block; box-sizing: border-box; }
.ssoRow { text-align: center; margin-top: 12px; }
.btnRow { display: flex; gap: 10px; }
.diffPreview { white-space: pre-wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
