/* Home-Übersicht im Look der App (avolya-app lib/features/home/home_style.dart,
   Farben aus community_style.dart CommunityColors). Gerendert in #hmApp
   (home-app.js), Blätter in #hmSheet. Am Handy eine Spalte wie in der App,
   ab 960 px zwei. */

:root {
  --hm-bg: #f4f5f0;
  --hm-card: #ffffff;
  --hm-border: #e3e6df;
  --hm-ink: #0d3326;
  --hm-muted: #66756e;
  --hm-forest: #0f4a37;
  --hm-mint: #e2eee7;
  --hm-soft: #f2f4ef;
  --hm-lime: #d1f843;
  --hm-lime-hover: #e0fb7a;
  --hm-on-lime: #062219;
  --hm-good: #059669;
  --hm-warn: #d97706;
  --hm-danger: #dc2626;
}

body.home-active { background: var(--hm-bg); }

.hm,
.hm-sheet-host { color: var(--hm-ink); }

/* :where, damit die Klassen der Knoepfe gewinnen */
:where(.hm, .hm-sheet-host) button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}
:where(.hm, .hm-sheet-host) :is(p, h2, h3, h4, figure) { margin: 0; }
.hm button:focus-visible,
.hm a:focus-visible,
.hm-sheet-host button:focus-visible {
  outline: 2px solid var(--hm-forest);
  outline-offset: 2px;
}
.hm [hidden],
.hm-sheet-host [hidden] { display: none !important; }

/* ── Text ───────────────────────────────────────────────── */

.hm-label { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--hm-muted); }
.hm-klein { font-size: 12.5px; }
.hm-body { font-size: 15.5px; line-height: 1.45; color: var(--hm-ink); }
.hm-muted { font-size: 14.5px; line-height: 1.45; color: var(--hm-muted); }
.hm-warn { color: var(--hm-warn) !important; }
.hm-card-titel { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; color: var(--hm-ink); }
.hm-link { color: var(--hm-forest); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.hm-mt4 { margin-top: 4px !important; }
.hm-mt6 { margin-top: 6px !important; }
.hm-mt8 { margin-top: 8px !important; }
.hm-mt12 { margin-top: 12px !important; }
.hm-mt14 { margin-top: 14px !important; }
.hm-mt16 { margin-top: 16px !important; }
.hm-mt18 { margin-top: 18px !important; }
.hm-mb14 { margin-bottom: 14px !important; }
.hm-mb16 { margin-bottom: 16px !important; }

/* ── Kopf und Raster ────────────────────────────────────── */

.hm-kopf { padding: 0 2px; margin-bottom: 22px; }
.hm-datum { font-size: 15px; font-weight: 600; color: var(--hm-muted); }
.hm-hallo {
  margin-top: 4px !important;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.12;
  color: var(--hm-ink);
}

.hm-raster { display: flex; flex-direction: column; gap: 14px; }
.hm-spalte { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hm-med { margin-bottom: 10px; }

@media (min-width: 960px) {
  .hm-hallo { font-size: 34px; }
  .hm-raster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .hm-med { margin-bottom: 0; }
}

/* ── Karten ─────────────────────────────────────────────── */

.hm-card {
  display: block;
  background: var(--hm-card);
  border: 1px solid var(--hm-border);
  border-radius: 20px;
  padding: 16px;
  color: var(--hm-ink);
  text-decoration: none;
}
button.hm-card { width: 100%; text-align: left; }
a.hm-card:hover,
button.hm-card:hover { background: #fafbf8; }

.hm-trenner { border: 0; border-top: 1px solid var(--hm-border); margin: 9px 0; }
.hm-trenner--gross { margin: 14px 0; }

/* Videosprechstunde */
.hm-video { display: flex; align-items: center; gap: 14px; padding: 14px 10px 14px 16px; }
.hm-video-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--hm-mint);
  color: var(--hm-forest);
}
.hm-video-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-video-text strong { font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.hm-video-text span { font-size: 15.5px; line-height: 1.45; }

/* Hinweis mit Symbol (HomeNotice) */
.hm-hinweis {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--hm-soft);
  border: 1px solid var(--hm-border);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--hm-ink);
}
.hm-hinweis svg { flex: none; color: var(--hm-forest); }
.hm-hinweis--warn { background: rgba(217, 119, 6, 0.1); border-color: rgba(217, 119, 6, 0.3); }
.hm-hinweis--warn svg { color: var(--hm-warn); }

/* Knoepfe */
.hm-lime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--hm-lime) !important;
  color: var(--hm-on-lime) !important;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.hm-lime:hover { background: var(--hm-lime-hover) !important; }
.hm-lime:disabled { opacity: 0.6; cursor: default; }
.hm-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 14px;
  border: 1.2px solid var(--hm-forest) !important;
  border-radius: 999px;
  background: #fff !important;
  font-size: 16.5px;
  font-weight: 600;
}
.hm-outline:hover { background: var(--hm-soft) !important; }
.hm-textknopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px !important;
  border-radius: 999px;
  color: var(--hm-forest) !important;
  font-size: 15px;
  font-weight: 700;
  flex: none;
}
.hm-textknopf:hover { background: var(--hm-soft) !important; }
.hm-textknopf:disabled { opacity: 0.6; cursor: default; }
.hm-textknopf--muted { color: var(--hm-muted) !important; }
.hm-textknopf--danger { color: var(--hm-danger) !important; }
.hm-mitte { display: flex; margin-left: auto; margin-right: auto; }
.hm-rechts { display: flex; justify-content: flex-end; }
.hm-icon-knopf {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--hm-forest) !important;
}
.hm-icon-knopf:hover { background: var(--hm-soft) !important; }

/* Lade- und Fehlerzustand */
.hm-zustand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hm-zustand .hm-hinweis { flex: 1 1 220px; background: none; border: 0; padding: 0; color: var(--hm-danger); }
.hm-zustand .hm-hinweis svg { color: var(--hm-danger); }
.hm-zustand--flach { padding: 0; }
.hm-laedt { font-size: 14.5px; color: var(--hm-muted); }
.hm-spinner {
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid var(--hm-forest);
  border-right-color: transparent;
  border-radius: 50%;
  animation: hm-drehen 0.8s linear infinite;
}
@keyframes hm-drehen { to { transform: rotate(360deg); } }

/* ── Medikation ─────────────────────────────────────────── */

.hm-sec-kopf { display: flex; align-items: center; gap: 12px; }
.hm-sec {
  flex: 1;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--hm-ink);
}
.hm-rund {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hm-lime) !important;
  color: var(--hm-on-lime) !important;
}
.hm-rund:hover { background: var(--hm-lime-hover) !important; }

.hm-woche-nav { display: flex; align-items: center; margin-top: 8px; }
.hm-woche-nav > span { flex: 1; text-align: center; font-size: 15px; font-weight: 700; }
.hm-pfeil {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--hm-ink) !important;
}
.hm-pfeil:hover:not(:disabled) { background: rgba(13, 51, 38, 0.06) !important; }
.hm-pfeil:disabled { color: var(--hm-border) !important; cursor: default; }

.hm-tage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 6px; }
.hm-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0 !important;
  border-radius: 14px;
}
.hm-tag:disabled { opacity: 0.35; cursor: default; }
.hm-tag-wt { font-size: 12.5px; font-weight: 600; color: var(--hm-muted); }
.hm-tag-n {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.6px solid transparent;
  font-size: 16px;
  font-weight: 600;
  transition: background .16s;
}
.hm-tag:hover:not(:disabled):not(.is-sel) .hm-tag-n { background: rgba(13, 51, 38, 0.06); }
.hm-tag.is-heute .hm-tag-n { border-color: var(--hm-forest); font-weight: 800; }
.hm-tag.is-sel .hm-tag-wt { color: var(--hm-ink); }
.hm-tag.is-sel .hm-tag-n { background: var(--hm-lime); border-color: transparent; color: var(--hm-on-lime); font-weight: 800; }
.hm-tag-dots { display: flex; gap: 3px; height: 6px; }
.hm-tag-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hm-forest); }

.hm-tag-label { margin: 14px 0 8px !important; padding: 0 2px; font-size: 14px; font-weight: 700; color: var(--hm-muted); }
.hm-liste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.hm-leer { display: flex; align-items: center; gap: 8px; }
.hm-leer > span { flex: 1; font-size: 14.5px; line-height: 1.45; color: var(--hm-muted); }

.hm-eintrag { display: flex !important; align-items: center; gap: 12px; padding: 12px 10px 12px 14px !important; }
.hm-eintrag > svg:last-child { flex: none; color: var(--hm-muted); }
.hm-eintrag-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hm-mint);
  color: var(--hm-forest);
}
.hm-eintrag-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-eintrag-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.hm-eintrag-zeile strong { font-size: 18px; font-weight: 800; }
.hm-eintrag-zeile span { font-size: 14px; font-weight: 600; color: var(--hm-muted); }
.hm-eintrag-notiz {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--hm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hm-therapie { padding: 16px 16px 12px; }
.hm-therapie .hm-card-titel { margin-bottom: 4px; }
.hm-info { display: grid; grid-template-columns: 4fr 6fr; gap: 12px; align-items: center; padding: 8px 0; }
.hm-info span { font-size: 14px; font-weight: 600; color: var(--hm-muted); }
.hm-info strong { font-size: 15.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }

/* ── Programmstatus ─────────────────────────────────────── */

.hm-status { padding: 0; overflow: hidden; }
.hm-status-kopf {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px 14px 16px !important;
}
.hm-status-kopf:hover { background: #fafbf8 !important; }
.hm-status-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-status-text strong { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.hm-status-pfeil { flex: none; transition: transform .2s; }
.hm-status.is-offen .hm-status-pfeil { transform: rotate(180deg); }
.hm-status-body { padding: 0 16px 12px; }

.hm-dot { position: relative; width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.hm-dot i {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hm-muted);
  border: 2.5px solid #fff;
  box-sizing: content-box;
}
.hm-dot.is-aktiv i { background: var(--hm-good); }
.hm-dot.is-aktiv::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.25);
  animation: hm-puls 2s ease-in-out infinite;
}
@keyframes hm-puls {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-dot.is-aktiv::before { animation: none; opacity: 0.6; }
  .hm-status-pfeil { transition: none; }
}

/* ── Programmdaten ──────────────────────────────────────── */

.hm-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.hm-kachel {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: var(--hm-soft);
  border-radius: 14px;
  min-width: 0;
}
.hm-kachel--breit { grid-column: 1 / -1; }
.hm-kachel strong {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.hm-kachel .hm-klein { margin-top: 2px; }

/* ── Gewichtsfortschritt ────────────────────────────────── */

.hm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.hm-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-kpi strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.05;
  white-space: nowrap;
}
.hm-kpi--stark strong { font-size: 28px; }
.hm-kpi--muted strong { color: var(--hm-muted); }
.hm-kpi small { margin-left: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--hm-muted); }

.hm-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.hm-chip--good { color: var(--hm-good); background: rgba(5, 150, 105, 0.1); }
.hm-chip--warn { color: var(--hm-warn); background: rgba(217, 119, 6, 0.1); }
.hm-chip--danger { color: var(--hm-danger); background: rgba(220, 38, 38, 0.1); }
.hm-chip--muted { color: var(--hm-muted); background: rgba(102, 117, 110, 0.1); }

.hm-fortschritt { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.hm-fortschritt strong { font-size: 14px; font-weight: 800; color: var(--hm-forest); }
.hm-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--hm-soft); overflow: hidden; }
.hm-bar > span { display: block; height: 100%; background: var(--hm-forest); border-radius: 999px; transition: width .3s ease-out; }
.hm-fortschritt + .hm-label { margin-top: 4px !important; }

.hm-koerper { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; min-height: 44px; }
.hm-koerper .hm-label { font-size: 14px; }
.hm-koerper strong { font-size: 15.5px; font-weight: 700; }
.hm-koerper .hm-chip { margin-right: 8px; }
.hm-koerper + .hm-label { margin-top: 0 !important; }
/* Wert und Einordnung: die Einordnung rutscht unter den Wert, wenn es neben der
   Silhouette zu eng wird. */
.hm-koerper-wert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-width: 0; }

/* Körper-Silhouette rechts neben Größe und BMI (wie die App) */
.hm-koerper-block--figur { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
.hm-silhouette { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hm-silhouette img { display: block; width: 40px; height: 136px; }
.hm-silhouette figcaption { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; }
.hm-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--hm-lime); }

.hm-verlauf-titel { margin: 0 0 8px; font-size: 15px; font-weight: 700; }

.hm-chart { display: grid; grid-template-columns: 34px minmax(0, 1fr); }
.hm-chart-y {
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hm-muted);
}
.hm-chart-plot { position: relative; height: 150px; }
.hm-chart-in { position: absolute; inset: 8px; }
.hm-chart-grid { position: absolute; left: 0; right: 0; height: 1px; margin-top: -0.5px; background: var(--hm-border); }
.hm-chart-ziel {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  margin-top: -0.75px;
  background: repeating-linear-gradient(90deg, var(--hm-good) 0 5px, transparent 5px 10px);
}
.hm-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hm-chart svg path { fill: none; stroke: var(--hm-forest); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hm-chart-dot {
  position: absolute;
  width: 6.4px;
  height: 6.4px;
  border-radius: 50%;
  background: var(--hm-forest);
  transform: translate(-50%, -50%);
}
.hm-chart-dot--letzt { width: 13px; height: 13px; background: var(--hm-lime); border: 2px solid var(--hm-forest); box-sizing: border-box; }
.hm-chart-x {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hm-muted);
}

.hm-wz-liste { margin-top: 14px; }
.hm-wz {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px !important;
  border-radius: 12px;
  text-align: left;
}
button.hm-wz:hover { background: var(--hm-soft) !important; }
.hm-wz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-wz-text > span:first-child { font-size: 14.5px; }
.hm-wz-text .hm-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-wz strong { font-size: 15.5px; font-weight: 800; white-space: nowrap; }
.hm-wz-pfeil { width: 28px; flex: none; display: grid; place-items: center; color: var(--hm-muted); }

/* ── Blätter (HomeSheet) ────────────────────────────────── */

body.hm-sheet-offen { overflow: hidden; }
.hm-sheet-host { position: fixed; inset: 0; z-index: 990; }
.hm-sheet-bg {
  position: absolute;
  inset: 0;
  background: rgba(13, 51, 38, 0.45);
  opacity: 0;
  transition: opacity .2s;
}
.hm-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 30px rgba(13, 51, 38, 0.12);
  transform: translateY(100%);
  transition: transform .24s ease-out;
}
.hm-sheet-host.is-offen .hm-sheet-bg { opacity: 1; }
.hm-sheet-host.is-offen .hm-sheet { transform: none; }
.hm-sheet-griff { width: 40px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: var(--hm-border); flex: none; }
.hm-sheet-kopf { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px 4px 22px; flex: none; }
.hm-sheet-kopf > div { flex: 1; min-width: 0; padding-top: 6px; }
.hm-sheet-kicker { font-size: 13px; font-weight: 600; color: var(--hm-muted); }
.hm-sheet-kopf h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; color: var(--hm-ink); }
.hm-sheet-x { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--hm-ink) !important; flex: none; }
.hm-sheet-x:hover { background: var(--hm-soft) !important; }
.hm-sheet-inhalt { padding: 8px 22px 0; overflow-y: auto; flex: 1 1 auto; overscroll-behavior: contain; }
.hm-sheet-fuss { padding: 20px 22px calc(20px + env(safe-area-inset-bottom)); flex: none; }

@media (min-width: 720px) {
  .hm-sheet {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(520px, calc(100% - 32px));
    max-height: min(760px, calc(100vh - 48px));
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(13, 51, 38, 0.18);
    transform: translate(-50%, -46%);
    opacity: 0;
    transition: transform .2s ease-out, opacity .2s;
  }
  .hm-sheet-host.is-offen .hm-sheet { transform: translate(-50%, -50%); opacity: 1; }
  .hm-sheet-griff { display: none; }
  .hm-sheet-kopf { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-sheet, .hm-sheet-bg { transition: none; }
}

.hm-gross { font-size: 34px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.05; }

/* Formular */
.hm-feld-label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 700; color: var(--hm-ink); }
p.hm-feld-label { margin-bottom: 8px !important; }

.hm-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-pill {
  width: 100%;
  min-height: 50px;
  padding: 12px 20px !important;
  border: 1px solid var(--hm-border) !important;
  border-radius: 999px;
  background: #fff !important;
  font-size: 16px;
  font-weight: 500;
  text-align: center !important;
}
.hm-pill:hover { background: var(--hm-soft) !important; }
.hm-pill.is-aktiv { background: var(--hm-lime) !important; border-color: var(--hm-lime) !important; color: var(--hm-on-lime) !important; font-weight: 700; }
.hm-pill--klein { width: auto; flex: none; }
.hm-pill-wrap { position: relative; display: block; }
.hm-datum-input { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.hm-datum-input.is-sichtbar {
  position: static;
  opacity: 1;
  pointer-events: auto;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hm-border);
  border-radius: 12px;
  font: inherit;
  color: var(--hm-ink);
}

.hm-zeile { display: flex; gap: 10px; align-items: center; }
.hm-zeile .hm-feld { flex: 1; min-width: 0; }
.hm-feld {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--hm-border);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  color: var(--hm-ink);
  box-sizing: border-box;
}
.hm-feld:focus-within,
.hm-feld:focus { outline: none; border-color: var(--hm-forest); box-shadow: 0 0 0 3px rgba(15, 74, 55, 0.12); }
.hm-feld input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16.5px;
  color: var(--hm-ink);
}
.hm-feld::placeholder,
.hm-feld input::placeholder { color: #8a968f; }
.hm-feld--einheit > span { font-size: 16.5px; font-weight: 700; color: var(--hm-muted); }
.hm-feld--icon > svg { flex: none; color: var(--hm-muted); pointer-events: none; }
.hm-feld--icon input::-webkit-calendar-picker-indicator { display: none; }
.hm-textarea { min-height: 84px; padding: 14px 16px; resize: vertical; line-height: 1.45; display: block; }

.hm-fehler {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 6px !important;
  font-size: 13.8px;
  line-height: 1.4;
  color: var(--hm-danger);
}
.hm-fehler svg { flex: none; margin-top: 1px; }
.hm-sheet-fuss .hm-fehler { margin-top: 10px !important; }
