/* Holzquadrat Anmeldung – Tokens und Komponenten unveraendert aus der Admin-App (admin/app/hqa/static/style.css),
   nur die Teile, die Login, Startseite und Fehlerseite brauchen. */
* { box-sizing: border-box; }
:root {
    --anthracite: #1f1d1b; --ink: #1f1d1b; --ink-2: #4a443e; --muted: #8a7e78;
    --bg: #f5f2ed; --surface: #ffffff; --sand: #efe8dd; --sand-2: #e6ddcf;
    --line: #e4ddd2; --line-2: #d4c9b9; --gold: #d2a850; --gold-ink: #94722b;
    --ok: #4c7a4f; --ok-bg: #e5eee1; --caution: #9a6a14; --caution-bg: #f6ebd3;
    --conflict: #a6402e; --conflict-bg: #f6e1da;
    --radius: 10px; --shadow: 0 1px 2px rgba(31,29,27,.06), 0 4px 14px rgba(31,29,27,.04);
}
body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
       background: var(--bg); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }

.topbar { background: var(--anthracite); color: #fff; padding: 0 28px; display: flex; align-items: stretch; gap: 36px;
          position: sticky; top: 0; z-index: 30; min-height: 68px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.brand { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; text-decoration: none; }
.brand strong { font-size: 17px; letter-spacing: .22em; font-weight: 700; }
.brand span { color: var(--gold); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

main { padding: 20px 28px 40px; max-width: 1500px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
         box-shadow: var(--shadow); margin-bottom: 18px; }
.panel.login { max-width: 420px; margin: 8vh auto; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.spaced { margin-top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
       border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--anthracite); color: #fff; } .btn.primary:hover { background: #3a3632; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); } .btn.secondary:hover { background: var(--sand); }
.btn.big { padding: 12px 20px; font-size: 15px; }

.flash { border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-left-width: 4px; }
.flash.ok { background: var(--ok-bg); border-color: #cddcc6; border-left-color: var(--ok); color: #2f5432; }
.flash.error { background: var(--conflict-bg); border-color: #e8c3b8; border-left-color: var(--conflict); color: var(--conflict); }

input { font: inherit; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Startseite: freigegebene Apps (gleiche Optik wie die Eintraege im Apps-Menue der Kopfzeile) */
.login h1 { margin-bottom: 4px; }
.login .stack { margin-top: 18px; }
.apps-list { display: flex; flex-direction: column; gap: 6px; margin: 18px 0; }
.app-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line);
            border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 600; }
.app-link:hover, .app-link:focus-visible { background: var(--sand); border-color: var(--line-2); outline: none; }
.app-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px;
            border-radius: 6px; background: var(--anthracite); color: var(--gold); font-size: 14px; font-weight: 800; }
.logout-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
              border-top: 1px solid var(--line); padding-top: 14px; }
.logout-row form { margin: 0; }

@media (max-width: 900px) {
    main { padding: 14px 12px 28px; }
    .topbar { padding: 0 12px; gap: 12px; }
}
@media (max-width: 700px) {
    .panel { padding: 16px 14px; }
    .panel.login { margin: 4vh auto; }
    h1 { font-size: 19px; }
}
