/* Alles bewusst groß: die App wird von einer 80-jährigen Frau bedient.
   Grundschrift 22px, Knöpfe mindestens 96px hoch, hoher Kontrast. */

:root {
  --blau: #003781;      /* Allianz-Blau */
  --blau-hell: #0057c2;
  --gruen: #1a7f37;
  --gruen-hell: #22a04a;
  --grau: #4a4a4a;
  --hell: #f4f6f9;
  --rand: #c9d2de;
  --rot: #b3261e;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

/* Kein Doppeltippen zum Zoomen, kein versehentliches Markieren */
body {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.screen[hidden] { display: none; }

.mitte {
  margin: auto;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.inhalt {
  width: 100%;
  max-width: 480px;
  margin: auto;
  text-align: center;
}
.inhalt.links { text-align: left; margin-top: 0; }

/* --- Knöpfe --- */

.knopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 96px;
  margin: 14px 0;
  padding: 20px 18px;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease;
}
.knopf:active { transform: scale(0.97); }
.knopf:disabled { opacity: 0.5; }
.knopf-zeile { display: block; }

.knopf-riesig { min-height: 200px; font-size: 36px; }
/* Sobald Fotos da sind, ist "Senden" der wichtigste Knopf. */
.knopf-hoch { min-height: 170px; }

.knopf-blau { background: var(--blau); }
.knopf-blau:active { background: var(--blau-hell); }

.knopf-gruen { background: var(--gruen); }
.knopf-gruen:active { background: var(--gruen-hell); }

.knopf-schlicht {
  min-height: 64px;
  background: transparent;
  color: var(--grau);
  font-size: 22px;
  font-weight: 500;
  text-decoration: underline;
}

/* --- Texte --- */

.gross-text { font-size: 34px; font-weight: 700; margin: 12px 0; }
.zwischentext { font-size: 26px; font-weight: 600; margin: 6px 0 14px; }
.hinweis { font-size: 20px; color: var(--grau); margin: 10px 0; }
.klein { font-size: 18px; color: var(--grau); }
.warnung {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fdf2f2;
  border: 2px solid var(--rot);
  color: #7a1a15;
  font-weight: 600;
}
.fusstext { font-size: 18px; color: var(--grau); margin: 18px 0 4px; }
.titel { font-size: 30px; margin: 0 0 16px; }
.untertitel { font-size: 24px; margin: 26px 0 6px; }

.version { padding: 10px; display: inline-block; }

/* --- Willkommen: langsam ein, kurz halten, langsam aus --- */

.willkommen {
  font-size: 44px;
  font-weight: 700;
  color: var(--blau);
  opacity: 0;
}
.willkommen.an { animation: einaus 3.6s ease-in-out forwards; }

@keyframes einaus {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .willkommen.an { animation-duration: 1.2s; }
}

/* --- Fotos --- */

.fotos-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 12px 0 20px;
}
.foto-kachel {
  position: relative;
  width: 104px;
  height: 138px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--rand);
  background: var(--hell);
}
.foto-kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-kachel.laedt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}
.foto-nummer {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.review-bild {
  width: 100%;
  max-height: 38vh;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid var(--rand);
  background: var(--hell);
  margin-bottom: 8px;
}

/* --- Status --- */

.haken { font-size: 96px; color: var(--gruen); margin: 0; line-height: 1; }
.ausrufe {
  font-size: 64px;
  color: var(--rot);
  margin: 0 auto 8px;
  width: 96px;
  height: 96px;
  line-height: 96px;
  border-radius: 50%;
  border: 5px solid var(--rot);
}

.spinner {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 8px solid var(--rand);
  border-top-color: var(--blau);
  border-radius: 50%;
  animation: dreh 1s linear infinite;
}
@keyframes dreh { to { transform: rotate(360deg); } }

/* --- Einrichtung --- */

.kasten {
  padding: 16px;
  border-radius: 14px;
  background: var(--hell);
  border: 1px solid var(--rand);
  font-size: 19px;
  margin-bottom: 10px;
}
.kasten p { margin: 6px 0; }
.kasten .fehlt { color: var(--rot); font-weight: 600; }
.kasten .passt { color: var(--gruen); font-weight: 600; }

.feld {
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  font-size: 22px;
  font-family: inherit;
  border: 2px solid var(--rand);
  border-radius: 14px;
  background: #fff;
  color: #111;
  -webkit-user-select: text;
  user-select: text;
}
.feld:focus { outline: 3px solid var(--blau-hell); outline-offset: 1px; }
