/* Kein Fremd-CSS, keine Fremd-Schriftarten, keine CDN (Teil 10, Nr. 11).
   Grundschrift mindestens 17px, Knöpfe mindestens 48px hoch, Kontrast
   nach WCAG AA, sichtbarer Fokusrahmen (Teil 7 der Anleitung). */

:root {
  --schrift: -apple-system, "Segoe UI", Arial, sans-serif;
  --text: #1a1a1a;
  --hintergrund: #ffffff;
  --flaeche: #f4f6f7;
  --rand: #c7ccd1;
  --dunkelblau: #0d2b52;
  --hellgelb: #f9e28a;
  --hellgelb-dunkler: #f0d35a;
  --gruen: #1e7d34;
  --gruen-hell: #e6f4ea;
  --orange: #a15c00;
  --orange-hell: #fdf1e0;
  --rot: #a3241f;
  --rot-hell: #fbe9e8;
  --grau-hell: #eceef0;
}

* { box-sizing: border-box; }

body {
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--flaeche);
  margin: 0;
  padding: 0;
}

.rahmen {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

header.kopf {
  background: var(--hellgelb);
  color: var(--dunkelblau);
  padding: 12px 20px;
  border-bottom: 3px solid var(--hellgelb-dunkler);
}
header.kopf .rahmen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  max-width: 880px;
}
header.kopf a { color: var(--dunkelblau); text-decoration: none; font-weight: 600; }
header.kopf form { margin: 0; }
.kopf-marke { display: flex; align-items: center; gap: 10px; }
.kopf-marke img { height: 40px; width: auto; display: block; }
.kopf-marke span { font-size: 0.95rem; color: var(--dunkelblau); }

h1 { font-size: 1.6rem; margin-top: 0; }
h2 { font-size: 1.25rem; }

.karte {
  background: var(--hintergrund);
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"],
input[type="month"], input[type="file"], select {
  width: 100%;
  font-size: 17px;
  padding: 10px 12px;
  border: 1px solid var(--rand);
  border-radius: 6px;
  margin-bottom: 16px;
  background: white;
  color: var(--text);
}

button, .knopf {
  font-size: 17px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  background: var(--hellgelb);
  color: var(--dunkelblau);
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
}
button:hover, .knopf:hover { background: var(--hellgelb-dunkler); }
button.zweitrangig, .knopf.zweitrangig {
  background: white;
  color: var(--dunkelblau);
  border: 1px solid var(--dunkelblau);
}
button.gefahr { background: var(--rot); color: white; }

a { color: var(--dunkelblau); }

:focus-visible {
  outline: 3px solid var(--dunkelblau);
  outline-offset: 2px;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rand); }

.pille {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.pille.gruen { background: var(--gruen-hell); color: var(--gruen); }
.pille.grau { background: var(--grau-hell); color: #444; }
.pille.orange { background: var(--orange-hell); color: var(--orange); }
.pille.rot { background: var(--rot-hell); color: var(--rot); }

.hinweis { background: var(--grau-hell); border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }
.fehler { background: var(--rot-hell); color: var(--rot); border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }

.unterschriftsfeld {
  width: 100%;
  height: 220px;
  border: 2px dashed var(--rand);
  border-radius: 8px;
  background: white;
  touch-action: none;
  display: block;
}

.gruppe { margin-bottom: 28px; }
.gruppe h2 { margin-bottom: 10px; }

@media (min-width: 0px) {
  .unterschriftsfeld { height: 33vh; min-height: 220px; }
}
