@font-face {
  font-family: "TT Norms Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://www.ritterhaus-uerikon.ch/app/themes/ritterhaus-uerikon/public/build/assets/tt_norms_pro_regular-BeG5V-5w.woff2) format("woff2");
}
@font-face {
  font-family: "TT Norms Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://www.ritterhaus-uerikon.ch/app/themes/ritterhaus-uerikon/public/build/assets/tt_norms_pro_demibold-QDPeXZr-.woff2) format("woff2");
}
:root {
  /* RHV-Grau – primäre Fläche */
  --bg: #f2f2f2;            /* RHV-Grau 5%  */
  --surface: #ffffff;
  --surface-1: #f2f2f3;     /* Greyscale grey-5  */
  --surface-2: #e6e6e8;     /* RHV-Grau 10% / grey-15 */
  --border: #ceced1;        /* Greyscale grey-30 */
  --border-strong: #a0a0a4; /* Greyscale grey-50 */
  --text: #000000;          /* RHV-Schwarz */
  --text-2: #737377;        /* Greyscale grey-70 */
  --text-3: #a0a0a4;        /* Greyscale grey-50 */
  /* RHV-Blau – steht für den Zürichsee */
  --accent: #0075bd;
  --accent-bg: #dcebf7;     /* Blau Tint 20% */
  --accent-dark: #005d97;   /* Blau, abgedunkelt für Hover-/Aktivzustände */
  /* RHV-Grün – steht für den Garten */
  --green: #009987;
  --green-strong: #33aea0;  /* Grün Tint 80%, auffälliger für Entscheid-Text */
  --green-bg: #eef8f6;      /* Grün Tint 10% */
  /* Neutral (kein Lila/Amber im Brand Book) – für Entwurf-Status */
  --purple: #454447;        /* Greyscale grey-90 */
  --purple-bg: #e6e6e8;     /* Greyscale grey-15 */
  /* RHV-Rot – steht für die Häuser, dient als Hinweis-/Warnakzent */
  --amber: #d50039;
  --amber-bg: #fbeef1;      /* Rot Tint 10% */
  --radius: 8px;        /* rounded-lg  */
  --radius-sm: 6px;     /* rounded-md  */
  --shadow: 0 0 0 1px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.08);
  --shadow-sm: 0 0 0 1px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.06);
  --transition: 150ms ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "TT Norms Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; color: var(--accent-dark); }

/* ── Topbar ── */
.topbar {
  background: var(--surface);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.07);
}
.topbar .inner {
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 62px;
}
.brand {
  font-size: 21px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--text); letter-spacing: -.3px;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.nav {
  display: flex; align-items: center; gap: 4px;
  font-size: 18px; font-weight: 500;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--text-2);
  padding: 7px 12px; border-radius: var(--radius-sm);
  white-space: nowrap; transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: var(--surface-1); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.avatar,
.nav a.avatar {
  width: 38px; height: 38px; border-radius: 50%; padding: 0;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0; transition: background var(--transition);
}
.avatar:hover { background: var(--accent); color: #fff; text-decoration: none; }
.icon-link {
  width: 38px; height: 38px; padding: 0;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: color var(--transition);
}
.icon-link svg { width: 26px; height: 26px; }
.icon-link:hover, .icon-link.active { color: var(--accent); text-decoration: none; }

/* ── Layout ── */
.wrap { padding: 28px; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.card-head {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  background: var(--surface);
}
.card-body { padding: 24px 26px; }

/* ── Typography ── */
h1 { font-size: 25px; margin: 0; font-weight: 700; letter-spacing: -.3px; line-height: 1.3; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
.muted { color: var(--text-2); font-size: 18px; }
.section-label {
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3);
  margin: 26px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-label:first-child { margin-top: 0; }

/* ── Entries ── */
.entry {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: box-shadow var(--transition);
}
.entry:hover { box-shadow: var(--shadow-sm); }
.entry.accent { border-color: rgba(0,117,189,.35); }
.entry.draft { background: var(--surface-1); }
.entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.entry-title { font-weight: 600; font-size: 19px; display: block; line-height: 1.3;}
.entry-meta { display: flex; gap: 16px; margin-top: 32px; font-size: 17px; color: var(--text-3); }

/* ── Pills ── */
.pill {
  font-size: 15px; font-weight: 500;
  padding: 4px 12px; border-radius: 999px;
  white-space: nowrap; display: inline-block;
}
.pill-veroeffentlicht { background: var(--green-bg);  color: var(--green);  }
.pill-entwurf         { background: var(--purple-bg); color: var(--purple); }
.pill-bearbeitung     { background: var(--accent-bg); color: var(--accent); }
.pill-abgeschlossen   { background: var(--green-bg);  color: var(--green);  }
.pill-offen           { background: var(--surface-2); color: var(--text-2); }
.pill-thema           { background: var(--amber-bg);  color: var(--amber);  font-weight: 600; }
.pill-angenommen      { background: var(--green-bg);  color: var(--green);  }
.pill-abgelehnt       { background: var(--amber-bg);  color: var(--amber);  }

/* ── Listen aus text_markdown() (Eintrags-Text) ── */
.md-list { margin: 4px 0; padding-left: 20px; }
.md-list li { margin-bottom: 2px; }
.md-heading { margin: 12px 0 4px; font-weight: 700; }
h3.md-heading { font-size: 20px; }
h4.md-heading { font-size: 18px; }
h5.md-heading { font-size: 16px; }

/* ── List / Rows ── */
.list {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 19px;
  transition: background var(--transition);
}
.row:last-child { border-bottom: none; }
.row:hover { background: var(--surface-1); }
.row-vergangen { opacity: .6; }

/* ── Aufgaben-Zeilen: Checkbox+Text vs. Badge/Datum/Löschen als zwei Flex-Blöcke,
   damit Letztere auf Mobile sauber in eine neue Zeile umbrechen können ── */
.todo-row { flex-wrap: wrap; }
.todo-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.todo-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }

/* ── Buttons ── */
button, .btn {
  font: inherit; font-size: 18px; font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  height: 44px; padding: 0 20px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--surface-2); text-decoration: none; box-shadow: var(--shadow-sm); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--accent-dark); box-shadow: 0 2px 8px rgba(0,117,189,.35); }

/* ── Inputs ── */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], textarea, select {
  font: inherit; font-size: 19px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus,
input[type=date]:focus, input[type=number]:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,117,189,.12);
}
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select {
  height: 46px; padding: 0 14px;
}
input:disabled, textarea:disabled, select:disabled {
  color: var(--text); cursor: not-allowed;
  border-color: var(--surface-2);
}
input[type=checkbox]:disabled { cursor: not-allowed; opacity: .5; }
/* iOS rendert input[type=date] sonst mit nativer Menulist-Chrome (eigenes Innenpadding/-höhe,
   das height/padding hier nicht vollständig übernimmt) — dadurch höher als Textfelder und
   Box-Breite stimmt nicht, das Steuerelement überlappt Nachbarfelder. appearance:none erzwingt
   dasselbe Box-Modell wie bei den Textfeldern. */
input[type=date] {
  -webkit-appearance: none;
  appearance: none;
}
input[type=date]::-webkit-date-and-time-value {
  text-align: left;
}
/* Overlay-Platzhalter für input[type=date], siehe assets/date-placeholder.js */
.date-placeholder-wrap { position: relative; display: block; width: 100%; }
.date-placeholder-hint {
  position: absolute; top: 0; left: 14px;
  height: 46px; line-height: 44px;
  font-size: 19px; color: var(--text-3);
  pointer-events: none;
}
select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a0a0a4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
textarea { min-height: 90px; resize: vertical; padding: 12px 14px; line-height: 1.55; }
label { font-size: 17px; font-weight: 600; display: block; margin-bottom: 7px; color: var(--text); }
.field { margin-bottom: 18px; }
/* Eigenständiger Titel oberhalb eines Anhänge-Bereichs — unabhängig vom vorausgehenden Element immer gleicher Abstand */
label.anhaenge-titel { margin-top: 24px; }

/* ── Formular-Zeilen: Flexbox, iOS-sicher ──
   .frow   = Flex-Container (nie direkt auf <form>, immer auf innerem <div>)
   Modifier-Klassen auf den .field-Kindelelementen:
   .f-grow = wächst, min. 160px   .f-wide = max. 200px
   .f-mid  = max. 170px           .f-sm   = max. 120px
   .f-btn  = Inhaltsgrösse        .f-full = volle Breite
── */
.frow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 18px; /* wie .field, da .frow > .field selbst kein Margin mehr trägt */
}
.frow > .field { margin: 0; min-width: 0; }
.f-grow { flex: 1 1 160px; min-width: 0; }
.f-wide { flex: 0 1 200px; min-width: 0; }
.f-mid  { flex: 0 1 170px; min-width: 0; }
.f-sm   { flex: 0 1 120px; min-width: 0; }
.f-btn  { flex: 0 0 auto;  min-width: 0; }
.f-full { flex: 1 1 100%;  min-width: 0; }
.f-date { flex: 0 1 200px; min-width: 175px; }

/* ── Feedback ── */
.flash {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-bg); color: var(--green);
  padding: 10px 14px; border-radius: var(--radius-sm);
  margin-bottom: 24px; font-size: 16px; font-weight: 500;
}
.banner {
  display: flex; align-items: center; gap: 8px;
  background: var(--amber-bg); color: var(--amber);
  font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.strike { text-decoration: line-through; opacity: .55; }

/* ── Card-Head Button-Gruppe ── */
.card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Search bar (Memos etc.) ── */
.search-bar { display: flex; align-items: center; gap: 10px; }
.search-bar input { width: 200px; }

/* ── Entry actions (right side in entry-head) ── */
.entry-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0;
}

/* ── Sitzungsmodus – Punktliste ── */
.punkt-row { display: flex; align-items: flex-start; gap: 8px; font-size: 18px; margin-bottom: 8px; }
.punkt-icon { width: 18px; display: flex; justify-content: center; flex-shrink: 0; margin-top: 3px; }
.punkt-content { flex: 1; min-width: 0; }
.punkt-meta { display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; }

/* ── Admin – Mitgliederliste ── */
.member-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.member-name { flex: 1; min-width: 0; }
.member-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Lucide icons ── */
.lucide {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.125em;
  stroke-width: 2; flex-shrink: 0;
}

/* ── Aufklappbare Checkbox-Liste (z. B. Memo-Empfänger) ── */
.checkbox-list-details summary {
  cursor: pointer;
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 8px;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.checkbox-list-details summary::-webkit-details-marker { display: none; }
.checkbox-list-details summary .lucide { color: var(--text); transition: transform var(--transition); }
.checkbox-list-details[open] summary { margin-bottom: 10px; }
.checkbox-list-details[open] summary .lucide { transform: rotate(45deg); }

/* ── Memo-Archiv (Accordion für bereits gelesene Memos) ── */
.memo-archiv { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.memo-archiv > summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--text-2);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.memo-archiv > summary::-webkit-details-marker { display: none; }
.memo-archiv > summary .lucide { transition: transform var(--transition); }
.memo-archiv[open] > summary { margin-bottom: 10px; }
.memo-archiv[open] > summary .lucide { transform: rotate(90deg); }

/* ── Checkbox-Liste (mehrere Optionen als Checkboxen) ── */
.checkbox-list {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 4px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: normal;
  font-size: 18px;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.check-item:hover { background: var(--surface-1); }
.check-item input[type=checkbox] { flex-shrink: 0; }

/* ── Checkbox ── */
input[type=checkbox] {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid var(--border-strong); border-radius: 6px;
  background: var(--surface); cursor: pointer;
  vertical-align: middle;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
input[type=checkbox]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,117,189,.18);
}
input[type=checkbox]:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2020/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/14px no-repeat;
  border-color: var(--accent);
}

/* ── Settings ── */
.settings-wrap { max-width: 800px; }
.settings-header {
  display: flex; align-items: center; gap: 18px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.settings-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; flex-shrink: 0;
}
.settings-header-info h2 { margin: 0 0 2px; font-size: 20px; font-weight: 700; }
.settings-header-info p  { margin: 0; font-size: 16px; color: var(--text-2); }
.settings-row {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-desc h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--text); }
.settings-desc p  { margin: 0; font-size: 16px; color: var(--text-2); line-height: 1.55; }
.settings-form .field { margin-bottom: 14px; }
.settings-form .field:last-of-type { margin-bottom: 0; }
.settings-form label { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.settings-form input { font-size: 17px; height: 40px; }
.settings-footer {
  display: flex; justify-content: flex-end; margin-top: 16px;
}
.pill-green { background: var(--green-bg); color: var(--green); }
@media (min-width: 620px) {
  .settings-row { grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
}

/* ── Login-Cols ── */
.login-cols {
  display: grid;
  grid-template-columns: 1fr;
}
.login-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0; color: var(--text-3); font-size: 15px;
}
.login-sep div { flex: 1; height: 1px; background: var(--border); }
@media (min-width: 480px) {
  .login-cols { grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start; }
  .login-sep  { flex-direction: column; margin: 0; }
  .login-sep div { flex: 1; width: 1px; height: auto; }
}

/* ── Dropzone (Datei-Upload mit Drag-and-Drop, siehe assets/dropzone.js) ── */
.dropzone {
  position: relative;
  flex: 1 1 auto; min-width: 0;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.dropzone:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-bg); box-shadow: var(--shadow-sm); }
.dropzone.has-file { border-style: solid; border-color: var(--green); background: var(--green-bg); }
.dropzone input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; margin: 0; z-index: 1;
}
.dropzone-label { min-width: 0; }
.dropzone-icon { color: var(--text-3); flex-shrink: 0; transition: color var(--transition); }
.dropzone.dragover .dropzone-icon { color: var(--accent); }
.dropzone.has-file .dropzone-icon { color: var(--green); }
.dropzone-text { color: var(--text-2); font-size: 16px; display: block; }
.dropzone-text strong { color: var(--accent); font-weight: 600; }
.dropzone-file {
  font-weight: 600; color: var(--text); font-size: 16px; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Protokoll-Ansicht ── */
.protokoll-inhalt { max-width: 70ch; }
.protokoll-abwesend {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 22px;
  font-size: 18px;
  color: var(--text-2);
}
.protokoll-abwesend strong { color: var(--text); font-weight: 700; }
.protokoll-eintrag { margin-bottom: 24px; }
.protokoll-eintrag:last-child { margin-bottom: 0; }
.protokoll-titel { font-weight: 700; font-size: 20px; line-height: 1.35; }
.protokoll-text { margin-top: 5px; font-size: 18px; }
.callout {
  display: flex; gap: 10px;
  margin-top: 12px; padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--green);
  background: var(--green-bg);
}
.callout-icon { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.callout-body { min-width: 0; }
.callout-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--green); margin-bottom: 3px;
}
.callout-text { font-size: 18px; font-weight: 600; color: var(--text); white-space: pre-wrap; }
.callout-kommentar { border-left-color: var(--accent); background: var(--accent-bg); }
.callout-kommentar .callout-icon,
.callout-kommentar .callout-label { color: var(--accent); }
.protokoll-anhang { margin-top: 8px; font-size: 15px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .topbar .inner { padding: 0 16px; height: 56px; }
  .brand { font-size: 19px; }
  .brand-text { display: none; }
  .checkbox-list { grid-template-columns: 1fr; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 10px; font-size: 17px; }
  .wrap { padding: 14px; }
  .card-head { padding: 16px 18px; }
  .card-body { padding: 16px 18px; }
  h1 { font-size: 22px; }
  .row { padding: 13px 16px; font-size: 18px; }
  label { font-size: 16px; margin-bottom: 5px; }
  .frow { gap: 10px; }
  .actions { gap: 8px; }
  .actions button, .actions .btn { flex: 1 1 auto; padding: 0 12px; font-size: 17px; justify-content: center; }
  .form-grid,
  .inline-form { grid-template-columns: 1fr !important; }

  /* Datumfelder: volle Breite wie andere Inputs */
  .f-date { flex: 1 1 100%; min-width: 0; }

  /* Card-Head: alle Kinder stapeln, card-actions-Buttons teilen Breite */
  .card-head > * { flex: 1 1 100%; min-width: 0; }
  .card-actions > .btn, .card-actions > button { flex: 1 1 auto; justify-content: center; padding: 0 12px; font-size: 17px; }
  .card-actions > form { flex: 1 1 auto; }
  .card-actions > form button { width: 100%; justify-content: center; }

  /* Entry-Cards: Inhalt und Pills vertikal stapeln */
  .entry-head { flex-direction: column; gap: 6px; }
  .entry-actions { flex-direction: row; align-self: flex-start; align-items: center; flex-shrink: 1; }

  /* frow: f-btn-Button immer eigene Zeile (iOS-Fix) */
  .frow > .f-btn { flex: 1 1 100%; }
  .frow > .f-btn > button,
  .frow > .f-btn > .btn { width: 100%; justify-content: center; }

  /* frow-stack: alle Felder volle Breite auf mobile */
  .frow-stack > * { flex: 1 1 100%; }

  /* Search-Bar: flexibel auf mobile */
  .search-bar { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; }
  .search-bar input { flex: 1; min-width: 0; width: auto; }

  /* Sitzungsmodus – Abwesende/Mitgliederliste */
  .member-name { flex: 1 1 100%; }
  .member-actions { flex: 0 0 100%; }
  .member-actions select { flex: 1; }

  /* Aufgaben-Zeilen: Checkbox oben links + Text (mehrzeilig), darunter
     Badge/Datum/Löschen in eigener Zeile statt zusammengequetscht */
  .todo-main { flex: 1 1 100%; align-items: flex-start; }
  .todo-text { flex-basis: 100%; white-space: normal; overflow: visible; text-overflow: unset; }
  .todo-meta { flex: 1 1 100%; margin-left: 0; }
}

/* Desktop: Datumfelder schmal, aber breit genug für natives iOS-Datumswidget
   (unter ~175px zeigt iOS weder Platzhalter noch respektiert es die Boxbreite —
   das Steuerelement rendert dann zu breit/zu hoch und überlappt Nachbarfelder) */
@media (min-width: 641px) {
  .frow > .field:has(input[type=date]) { flex: 0 1 200px; min-width: 175px; }
}
