/* MitHuus — Anwendung.
 *
 * Dieselben Farben und Schriften wie die Werbeseite (eine Marke), aber die Haltung
 * einer Betriebsoberflaeche: dicht, tabellarisch, Zahlen rechts mit `tabular-nums`,
 * je Seite eine Hauptsache. Siehe Kommentarkopf in includes/ansicht.php.
 *
 * Mobil hat Vorrang: Eine Belegung wird am Steg eingetragen, nicht am Schreibtisch.
 * Deshalb werden Tabellen unter 720px zu Karten (jede Zelle mit ihrer Bezeichnung
 * ueber `data-l`), statt waagerecht zu scrollen.
 */

:root {
  --tief: #0B1622;  --tief-2: #13222F;  --linie-d: #273F52;
  --grund: #FFFFFF; --flaeche: #F6F3EF; --linie: #DCE5EB;
  --tinte: #0B1622; --tinte-2: #5A6B78; --tinte-d: #9FB4C4;
  --marke: #B4432A; --marke-h: #E8826A; --marke-w: #FBEDE8;
  --gut: #0E9F6E;   --offen: #D97A2B;   --schlecht: #C8393B;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --r: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--flaeche); color: var(--tinte);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12;
  letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(26px, 4vw, 34px); }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
a { color: var(--marke); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--marke); outline-offset: 2px; }

/* ── Kopf ──────────────────────────────────────────────────────────────────── */
.mh-kopf { background: var(--tief); color: #fff; }
.mh-kopf-innen, .mh-nav-innen, .mh-innen {
  max-width: 1180px; margin-inline: auto; padding-inline: 20px;
}
.mh-kopf-innen { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 14px; }
.mh-marke { display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 19px;
  color: #fff; letter-spacing: -.02em; }
.mh-marke:hover { text-decoration: none; color: var(--marke-h); }
/* Der hellere Markenton, nicht #B4432A: Auf dem dunklen Kopf (#0B1622) liegt das
   kräftige Blau zu dicht am Grund und das Zeichen wirkt matschig. */
.mh-zeichen { width: 26px; height: 26px; flex: 0 0 auto; color: var(--marke-h); }
.mh-marke:hover .mh-zeichen { color: #fff; }
.mh-boot { display: flex; flex-direction: column; line-height: 1.25;
  padding-left: 16px; border-left: 1px solid var(--linie-d); }
.mh-boot strong { font-weight: 600; font-size: 15px; }
.mh-boot span { font-size: 12.5px; color: var(--tinte-d); }
.mh-wechsel { margin: 0; }
.mh-wechsel select { background: var(--tief-2); color: #fff; border: 1px solid var(--linie-d);
  border-radius: 7px; padding: 6px 9px; font: inherit; font-size: 14px; }
.mh-konto { margin-left: auto; font-size: 13.5px; color: var(--tinte-d);
  display: flex; gap: 10px; align-items: baseline; }
.mh-konto a { color: var(--marke-h); }

.mh-nav { border-top: 1px solid var(--linie-d); }
.mh-nav-innen { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mh-nav-innen::-webkit-scrollbar { display: none; }
.mh-nav a {
  color: var(--tinte-d); padding: 11px 13px; font-size: 14.5px; font-weight: 500;
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.mh-nav a:hover { color: #fff; text-decoration: none; }
.mh-nav a.hier { color: #fff; border-bottom-color: var(--marke); }

/* ── Flaeche ───────────────────────────────────────────────────────────────── */
.mh-haupt { padding-block: 26px 48px; }
.mh-innen > h1 { margin-bottom: 4px; }
.mh-leise { color: var(--tinte-2); font-weight: 400; }
.mh-unterzeile { color: var(--tinte-2); margin: 0 0 22px; font-size: 15px; }

.mh-meldung {
  background: var(--marke-w); border: 1px solid var(--marke-h); color: #15306E;
  border-radius: var(--r); padding: 11px 14px; margin-bottom: 20px; font-size: 15px;
}
.mh-meldung.fehler { background: #FDECEC; border-color: #F0B4B4; color: #8A2326; }

.mh-karte {
  background: var(--grund); border: 1px solid var(--linie); border-radius: var(--r);
  padding: 20px; margin-bottom: 20px;
}
.mh-karte > h2 { margin-bottom: 14px; }
.mh-karte > :last-child { margin-bottom: 0; }
.mh-start { max-width: 620px; }
.mh-hilfe { color: var(--tinte-2); font-size: 14px; margin: -4px 0 14px; }
/* Der negative obere Rand gilt für Hilfetexte UNTER einem Feld — dort sollen sie
   ans Label rücken. Nach einem Knopf oder Absatz ist er falsch: Der Text klebte dann
   am Knopf (Christians Befund 10.10.2026). */
form + .mh-hilfe, p + .mh-hilfe, table + .mh-hilfe, div + .mh-hilfe { margin-top: 12px; }
.mh-warnung { color: #8A2326; }
.mh-notiz { background: var(--flaeche); border-radius: 8px; padding: 14px; margin-top: 18px;
  font-size: 14.5px; }
.mh-notiz p { margin: 0 0 10px; }

/* ── Kennzahlen: eine Reihe, keine Kachelwand ──────────────────────────────── */
.mh-zahlen { display: flex; flex-wrap: wrap; gap: 0; background: var(--grund);
  border: 1px solid var(--linie); border-radius: var(--r); margin-bottom: 20px; }
.mh-zahlen > div { flex: 1 1 160px; padding: 16px 20px; border-right: 1px solid var(--linie); }
.mh-zahlen > div:last-child { border-right: 0; }
.mh-zahlen dt { font-size: 12px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--tinte-2); margin: 0 0 6px; }
.mh-zahlen dd { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mh-zahlen small { display: block; font: 400 13px/1.4 var(--sans); color: var(--tinte-2);
  margin-top: 3px; letter-spacing: 0; }

/* ── Tabellen ──────────────────────────────────────────────────────────────── */
.mh-tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.mh-tabelle th, .mh-tabelle td { padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--linie); vertical-align: top; }
.mh-tabelle th { font-size: 12px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--tinte-2); white-space: nowrap; }
.mh-tabelle tr:last-child td { border-bottom: 0; }
.mh-tabelle td.r, .mh-tabelle th.r { text-align: right; }
.mh-tabelle tfoot td { font-weight: 600; border-top: 2px solid var(--tinte);
  border-bottom: 0; }
.mh-zahl { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-plus { color: var(--gut); }
.mh-minus { color: var(--schlecht); }
/* Eine BREITE Karte nimmt das seitliche Polster weg, damit Tabellen bis an den Rand
   laufen — der Zebrastreifen einer Zeile soll die ganze Karte queren.
   ⚠️ Dann braucht es JEDES andere Kind zurück. Die Regel nannte nur `h2` und `p`,
   also standen Formulare und Listen am Kartenrand und sahen aus, als lägen sie
   daneben (Christians Befund 11.10.2026 an der Wunschrunde). Deshalb jetzt
   umgekehrt gedacht: Alles bekommt das Polster, AUSSER dem, was ohne auskommen
   soll. So ist das nächste Element richtig, ohne dass jemand daran denkt. */
.mh-karte.breit { padding: 20px 0; }
.mh-karte.breit > * { padding-inline: 20px; }
.mh-karte.breit > table,
.mh-karte.breit > .mh-tabelle-rahmen,
.mh-karte.breit > hr { padding-inline: 0; }

.mh-marke-pille, .mh-pille {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px;
  border-radius: 999px; background: var(--flaeche); color: var(--tinte-2);
  white-space: nowrap;
}
.mh-pille.toern { background: var(--marke-w); color: #15306E; }
.mh-pille.wartung { background: #FFF3E4; color: #8A5115; }
.mh-pille.gesperrt { background: #ECEFF2; color: var(--tinte-2); }
.mh-pille.reserviert { background: #FFF3E4; color: #8A5115; }
/* Kassenfuehrung und Fehlbestand: zwei Rollen, die man in der Zeile sehen soll. */
.mh-pille.kasse { background: #E8F3EC; color: #1C5B38; }
.mh-pille.warn { background: #FBE9E7; color: #8A2318; }

/* Ein Tag in einer Vergabezeit (13.10.2026): schraffiert, nicht farbig. Farbe gehoert
   hier den Mitgliedern — ein weiterer Farbton waere ein weiteres Mitglied, das es nicht
   gibt. Die Schraffur sagt „hier gilt etwas anderes", ohne sich einzureihen.

   ⚠️ Deckkraft 7 % → 16 % (14.10.2026). Christian: „aufgefallen ist mir das wir garkeine
   geblockten zeiträume haben in dem Kalendar, nur gesperrt." Die Markierung WAR da, nur
   so blass, dass sie neben den farbigen Baendern der Mitglieder verschwand — und damit
   genau der Fall, vor dem der Kommentar oben warnt: Man merkt die Vergabezeit erst,
   wenn das Buchen fehlschlaegt. */
/* Vergabezeiten liegen ALS SCHRAFFUR ueber der Zellenfarbe — die Zelle behaelt
   also ihren Grund (Wochenende, Feiertag, heute) und bekommt das Muster dazu.
   ⚠️ Darum setzen alle anderen `.mh-tag`-Regeln `background-color`, nie die
   Kurzform `background`: die setzt `background-image` auf `none` zurueck und
   loeschte die Schraffur an genau den Tagen, um die es geht — Wochenenden und
   Feiertagen (gefunden 14.10.2026 im Standbild des Startseiten-Films). */
.mh-tag.wunschzeit {
  background-image: repeating-linear-gradient(135deg,
    rgba(45,91,255,.16) 0 5px, transparent 5px 11px);
}

/* Tag + Monat nebeneinander (14.10.2026) — die Auswahl statt „MM-TT" zu tippen.
   Der Tag braucht wenig Platz, der Monatsname viel; feste Breiten waeren in elf
   Sprachen elfmal falsch. */
.mh-tagmonat { display: flex; gap: 8px; }
.mh-tagmonat select:first-child { flex: 0 0 90px; }
.mh-tagmonat select:last-child { flex: 1 1 auto; min-width: 0; }

/* ⚠️ `hidden` MUSS gewinnen — eine Regel fuer alles, nicht je Stelle eine (14.10.2026).
 *
 * Jede eigene `display`-Angabe schlaegt das Browser-Standard `[hidden]{display:none}`,
 * weil ein Klassenselektor spezifischer ist als ein Attributselektor. Das ist jetzt
 * dreimal aufgefallen: beim <dialog> der Belegschau, beim Absage-Formular (10.10.) —
 * und am 14.10. beim Feld „Traegt allein", das bei JEDER Verteilungsart sichtbar war,
 * obwohl es nur zu „Ein Mitglied allein" gehoert. Christian davor: „was soll traegt
 * allein mir sagen?" Die Antwort war: gar nichts, es haette nicht da sein duerfen.
 *
 * Zweimal einzeln geflickt heisst, dass es ein viertes Mal kommt. Darum hier ganz oben
 * und fuer alle Elemente. */
[hidden] { display: none !important; }

/* ── Formulare ─────────────────────────────────────────────────────────────── */
.mh-form { display: grid; gap: 4px; max-width: 460px; }
.mh-form label { font-size: 13.5px; font-weight: 600; margin-top: 10px; }
.mh-form input, .mh-form select, .mh-form textarea, .mh-reihe input, .mh-reihe select {
  font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--linie);
  border-radius: 8px; background: var(--grund); color: var(--tinte); width: 100%;
}
.mh-form textarea { min-height: 70px; resize: vertical; }
.mh-form input[type=file] { padding: 7px; background: var(--flaeche); }
.mh-form .mh-knopf { margin-top: 16px; justify-self: start; }

/* Waagerechte Formularreihe fuer kurze Eingaben (Buchen, Erfassen).
 *
 * ⚠️ `align-items: flex-start`, nicht `flex-end` (Christian 13.10.2026: „formatierungs-
 * fehler gibt es in der Ansicht auch"). Bei `flex-end` werden die Spalten UNTEN bündig
 * gemacht — und weil ein `select` niedriger ist als ein Datumsfeld, rutschte die ganze
 * Spalte „Wer" samt ihrer Beschriftung nach unten. Die Labels standen dann auf drei
 * verschiedenen Hoehen nebeneinander. Oben ausrichten stellt sie auf eine Linie; der
 * Knopf holt sich die Unterkante selbst.
 *
 * Dazu eine gemeinsame Hoehe fuer alle Felder: Ohne sie haengt die Ausrichtung davon
 * ab, wie der Browser `select` gegen `input` zeichnet — und das ist je Browser anders. */
.mh-reihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.mh-reihe > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; }
.mh-reihe > div.weit { flex: 2 1 220px; }
.mh-reihe label { font-size: 13px; font-weight: 600; min-height: 18px; line-height: 18px; }
.mh-reihe input, .mh-reihe select { height: 42px; box-sizing: border-box; }
.mh-reihe .mh-knopf { flex: 0 0 auto; align-self: flex-start; margin-top: 22px; height: 42px; }

.mh-knopf {
  font: 600 15px/1 var(--sans); padding: 11px 18px; border: 0; border-radius: 8px;
  background: var(--marke); color: #fff; cursor: pointer;
}
.mh-knopf:hover { background: #1F49E0; }
.mh-knopf.still { background: var(--flaeche); color: var(--tinte);
  border: 1px solid var(--linie); }
.mh-knopf.still:hover { background: #E7EDF1; }
.mh-knopf.klein { font-size: 13px; padding: 6px 11px; }
/* Überschrift einer Dokumentgruppe (12.10.2026). Trägt die Gliederung der Unterlagen
   nach Art — klein genug, um die Kartenüberschrift nicht zu verdrängen. */
.mh-gruppe { font-size: 15px; margin: 18px 0 6px; font-weight: 650; }
/* Die Gefahrenzone (12.10.2026): Löschen sieht anders aus als Speichern. Keine rote
   Fläche — nur eine rote Kante links und die Überschrift in Rot. Eine ganze rote Karte
   schreit, und was schreit, liest man irgendwann nicht mehr. */
.mh-karte.mh-gefahr { border-left: 3px solid #B3261E; }
.mh-karte.mh-gefahr h2 { color: #B3261E; }
.mh-liste-knapp { margin: 10px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--tinte-2); }
.mh-liste-knapp li { margin-bottom: 4px; }
.mh-gruppe:first-of-type { margin-top: 4px; }
/* Nur für Vorleseprogramme: ein Feld in einer Reihe braucht eine Beschriftung, auch
   wenn die Spaltenüberschrift sie für Sehende schon trägt. */
.mh-versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden;
                clip: rect(0 0 0 0); white-space: nowrap; }
.mh-knopf.warn { background: transparent; color: var(--schlecht);
  border: 1px solid #F0B4B4; }
.mh-knopf.warn:hover { background: #FDECEC; }

.mh-leer { color: var(--tinte-2); font-size: 15px; }
.mh-hinweise { margin: 0 0 18px; padding: 0; list-style: none; }
.mh-hinweise li { background: #FFF6E8; border: 1px solid #F0D8B4; color: #7A4A12;
  border-radius: 8px; padding: 9px 12px; margin-bottom: 7px; font-size: 14.5px; }

/* ── Kalender ──────────────────────────────────────────────────────────────── */
.mh-monat-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mh-monat-kopf h2 { margin-right: auto; }
.mh-gitter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--linie); border: 1px solid var(--linie); border-radius: 8px;
  overflow: hidden; }
.mh-gitter .wt { background: var(--flaeche); padding: 7px 6px; font-size: 11.5px;
  font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--tinte-2); text-align: center; }
.mh-tag { background-color: var(--grund); min-height: 76px; padding: 5px 6px; }
.mh-tag.aus { background-color: var(--flaeche); }
.mh-tag.we { background-color: #FAFCFD; }
.mh-tag .nr { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--tinte-2); }
.mh-tag.heute .nr { background: var(--marke); color: #fff; border-radius: 999px;
  padding: 1px 6px; font-weight: 600; }
.mh-band { display: block; font-size: 11.5px; line-height: 1.3; margin-top: 3px;
  padding: 2px 5px; border-radius: 4px; background: var(--marke-w); color: #15306E;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-band .z { margin-right: 4px; font-size: 10.5px; }
.mh-band.wartung { background: #FFF3E4; color: #8A5115; }
.mh-band.gesperrt { background: #ECEFF2; color: var(--tinte-2); }
/* Das Legendenband traegt dieselbe Schraffur wie der Tag — sonst zeigt die Legende
   eine Farbe, die im Gitter nirgends vorkommt. */
.mh-band.wunschzeit { background: #F4F6FF; color: #2A3C78;
  background-image: repeating-linear-gradient(135deg,
    rgba(45,91,255,.16) 0 5px, transparent 5px 11px); }

/* Acht Farben je Miteigner. Blasse Flächen mit dunkler Schrift derselben Familie:
   So bleibt die Zelle ruhig, und der Kontrast trägt auch auf dem Telefon.
   Die Farbe ist nie der einzige Träger — der Name steht daneben. */
.mh-band.p1 { background: #FBEDE8; color: #15306E; }   /* Marine   */
.mh-band.p2 { background: #E3F5EC; color: #11513A; }   /* Seegrün  */
.mh-band.p3 { background: #FDEDE4; color: #7A3A12; }   /* Rost     */
.mh-band.p4 { background: #F2E9FA; color: #4A2370; }   /* Flieder  */
.mh-band.p5 { background: #E6F4F8; color: #114A5C; }   /* Petrol   */
.mh-band.p6 { background: #FBF0D8; color: #6B4A08; }   /* Messing  */
.mh-band.p7 { background: #FBE6EE; color: #6E1538; }   /* Signal   */
.mh-band.p8 { background: #E9EDE4; color: #37491F; }   /* Oliv     */

/* Reserviert: schraffiert statt andersfarbig — die Farbe gehört der Person, das
   Muster dem Zustand. Zwei Dinge, zwei Mittel. */
.mh-band.res {
  background-image: repeating-linear-gradient(45deg,
    rgba(255,255,255,.65) 0 3px, transparent 3px 7px);
}

/* Die Legende: dieselben Bänder, nur in einer Reihe. Wer den Kalender liest, braucht
   sie nicht — wer stockt, findet sie unter dem Gitter. */
.mh-legende {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 12px 0 0;
  padding-top: 12px; border-top: 1px solid var(--linie);
}
.mh-legende .mh-band { display: inline-block; margin: 0; max-width: none; }
/* (alte .res-Regel ersetzt — siehe oben) */

/* ── Kosten nach Art ───────────────────────────────────────────────────────────
   Drei Spalten: Bezeichnung, Balken, Betrag. Die Bezeichnung IM Balken war der
   Fehler — ein kurzer Balken schob sie auf den leeren Grund, wo sie mit halber
   Farbe hing. Daneben ist sie immer lesbar, egal wie kurz der Balken ist. */
.mh-balken { display: grid; gap: 8px; }
.mh-balken > div { display: grid; grid-template-columns: minmax(96px, 168px) 1fr auto;
  gap: 12px; align-items: center; }
.mh-balken .was { font-size: 13.5px; font-weight: 500; color: var(--tinte); }
.mh-balken .spur { background: var(--flaeche); border-radius: 4px; height: 12px;
  overflow: hidden; }
.mh-balken .fuell { background: var(--marke); height: 100%; border-radius: 4px; }
@media (max-width: 560px) {
  /* Am Telefon reicht die Breite fuer drei Spalten nicht: Name und Betrag in eine
     Zeile, der Balken darunter ueber die volle Breite. */
  .mh-balken > div { grid-template-columns: 1fr auto; gap: 3px 10px; }
  .mh-balken .spur { grid-column: 1 / -1; }
}

.mh-fuss { border-top: 1px solid var(--linie); padding-block: 18px 34px;
  font-size: 13.5px; color: var(--tinte-2); }

/* ── Schmal: Tabellen werden Karten ────────────────────────────────────────── */
@media (max-width: 720px) {
  .mh-tabelle thead { display: none; }
  .mh-tabelle, .mh-tabelle tbody, .mh-tabelle tfoot { display: block; }
  .mh-tabelle tr { display: block; border-bottom: 1px solid var(--linie);
    padding: 12px 0; }
  .mh-tabelle tr:last-child { border-bottom: 0; }
  .mh-tabelle td { display: flex; justify-content: space-between; gap: 14px;
    border: 0; padding: 3px 0; text-align: right; }
  .mh-tabelle td::before { content: attr(data-l); font-size: 12px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-2);
    text-align: left; }
  .mh-tabelle td:empty { display: none; }
  .mh-karte.breit { padding: 20px; }
  .mh-karte.breit > h2, .mh-karte.breit > p { padding-inline: 0; }
  .mh-zahlen > div { border-right: 0; border-bottom: 1px solid var(--linie); }
  .mh-zahlen > div:last-child { border-bottom: 0; }
  .mh-tag { min-height: 54px; }
  .mh-band { font-size: 0; padding: 3px; margin-top: 2px; }
  .mh-konto { margin-left: 0; order: 9; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── Beschlüsse ────────────────────────────────────────────────────────────── */
.mh-beschluss { padding-bottom: 16px; }
.mh-b-kopf { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.mh-b-kopf h2 { margin: 0; flex: 1 1 auto; }
.mh-b-offen { background: var(--marke-w); color: #15306E; }
.mh-b-angenommen { background: #E3F5EE; color: #0A6B4A; }
.mh-b-abgelehnt { background: #FDECEC; color: #8A2326; }
.mh-b-zurueckgezogen { background: var(--flaeche); color: var(--tinte-2); }
.mh-b-eck { color: var(--tinte-2); font-size: 14.5px; margin: 0 0 10px; }
.mh-b-text { margin: 0 0 14px; max-width: 70ch; }

/* Der Balken zeigt den Stand UND die Schwelle. Ein Fortschrittsbalken ohne Ziellinie
   beantwortet die eine Frage nicht, die alle haben: reicht das schon? */
.mh-b-balken {
  position: relative; height: 12px; border-radius: 6px;
  background: var(--flaeche); overflow: hidden; margin-bottom: 8px;
}
.mh-b-balken .fuell { height: 100%; background: var(--marke-h); border-radius: 6px;
  transition: width .2s; }
.mh-b-balken .fuell.erreicht { background: var(--gut); }
.mh-b-balken .marke {
  position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--tinte);
  overflow: visible;
}
.mh-b-zahlen { font-size: 14px; color: var(--tinte-2); margin: 0 0 12px;
  font-variant-numeric: tabular-nums; }
.mh-b-zahlen .ja { color: var(--gut); font-weight: 600; }
.mh-b-zahlen .nein { color: var(--schlecht); font-weight: 600; }
.mh-b-liste td { padding-block: 7px; }
.mh-b-wahl { display: inline-flex; gap: 6px; }
.mh-knopf.gewaehlt { background: var(--tinte); color: #fff; }
.mh-s-ja { background: #E3F5EE; color: #0A6B4A; }
.mh-s-nein { background: #FDECEC; color: #8A2326; }
.mh-s-enthaltung { background: var(--flaeche); color: var(--tinte-2); }
.mh-s-offen { background: #FFF3E4; color: #8A5115; }

@media (max-width: 720px) {
  .mh-b-wahl { flex-wrap: wrap; justify-content: flex-end; }
}

/* ── Zeitraum markieren (Maus und Finger) ─────────────────────────────────────
 * `touch-action: none` ist hier Pflicht, nicht Geschmack: Ohne das scrollt der Browser
 * beim Ziehen die Seite, statt zu markieren. `user-select: none` verhindert, dass beim
 * Ziehen die Tagesziffern blau markiert werden.
 */
.mh-gitter { touch-action: none; user-select: none; -webkit-user-select: none; }
.mh-tag[data-tag] { cursor: pointer; }
.mh-tag.gewaehlt { background-color: var(--marke-w); box-shadow: inset 0 0 0 2px var(--marke); }
.mh-tag.gewaehlt.belegt { background-color: #FFF3E4; box-shadow: inset 0 0 0 2px var(--offen); }

/* Die Leiste stand auf dunklem Grund mit weisser Schrift — als Kontrast gedacht, in
   Wahrheit ein schwarzer Balken, in dem man die Felder suchen musste (Christian,
   11.10.2026: „das ist so zu dunkel, Inhalte nicht gut zu sehen"). Jetzt helle Flaeche
   wie jede Karte; abheben tut sie sich ueber Rahmen und Schatten, nicht ueber Dunkelheit —
   das traegt auch dann, wenn sie am unteren Rand klebt. */
.mh-auswahl {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 14px; padding: 12px 14px;
  background: var(--grund); color: var(--tinte);
  border: 1px solid var(--linie); border-radius: var(--r);
  box-shadow: 0 6px 20px rgba(11, 22, 34, .12);
}
.mh-a-text { margin-right: auto; }
.mh-a-text strong { font-family: var(--display); font-size: 17px; }
.mh-a-text .mh-leise { color: var(--tinte-2); margin-left: 8px; font-size: 14px; }
.mh-a-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mh-a-form { display: flex; gap: 8px; align-items: center; margin: 0; }
/* ⚠️ `display` schlägt `hidden`. Ohne diese Zeile stand das versteckte Absage-Formular
   als leere Blase zwischen „Buchen" und „Aufheben" — Christians Befund vom
   10.10.2026, und derselbe Fehler wie zuvor beim <dialog> der Belegschau. Der
   Grundreset bringt zwar `[hidden]{display:none!important}` mit, aber nur in der
   Artefakt-Hülle; hier gilt unser eigenes Blatt. */
.mh-a-form[hidden] { display: none !important; }
.mh-a-form input[type=text], .mh-a-form select {
  font: inherit; font-size: 14px; padding: 7px 10px; border-radius: 7px;
  border: 1px solid var(--linie); background: var(--grund); color: var(--tinte);
}
.mh-a-form input[type=text]::placeholder { color: var(--tinte-2); }
.mh-a-form input[type=text] { width: 170px; }
.mh-a-form input::placeholder { color: var(--tinte-d); }

@media (max-width: 720px) {
  .mh-auswahl { position: sticky; bottom: 0; z-index: 5; }
  .mh-a-text { flex: 1 1 100%; margin-right: 0; }
  .mh-a-knoepfe, .mh-a-form { flex: 1 1 100%; }
  .mh-a-form input[type=text] { flex: 1 1 auto; width: auto; }
}

/* ── Beschluss: wer setzt um ────────────────────────────────────────────────── */
/* Christians Einwand (10.10.2026): „bei entscheidungen muss auch klar sein wer
   umsetzt, kauft etc". Der Block sitzt UNTER der Stimmliste und ist ein eigener
   Streifen, nicht eine weitere Karte — er gehört zum Beschluss, ist aber nicht die
   Abstimmung. Offen = Markenton, erledigt = grün; das ist der ganze Zustand. */
.mh-b-umsetzung {
  margin-top: 14px; padding: 12px 14px; border-radius: 8px;
  background: var(--marke-w); border-left: 3px solid var(--marke);
  font-size: 14.5px;
}
.mh-b-umsetzung.fertig { background: #E7F6EF; border-left-color: var(--gut); }
.mh-b-u-zeile { display: flex; align-items: flex-start; gap: 10px; }
.mh-b-u-marke { flex: 0 0 auto; font-weight: 700; color: var(--marke); line-height: 1.5; }
.mh-b-umsetzung.fertig .mh-b-u-marke { color: var(--gut); }
.mh-b-u-haken { margin: 0 0 0 auto; flex: 0 0 auto; }
.mh-b-u-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(11, 22, 34, .08);
}
.mh-b-u-form select, .mh-b-u-form input {
  font: inherit; font-size: 13.5px; padding: 6px 9px; border: 1px solid var(--linie);
  border-radius: 7px; background: var(--grund); color: var(--tinte);
}
/* Der Hinweis nimmt den Rest der Zeile — er ist das Feld, das wirklich Platz braucht. */
.mh-b-u-form input[type="text"] { flex: 1 1 220px; min-width: 0; }

/* ── Belegschau: die Datei im Overlay, nicht im neuen Fenster ───────────────── */
/* Christians Wunsch (10.10.2026). Der <dialog> ist selbst das Blatt; ::backdrop ist
   der Rand, und ein Klick darauf schließt. Hoch darf er bis fast an den Rand — ein
   Beleg, den man nur im Ausschnitt sieht, erspart keinen Reiterwechsel. */
/* ⚠️ `display` NUR unter [open]. Ein geschlossener <dialog> ist über das
   UA-Stylesheet `display:none` — eine eigene display-Regel auf dem Element selbst
   hebt das auf, und die leere Hülle steht dann auf JEDER Seite im Dokumentfluss.
   Genau so gesehen am 10.10.2026 auf /app/einstellungen. */
.mh-schau {
  width: min(1020px, calc(100vw - 32px)); max-width: none;
  height: min(90vh, 1200px); max-height: none;
  padding: 0; border: 0; border-radius: var(--r); background: var(--grund);
  box-shadow: 0 24px 60px rgba(11, 22, 34, .32);
  overflow: hidden;
}
.mh-schau[open] { display: flex; flex-direction: column; }
.mh-schau::backdrop { background: rgba(11, 22, 34, .62); }
.mh-schau-kopf {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--linie);
  background: var(--flaeche); flex: 0 0 auto;
}
.mh-schau-name {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mh-schau-neu { margin-left: auto; font-size: 13.5px; flex: 0 0 auto; }
.mh-schau-zu {
  flex: 0 0 auto; width: 30px; height: 30px; padding: 0; cursor: pointer;
  border: 1px solid var(--linie); border-radius: 8px; background: var(--grund);
  color: var(--tinte-2); font-size: 20px; line-height: 1;
}
.mh-schau-zu:hover { background: var(--marke-w); color: var(--marke); border-color: var(--marke-h); }
.mh-schau-blatt { flex: 1 1 auto; min-height: 0; background: var(--flaeche); }
.mh-schau-blatt iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Bilder mittig und ganz, nicht beschnitten: ein Kassenzettel ist hoch, eine
   Rechnung breit — `contain` trägt beide. */
.mh-schau-blatt img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: #fff;
}
@media (max-width: 720px) {
  .mh-schau { width: 100vw; height: 100vh; border-radius: 0; }
}

/* ── Das Boot ───────────────────────────────────────────────────────────────── */
/* Foto links, Daten rechts — und unter 820px übereinander. Das Bild ist nicht
   Beilage: Ein Boot erkennt man am Bild, nicht an der Registernummer. */
.mh-boot-karte { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.mh-boot-foto { margin: 0; flex: 1 1 320px; min-width: 0; position: relative; }
.mh-boot-foto img {
  width: 100%; height: auto; display: block; border-radius: 8px;
  background: var(--flaeche);
}
/* Der Klick aufs Bild öffnet die Belegschau — der Link liegt darüber, unsichtbar,
   damit nicht zwei Dinge anklickbar aussehen. */
.mh-boot-foto a {
  position: absolute; inset: 0; z-index: 1; border-radius: 8px;
  font-size: 0; color: transparent;
}
.mh-boot-foto a:focus-visible { outline: 2px solid var(--marke); outline-offset: 3px; }
.mh-boot-daten { flex: 1 1 320px; min-width: 0; }
.mh-boot-text { margin: 0 0 14px; color: var(--tinte-2); }
/* Beschriftung links, Wert rechts — eine Definitionsliste in Tabellenform, damit die
   Spalte an derselben Stelle steht wie in den übrigen Tabellen. */
.mh-boot-liste th {
  text-align: left; font-weight: 500; color: var(--tinte-2); width: 46%;
  padding-block: 7px; font-size: 14.5px;
}
.mh-boot-liste td { padding-block: 7px; }
.mh-boot-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 880px) { .mh-boot-paar { grid-template-columns: 1fr; } }

/* ── Adresse am Mitglied ────────────────────────────────────────────────────── */
.mh-adresse { color: var(--tinte-2); font-size: 13.5px; line-height: 1.4; }
.mh-adresse .fehlt { color: var(--offen); }

/* ── Kielwasser-Abgleich ────────────────────────────────────────────────────── */
/* Die Zuordnungszeile: Auswahl, Anteil, Knopf — nebeneinander, solange Platz ist,
   darunter sobald nicht. In der Tabelle wird sie sonst zur dritten Spalte, die
   am Handy alles sprengt. */
.mh-kw-zuordnen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.mh-kw-zuordnen select, .mh-kw-zuordnen input {
  font: inherit; font-size: 13.5px; padding: 6px 8px; border: 1px solid var(--linie);
  border-radius: 7px; background: var(--grund); color: var(--tinte); max-width: 100%;
}
.mh-kw-zuordnen select { flex: 1 1 150px; min-width: 0; }

/* ── Anlage-Assistent ───────────────────────────────────────────────────────── */
/* Eigene Seite ohne Navigation: eine Aufgabe, ein Fortschritt. Schmaler als die
   Anwendung — wer hier ist, liest und tippt, er sucht nicht. */
.mh-anlegen { max-width: 760px; }
.mh-anlegen h1 { margin-bottom: 8px; }

/* Die Stufen. Kein Balken: Vier Wörter sagen mehr als ein Prozentsatz, weil sie
   nennen, was kommt. */
.mh-stufen {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 22px; padding: 0; font-size: 14px;
}
.mh-stufen li {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 20px;
  background: var(--grund); border: 1px solid var(--linie); color: var(--tinte-2);
}
.mh-stufen li .nr { font-weight: 700; color: var(--gut); min-width: 0; }
.mh-stufen li.hier {
  background: var(--marke-w); border-color: var(--marke-h);
  color: var(--tinte); font-weight: 600;
}
.mh-stufen li.durch { color: var(--gut); border-color: #BFE6D5; }

/* Die grosse Wahl im ersten Schritt: zwei Flächen, keine zwei Radiopunkte. Die
   Entscheidung „habe ich ein Bordbuch" bestimmt den ganzen Rest. */
.mh-wahl-gross { border: 0; padding: 0; margin: 4px 0 18px; }
.mh-wahl-gross legend {
  padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px;
}
.mh-wahl-gross label {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  padding: 13px 15px; margin-bottom: 8px; font-weight: 400;
  background: var(--grund); border: 1px solid var(--linie); border-radius: 9px;
  line-height: 1.45;
}
.mh-wahl-gross label:hover { border-color: var(--marke-h); }
/* ⚠️ `width: auto` MUSS hier stehen. `.mh-form input { width: 100% }` hat dieselbe
   Spezifität und steht weiter oben — ohne diese Zeile wird aus dem Auswahlknopf ein
   Balken über die halbe Karte, und der Text quetscht sich einspaltig daneben
   (Christian, 11.10.2026: „anlagefenster geht garnicht"). Dieselbe Falle wie bei den
   Länder-Kästchen am 10.10. */
.mh-wahl-gross input { margin-top: 3px; flex: 0 0 auto; width: auto; }
.mh-wahl-gross label > span { flex: 1 1 auto; min-width: 0; }

/* Die Crew-Auswahl über den Personenfeldern: klein und beiläufig — sie ist eine
   Abkürzung, nicht der Hauptweg. Wer niemanden aus der Crew nimmt, tippt einfach. */
.mh-crew-wahl {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-size: 13.5px; color: var(--tinte-2); font-weight: 500;
}
.mh-crew-wahl select {
  width: auto; min-width: 180px; flex: 0 1 auto; padding: 6px 9px; font-size: 14px;
}

/* Der Knopf für eine weitere Zeile steht für sich — nicht neben „Weiter", damit
   niemand den falschen trifft. */
.mh-leute-mehr { margin: 2px 0 18px; }
.mh-wahl-gross label:has(input:checked) {
  border-color: var(--marke); background: var(--marke-w);
}

/* Personenzeilen: Name, Mail, Anteil in einer Reihe — darunter die Anschrift.
   Unter 720px steht alles untereinander, weil am Handy nichts anderes passt. */
.mh-person {
  border: 1px solid var(--linie); border-radius: 9px;
  padding: 14px 16px 6px; margin-bottom: 14px; background: var(--grund);
}
.mh-person legend {
  padding: 0 7px; font-size: 13px; font-weight: 600; color: var(--tinte-2);
}
.mh-person .reihe { display: flex; gap: 10px; flex-wrap: wrap; }
.mh-person .reihe > span { flex: 1 1 160px; min-width: 0; display: block; }
.mh-person .reihe > span.weit { flex: 2 1 240px; }
.mh-person .reihe > span.schmal { flex: 0 1 100px; }
.mh-person label {
  display: block; font-size: 12.5px; color: var(--tinte-2); margin-bottom: 3px;
  font-weight: 400;
}
.mh-person input {
  width: 100%; font: inherit; font-size: 14.5px; padding: 8px 10px;
  border: 1px solid var(--linie); border-radius: 7px; background: var(--grund);
  color: var(--tinte); margin-bottom: 10px;
}
.mh-person input:focus-visible { outline: 2px solid var(--marke); outline-offset: 1px; }

/* Die Prüftabelle vor der Zahlung — Beschriftung links, Wert rechts. */
.mh-pruef th { text-align: left; font-weight: 500; color: var(--tinte-2); width: 34%;
  padding-block: 9px; vertical-align: top; }
.mh-pruef td { padding-block: 9px; }
.mh-knopf.gross { font-size: 16px; padding: 13px 26px; }

/* Zustimmungen vor dem Kaufknopf — Pflicht, also sichtbar und anklickbar groß. */
.mh-haken {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; cursor: pointer;
}
.mh-haken input { margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; }
.mh-bestellen .mh-knopf { margin-top: 8px; }

/* ── Drucken ────────────────────────────────────────────────────────────────── */
/*
 * Der Weg zum PDF, den jeder Browser schon kann: „Drucken → Als PDF sichern".
 * Eine Bibliothek dafür wäre eine Abhängigkeit, die bei jeder Schriftart und jedem
 * Umlaut neu überzeugt werden will — und das Ergebnis sähe schlechter aus.
 *
 * Gedruckt wird, was auf dem Papier etwas zu suchen hat: die Jahresabrechnung, die
 * Kostenliste, die Beschlüsse. Nicht die Navigation, nicht die Formulare, nicht die
 * Knöpfe — ein ausgedrucktes Eingabefeld ist ein Fleck.
 */
@media print {
  .mh-kopf, .mh-nav, .mh-fuss, .mh-meldung,
  .mh-form, .mh-reihe, form, .mh-knopf, details,
  .mh-stufen, .mh-hinweise { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; }
  .mh-haupt { padding: 0; }
  .mh-innen { max-width: none; padding: 0; }

  /* Karten werden zu Abschnitten: kein Rahmen, kein Schatten, kein Radius — aber ein
     Seitenumbruch davor, wenn es eng wird. */
  .mh-karte {
    border: 0; border-radius: 0; padding: 0; margin: 0 0 18pt;
    break-inside: avoid; box-shadow: none;
  }
  .mh-karte > h2 { font-size: 13pt; margin-bottom: 8pt; }
  h1 { font-size: 17pt; }

  /* Tabellen sind der Grund, warum gedruckt wird. Linien in Grau, Kopfzeile auf
     jeder Seite wiederholt — eine Abrechnung über zwei Seiten ohne Spaltenköpfe
     liest niemand. */
  .mh-tabelle { width: 100%; border-collapse: collapse; }
  .mh-tabelle thead { display: table-header-group; }
  .mh-tabelle th, .mh-tabelle td {
    border-bottom: 0.5pt solid #999; padding: 4pt 6pt; font-size: 10pt;
  }
  .mh-tabelle tr { break-inside: avoid; }

  .mh-pille { border: 0.5pt solid #999; padding: 1pt 4pt; font-size: 9pt; }
  .mh-zahl { font-variant-numeric: tabular-nums; }
  a { color: #000; text-decoration: none; }
  /* Adressen ausschreiben: Ein Link auf Papier, dessen Ziel man nicht sieht, ist
     keiner. Interne Anker bleiben stumm — die führen nirgendwohin. */
  .mh-innen a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }

  /* Woher das Blatt kommt und von wann — sonst liegt irgendwann eine Abrechnung auf
     dem Tisch, von der niemand weiss, welches Jahr sie zeigt. */
  .mh-druckfuss { display: block !important; margin-top: 14pt;
    border-top: 0.5pt solid #999; padding-top: 5pt; font-size: 8.5pt; color: #555; }
}
.mh-druckfuss { display: none; }

/* Wortmarke und Anmelde-Knopf — wie auf der Werbeseite, damit beide Welten
   zusammengehören. „Reeder" abgesetzt: Der Name ist zusammengesetzt, und die Farbe
   zeigt, wo die Fuge sitzt. */
.mh-huus { color: var(--marke-h); }
.mh-marke:hover .mh-huus { color: #fff; }
.mh-anmelden {
  margin-left: auto; padding: 7px 15px; border-radius: 8px;
  border: 1px solid var(--linie-d); color: #fff; text-decoration: none;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.mh-anmelden:hover { background: var(--marke); border-color: var(--marke); text-decoration: none; }

/* Der Nebenweg: da, aber nicht im Weg. Ein <details> als Karte — zugeklappt eine
   Zeile, aufgeklappt das volle Formular. */
.mh-vonhand > summary {
  cursor: pointer; font-size: 14.5px; list-style: none;
}
.mh-vonhand > summary::-webkit-details-marker { display: none; }
.mh-vonhand > summary::before { content: "▸ "; color: var(--marke); }
.mh-vonhand[open] > summary::before { content: "▾ "; }

/* Feiertage: der Name klein neben der Tagesnummer, der Tag leicht getönt. Kein
   eigenes Band — ein Feiertag ist keine Buchung, er ist Hintergrund. */
.mh-tag.feiertag { background-color: #FFFBF2; }
.mh-tag.feiertag.we { background-color: #FFF9EC; }
.mh-feier {
  display: inline-block; margin-left: 5px; font-size: 10px; font-weight: 500;
  color: #8A5115; max-width: 72%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: top;
}
/* Die Länderwahl: zwei Spalten, damit neun Länder nicht neun Zeilen brauchen. */
.mh-laender {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 4px 12px; margin-bottom: 14px;
}
.mh-laender label {
  display: flex; gap: 7px; align-items: center; justify-content: flex-start;
  font-weight: 400; font-size: 14.5px; margin: 0; cursor: pointer;
}
/* ⚠️ `.mh-form input` setzt width:100% — das streckt auch ein Kaestchen und schiebt
   den Text ans andere Ende der Zeile („krum und schief", 10.10.2026). Haekchen sind
   keine Eingabefelder und brauchen ihre eigene Breite. */
.mh-laender input[type=checkbox] {
  width: auto; min-width: 0; flex: 0 0 auto; margin: 0; padding: 0;
}

/* Fehlt das Foto, steht an seiner Stelle die Flaeche zum Ablegen — nicht nichts.
   Der Hochladeteil lag frueher als eigener Abschnitt ganz unten, weit weg von dem,
   wozu er gehoert. */
.mh-boot-foto.leer {
  border: 1px dashed var(--linie); border-radius: 10px; padding: 18px;
  background: var(--flaeche); display: flex; flex-direction: column; justify-content: center;
  min-height: 170px;
}
.mh-foto-form { display: grid; gap: 8px; justify-items: start; }
.mh-boot-foto:not(.leer) .mh-foto-form { margin-top: 10px; }
.mh-foto-form label { font-size: 13.5px; font-weight: 500; display: grid; gap: 2px; }
.mh-foto-form input[type=file] { font-size: 13px; max-width: 100%; }

/* ── Dialoge ───────────────────────────────────────────────────────────────────
   Ein Aenderungsformular gehoert nicht in eine Tabellenzelle: In der schmalen
   letzten Spalte wird daraus eine meterlange Rolle. `[open]`, nie `display` auf
   dem <dialog> selbst — sonst steht die leere Huelle auf jeder Seite. */
.mh-dialog {
  border: none; border-radius: 14px; padding: 0; width: min(620px, calc(100vw - 32px));
  max-height: 86vh; background: var(--karte, #fff); color: var(--tinte);
  box-shadow: 0 24px 60px rgba(16, 32, 48, .28);
}
.mh-dialog::backdrop { background: rgba(16, 32, 48, .45); }
.mh-dialog[open] { display: block; }
.mh-dialog-kopf {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--linie); position: sticky; top: 0;
  background: inherit; border-radius: 14px 14px 0 0;
}
.mh-dialog-zu {
  border: none; background: none; font-size: 24px; line-height: 1; cursor: pointer;
  color: var(--tinte-2); padding: 0 4px;
}
.mh-dialog-blatt { padding: 6px 18px 20px; overflow-y: auto; max-height: calc(86vh - 56px); }
.mh-dialog-blatt section { padding-block: 14px; border-bottom: 1px solid var(--linie); }
.mh-dialog-blatt section:last-child { border-bottom: none; }
.mh-dialog-blatt h3 { font-size: 14px; margin: 0 0 4px; }
.mh-dialog-blatt .mh-form { max-width: none; }
.mh-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 460px) { .mh-zwei { grid-template-columns: 1fr; } }
.mh-knopf.still {
  background: none; color: var(--marke); border: 1px solid var(--linie); font-weight: 500;
}

/* Kopf rechts: Zugang und Sprache nebeneinander. */
.mh-kopf-rechts { display: flex; align-items: center; gap: 10px; }
.mh-sprachwahl { margin: 0; }
.mh-sprachwahl select {
  font: inherit; font-size: 13.5px; padding: 5px 8px; border-radius: 7px;
  border: 1px solid var(--linie); background: var(--grund); color: var(--tinte);
  max-width: 150px;
}
/* Arabisch liest von rechts — das betrifft die ganze Seite, nicht nur den Text. */
[dir=rtl] .mh-tabelle th, [dir=rtl] .mh-tabelle td { text-align: right; }
[dir=rtl] .mh-tabelle th.r, [dir=rtl] .mh-tabelle td.r { text-align: left; }

/* ── Angebotsauswahl ───────────────────────────────────────────────────────────
   Ein Auswahl-Beschluss zeigt n Angebote nebeneinander, jedes mit eigenem Balken
   und derselben Schwellenmarke. Kein Ja/Nein: Die Frage ist „welches davon". */
.mh-b-angebote { display: grid; gap: 12px; margin: 14px 0 4px; }
.mh-angebot {
  border: 1px solid var(--linie); border-radius: 10px; padding: 12px 14px;
  background: var(--grund);
}
.mh-angebot.gewonnen { border-color: var(--gut, #1E9E6A); background: #F3FBF7; }
.mh-angebot .kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 6px;
}
.mh-angebot p { margin: 4px 0 8px; font-size: 14px; }
.mh-angebot-neu { margin-top: 10px; }
.mh-angebot-neu label { visibility: hidden; height: 0; }
.mh-b-thema {
  display: block; font-size: 13px; font-weight: 400; color: var(--tinte-2);
  margin-top: 2px;
}

/* Archivjahre: zusammengeklappt, das laufende und das Vorjahr offen. */
.mh-archiv-jahr { border-top: 1px solid var(--linie); }
.mh-archiv-jahr:first-of-type { border-top: none; }
.mh-archiv-jahr > summary {
  cursor: pointer; padding: 12px 20px; font-weight: 600; font-size: 14.5px;
  list-style-position: inside;
}
.mh-archiv-jahr[open] > summary { color: var(--tinte); }

/* ── Hilfe ─────────────────────────────────────────────────────────────────────
   Eine Seite mit Ankern: Das Inhaltsverzeichnis oben springt, Strg+F findet alles. */
.mh-hilfe-navi {
  display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 16px 20px;
}
.mh-hilfe-navi a { font-size: 14.5px; font-weight: 500; }
.mh-hilfe-text { padding-bottom: 6px; scroll-margin-top: 90px; }
.mh-hilfe-text p { margin: 0 0 12px; max-width: 70ch; line-height: 1.62; }
.mh-hilfe-text h2 { margin-bottom: 10px; }

/* ── Die Saison als Band ───────────────────────────────────────────────────────
   Eine Spalte je Woche: 210 Tage nebeneinander waeren auf dem Telefon drei Pixel
   breit. Die Spalten sind gleich breit, damit dieselbe Spalte in jeder Zeile
   dieselbe Woche meint. */
.mh-saisonband .kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  flex-wrap: wrap; padding: 0 20px;
}
.mh-saisonband .kopf h2 { margin: 0; }
.mh-saisonband .band { padding: 14px 20px 6px; overflow-x: auto; }
.mh-saisonband .monate, .mh-saisonband .spur {
  display: grid; grid-template-columns: 78px repeat(auto-fit, minmax(7px, 1fr));
  gap: 2px; align-items: center; min-width: 420px;
}
.mh-saisonband .monate {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tinte-2); margin-bottom: 4px;
}
.mh-saisonband .spur { margin-bottom: 3px; }
.mh-saisonband .name {
  font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; padding-right: 8px;
}
.mh-saisonband i { height: 17px; border-radius: 3px; display: block; }
.mh-saisonband i.leer { background: var(--flaeche); }
.mh-saisonband i.wartung { background: #C9A227; }
/* Die Art heisst in der Datenbank `gesperrt` — `sperre` traf nie zu, und die Woche
   blieb unsichtbar. */
.mh-saisonband i.gesperrt { background: #9AA6B2; }
/* Die Woche eines Toerns traegt die Personenfarbe `p1`–`p8`. Ohne diese acht Regeln
   war sie durchsichtig: Das Band zeigte nur noch die LUECKEN zwischen den Toerns,
   und jede belegte Woche sah aus wie Papier (Christian, 10.10.2026: „zeigt hier
   keine belegung an"). Dieselben acht Farben wie `.mh-band`, nur kraeftiger —
   ein 17 Pixel hoher Streifen braucht mehr Saettigung als eine Pille mit Schrift. */
.mh-saisonband i.p1 { background: #4A6CC9; }   /* Marine  */
.mh-saisonband i.p2 { background: #2E8B63; }   /* Seegrün */
.mh-saisonband i.p3 { background: #D07B45; }   /* Rost    */
.mh-saisonband i.p4 { background: #8A5CC0; }   /* Flieder */
.mh-saisonband i.p5 { background: #2E8FA8; }   /* Petrol  */
.mh-saisonband i.p6 { background: #C9A227; }   /* Messing */
.mh-saisonband i.p7 { background: #C2557E; }   /* Signal  */
.mh-saisonband i.p8 { background: #7A8C4F; }   /* Oliv    */
.mh-saisonband .zaehler {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--linie); margin-top: 10px;
}
.mh-saisonband .zaehler b { font-size: 22px; font-weight: 600; display: block; }
.mh-saisonband .zaehler small { color: var(--tinte-2); font-size: 12.5px; }

/* Das Fragezeichen im Kopf: Die Hilfe ist auch der elfte Navigationspunkt, aber
   dort sucht sie niemand. */
.mh-hilfe-knopf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--linie);
  font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none;
  color: var(--tinte-2); flex: 0 0 auto;
}
.mh-hilfe-knopf:hover { color: var(--marke); border-color: var(--marke); }

/* ── Die Kasse ─────────────────────────────────────────────────────────────────
   Der Stand gross, die drei Summanden klein darunter: Die Frage ist „reicht das
   Geld", nicht „wie setzt es sich zusammen" — das kommt erst danach. */
.mh-kasse-stand { padding: 4px 20px 2px; }
.mh-kasse-stand .haupt { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mh-kasse-stand .label {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-2);
}
.mh-kasse-stand .zahl {
  font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums;
  font-family: var(--zahl, inherit);
}
.mh-kasse-stand .teile {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linie);
}
.mh-kasse-stand .teile span {
  display: block; font-size: 12.5px; color: var(--tinte-2);
}
.mh-kasse-stand .teile b { font-size: 17px; font-variant-numeric: tabular-nums; }

/* ── Die eingebettete Stripe-Kasse ───────────────────────────────────────────────
   Stripe liefert einen eigenen Rahmen (iframe) und bringt sein eigenes Aussehen mit;
   wir geben ihm nur Platz und den Grund drumherum. Eine Mindesthöhe, damit die Seite
   beim Laden nicht springt — der Rahmen wächst danach selbst. */
.mh-kasse { min-height: 480px; margin-top: 18px; }
.mh-kasse iframe { border: 0; width: 100%; }

/* ── Segelgarderobe: eine Zeile je Segel ─────────────────────────────────────────
   Name breit, Reffstufen schmal — dieselbe Aufteilung wie bei den Miteignern im
   Anlageweg. Auf dem Telefon stehen beide untereinander; eine Auswahl mit vier
   Werten neben einem Textfeld ist bei 400 px nicht mehr zu treffen. */
.mh-segelzeilen { display: flex; flex-direction: column; gap: 10px; }
.mh-segelzeile { display: flex; gap: 12px; align-items: flex-end; }
.mh-segelzeile > span { display: flex; flex-direction: column; gap: 4px; }
.mh-segelzeile > span.weit { flex: 1 1 auto; min-width: 0; }
.mh-segelzeile > span.schmal { flex: 0 0 104px; }
.mh-segelzeile label { font-size: 13px; color: var(--mh-leise, #5d7183); }
/* Ab der zweiten Zeile stehen die Beschriftungen nicht noch einmal da — sie sagen
   dasselbe, und untereinander liest sich die Liste sonst wie ein Formular je Segel. */
.mh-segelzeile label.nurlesbar { display: none; }
.mh-segelzeile input, .mh-segelzeile select { width: 100%; }
@media (max-width: 560px) {
  .mh-segelzeile { flex-direction: column; align-items: stretch; }
  .mh-segelzeile > span.schmal { flex: 1 1 auto; }
  .mh-segelzeile label.nurlesbar { display: block; }
}
