@charset "UTF-8";

/* Versanel Toolbox – die eine zentrale CSS-Datei.
   Keine Animationen, keine Schatten, keine Verläufe. */

/* --- Schriften ----------------------------------------------------------- */

@font-face {
  font-family: "Bebas Neue";
  src: url("/assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Italic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* --- Farben und Grundwerte ----------------------------------------------- */

:root {
  --bg: #FCD0A1;       /* Beige, Hintergrund */
  --akzent: #F11835;   /* Rot */
  --text: #000000;     /* Schwarz */
  --weiss: #FFFFFF;
  --flaeche: #FFF4E8;  /* helle Fläche für Tabellen/Formulare auf Beige */
  --linie: #000000;

  --schrift-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --schrift-titel: "Bebas Neue", "Arial Narrow", Impact, sans-serif;

  --abstand: 1rem;
  --breite: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift-text);
  font-weight: 400;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 4rem;
  color: var(--akzent);
}

h2 {
  font-size: 2.2rem;
  color: var(--text);
}

h3 {
  font-size: 1.6rem;
  color: var(--text);
}

p {
  margin: 0 0 1em;
}

em {
  font-style: italic;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus {
  color: var(--akzent);
}

/* --- Kopfzeile ----------------------------------------------------------- */

.kopf {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--abstand);
  flex-wrap: wrap;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0.75rem var(--abstand);
  border-bottom: 1px solid var(--linie);
}

.kopf-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.kopf-nutzer {
  font-weight: 600;
}

.kopf-logout {
  margin: 0;
}

/* --- Inhalt -------------------------------------------------------------- */

.inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 2rem var(--abstand) 3rem;
}

.fuss {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 1rem var(--abstand) 2rem;
  border-top: 1px solid var(--linie);
  font-size: 0.85rem;
}

/* --- Startseite: Titel und Kacheln --------------------------------------- */

.titel-zweizeilig {
  font-size: clamp(3rem, 9vw, 6rem);
  margin-bottom: 1.5rem;
}

.titel-zweizeilig span {
  display: block;
}

.titel-zweizeilig span:last-child {
  color: var(--text);
}

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: var(--abstand);
  list-style: none;
  padding: 0;
  margin: 0;
}

.kachel {
  display: block;
  padding: 1.25rem;
  min-height: 9rem;
  border: 1px solid var(--linie);
  background: var(--flaeche);
  color: var(--text);
  text-decoration: none;
}

.kachel:hover,
.kachel:focus {
  border-color: var(--akzent);
  color: var(--text);
}

.kachel-icon {
  display: block;
  height: 2.5rem;
  margin-bottom: 0.5rem;
}

.kachel-icon:empty {
  display: none;
}

.kachel-name {
  display: block;
  font-family: var(--schrift-titel);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.kachel:hover .kachel-name {
  color: var(--akzent);
}

.kachel-beschreibung {
  display: block;
  font-size: 0.95rem;
}

/* --- Formulare ----------------------------------------------------------- */

.formular {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--abstand);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--linie);
  background: var(--flaeche);
}

.formular-gestapelt {
  flex-direction: column;
  align-items: stretch;
  max-width: 24rem;
}

.feld {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feld label {
  font-weight: 600;
  font-size: 0.9rem;
}

.feld-zeile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--linie);
  background: var(--weiss);
  color: var(--text);
  min-width: 10rem;
}

input:focus,
select:focus,
button:focus {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

.knopf {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--akzent);
  background: var(--akzent);
  color: var(--weiss);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.knopf:hover,
.knopf:focus {
  background: var(--text);
  border-color: var(--text);
  color: var(--weiss);
}

.knopf-zweit {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.knopf-zweit:hover,
.knopf-zweit:focus {
  background: transparent;
  color: var(--akzent);
  border-color: var(--akzent);
}

.knopf-klein {
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
}

.aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--abstand);
  margin: 1rem 0;
}

/* --- Hinweise ------------------------------------------------------------ */

.hinweis {
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--linie);
  background: var(--flaeche);
}

.hinweis-fehler {
  border-color: var(--akzent);
  font-weight: 600;
}

.hinweis-ok {
  border-color: var(--text);
}

/* --- Tabellen ------------------------------------------------------------ */

.tabelle-rahmen {
  overflow-x: auto;
  border: 1px solid var(--linie);
  background: var(--flaeche);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}

th {
  font-weight: 700;
  background: var(--bg);
}

td.zahl, th.zahl {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

td.fehlt {
  background: var(--akzent);
  color: var(--weiss);
  font-weight: 700;
  text-align: center;
}

tfoot td {
  font-weight: 700;
  border-bottom: 0;
}

/* --- Kleinkram ----------------------------------------------------------- */

.klein {
  font-size: 0.85rem;
}

.abstand-oben {
  margin-top: 2rem;
}

/* --- Formular-Raster (mehrere Felder, bricht auf dem Handy um) ------------ */

textarea {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--linie);
  background: var(--weiss);
  color: var(--text);
  resize: vertical;
}

textarea:focus {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

.formular-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  align-items: start;
}

.formular-raster input[type="text"],
.formular-raster input[type="date"],
.formular-raster select,
.formular-raster textarea {
  width: 100%;
  min-width: 0;
}

.feld-voll {
  grid-column: 1 / -1;
}

.aktionen-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--abstand);
}

.feld-fehler {
  font-size: 0.85rem;
  font-weight: 600;
}

input.ungueltig {
  border-color: var(--akzent);
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Filterleiste ---------------------------------------------------------- */

.filterleiste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.filter {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--linie);
  background: var(--flaeche);
  font-size: 0.9rem;
  text-decoration: none;
}

.filter:hover,
.filter:focus {
  border-color: var(--akzent);
  color: var(--text);
}

.filter[aria-current="page"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--weiss);
}

/* --- To-dos ---------------------------------------------------------------- */

.todo-liste {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.todo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--linie);
  background: var(--flaeche);
}

.todo-ueberfaellig {
  border-color: var(--akzent);
}

.todo-inhalt {
  flex: 1 1 18rem;
  min-width: 0;
}

.todo-titel {
  font-weight: 600;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.todo-erledigt .todo-titel {
  font-weight: 400;
  text-decoration: line-through;
}

.todo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.todo-meta .dringend {
  font-weight: 700;
}

.todo-kategorie {
  padding: 0 0.4rem;
  border: 1px solid var(--linie);
  text-decoration: none;
}

.todo-kategorie:hover,
.todo-kategorie:focus {
  border-color: var(--akzent);
  color: var(--text);
}

.todo-beschreibung {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.todo-aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem;
}

.todo-aktionen form {
  margin: 0;
}

.leer {
  margin: 0 0 2rem;
}

details.bereich {
  margin: 0 0 1.5rem;
}

details.bereich > summary {
  cursor: pointer;
  font-family: var(--schrift-titel);
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.verwalten-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}

.verwalten-zeile form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.loeschen-formular {
  align-items: center;
  padding: 0.75rem 1.25rem;
}
