/* ============================================================
   Mitgliederbereich — Gestaltung

   Alle Farben kommen aus der Palette des jeweiligen Themes
   (die --wp--preset--color--*-Werte). Dadurch passt sich der
   Mitgliederbereich automatisch an die Website an, auf der er
   läuft — hell wie dunkel. Feste Farbwerte gehören hier NICHT
   hinein; die Ersatzwerte hinter dem Komma greifen nur, wenn
   ein Theme die Palette gar nicht mitbringt.
   ============================================================ */

.hm-dashboard {
  margin-top: 1.5rem;
}

/* ---- Abschnitt je Kategorie ---------------------------------- */
.hm-gruppe + .hm-gruppe {
  margin-top: 2.5rem;
}
.hm-gruppe__titel {
  border-bottom: 1px solid var(--wp--preset--color--line, currentColor);
  color: var(--wp--preset--color--muted, inherit);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
}

/* ---- Die Kacheln --------------------------------------------- */
.hm-kacheln {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.hm-kachel {
  border: 1px solid var(--wp--preset--color--line, currentColor);
  border-radius: 8px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
a.hm-kachel:hover,
a.hm-kachel:focus-visible {
  background: var(--wp--preset--color--sand, transparent);
  border-color: var(--wp--preset--color--accent-strong, currentColor);
}
a.hm-kachel:focus-visible {
  outline: 2px solid var(--wp--preset--color--focus, currentColor);
  outline-offset: 2px;
}
.hm-kachel--ohne-ziel {
  opacity: .85;
}

.hm-kachel__titel {
  font-weight: 600;
  line-height: 1.3;
}
.hm-kachel__text {
  color: var(--wp--preset--color--muted, inherit);
  font-size: .9rem;
  line-height: 1.5;
}
.hm-kachel__marken {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .35rem;
}
.hm-marke {
  background: var(--wp--preset--color--sand, transparent);
  border: 1px solid var(--wp--preset--color--line, currentColor);
  border-radius: 999px;
  color: var(--wp--preset--color--muted, inherit);
  font-size: .72rem;
  line-height: 1.6;
  padding: 0 .55rem;
  white-space: nowrap;
}
.hm-marke--intern {
  border-color: var(--wp--preset--color--notice-warn-border, currentColor);
}

/* ---- Leerer Zustand ------------------------------------------ */
.hm-leer {
  color: var(--wp--preset--color--muted, inherit);
}

/* ---- Anmeldung ----------------------------------------------- */
.hm-anmeldung {
  border-top: 1px solid var(--wp--preset--color--line, currentColor);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.hm-anmeldung__text,
.hm-anmeldung__wer {
  color: var(--wp--preset--color--muted, inherit);
  margin: 0 0 .9rem;
}
.hm-anmeldung__tat {
  margin: 0;
}
.hm-anmeldung__notausgang {
  color: var(--wp--preset--color--muted, inherit);
  font-size: .85rem;
  margin: .9rem 0 0;
}
.hm-knopf {
  background: var(--wp--preset--color--ink, currentColor);
  border-radius: 6px;
  color: var(--wp--preset--color--paper, #fff);
  display: inline-block;
  font-size: .95rem;
  font-weight: 500;
  padding: .8rem 1.25rem;
  text-decoration: none;
}
.hm-knopf:hover {
  background: var(--wp--preset--color--accent-strong, currentColor);
  color: var(--wp--preset--color--paper, #fff);
}
.hm-knopf--leise {
  background: none;
  border: 1px solid var(--wp--preset--color--input-border, currentColor);
  color: inherit;
}
.hm-knopf--leise:hover {
  background: var(--wp--preset--color--line, transparent);
  color: inherit;
}
