/* ===== Farben an einem Ort ===== */
:root {
  --hintergrund: #fff8f1;
  --text: #3b2f2f;
  --text-hell: #7a6a62;
  --haupt: #e76f51;
  --haupt-dunkel: #b8481f;
  --karte: #ffffff;
  --rand: #f0dccb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  background: var(--hintergrund);
  color: var(--text);
}

/* ===== Kopf und Inhalt ===== */
.kopf {
  background: var(--haupt);
  color: white;
  text-align: center;
  padding: 16px;
}

.kopf h1 {
  margin: 0;
  font-size: 1.6rem;
}

.inhalt {
  max-width: 700px;
  margin: 0 auto;
  padding: 16px;
}

h2 {
  margin: 12px 0 16px;
}

/* ===== Grosse Knöpfe ===== */
.knopf {
  min-height: 52px;          /* gross genug für kleine Finger */
  padding: 12px 22px;
  font-family: inherit;
  font-size: 1.05rem;
  border: none;
  border-radius: 14px;
  background: var(--haupt);
  color: white;
  cursor: pointer;
}

.knopf:hover {
  background: var(--haupt-dunkel);
}

.knopf-hell {
  background: #fde8dc;
  color: var(--haupt-dunkel);
}

.knopf-hell:hover {
  background: #fad5c2;
}

/* ===== Seite "Wer bist du?" ===== */
.profil-gitter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.profil-karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 10px;
  font-family: inherit;
  font-size: 1.1rem;
  background: var(--karte);
  color: var(--text);
  border: 5px solid var(--person-farbe, var(--rand));
  border-radius: 22px;
  cursor: pointer;
}

.profil-karte:hover {
  transform: scale(1.03);
}

.profil-avatar {
  font-size: 3.2rem;
}

.profil-name {
  font-weight: bold;
}

.profil-rolle {
  font-size: 0.8rem;
  color: var(--text-hell);
}

/* ===== Persönliche Seite ===== */
.person-kopf {
  margin: 16px 0 20px;
  padding: 18px;
  text-align: center;
  background: var(--karte);
  border: 5px solid var(--person-farbe, var(--rand));
  border-radius: 22px;
}

.person-avatar {
  font-size: 5rem;
}

/* ===== Formular ===== */
.hinweis {
  padding: 10px 14px;
  background: #fff3d6;
  border-radius: 12px;
}

.meldung {
  padding: 10px 14px;
  border-radius: 12px;
}

.meldung-ok {
  background: #e3f4ea;
  color: #1d6b3a;
}

.meldung-fehler {
  background: #fdecec;
  color: #8a1f1f;
}

.person-feld {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--karte);
  border: 4px solid var(--person-farbe, var(--rand));
  border-radius: 18px;
}

.person-feld legend {
  padding: 0 8px;
  font-weight: bold;
}

.formular-zeile {
  margin-bottom: 12px;
}

.formular-zeile label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.formular-zeile input[type="text"],
.formular-zeile select {
  width: 100%;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;           /* 1rem verhindert das Hineinzoomen auf dem iPhone */
  border: 2px solid var(--rand);
  border-radius: 10px;
  background: white;
  color: var(--text);
}

.formular-zeile input[type="color"] {
  width: 70px;
  height: 44px;
  padding: 2px;
  border: 2px solid var(--rand);
  border-radius: 10px;
  background: white;

}
/* ===== Aufgaben ===== */
.knopf-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.knopf-klein {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.knopf-gefahr {
  background: #fdecec;
  color: #8a1f1f;
}

.knopf-gefahr:hover {
  background: #f9d3d3;
}

.aufgaben-liste {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.aufgabe-karte {
  padding: 14px 16px;
  background: var(--karte);
  border-left: 10px solid var(--person-farbe, var(--rand));
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.aufgabe-titel {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.aufgabe-zeile {
  margin: 2px 0;
}

.aufgabe-beschreibung {
  margin: 8px 0;
  color: var(--text-hell);
}

.marken {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.marke {
  padding: 3px 10px;
  font-size: 0.85rem;
  background: #fde8dc;
  color: var(--haupt-dunkel);
  border-radius: 20px;
}

/* ===== Formular: weitere Feldarten ===== */
.formular-zeile textarea,
.formular-zeile input[type="date"],
.formular-zeile input[type="time"] {
  width: 100%;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid var(--rand);
  border-radius: 10px;
  background: white;
  color: var(--text);
}

.formular-hilfe {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-hell);
}

.haken-zeile {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
}

.haken-zeile input {
  width: 26px;
  height: 26px;
}
/* ===== Wiederholung ===== */
.formular-label {
  margin-bottom: 4px;
  font-weight: bold;
}

.wochentage-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.formular-zeile .wochentag-wahl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 14px;
  font-weight: normal;
  background: var(--karte);
  border: 2px solid var(--rand);
  border-radius: 12px;
  cursor: pointer;
}

.wochentag-wahl input {
  width: 22px;
  height: 22px;
}
/* ===== Tagesübersicht ===== */
.tag-datum {
  margin: -8px 0 12px;
  color: var(--text-hell);
}

.tag-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.tag-zusammenfassung {
  margin: 12px 0;
  padding: 10px 14px;
  font-weight: bold;
  background: #fde8dc;
  border-radius: 12px;
}

.person-block {
  margin: 16px 0;
  padding: 12px 14px;
  background: var(--karte);
  border-left: 10px solid var(--person-farbe, var(--rand));
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.person-block-kopf {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.tages-zeile {
  padding: 10px 0;
  border-top: 1px dashed var(--rand);
}

.tages-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.tages-zeit {
  min-width: 80px;
  font-size: 0.95rem;
  color: var(--text-hell);
}

.frei-hinweis {
  margin: 8px 0;
  padding: 8px 12px;
  color: #1d6b3a;
  background: #e3f4ea;
  border-radius: 10px;
}

.leer-text {
  margin: 4px 0;
  color: var(--text-hell);
}

/* ===== Ferien und freie Tage ===== */
.frei-karte {
  padding: 14px 16px;
  background: var(--karte);
  border-left: 10px solid #2a9d8f;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.frei-karte.vorbei {
  opacity: 0.6;
}
/* ===== Ansicht der Kinder ===== */
.kind-punkte {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 14px;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-weight: bold;
  background: #fff3d6;
  border-radius: 16px;
}

.kind-inhalt h3 {
  margin: 22px 0 10px;
}

.kind-leer {
  padding: 16px;
  font-size: 1.1rem;
  background: var(--karte);
  border-radius: 16px;
}

/* Die freundliche Rückmeldung nach dem Erledigen */
.feier {
  margin: 0 0 14px;
  padding: 14px 16px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #1d6b3a;
  background: #e3f4ea;
  border: 3px solid #2e9e5b;
  border-radius: 16px;
  animation: feier-auftritt 0.5s ease-out;
}

@keyframes feier-auftritt {
  0% { transform: scale(0.85); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

.kind-karte {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--karte);
  border: 4px solid var(--rand);
  border-radius: 20px;
}

.kind-karte.gross {
  padding: 18px 18px;
  border-width: 6px;
}

.kind-karte-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kind-symbol {
  font-size: 2.2rem;
  line-height: 1;
}

.kind-karte.gross .kind-symbol {
  font-size: 3rem;
}

.kind-titel {
  margin: 0;
  font-size: 1.25rem;
}

.kind-karte.gross .kind-titel {
  font-size: 1.5rem;
}

.kind-status {
  margin: 6px 0 0;
  font-weight: bold;
}

.kind-freundlich {
  margin: 6px 0;
  padding: 8px 12px;
  background: #fff0e3;
  border-radius: 12px;
}

.kind-aktion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.kind-haken {
  width: 100%;
  min-height: 64px;
  font-size: 1.3rem;
  background: #2e9e5b;
}

.kind-haken:hover {
  background: #247c47;
}

.kind-ergebnis {
  font-size: 1.15rem;
  font-weight: bold;
}

/* Farben des Status (der Status steht immer auch als Symbol und Text da) */
.status-erledigt {
  background: #eaf7ef;
  border-color: #2e9e5b;
}

.status-wartet {
  background: #e8f1fb;
  border-color: #3b82c4;
}

.status-bald {
  background: #fff8dd;
  border-color: #e9b820;
}

.status-ueberfaellig {
  background: #fff0e3;
  border-color: #e8812e;
}

.status-heute {
  border-color: #b9bec4;
}

/* Nur für Vorlese-Programme sichtbar */
.nur-lesen {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Wer Animationen nicht mag, bekommt keine */
@media (prefers-reduced-motion: reduce) {
  .feier {
    animation: none;
  }
}
/* ===== Mamas Übersicht ===== */
.mama-inhalt h3 {
  margin: 22px 0 10px;
}

.knopf-gruen {
  background: #2e9e5b;
}

.knopf-gruen:hover {
  background: #247c47;
}

.bestaetigung-karte {
  margin: 0 0 12px;
  padding: 12px 16px;
  background: #e8f1fb;
  border-left: 10px solid var(--person-farbe, #3b82c4);
  border-radius: 16px;
}

.bestaetigung-titel {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.ueberfaellig-zeile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 8px;
  padding: 10px 14px;
  background: #fff0e3;
  border-left: 10px solid var(--person-farbe, #e8812e);
  border-radius: 14px;
}

.ueberfaellig-wann {
  color: var(--text-hell);
  font-size: 0.95rem;
}

/* Fortschritt pro Person */
.fortschritt {
  margin: 0 0 12px;
  padding: 12px 16px;
  background: var(--karte);
  border-left: 10px solid var(--person-farbe, var(--rand));
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fortschritt-text,
.fortschritt-punkte {
  margin: 4px 0;
}

.fortschritt-punkte {
  color: var(--text-hell);
  font-size: 0.95rem;
}

.balken {
  height: 14px;
  background: #f0e6dc;
  border-radius: 20px;
  overflow: hidden;
}

.balken-fuellung {
  height: 100%;
  background: var(--person-farbe, #2e9e5b);
  border-radius: 20px;
}

/* ===== Status in der Tagesübersicht ===== */
.tages-status {
  display: inline-block;
  margin: 6px 0 2px;
  padding: 3px 12px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 20px;
}
/* ===== Anmeldung und Meldungen ===== */
.formular-zeile input[type="email"],
.formular-zeile input[type="password"] {
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: 1.05rem;        /* mindestens 1rem verhindert das Hineinzoomen auf dem Handy */
  border: 2px solid var(--rand);
  border-radius: 10px;
  background: white;
  color: var(--text);
}

.laden-text {
  padding: 32px 16px;
  text-align: center;
  font-size: 1.2rem;
}

.banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  color: #8a1f1f;
  background: #fdecec;
  border-bottom: 3px solid #e0a0a0;
}

.banner-zu {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.1rem;
  color: #8a1f1f;
  background: transparent;
  border: none;
  cursor: pointer;
}
