/* Bewusst schlicht und ohne Fremdbibliotheken.
   Die Content-Security-Policy erlaubt keine Inline-Styles, deshalb steht
   alles hier statt in den Seiten. */

:root {
  --rand: #d6d3cd;
  --text: #23221f;
  --gedaempft: #6b6862;
  --flaeche: #faf9f7;
  --ok: #2f6d3f;
  --warnung: #8a5a12;
  --fehler: #9b2c2c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--rand);
  background: var(--flaeche);
}

.marke { font-weight: 600; text-decoration: none; color: var(--text); }
header nav { display: flex; gap: 1rem; }
header nav a { color: var(--text); }
.abmelden { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.abmelden span { color: var(--gedaempft); font-size: .9rem; }

main { max-width: 60rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }

table { border-collapse: collapse; width: 100%; margin: .5rem 0 1rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--rand); }
th { font-weight: 600; color: var(--gedaempft); font-size: .85rem; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }

form.inline { display: inline; }
input[type=text], input[type=email], input[type=search], select {
  padding: .4rem .5rem;
  border: 1px solid var(--rand);
  border-radius: 4px;
  font: inherit;
}
button {
  padding: .4rem .8rem;
  border: 1px solid var(--rand);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
button:hover { background: var(--flaeche); }
button.gefahr { color: var(--fehler); border-color: #e3bcbc; }

.meldung { padding: .6rem .8rem; border-radius: 4px; border: 1px solid var(--rand); }
.meldung.ok { border-color: #bcd8c3; color: var(--ok); }
.meldung.warnung { border-color: #e6d3ac; color: var(--warnung); }
.meldung.fehler { border-color: #e3bcbc; color: var(--fehler); }

.marke-rolle {
  display: inline-block;
  padding: .1rem .45rem;
  margin-right: .3rem;
  border: 1px solid var(--rand);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--gedaempft);
}

.hinweis { color: var(--gedaempft); font-size: .9rem; }

/* Dashboard */
.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.kachel {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem;
  border: 1px solid var(--rand);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
}
.kachel:hover { background: var(--flaeche); }
.kachel strong { font-size: 1.05rem; }
.kachel .stand { margin-top: .4rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; color: var(--gedaempft); }
