/* VereinsFair One · Feinschliff (rc142)
   Wird als letztes Stylesheet geladen: Korrekturen aus dem Seiten-Rundgang (Handy/PC, hell/dunkel),
   kompaktere Kennzahlen am Handy und ruhigere, schnellere Animationen. */

/* ---------- Überschriften: lange deutsche Wörter sauber trennen ---------- */
.dashboard-main h1, .mp-main h1, .dashboard-main h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }

/* ---------- Kennzahlen: Wörter statt Zahlen nicht riesig ---------- */
.dashboard-main .metric-word { font-size: clamp(1.02rem, 2.4vw, 1.3rem) !important; line-height: 1.2; overflow-wrap: anywhere; }

/* ---------- Handy: Kennzahlen zweispaltig und kompakt ---------- */
@media (max-width: 640px) {
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin: 12px 0 !important;
  }
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > :is(article, a) { min-width: 0; }
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > a > article { height: 100%; }
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > article,
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > a > article {
    min-height: 0 !important; padding: 14px 15px !important; gap: 4px !important; border-radius: 16px !important; min-width: 0; align-content: start !important;
  }
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > :is(article, a):last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > article > :is(span, small):first-child,
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > a > article > :is(span, small):first-child {
    font-size: .64rem !important; letter-spacing: .06em; line-height: 1.25; overflow-wrap: anywhere;
  }
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > article > strong,
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > a > article > strong {
    font-size: 1.32rem !important; line-height: 1.15; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; min-width: 0 !important;
  }
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > article > :is(small, p, em):not(:first-child),
  .dashboard-main :is(.finance-metrics, .communication-metrics, .portal-metrics, .inspection-metrics, .req-metrics) > a > article > :is(small, p, em):not(:first-child) {
    font-size: .74rem !important; line-height: 1.3; margin: 0;
  }
  .dashboard-main .facility-summary > article { min-width: 0; }
  .dashboard-main .facility-summary small { overflow-wrap: anywhere; }

  /* Kopfbereich: viele Knöpfe zweispaltig statt endlos untereinander */
  .dashboard-main :is(.page-heading, .facility-page-hero, .bank-heading) .heading-actions {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%;
  }
  .dashboard-main :is(.page-heading, .facility-page-hero, .bank-heading) .heading-actions > * { width: 100%; min-width: 0; margin: 0; }
  .dashboard-main :is(.page-heading, .facility-page-hero, .bank-heading) .heading-actions > :is(a, button, form, details) { font-size: .84rem; }
  .dashboard-main :is(.page-heading, .facility-page-hero, .bank-heading) .heading-actions > :last-child:nth-child(odd),
  .dashboard-main :is(.page-heading, .facility-page-hero, .bank-heading) .heading-actions > :only-child { grid-column: 1 / -1; }
  .dashboard-main :is(.page-heading, .facility-page-hero, .bank-heading) .heading-actions :is(a, button) { min-height: 42px; padding-left: 10px !important; padding-right: 10px !important; white-space: normal; text-align: center; justify-content: center; line-height: 1.2; }
  .dashboard-main :is(.page-heading, .facility-page-hero, .bank-heading) .heading-actions form > button { width: 100%; }

  /* Filterzeilen dürfen nicht aus dem Bild laufen: Auswahlfelder teilen sich eine Zeile, Suche und Knopf volle Breite */
  .dashboard-main :is(.work-filter, .filter-bar, .communication-filter) { display: flex !important; flex-wrap: wrap; gap: 8px !important; min-width: 0; }
  .dashboard-main :is(.work-filter, .filter-bar, .communication-filter) > *:not(.visually-hidden):not([type=hidden]) { flex: 1 1 140px; min-width: 0; margin: 0; }
  .dashboard-main :is(.work-filter, .filter-bar, .communication-filter) > :is(input[type=search], input[type=text], button, a, .filter-wide, input:not([type]), label:has(input[type=search]), label:has(input[type=text]), label:has(input:not([type]))) { flex-basis: 100% !important; }
  .dashboard-main :is(.work-filter, .filter-bar, .communication-filter) :is(select, input) { min-width: 0; width: 100%; max-width: 100%; }
  .dashboard-main :is(.work-filter, .filter-bar, .communication-filter) > label { display: grid; gap: 4px; }

  /* Mitgliederanfragen: Kopfbereich nicht mehr links abgeschnitten */
  .dashboard-hero.req-hero { display: block; padding: 22px 20px !important; }
  .dashboard-hero.req-hero > div { min-width: 0; }
  .dashboard-hero.req-hero h1, html[data-theme] body.dashboard-page .dashboard-main .dashboard-hero.req-hero h1 { font-size: 1.5rem !important; }
  /* Tab-Leiste etwas deckender: Text dahinter stört weniger */
  .vf-tabbar { background: rgba(255, 255, 255, .93) !important; }
  html[data-theme="dark"] .vf-tabbar { background: rgba(14, 22, 40, .94) !important; }
}

/* Sicherheitsnetz: Hauptbereich nie breiter als der Bildschirm */
.dashboard-workspace, .dashboard-main { min-width: 0; }
.dashboard-main > * { max-width: 100%; }

/* ---------- Animationen: kürzer, ruhiger, ohne Wiederholung beim Seitenwechsel ---------- */
.dashboard-nav section { animation: none !important; }
.vf-rise { animation-duration: .34s !important; animation-delay: calc(min(var(--i, 0), 5) * 28ms) !important; }
.dashboard-hero, .page-heading, .member-hero, .portal-welcome, .facility-page-hero, .facility-form-intro { animation-duration: .34s !important; }
.dashboard-metrics, .communication-metrics, .facility-summary, .finance-metrics, .portal-metrics, .inspection-metrics,
.dashboard-content-grid, .detail-layout, .communication-form-layout, .portal-layout, .finance-layout, .setup-layout,
.filter-bar, .communication-filter, .data-panel, .cora-card, .form-section { animation-duration: .32s !important; animation-delay: .04s !important; }
.communication-row, .inspection-row, .announcement-preview, .dashboard-table tbody tr, .dashboard-task-list > a { animation-duration: .28s !important; }
.dashboard-notification span, .dashboard-count { animation-duration: .3s !important; animation-delay: .15s !important; }
.dash-ring .value, .dash-bar span { animation-duration: .8s !important; }
.mp-main > * { animation-duration: .32s !important; }

/* Sparsame Geräte (Datensparmodus, wenig Speicher): Dauer-Effekte aus */
html.vf-lite :is(.dashboard-hero, .page-heading, .portal-cora, .mp-hero)::before,
html.vf-lite :is(.dashboard-hero, .page-heading, .portal-cora, .mp-hero)::after,
html.vf-lite .cora-card::after, html.vf-lite .dashboard-rolebar::after { animation: none !important; }
html.vf-lite :is(.dashboard-ambient span, .dashboard-ambient i, .cora-mark, .dashboard-cora-mark, .dashboard-all-clear > span, .session-status span, .dashboard-status i) { animation: none !important; }
html.vf-lite .vf-rise { animation: none !important; }
html.vf-lite * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ---------- Ladeplatzhalter beim Seitenwechsel ---------- */
html.vf-navigating .dashboard-main { position: relative; }
html.vf-navigating .dashboard-main::after {
  content: ""; position: absolute; inset: 0; z-index: 30; pointer-events: none; border-radius: 22px;
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 45%, transparent 70%) 0 0 / 220% 100% no-repeat,
    rgba(244, 248, 255, .55);
  opacity: 0; animation: vf-skeleton-in .2s .35s ease forwards, vf-skeleton-shine 1.1s .35s linear infinite;
}
html[data-theme="dark"].vf-navigating .dashboard-main::after {
  background: linear-gradient(100deg, transparent 20%, rgba(120, 160, 255, .12) 45%, transparent 70%) 0 0 / 220% 100% no-repeat, rgba(8, 14, 30, .45);
}
@keyframes vf-skeleton-in { to { opacity: 1; } }
@keyframes vf-skeleton-shine { from { background-position: 120% 0, 0 0; } to { background-position: -120% 0, 0 0; } }

@media (prefers-reduced-motion: reduce) {
  html.vf-navigating .dashboard-main::after { animation: vf-skeleton-in .01s .35s forwards; }
  .mp-fold-body { transition: none !important; }
}

/* Dokumente: „Zurücksetzen“ als unaufdringlicher Link */
.dashboard-main .filter-bar > a.quiet-link { font-size: .86rem; font-weight: 650; align-self: center; text-align: center; }

/* ---------- Finanzseiten: Status-Chips, Fortschritt, Karten am Handy ---------- */
.fin-chip { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 720; line-height: 1.5; letter-spacing: .01em; color: #3b4a63; background: rgba(15, 23, 42, .06); border: 1px solid rgba(15, 23, 42, .08); }
.fin-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.fin-chip.is-soft { color: #8a5a00; background: rgba(245, 180, 40, .12); border-color: rgba(245, 180, 40, .3); }
.fin-chip.is-warn { color: #b25a00; background: rgba(255, 140, 30, .13); border-color: rgba(255, 140, 30, .32); }
.fin-chip.is-urgent { color: #b42318; background: rgba(240, 68, 56, .1); border-color: rgba(240, 68, 56, .3); }
.fin-chip.is-calm { color: #1a5fd0; background: rgba(26, 124, 255, .09); border-color: rgba(26, 124, 255, .25); }
.fin-chip.is-ok { color: #067647; background: rgba(18, 183, 106, .1); border-color: rgba(18, 183, 106, .3); }
html[data-theme="dark"] .fin-chip { color: #cbd5e1; background: rgba(148, 163, 184, .12); border-color: rgba(148, 163, 184, .2); }
html[data-theme="dark"] .fin-chip.is-soft { color: #fcd27a; } html[data-theme="dark"] .fin-chip.is-warn { color: #ffb066; }
html[data-theme="dark"] .fin-chip.is-urgent { color: #ff9b91; } html[data-theme="dark"] .fin-chip.is-calm { color: #93c5fd; } html[data-theme="dark"] .fin-chip.is-ok { color: #6ee7b7; }

.dashboard-main .dunning-list .dunning-row { position: relative; border-radius: 16px; transition: background .2s ease, box-shadow .25s ease; }
.dashboard-main .dunning-list .dunning-row > div:first-child { display: grid; gap: 2px; }
.dashboard-main .dunning-list .dunning-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: transparent; }
.dashboard-main .dunning-list .dunning-row.is-soft::before { background: #f5b428; }
.dashboard-main .dunning-list .dunning-row.is-warn::before { background: #ff8c1e; }
.dashboard-main .dunning-list .dunning-row.is-urgent::before { background: #f04438; }
.dashboard-main .dunning-list .dunning-row.is-calm::before { background: #1a7cff; }
.dashboard-main .dunning-list .dunning-row { padding-left: 16px !important; }
.dashboard-main .ready-text.fin-chip { margin-top: 4px; }

.fin-progress { display: grid; gap: 9px; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(26, 124, 255, .14);
  background: linear-gradient(150deg, rgba(240, 246, 255, .9), rgba(255, 255, 255, .7)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.fin-progress-text { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.fin-progress-text strong { font-size: 1rem; color: #12305f; }
.fin-progress-text span { font-size: .8rem; color: #5b6b82; }
.fin-progress-bar { height: 8px; border-radius: 999px; background: rgba(26, 124, 255, .1); overflow: hidden; }
.fin-progress-bar span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, #5cb4ff, #1a7cff); transform-origin: left; animation: fin-progress-in .7s .15s cubic-bezier(.2, .7, .2, 1) both; }
.fin-progress.is-done .fin-progress-bar span { background: linear-gradient(90deg, #34d399, #12b76a); }
.fin-progress.is-done .fin-progress-text strong { color: #067647; }
html[data-theme="dark"] .fin-progress { background: rgba(22, 32, 54, .6); border-color: rgba(148, 163, 184, .16); box-shadow: none; }
html[data-theme="dark"] .fin-progress-text strong { color: #dbeafe; } html[data-theme="dark"] .fin-progress-text span { color: #94a3b8; }
html[data-theme="dark"] .fin-progress-bar { background: rgba(148, 163, 184, .16); }
@keyframes fin-progress-in { from { transform: scaleX(0); } }
.bank-layout > .fin-progress, main > .fin-progress { margin-top: 14px; }

@media (max-width: 640px) {
  .dashboard-main .dunning-list .dunning-row { display: grid !important; grid-template-columns: 1fr auto !important; gap: 8px 12px !important; margin: 0 0 10px; padding: 14px 14px 14px 18px !important;
    border: 1px solid rgba(15, 23, 42, .07) !important; background: rgba(255, 255, 255, .72); box-shadow: 0 6px 18px -10px rgba(10, 30, 70, .25); }
  .dashboard-main .dunning-list .dunning-row > .dunning-next, .dashboard-main .dunning-list .dunning-row > form { grid-column: 1 / -1; }
  .dashboard-main .dunning-list .dunning-row > form button { width: 100%; }
  .dashboard-main .dunning-amount { text-align: right; }
  html[data-theme="dark"] .dashboard-main .dunning-list .dunning-row { background: rgba(22, 32, 54, .6); border-color: rgba(148, 163, 184, .14) !important; }
  .dashboard-main .sepa-mandate { padding: 12px !important; margin-bottom: 8px; border: 1px solid rgba(15, 23, 42, .07) !important; border-radius: 14px; background: rgba(255, 255, 255, .6); }
  html[data-theme="dark"] .dashboard-main .sepa-mandate { background: rgba(22, 32, 54, .5); border-color: rgba(148, 163, 184, .14) !important; }
  .fin-progress-text { display: grid; }
}
@media (prefers-reduced-motion: reduce) { .fin-progress-bar span { animation: none; } }

/* ---------- Mitgliederbereich: „Was steht an?“ ---------- */
.mp-agenda { margin: 16px 0 14px; padding: 18px; border-radius: 24px; border: 1px solid rgba(26, 124, 255, .14);
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(240, 246, 255, .78));
  box-shadow: 0 22px 50px -30px rgba(10, 40, 100, .45), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.mp-agenda > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.mp-agenda > header h2 { margin: 2px 0 0; font-size: 1.25rem; }
.mp-agenda-count { min-width: 30px; height: 30px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: .9rem; color: #fff; background: linear-gradient(135deg, #5cb4ff, #1a6dff); box-shadow: 0 8px 18px -8px rgba(26, 109, 255, .7); }
.mp-agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mp-agenda-item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px;
  color: inherit; text-decoration: none; background: rgba(255, 255, 255, .75); border: 1px solid rgba(15, 23, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.mp-agenda-item:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(10, 40, 100, .45); background: #fff; }
.mp-agenda-item:active { transform: scale(.99); }
.mp-agenda-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #1a6dff; background: rgba(26, 124, 255, .1); }
.mp-agenda-icon .vf-icon { width: 20px; height: 20px; }
.mp-agenda-copy { display: grid; gap: 2px; min-width: 0; }
.mp-agenda-copy strong { font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.mp-agenda-copy small { color: var(--vf-muted, #5b6b82); line-height: 1.4; overflow-wrap: anywhere; }
.mp-agenda-item > i { font-style: normal; color: #1a6dff; font-weight: 700; }
.mp-agenda-item.is-urgent { border-color: rgba(240, 68, 56, .28); background: linear-gradient(135deg, rgba(255, 241, 240, .95), rgba(255, 255, 255, .8)); }
.mp-agenda-item.is-urgent .mp-agenda-icon { color: #d92d20; background: rgba(240, 68, 56, .12); }
.mp-agenda-item.is-urgent > i { color: #d92d20; }
.mp-agenda-item.is-warn { border-color: rgba(247, 144, 9, .28); background: linear-gradient(135deg, rgba(255, 248, 235, .95), rgba(255, 255, 255, .8)); }
.mp-agenda-item.is-warn .mp-agenda-icon { color: #c4320a; background: rgba(247, 144, 9, .14); }
.mp-agenda-item.is-warn > i { color: #c4320a; }
.mp-agenda-clear { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(18, 183, 106, .08); border: 1px solid rgba(18, 183, 106, .22); }
.mp-agenda-clear > span { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: #067647; background: rgba(18, 183, 106, .14); }
.mp-agenda-clear > div { display: grid; gap: 2px; } .mp-agenda-clear small { color: var(--vf-muted, #5b6b82); }
html[data-theme="dark"] .mp-agenda { background: linear-gradient(160deg, rgba(22, 32, 54, .85), rgba(14, 22, 40, .75)); border-color: rgba(148, 163, 184, .16); box-shadow: 0 22px 50px -30px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .mp-agenda-item { background: rgba(255, 255, 255, .04); border-color: rgba(148, 163, 184, .14); }
html[data-theme="dark"] .mp-agenda-item:hover { background: rgba(255, 255, 255, .07); }
html[data-theme="dark"] .mp-agenda-item.is-urgent { background: rgba(240, 68, 56, .1); border-color: rgba(240, 68, 56, .3); }
html[data-theme="dark"] .mp-agenda-item.is-warn { background: rgba(247, 144, 9, .09); border-color: rgba(247, 144, 9, .28); }
html[data-theme="dark"] .mp-agenda-icon { color: #93c5fd; background: rgba(147, 197, 253, .12); }
html[data-theme="dark"] .mp-agenda-item.is-urgent .mp-agenda-icon, html[data-theme="dark"] .mp-agenda-item.is-urgent > i { color: #ff9b91; }
html[data-theme="dark"] .mp-agenda-item.is-warn .mp-agenda-icon, html[data-theme="dark"] .mp-agenda-item.is-warn > i { color: #fdba74; }
html[data-theme="dark"] .mp-agenda-clear { background: rgba(18, 183, 106, .1); }
@media (min-width: 900px) { .mp-agenda-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Mitgliederbereich: Bereiche am Handy zuklappbar ---------- */
.mp-fold-toggle { display: none; }
@media (max-width: 760px) {
  .mp-card[data-fold] > header { position: relative; padding-right: 46px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mp-fold-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; padding: 0;
    border: 1px solid rgba(26, 124, 255, .16); border-radius: 12px; color: #1a6dff; background: rgba(26, 124, 255, .07); cursor: pointer; }
  .mp-fold-toggle svg { width: 20px; height: 20px; transition: transform .22s ease; }
  .mp-card.is-folded .mp-fold-toggle svg { transform: rotate(-90deg); }
  .mp-card.is-folded > :not(header) { display: none !important; }
  .mp-card.is-folded > header { margin-bottom: 0 !important; }
  .mp-card.is-folded > header p { margin-bottom: 0; }
  .mp-card.is-folded { padding-top: 16px !important; padding-bottom: 16px !important; }
  html[data-theme="dark"] .mp-fold-toggle { color: #93c5fd; border-color: rgba(147, 197, 253, .2); background: rgba(147, 197, 253, .08); }
  /* Kennzahlen unter dem Hero kompakter, da „Was steht an?“ das Wichtige zeigt */
  .mp-agenda { padding: 14px; border-radius: 20px; }
}

/* Mein Konto: Verlauf (Gutschriften, Bescheinigungen, Zahlungen) eingeklappt */
.mp-history { margin-top: 16px; border-radius: 16px; border: 1px solid rgba(15, 23, 42, .08); background: rgba(255, 255, 255, .5); }
.mp-history > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 22px; gap: 2px 10px; padding: 13px 14px; }
.mp-history > summary::-webkit-details-marker { display: none; }
.mp-history > summary::after { content: ""; grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 9px; height: 9px; border-right: 2px solid #1a6dff; border-bottom: 2px solid #1a6dff; transform: rotate(45deg); transition: transform .2s ease; justify-self: center; }
.mp-history[open] > summary::after { transform: rotate(-135deg); }
.mp-history > summary span { font-weight: 750; } .mp-history > summary small { color: var(--vf-muted, #5b6b82); }
.mp-history > :not(summary) { margin-left: 14px; margin-right: 14px; } .mp-history > :last-child { margin-bottom: 12px; }
.mp-history .mp-subhead:first-of-type { margin-top: 2px; }
html[data-theme="dark"] .mp-history { background: rgba(255, 255, 255, .03); border-color: rgba(148, 163, 184, .16); }

/* Mitgliederbereich am Handy: kompakter Begrüßungsbereich, damit „Was steht an?“ sofort sichtbar ist */
@media (max-width: 560px) {
  .mp-hero { padding: 22px 20px 20px !important; }
  .mp-hero h1 { font-size: 1.75rem !important; }
  .mp-hero-copy > p { font-size: .9rem; margin-bottom: 0; }
  .mp-hero .mp-actions { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px !important; margin-top: 16px !important; }
  .mp-hero .mp-actions a { display: grid !important; justify-items: center; align-content: center; gap: 5px !important; min-height: 64px; padding: 9px 4px !important; border-radius: 16px !important;
    font-size: .74rem !important; line-height: 1.2; text-align: center; white-space: normal !important; }
  .mp-hero .mp-actions a .vf-icon { width: 20px !important; height: 20px !important; margin: 0 !important; }
  .mp-hero-badge { display: none !important; }
}

/* ---------- Pächterwechsel (rc143) ---------- */
.pw-steps { list-style: none; margin: 14px 0 16px; padding: 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border-radius: 18px;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(26, 124, 255, .12); box-shadow: 0 14px 34px -24px rgba(10, 40, 100, .4); }
.pw-steps a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 13px; color: #44536b; font-weight: 700; font-size: .86rem; text-decoration: none; min-width: 0; }
.pw-steps a:hover { background: rgba(26, 124, 255, .06); }
.pw-steps span { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; font-weight: 800; color: #1a6dff; background: rgba(26, 124, 255, .1); }
.pw-steps li.is-done a { color: #0b6b40; } .pw-steps li.is-done span { color: #fff; background: linear-gradient(135deg, #34d399, #12b76a); }
html[data-theme="dark"] .pw-steps { background: rgba(22, 32, 54, .6); border-color: rgba(148, 163, 184, .16); }
html[data-theme="dark"] .pw-steps a { color: #cbd5e1; } html[data-theme="dark"] .pw-steps li.is-done a { color: #6ee7b7; }
.pw-section { scroll-margin-top: 90px; margin-bottom: 16px; }
.pw-section .section-heading { align-items: flex-start; }
.pw-total { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: #12305f; white-space: nowrap; }
html[data-theme="dark"] .pw-total { color: #dbeafe; }
.pw-table { display: grid; gap: 6px; margin: 14px 0 8px; }
.pw-table-head, .pw-table-row { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(0, 2fr) 130px; gap: 8px; align-items: center; }
.pw-table-head span { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #5b6b82; }
.pw-table-head span:last-child, .pw-table-row input[name=betrag] { text-align: right; }
.pw-table-row input[name=betrag] { font-variant-numeric: tabular-nums; }
.pw-table-row.is-deduction input[name=betrag] { color: #b42318; }
.pw-add { margin-bottom: 12px; }
.pw-findings { display: grid; gap: 4px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; background: rgba(247, 144, 9, .08); border: 1px solid rgba(247, 144, 9, .25); }
.pw-findings span { font-size: .88rem; } .pw-findings span::before { content: "• "; color: #c4320a; } .pw-findings small { color: #8a5a00; }
.pw-candidates { display: grid; gap: 8px; margin: 12px 0; }
.pw-candidate { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(15, 23, 42, .08); background: rgba(255, 255, 255, .7); transition: border-color .2s ease, box-shadow .2s ease; }
.pw-candidate:has(input:checked) { border-color: rgba(26, 124, 255, .5); box-shadow: 0 0 0 3px rgba(26, 124, 255, .12); }
.pw-candidate > input { width: 18px; height: 18px; accent-color: #1a6dff; }
.pw-candidate > span:not(.fin-chip) { display: grid; gap: 3px; min-width: 0; } .pw-candidate small { color: #5b6b82; overflow-wrap: anywhere; }
.pw-candidate > span > input { margin-top: 4px; }
.pw-candidate .fin-chip { margin-top: 0; }
html[data-theme="dark"] .pw-candidate { background: rgba(255, 255, 255, .03); border-color: rgba(148, 163, 184, .16); }
.pw-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 12px 0; }
.pw-meter { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(26, 124, 255, .14); background: rgba(240, 246, 255, .6); }
.pw-meter > span:first-child { display: grid; gap: 2px; } .pw-meter small { color: #5b6b82; }
.pw-meter-input { display: flex; align-items: center; gap: 8px; } .pw-meter-input input { flex: 1; font-size: 1.1rem; font-variant-numeric: tabular-nums; text-align: right; }
.pw-meter-input em { font-style: normal; color: #5b6b82; min-width: 32px; }
html[data-theme="dark"] .pw-meter { background: rgba(22, 32, 54, .5); border-color: rgba(148, 163, 184, .16); }
.pw-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 16px; margin: 12px 0; padding: 12px 14px; border: 1px solid rgba(15, 23, 42, .08); border-radius: 14px; }
.pw-checklist legend { padding: 0 6px; font-weight: 750; }
.pw-checklist label { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; } .pw-checklist input { width: 18px; height: 18px; accent-color: #12b76a; margin-top: 1px; }
.pw-final { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.pw-done-list { margin: 0; padding-left: 18px; } .pw-done-list li { color: #5b6b82; } .pw-done-list li.is-done { color: inherit; }
.pw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(15, 23, 42, .07); }
.pw-row:first-of-type { border-top: 0; } .pw-row > div { display: grid; gap: 3px; } .pw-row small { color: #5b6b82; }
.pw-notice { border-color: rgba(247, 144, 9, .3) !important; }
.pw-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 12px; margin-bottom: 8px; border-radius: 16px;
  color: inherit; text-decoration: none; border: 1px solid rgba(15, 23, 42, .07); background: rgba(255, 255, 255, .6); transition: transform .2s ease, box-shadow .2s ease; }
.pw-card:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -18px rgba(10, 40, 100, .45); }
.pw-card > div { display: grid; gap: 3px; min-width: 0; } .pw-card small { color: #5b6b82; }
.pw-card > i { font-style: normal; color: #1a6dff; } .pw-card .fin-chip { margin-top: 0; }
.pw-garden { display: grid; place-items: center; align-content: center; height: 56px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, #5cb4ff, #1a6dff); }
.pw-garden small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; } .pw-garden strong { font-size: 1.05rem; line-height: 1.1; }
.pw-card.is-done .pw-garden { background: linear-gradient(140deg, #6ee7b7, #12b76a); }
.pw-mini-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pw-mini-steps i { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #5b6b82; background: rgba(15, 23, 42, .05); }
.pw-mini-steps i.is-done { color: #067647; background: rgba(18, 183, 106, .12); } .pw-mini-steps i.is-done::before { content: "✓ "; }
html[data-theme="dark"] .pw-card { background: rgba(255, 255, 255, .03); border-color: rgba(148, 163, 184, .14); }
.pw-alert { margin-bottom: 12px; }
@media (max-width: 760px) {
  .pw-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 4px; gap: 2px; }
  .pw-steps a { flex-direction: column; gap: 4px; padding: 7px 2px; font-size: .64rem; text-align: center; }
  .pw-table-head { display: none; }
  .pw-table-row { grid-template-columns: 1fr 110px; padding: 10px; border-radius: 12px; background: rgba(15, 23, 42, .03); }
  .pw-table-row select { grid-column: 1 / -1; }
  .pw-card { grid-template-columns: 54px minmax(0, 1fr); } .pw-card > .fin-chip { grid-column: 2; } .pw-card > i { display: none; }
  .pw-row { flex-direction: column; align-items: stretch; }
  .pw-total { font-size: 1.2rem; }
}
.pw-sum { font-size: 1.05rem; border-top: 2px solid rgba(15, 23, 42, .12) !important; }

/* ---------- Demo-Verein (rc145) ---------- */
.demo-ribbon { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 12px; font-size: .78rem; line-height: 1.3;
  color: #3b2a00; background: linear-gradient(90deg, #fff1cf, #ffe2b8); border-bottom: 1px solid rgba(245, 180, 40, .45); text-align: center; }
.demo-ribbon strong { flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #f5a524, #e8590c); font-size: .72rem; letter-spacing: .03em; }
html[data-theme="dark"] .demo-ribbon { color: #fde7b0; background: linear-gradient(90deg, #3a2806, #47290a); border-color: rgba(245, 180, 40, .35); }
@media (max-width: 760px) { .demo-ribbon { justify-content: flex-start; font-size: .68rem; padding: 5px 10px; } .demo-ribbon span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.demo-roles { display: grid; gap: 10px; margin: 18px 0 12px; }
.demo-roles form { margin: 0; }
html[data-theme] body .auth-card form button.demo-role { width: 100%; min-height: 0; margin: 0; display: grid; justify-content: stretch; font-weight: 400; grid-template-columns: minmax(0, 1fr) 34px; grid-template-areas: "title arrow" "text arrow"; gap: 2px 12px; align-items: center;
  padding: 13px 14px 13px 18px; border-radius: 18px; text-align: left; cursor: pointer; color: #10223f !important; border: 1px solid rgba(26, 109, 255, .16);
  background: linear-gradient(140deg, rgba(255, 255, 255, .95), rgba(236, 244, 255, .85)) !important; box-shadow: 0 12px 26px -20px rgba(10, 40, 100, .55);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; font: inherit; }
html[data-theme] body .auth-card form button.demo-role:hover { transform: translateY(-1px); border-color: rgba(26, 109, 255, .45); box-shadow: 0 16px 30px -18px rgba(26, 109, 255, .55); }
.demo-role strong { grid-area: title; font-size: 1.02rem; } .demo-role small { grid-area: text; color: #5b6b82; font-size: .82rem; line-height: 1.35; }
.demo-role i { grid-area: arrow; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 800; color: #fff; background: linear-gradient(135deg, #5cb4ff, #1a6dff); }
.demo-role.is-mitglied i { background: linear-gradient(135deg, #6ee7b7, #12b76a); }
html[data-theme="dark"] body .auth-card form button.demo-role { color: #e2e8f0; background: rgba(22, 32, 54, .7) !important; border-color: rgba(147, 197, 253, .2); }
html[data-theme="dark"] .demo-role small { color: #94a3b8; }
.demo-manual { margin-top: 6px; } .demo-manual > summary { cursor: pointer; color: #1a6dff; font-weight: 650; font-size: .9rem; padding: 6px 0; }
.demo-manual[open] > summary { margin-bottom: 10px; }
.demo-credentials { margin: 10px 0 0; font-size: .8rem; color: #5b6b82; } .demo-credentials code { font-weight: 700; color: #10223f; }
.demo-blocked { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.demo-blocked-card { max-width: 520px; padding: 32px; border-radius: 26px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(26, 109, 255, .14); box-shadow: 0 30px 60px -36px rgba(10, 40, 100, .5); display: grid; gap: 12px; }
.demo-blocked-card h1 { margin: 0; font-size: 1.6rem; } .demo-blocked-card p { margin: 0; color: #5b6b82; line-height: 1.55; }
.demo-blocked-card .primary-link { justify-self: start; }
html[data-theme="dark"] .demo-blocked-card { background: rgba(22, 32, 54, .85); border-color: rgba(147, 197, 253, .2); }

/* ---------- Demo-Besuchsstatistik (rc146) ---------- */
.demo-privacy { margin: 4px 0 10px; font-size: .76rem; color: #5b6b82; line-height: 1.4; }
.ds-login { gap: 14px; } .ds-login .primary-button { justify-self: start; }
.ds-page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 60px; display: grid; gap: 18px; }
.ds-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.ds-head h1 { margin: 4px 0; font-size: clamp(1.8rem, 4vw, 2.6rem); } .ds-head p { margin: 0; color: #5b6b82; }
.ds-range { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(26, 109, 255, .14); }
.ds-range a, .ds-range button { padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: .84rem; color: #33445e; text-decoration: none; border: 0; background: none; cursor: pointer; font-family: inherit; }
.ds-range a.is-on { color: #fff; background: linear-gradient(135deg, #5cb4ff, #1a6dff); } .ds-range form { margin: 0; } .ds-range button { color: #8a94a6; }
.ds-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ds-kpis article, .ds-card { border-radius: 20px; padding: 18px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(26, 109, 255, .1); box-shadow: 0 18px 40px -30px rgba(10, 40, 100, .45); }
.ds-kpis article { display: grid; gap: 4px; } .ds-kpis span { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #5b6b82; }
.ds-kpis strong { font-size: 2rem; font-variant-numeric: tabular-nums; color: #10223f; } .ds-kpis small { color: #5b6b82; }
.ds-card h2 { margin: 0 0 12px; font-size: 1.02rem; }
.ds-bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-bottom: 18px; }
.ds-bar { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.ds-bar span { width: 100%; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5cb4ff, #1a6dff); }
.ds-bar small { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: .62rem; color: #8a94a6; white-space: nowrap; }
.ds-hours { height: 120px; } .ds-hours .ds-bar span { background: linear-gradient(180deg, #c4b5fd, #7c5cff); }
.ds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ds-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 44px; gap: 10px; align-items: center; padding: 6px 0; font-size: .9rem; }
.ds-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ds-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.ds-row i { height: 8px; border-radius: 999px; background: rgba(26, 109, 255, .08); overflow: hidden; } .ds-row b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5cb4ff, #1a6dff); }
.ds-empty { margin: 0; color: #8a94a6; }
.ds-table { display: grid; gap: 2px; }
.ds-visit { display: grid; grid-template-columns: 90px minmax(0, 1.2fr) 70px minmax(0, 1.2fr) minmax(0, 1.4fr) 130px; gap: 10px; padding: 9px 4px; border-top: 1px solid rgba(15, 23, 42, .06); font-size: .86rem; }
.ds-visit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ds-when { color: #5b6b82; font-variant-numeric: tabular-nums; }
.ds-foot { margin: 0; font-size: .76rem; color: #8a94a6; } .ds-foot a { color: inherit; }
html[data-theme="dark"] :is(.ds-kpis article, .ds-card, .ds-range) { background: rgba(22, 32, 54, .7); border-color: rgba(148, 163, 184, .16); }
html[data-theme="dark"] .ds-kpis strong { color: #e2e8f0; }
@media (max-width: 900px) { .ds-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ds-grid { grid-template-columns: 1fr; }
  .ds-visit { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); } .ds-visit span:nth-child(n+4) { grid-column: span 1; } }
@media (max-width: 560px) { .ds-page { padding: 18px 14px 40px; } .ds-kpis strong { font-size: 1.5rem; } .ds-bars { height: 130px; } }
@media (max-width: 560px) { .ds-days .ds-bar small { display: none; } .ds-days .ds-bar:nth-child(5n+1) small { display: block; } .ds-range a, .ds-range button { padding: 6px 9px; font-size: .78rem; } }
