/* Bausteine: Kopf mit Menü oben, Knöpfe, Karten, Formulare, Meldungen, Fuß */

/* Kopf: Marke links, Menü rechts; auf dem Handy Menü als Reiter unter dem Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
  padding-top: env(safe-area-inset-top);
}
.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 10px var(--abstand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.marke img { width: 30px; height: 30px; }
.menue { display: flex; gap: 6px; }
.menue-eintrag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.menue-eintrag:hover { background: var(--flaeche-2); color: var(--text); }
.menue-eintrag.aktiv { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.menue-akzent { background: var(--kupfer); color: #fff; }
.menue-akzent:hover { background: var(--kupfer-dunkel); color: #fff; }
.menue-zaehler {
  margin-left: 6px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--kupfer);
  color: #fff;
  font-size: 0.8rem;
  line-height: 22px;
  text-align: center;
}
@media (max-width: 640px) {
  .menue { width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .menue::-webkit-scrollbar { display: none; }
  .menue-eintrag { flex: 0 0 auto; }
}

/* Knöpfe: große Touch-Fläche */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--petrol);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.knopf:hover { background: var(--petrol-dunkel); color: #fff; }
.knopf:disabled { opacity: 0.55; cursor: not-allowed; }
.knopf-akzent { background: var(--kupfer); }
.knopf-akzent:hover { background: var(--kupfer-dunkel); }
.knopf-leise { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 2px var(--petrol); }
.knopf-leise:hover { background: var(--petrol-hell); color: var(--petrol-dunkel); }
.knopf-gefahr { background: var(--fehler); }
.knopf-gefahr:hover { background: #8f1e18; }
.knopf-breit { width: 100%; }
.aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

/* Karten */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 20px;
}
.raster { display: grid; gap: var(--abstand); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Formulare */
.feld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.feld label { font-weight: 600; }
.feld .hinweis { font-size: 0.9rem; color: var(--text-leise); }
.eingabe {
  width: 100%;
  min-height: var(--touch);
  padding: 10px 14px;
  border: 1.5px solid var(--linie);
  border-radius: var(--radius-klein);
  background: var(--flaeche);
  color: var(--text);
  font: inherit;
}
textarea.eingabe { min-height: 140px; resize: vertical; }
.eingabe:focus { border-color: var(--petrol); outline: none; box-shadow: 0 0 0 3px var(--petrol-hell); }
.auswahl { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.auswahl input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--petrol); flex: 0 0 auto; }

/* Meldungen */
.meldung { padding: 12px 16px; border-radius: var(--radius-klein); margin: 12px 0; border: 1px solid transparent; }
.meldung-info { background: var(--petrol-hell); color: var(--petrol-dunkel); border-color: #c9dfe1; }
.meldung-fehler { background: var(--fehler-hell); color: var(--fehler); border-color: #f2c6c1; }
.meldung-ok { background: var(--ok-hell); color: var(--ok); border-color: #c4e0cf; }

/* Startseite */
.held { padding: 24px 0 8px; }
.held .einleitung { font-size: 1.12rem; color: var(--text-leise); max-width: 640px; }
.schritt-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--kupfer-hell);
  color: var(--kupfer-dunkel);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Textseiten (Rechtstexte) */
.textseite { max-width: 720px; }
.textseite p { white-space: normal; overflow-wrap: anywhere; }

/* Fuß */
.fuss {
  border-top: 1px solid var(--linie);
  background: var(--flaeche);
  padding: 18px var(--abstand) calc(18px + env(safe-area-inset-bottom));
  text-align: center;
}
.fuss-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 6px; }
.fuss-links a { color: var(--text-leise); min-height: 32px; display: inline-flex; align-items: center; }
.fuss-hinweis { margin: 0; color: var(--text-leise); font-size: 0.85rem; }
