@font-face {
  font-family: 'Nunito';
  src: url('/public/font/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/public/font/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --primaer: #039ee3;
  --primaer-dunkel: #0480ba;
  --primaer-hell: #e6f6fd;
  --erfolg: #21b573;
  --erfolg-dunkel: #147a4c;
  --erfolg-hell: #e5f9f0;
  --warnung: #f5a524;
  --gefahr: #ef4444;
  --gefahr-dunkel: #b91c1c;
  --gefahr-hell: #fdecec;
  --tinte: #1c2733;
  --tinte-weich: #4b5768;
  --gedimmt: #667085;
  --grund: #f2f6f9;
  --flaeche: #fff;
  --rand: #e6ebf1;
  --rand-stark: #c9d3de;
  --radius: 14px;
  --schatten: 0 6px 20px rgba(28, 39, 51, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family:
    'Nunito',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tinte);
  background: var(--grund);
  overflow-wrap: anywhere;
}
a {
  color: var(--primaer-dunkel);
}
h1 {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}
h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
p {
  margin: 0 0 0.75rem;
}

.seite {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 14px 32px;
}
.seite-breit {
  max-width: 820px;
}
.kopf {
  text-align: center;
  padding: 8px 0 12px;
}
.kopf h1 {
  margin: 0;
}
.mitte {
  text-align: center;
}

.karte {
  display: block;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 20px;
  box-shadow: var(--schatten);
  padding: 20px 18px;
  margin-bottom: 16px;
}
.karten-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}
.karte-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--tinte);
}
.kopfzeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.kopfzeile h2 {
  margin: 0;
}

label,
legend {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tinte-weich);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 14px 0 6px;
}
input[type='text'],
input[type='email'],
input[type='search'],
select,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  /* 16px verhindert das automatische Hineinzoomen auf iOS */
  font-size: 1rem;
  color: var(--tinte);
  background: #fbfcfd;
  border: 1px solid var(--rand-stark);
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 46px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primaer);
  outline-offset: 2px;
}
fieldset {
  border: 1px solid var(--rand);
  border-radius: 8px;
  margin: 14px 0 0;
  padding: 4px 12px 12px;
}
.haken {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--tinte);
  min-height: 32px;
}
.haken input {
  width: 20px;
  height: 20px;
}
#filter-form select {
  width: auto;
  min-height: 40px;
  padding: 6px 10px;
}
.honig {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
}

.knopf {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--primaer-dunkel);
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  min-height: 46px;
  margin-top: 16px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.knopf:hover {
  background: #056591;
}
.knopf:disabled {
  opacity: 0.6;
  cursor: progress;
}
.knopf-voll {
  width: 100%;
  padding: 15px 18px;
}
.knopf-zweit {
  background: var(--flaeche);
  color: var(--primaer-dunkel);
  border: 1px solid var(--rand-stark);
}
.knopf-zweit:hover {
  background: var(--primaer-hell);
}
.knopf-klein {
  min-height: 38px;
  padding: 7px 12px;
  margin-top: 0;
  font-size: 0.9rem;
  background: var(--flaeche);
  color: var(--tinte);
  border: 1px solid var(--rand-stark);
}
.knopf-klein:hover {
  background: var(--grund);
}
.knopf-gefahr {
  color: var(--gefahr-dunkel);
  background: var(--gefahr-hell);
  border-color: var(--gefahr-hell);
}
.knopf-gefahr:hover {
  background: #fbd5d5;
}
.link-knopf {
  font: inherit;
  color: var(--primaer-dunkel);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.hinweis {
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.hinweis-erfolg {
  background: var(--erfolg-hell);
  color: var(--erfolg-dunkel);
}
.hinweis-fehler {
  background: var(--gefahr-hell);
  color: var(--gefahr-dunkel);
}
.hinweis-info {
  background: var(--primaer-hell);
  color: #056591;
}
.gedimmt {
  color: var(--gedimmt);
}
.klein {
  font-size: 0.85rem;
  margin-top: 12px;
}
.fett {
  font-weight: 700;
}
.trenner {
  text-align: center;
  color: var(--gedimmt);
  margin: 14px 0 0;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 16px;
}
.tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--tinte-weich);
  text-decoration: none;
}
.tabs a.aktiv {
  background: var(--primaer-dunkel);
  color: #fff;
}

.fortschritt {
  position: relative;
  margin-bottom: 14px;
}
.fortschritt progress {
  display: block;
  width: 100%;
  height: 26px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--rand);
}
.fortschritt progress::-webkit-progress-bar {
  background: var(--rand);
}
.fortschritt progress::-webkit-progress-value {
  background: var(--erfolg);
}
.fortschritt progress::-moz-progress-bar {
  background: var(--erfolg);
}
.fortschritt span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.zeile {
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}
.punkt {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.punkt-rot {
  background: var(--gefahr);
}
.punkt-gelb {
  background: var(--warnung);
}
.punkt-gruen {
  background: var(--erfolg);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 0.85rem;
  color: var(--tinte-weich);
  margin-bottom: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.chip {
  background: var(--primaer-hell);
  color: #056591;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.85rem;
}
details {
  margin-top: 10px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primaer-dunkel);
  padding: 6px 0;
}
.liste,
.eintraege {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.liste li,
.eintraege li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--rand);
}
.marke {
  background: var(--primaer-dunkel);
  color: #fff;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.8rem;
  font-weight: 700;
}
.reihe {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
}
.reihe input {
  flex: 1;
  min-width: 0;
}
.reihe .knopf {
  margin-top: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 12px 14px;
  background: var(--flaeche);
  border-bottom: 1px solid var(--rand);
  font-weight: 700;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
}
.nav-logout {
  margin-left: auto;
}
.fuss {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0 14px 28px;
  font-size: 0.85rem;
}
.tabelle-rahmen {
  overflow-x: auto;
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
}
th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rand);
  vertical-align: top;
}
