/* Öffentliches Anmeldeformular (E-52).
   Eigenes, sehr schlichtes Stylesheet: Diese Seite sehen Eltern auf allen möglichen
   Geräten, oft am Handy. Große Felder, klare Beschriftungen, keine Spielereien. */

:root {
  --farbe-primaer: #2f6f4f;
  --farbe-text: #1c211b;
  --farbe-rand: #d2d6cf;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;              /* iOS zoomt bei kleineren Feldern beim Antippen hinein */
  line-height: 1.5;
  color: var(--farbe-text);
  background: #f4f6f2;
}

main { max-width: 40rem; margin: 0 auto; }

.kopf { text-align: center; margin-bottom: 1.2rem; }
h1 { font-size: 1.5rem; margin: 0.4rem 0; }
.untertitel { color: #566052; margin: 0; }

.karte, form {
  background: #fff;
  border: 1px solid var(--farbe-rand);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.hinweis-karte h2 { margin-top: 0; font-size: 1.15rem; }

fieldset {
  border: none;
  border-top: 1px solid var(--farbe-rand);
  padding: 0.6rem 0 0;
  margin: 1.2rem 0 0;
}
fieldset:first-of-type { border-top: none; margin-top: 0; }
legend { font-weight: 700; padding: 0 0.4rem 0 0; }

label { display: block; margin-top: 0.9rem; font-weight: 600; }
.feld-titel { display: block; margin-top: 0.9rem; font-weight: 600; }
.feld-erklaerung { margin: 0.15rem 0 0.3rem; font-size: 0.9rem; color: #566052; font-weight: 400; }

input[type=text], input[type=tel], input[type=email], input[type=date], input:not([type]),
textarea, select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  margin-top: 0.25rem;
  font: inherit;
  border: 1px solid var(--farbe-rand);
  border-radius: 8px;
  background: #fff;
}
textarea { resize: vertical; }

/* Auswahl ja/nein: große Trefferflächen, nebeneinander */
.wahl { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.3rem; }
.wahl label {
  margin: 0;
  flex: 1 1 8rem;
  display: flex; align-items: center; gap: 0.5rem;
  min-height: 46px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--farbe-rand);
  border-radius: 8px;
  font-weight: 400;
}
.wahl input {
  width: 24px; height: 24px; min-width: 24px;
  margin: 0; transform: none; accent-color: var(--farbe-primaer);
}

/* Das Einverständnis ist das Pflichtfeld, an dem eine Anmeldung sonst scheitert –
   das Kästchen muss man am Handy sicher treffen (Samuel, 21.08.2026: „zu klein").
   28 Pixel statt der 16 Pixel des Browsers, und die ganze Zeile ist anklickbar. */
.zustimmung {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-weight: 400; margin-top: 0.6rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--farbe-rand);
  border-radius: 10px;
  cursor: pointer;
}
.zustimmung:hover { background: #fafcf9; }
.zustimmung input {
  width: 28px; height: 28px; min-width: 28px;
  margin: 0.1rem 0 0; transform: none; accent-color: var(--farbe-primaer); cursor: pointer;
}
.zustimmung input:focus-visible { outline: 3px solid var(--farbe-primaer); outline-offset: 2px; }

button {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--farbe-primaer);
  border: none;
  border-radius: 10px;
  min-height: 50px;
}
button[disabled] { background: #8aa295; }

.hinweis { color: #566052; }
.klein { font-size: 0.9rem; text-align: center; }
.fehler {
  color: #8c2f22;
  background: #fdf2f0;
  border: 1px solid #e6c3bc;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-top: 1rem;
}
.warteliste {
  background: #fdf7e8;
  border: 1px solid #e6d3a3;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0 0 1rem;
}

/* Der Honigtopf muss für Menschen unsichtbar sein, für Bots aber wie ein normales Feld
   aussehen – deshalb aus dem Bild geschoben statt display:none. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
