/* Portal 2.21.24: ruhige, einheitliche Oberflächen über dem vollständigen
   Admin-Stylesheet. Keine Layout-Regeln für die native iOS-App. */
:root {
  --sfp-bg: #102330;
  --sfp-card: #172e3e;
  --sfp-card-alt: #1d394b;
  --sfp-border: #34566a;
  --sfp-border-strong: #52778e;
  --sfp-text: #f0f7fa;
  --sfp-muted: #b2c6d0;
  --sfp-radius-lg: 18px;
  --sfp-shadow-card: 0 16px 40px rgba(2, 15, 25, .17);
}

body {
  background:
    radial-gradient(ellipse at 52% -18%, rgba(63, 130, 158, .28), transparent 54%),
    var(--sfp-bg);
}

.app-shell-header { gap: 16px; }
.primary-nav {
  background: rgba(16, 35, 48, .95);
  border-bottom-color: rgba(150, 225, 255, .18);
  border-radius: 0 0 14px 14px;
}
.primary-nav .nav-btn,
.account-menu-item,
.section-menu-item { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.primary-nav .nav-btn:hover:not(:disabled) { transform: translateY(-1px); }
.primary-nav .nav-btn.active { box-shadow: inset 0 -3px 0 rgba(12, 42, 56, .25); }

.card {
  background: linear-gradient(160deg, rgba(31, 61, 79, .75), rgba(23, 46, 62, .94) 55%), var(--sfp-card);
  border-color: var(--sfp-border);
}
.event-list-item {
  border-color: var(--sfp-border);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.event-list-item:hover { border-color: var(--sfp-border-strong); transform: translateY(-1px); }
.event-list-main { cursor: pointer; }
.event-list-main:focus-visible,
.board-meeting-card:focus-visible,
.nav-btn:focus-visible,
.account-menu-item:focus-visible {
  outline: 3px solid var(--sfp-primary);
  outline-offset: 3px;
}

/* Der Vorstand ist eine Arbeitsfläche, keine zusätzliche Marketing-Karte. */
.board-home > .section-title-row {
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sfp-border);
}
.board-home > .section-title-row h2 { margin-bottom: 5px; border: 0; padding: 0; }
.board-home > .section-title-row p { margin: 0; max-width: 62ch; }
.board-meeting-card {
  background: linear-gradient(110deg, rgba(39, 78, 99, .62), rgba(20, 47, 64, .86));
  border-color: var(--sfp-border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(3, 19, 29, .1);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.board-meeting-card:hover {
  border-color: var(--sfp-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(3, 19, 29, .2);
}
.board-date-tile { background: rgba(150, 225, 255, .1); }
.board-panel { background: rgba(9, 30, 43, .24); }

@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  .primary-nav { display: none; }
  .account-menu-panel { max-width: min(360px, calc(100vw - 24px)); }
}
@media (max-width: 760px) {
  .app-shell-header { background: rgba(16, 35, 48, .97); }
  .board-home > .section-title-row { align-items: stretch; flex-direction: column; }
  .board-home > .section-title-row > .btn { width: 100%; }
  .board-meeting-card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .board-date-tile { width: max-content; min-width: 0; padding: 7px 10px; }
  .board-meeting-meta { grid-column: 1; justify-items: start; text-align: left; }
  .board-meeting-card > .chevron { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .primary-nav .nav-btn, .account-menu-item, .section-menu-item,
  .event-list-item, .board-meeting-card { transition: none; }
  .primary-nav .nav-btn:hover:not(:disabled), .event-list-item:hover,
  .board-meeting-card:hover { transform: none; }
}

/* v2.21.26: eine Hauptgruppe, darunter klar erkennbare Verwaltungswege. */
.administration-navigation {
  margin: 22px 0 24px;
  padding: 22px 24px 7px;
  border: 1px solid var(--sfp-border);
  border-radius: var(--sfp-radius-lg);
  background: rgba(23, 46, 62, .78);
}
.administration-navigation-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 22px;
  margin-bottom: 17px;
}
.administration-navigation-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.administration-navigation-heading p { margin: 0; }
.administration-section-menu { margin-bottom: 0; }
.administration-section-menu .section-menu-item.active {
  box-shadow: inset 0 -2px 0 rgba(12, 42, 56, .28);
}
.administration-section-menu .section-menu-item:focus-visible,
.administration-section-menu .section-menu-trigger:focus-visible {
  outline: 3px solid var(--sfp-primary);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .administration-navigation { margin: 16px 0 20px; padding: 18px 15px 12px; }
  .administration-navigation-heading { display: block; margin-bottom: 13px; }
  .administration-navigation-heading p { margin-top: 5px; font-size: .85rem; }
  .administration-section-menu .section-menu-list { grid-template-columns: 1fr; }
}

/* v2.21.27: Vorstand und Events teilen dieselbe visuelle Hierarchie. */
.board-home,
.board-detail { gap: 0; }
.board-page-head { align-items: center; }
.board-page-head h1,
.board-detail-head h1 { margin: 0; }
.board-intro {
  margin: 8px 0 22px;
  max-width: 68ch;
  line-height: 1.55;
}
.board-meeting-list { gap: 10px; }
.board-meeting-row {
  margin: 0;
  min-width: 0;
  border-radius: 12px;
}
.board-meeting-row .event-list-main { min-height: 76px; }
.board-meeting-row .event-list-title-line { gap: 9px; }
.board-meeting-row .event-list-title { overflow-wrap: anywhere; }
.board-meeting-row .event-list-arrow { flex: 0 0 auto; }
.board-meeting-side {
  max-width: 270px;
  display: grid;
  gap: 7px;
  justify-items: end;
  text-align: right;
}
.board-status {
  max-width: 100%;
  background: rgba(150, 225, 255, .11);
  color: var(--sfp-text);
  border: 1px solid var(--sfp-border);
  white-space: normal;
  text-align: center;
}
.board-meeting-counts {
  color: var(--sfp-muted);
  font-size: .79rem;
  line-height: 1.4;
}
.board-detail-head {
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sfp-border);
}
.board-detail-head > div:first-child { min-width: 0; }
.board-detail-head .tasks-actions { justify-content: flex-end; }
.board-summary-strip { margin: 20px 0; }
.board-summary-strip > span,
.board-panel {
  background: var(--sfp-card-alt);
  border: 1px solid var(--sfp-border);
  border-radius: 12px;
}
.board-summary-strip > span { padding: 14px 16px; }
.board-panel { margin-top: 20px; padding: 20px; }
.board-field { display: grid; gap: 7px; min-width: 0; }
.board-field > input,
.board-field > select,
.board-field > textarea { width: 100%; margin: 0; }
.dlg-form .row > .board-field { flex: 1 1 180px; }
.board-form .board-quorum-row > .board-field { flex: 1 1 260px; }
.board-form .board-quorum-check { flex: 1 1 220px; }
.table-scroll-hint { display: none; }
.table-scroll:focus-visible { outline: 3px solid var(--sfp-primary); outline-offset: 3px; }

@media (max-width: 760px) {
  .table-scroll-hint { display: block; margin: 0 0 8px; color: var(--sfp-muted); font-size: .82rem; }
  .board-page-head { align-items: stretch; }
  .board-page-head .btn { width: 100%; }
  .board-meeting-row { align-items: stretch; flex-direction: column; gap: 0; }
  .board-meeting-row .event-list-main { min-height: 0; }
  .board-meeting-side {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    padding: 2px 10px 8px;
    text-align: left;
  }
  .board-meeting-counts { text-align: right; }
  .board-detail-head { flex-direction: column; }
  .board-detail-head .tasks-actions { width: 100%; justify-content: flex-start; }
  .board-detail-head .tasks-actions .btn { flex: 1 1 auto; }
  .board-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .board-summary-strip > span { min-width: 0; padding: 11px 12px; }
  .board-summary-strip b { overflow-wrap: anywhere; }
  .board-panel { padding: 16px; }
}
@media (max-width: 430px) {
  .board-meeting-side { display: grid; justify-items: start; }
  .board-meeting-counts { text-align: left; }
}
