/* Kinderfreundliche, große, klare Oberfläche.
   Mobile-first, große Touch-Flächen, hoher Kontrast. */

:root {
  --blau: #1d6fb8;
  --blau-dunkel: #144d80;
  --gruen: #2e9e5b;
  --rot: #d8453a;
  --gelb: #f4b400;
  --hell: #f3f7fb;
  --text: #1b2733;
  --karte: #fff;
  --radius: 18px;
  --schatten: 0 4px 16px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--hell);
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.app__header { text-align: center; margin: 1rem 0; }
.app__header h1 { font-size: 1.7rem; margin: 0.2rem 0; }
.app__subtitle { margin: 0.3rem 0; color: #44586b; }

.card {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.25rem;
  margin: 1rem 0;
}

.hidden { display: none !important; }

/* Großer Haupt-Button (Foto auswählen) */
.big-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--blau);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s ease, background 0.15s ease;
  min-height: 160px;
}
.big-button:hover { background: var(--blau-dunkel); }
.big-button:active { transform: scale(0.98); }
.big-button__icon { font-size: 3.5rem; line-height: 1; }

.hint {
  text-align: center;
  font-size: 0.95rem;
  color: #5a6b7b;
  margin: 0.75rem 0 0;
}

/* Vorschaubild */
.thumb-wrap { text-align: center; margin-bottom: 1rem; }
.thumb-wrap img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
  box-shadow: var(--schatten);
}

/* Status-Box (gefunden / nicht gefunden / Fehler) */
.status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.status__icon { font-size: 2rem; line-height: 1; }
.status--found    { background: #e6f5ec; color: #1c6c3c; }
.status--notfound { background: #fff4d6; color: #8a6300; }
.status--error    { background: #fce4e2; color: #962019; }
.status--loading  { background: #e7f0f9; color: var(--blau-dunkel); }

/* Karte */
.map {
  height: clamp(360px, 65vh, 640px);
  border-radius: 14px;
  margin-bottom: 1rem;
  z-index: 0;
}

/* Zoom-Buttons groß & touch-freundlich machen */
.map .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  font-size: 1.6rem;
  font-weight: 700;
}
.map .leaflet-bar { box-shadow: var(--schatten); }

/* Detail-Liste */
.details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 0 0 1rem;
  padding: 1rem;
  background: var(--hell);
  border-radius: 12px;
  font-size: 1rem;
}
.details dt { font-weight: 700; color: #44586b; }
.details dd { margin: 0; }

/* Sekundär-Button (nochmal) */
.secondary-button {
  width: 100%;
  background: var(--gelb);
  color: #3a2c00;
  border: none;
  border-radius: 14px;
  padding: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.secondary-button:hover { filter: brightness(0.96); }
.secondary-button:active { transform: scale(0.99); }

.app__footer {
  text-align: center;
  font-size: 0.85rem;
  color: #7a8a99;
  margin-top: 1.5rem;
}
.app__privacy { margin: 0 0 0.6rem; }
.app__credits { margin: 0; line-height: 1.9; }
.app__credits a { color: var(--blau); text-decoration: none; }
.app__credits a:hover { text-decoration: underline; }
.app__credits .sep { margin: 0 0.35rem; color: #b6c2cd; }
.app__credits span[aria-label="Herz"] { color: var(--rot); }

/* Start-Popup "alles bleibt lokal" */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 50, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.modal__box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 440px;
  width: 100%;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.modal__icon { font-size: 3.5rem; line-height: 1; }
.modal__box h2 { margin: 0.5rem 0 0.75rem; font-size: 1.5rem; }
.modal__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  text-align: left;
  display: inline-block;
}
.modal__list li { margin: 0.5rem 0; font-size: 1.05rem; }
.big-button--ok { background: var(--gruen); min-height: 0; padding: 1.1rem; font-size: 1.2rem; }
.big-button--ok:hover { background: #237a45; }
.modal__legal { margin: 0.9rem 0 0; font-size: 0.9rem; }
.modal__legal a { color: var(--blau); }

/* Rechtliches-Seite */
.legal { font-size: 1rem; }
.legal h1 { font-size: 1.6rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.75rem; color: var(--blau-dunkel); }
.legal h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.legal a { color: var(--blau); }
.legal ul { padding-left: 1.2rem; }
.legal .back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--blau);
  text-decoration: none;
  font-weight: 600;
}
.legal .note {
  background: #fff4d6;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: #6b5200;
}

@media (min-width: 500px) {
  .app__header h1 { font-size: 2rem; }
}
