:root {
  --mfvp-ink: #1c1d1b;
  --mfvp-muted: #5c6570;
  --mfvp-line: #e3e7e4;
  --mfvp-paper: #f7f6ef;
  --mfvp-card: #ffffff;
  --mfvp-blue: #055d9b;
  --mfvp-teal: #2d8c77;
  --mfvp-teal-text: #1d6b5a;
  --mfvp-green: #63ac36;
  --mfvp-focus: #043f71;
  --mfvp-yellow: #f4c415;
  --mfvp-err: #8a1f1f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.mfvp-body {
  margin: 0;
  min-height: 100vh;
  background: var(--mfvp-paper);
  color: var(--mfvp-ink);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

.mfvp-body a { color: var(--mfvp-blue); }

.mfvp-kicker {
  margin: 0 0 .35rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--mfvp-teal-text);
}

.mfvp-lead { margin: 0 0 1.25rem; }
/* Einleitungen aus «Texte»: Absätze und Zeilenumbrüche */
.mfvp-lead p { margin: 0 0 .75em; }
.mfvp-lead p:last-child { margin-bottom: 0; }
/* Formatierung aus «Texte»: ## Titel, - Aufzählung, Links */
.mfvp-lead .mfvp-text-title { margin: 1.1em 0 .35em; font-size: 1.08em; line-height: 1.3; }
.mfvp-lead .mfvp-text-title:first-child { margin-top: 0; }
.mfvp-lead ul { margin: 0 0 .75em; padding-left: 1.3em; }
.mfvp-lead ul:last-child { margin-bottom: 0; }
.mfvp-lead li + li { margin-top: .2em; }
.mfvp-lead a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }

.mfvp-head { margin-bottom: 1.5rem; }

.mfvp-gate .mfvp-pwa-open {
  width: 100%;
  margin: 1rem 0 0;
}
.mfvp-head h1,
.mfvp-gate h1 { margin: 0 0 .6rem; font-weight: 800; }

.mfvp-head--dash h1 {
  display: inline-block;
  margin-bottom: 0;
}

.mfvp-head--dash h1::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 4px;
  margin-top: .45rem;
  background: var(--mfvp-yellow);
  border-radius: 99px;
}

.mfvp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.6rem 0 2rem;
}

.mfvp-stat {
  display: grid;
  gap: .2rem;
  padding: 1.05rem 1.1rem 1rem;
  background: var(--mfvp-card);
  border: 1px solid var(--mfvp-line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(13, 33, 49, .06);
  text-decoration: none;
  color: inherit;
}

.mfvp-stat:hover {
  border-color: rgba(5, 93, 155, .28);
}

.mfvp-stat strong {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--mfvp-ink);
}

.mfvp-stat span {
  color: var(--mfvp-muted);
  font-size: .92rem;
}

.mfvp-queue h2 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}

@media (max-width: 800px) {
  .mfvp-stats { grid-template-columns: 1fr 1fr; }
}

.mfvp-body--gate {
  display: grid;
  place-items: start center;
  padding: 2.5rem 1.25rem 4rem;
}

.mfvp-body--plan {
  display: block;
  padding: 0;
  background:
    radial-gradient(920px 420px at 50% -120px, rgba(5, 93, 155, .14), transparent 68%),
    var(--mfvp-paper);
}

.mfvp-gate { width: min(36rem, 100%); }

.mfvp-plan-top {
  display: flex;
  justify-content: center;
  margin: 0 0 1.7rem;
  padding: 1.35rem 1.2rem 1.3rem;
  background: linear-gradient(120deg, #043f71 0%, #055d9b 62%, #2d8c77 130%);
}

.mfvp-plan-brand {
  display: block;
}

.mfvp-plan-brand img {
  display: block;
  width: min(220px, 68vw);
  height: auto;
}

.mfvp-plan {
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: 0 1.2rem 3.2rem;
}

.mfvp-plan-label {
  margin: 0 0 .85rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.mfvp-plan-label::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 4px;
  margin-top: .4rem;
  background: var(--mfvp-yellow);
  border-radius: 99px;
}

.mfvp-plan-club {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}

.mfvp-plan-club img {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  padding: .45rem;
  background: #fff;
  border: 1px solid var(--mfvp-line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(13, 33, 49, .06);
}

.mfvp-plan > h1,
.mfvp-plan-club h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  line-height: 1.15;
  font-weight: 800;
}

.mfvp-plan-meta {
  margin: .35rem 0 0;
  color: var(--mfvp-muted);
  font-size: .95rem;
  font-weight: 600;
}

.mfvp-plan .mfvp-lead {
  margin: 0 0 1.25rem;
  color: var(--mfvp-muted);
  font-size: .98rem;
}

.mfvp-plan-card {
  background: var(--mfvp-card);
  border: 1px solid var(--mfvp-line);
  border-radius: 22px;
  padding: 1.2rem 1.2rem 1.05rem;
  box-shadow: 0 12px 32px rgba(13, 33, 49, .07);
}

.mfvp-plan-card .mfvp-day {
  border-left-color: var(--mfvp-yellow);
}

.mfvp-plan-card .mfvp-day li:last-child {
  padding-bottom: 0;
}

.mfvp-plan-card .mfvp-empty {
  margin: 0;
}

.mfvp-plan-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .9rem 1.2rem;
  margin-top: 1.5rem;
}

.mfvp-credit--plan {
  margin: 0;
}

.mfvp-app {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  min-height: 100vh;
}

.mfvp-nav {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.1rem 1rem 5rem;
  background: linear-gradient(180deg, #043f71 0%, #055d9b 72%, #2d8c77 140%);
  color: #fff;
}

.mfvp-nav > a:not(.mfvp-brand):not(.mfvp-nav-pill):not(.mfvp-nav-photo) {
  display: block;
  padding: .28rem .5rem;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: .86rem;
}

.mfvp-nav > a.is-on,
.mfvp-nav > a:not(.mfvp-brand):not(.mfvp-nav-pill):not(.mfvp-nav-photo):hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.mfvp-nav-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
  margin: 0 0 1.1rem;
}

.mfvp-nav-close,
.mfvp-nav-backdrop {
  display: none;
}

.mfvp-brand {
  display: block;
  margin: 0;
}

.mfvp-brand img {
  display: block;
  width: min(100%, 200px);
  height: auto;
}

.mfvp-brand--on-blue {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: .85rem 1rem;
  border-radius: 18px;
  background: linear-gradient(120deg, #043f71, #055d9b);
}

.mfvp-club {
  margin: 0 0 1rem;
  color: var(--mfvp-yellow);
  font-weight: 800;
}
/* Vereinsfoto unter dem Vereinsnamen im Menü */
.mfvp-photo-169.mfvp-nav-photo {
  display: block;
  width: 100%;
  margin: -.4rem 0 1rem;
  border-color: rgba(255, 255, 255, .25);
}

.mfvp-preview-switch {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  gap: .5rem;
}

.mfvp-preview-switch span {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .78);
}

.mfvp-preview-switch select { width: 100%; }

.mfvp-preview-switch button {
  appearance: none;
  width: 100%;
  margin: .15rem 0 0;
  padding: .24rem .6rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .92);
  font: inherit;
  font-size: .74rem;
  font-weight: 500;
  cursor: pointer;
}

.mfvp-nav-end {
  margin-top: auto;
  padding-top: 1.1rem;
}

.mfvp-nav-pills {
  display: grid;
  gap: .4rem;
  margin: 1.05rem 0 0;
}

.mfvp-nav-pill,
a.mfvp-nav-pill,
button.mfvp-nav-pill {
  display: block;
  width: 100%;
  padding: .24rem .6rem;
  border: 0;
  border-radius: 999px;
  background: var(--mfvp-yellow);
  color: #043f71;
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mfvp-nav-pill:hover,
a.mfvp-nav-pill:hover,
button.mfvp-nav-pill:hover {
  background: #ffd54a;
  color: #043f71;
}

.mfvp-nav-site {
  margin-top: 1.2rem;
  opacity: .9;
}

button.mfvp-nav-site,
button.mfvp-pwa-open:not(.mfvp-nav-pill) {
  appearance: none;
  display: block;
  width: auto;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.mfvp-quiet button.mfvp-pwa-open {
  display: inline;
  width: auto;
  text-decoration: underline;
}

.mfvp-pwa-dialog {
  width: min(28rem, calc(100vw - 2rem));
  border: 0;
  border-radius: 22px;
  padding: 1.4rem 1.3rem 1.2rem;
  background: #f7f6ef;
  color: #1c1d1b;
  box-shadow: 0 18px 48px rgba(15, 35, 55, .2);
}

.mfvp-pwa-dialog::backdrop {
  background: rgba(12, 18, 22, .46);
}

.mfvp-pwa-dialog h2 {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
}

.mfvp-pwa-dialog p {
  margin: 0 0 .7rem;
  line-height: 1.45;
}

.mfvp-pwa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.mfvp-credit {
  margin: 2rem 0 0;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--mfvp-muted);
}

.mfvp-credit span {
  display: block;
}

.mfvp-credit a,
.mfvp-credit-link {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.mfvp-credit a:hover,
.mfvp-credit-link:hover {
  background: none;
  color: var(--mfvp-blue);
}

.mfvp-credit--nav {
  margin-top: auto;
  padding-top: 1.6rem;
  color: rgba(255, 255, 255, .62);
}

.mfvp-credit--nav a,
.mfvp-credit--nav .mfvp-credit-link {
  color: rgba(255, 255, 255, .78);
}

.mfvp-credit--nav a:hover,
.mfvp-credit--nav .mfvp-credit-link:hover {
  background: none;
  color: #fff;
}

.mfvp-credit--page {
  display: none;
}

.mfvp-main {
  padding: 1.6rem 1.4rem 6rem;
  max-width: 52rem;
}

.mfvp-card,
.mfvp-form,
.mfvp-next {
  background: var(--mfvp-card);
  border: 1px solid var(--mfvp-line);
  border-radius: 18px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(13, 33, 49, .06);
}

.mfvp-next { margin-bottom: 1.6rem; }
.mfvp-next h2 { margin: .15rem 0 .4rem; }

.mfvp-field,
.mfvp-set { display: grid; gap: .35rem; margin: 0 0 1rem; }
.mfvp-label { font-weight: 700; }
.mfvp-field small,
.mfvp-hint { color: var(--mfvp-muted); font-size: .92rem; }
.mfvp-field .mfvp-hint { line-height: 1.45; }
.mfvp-rich .mfvp-hint { margin: 0; }

/* Werkzeugleiste für formatierbare Texte (Ressort → Texte) */
.mfvp-format { display: flex; flex-wrap: wrap; gap: .35rem; }
.mfvp-format button {
  min-height: 2.25rem;
  padding: .3rem .7rem;
  border: 1px solid var(--mfvp-line);
  border-radius: .5rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}
.mfvp-format button:hover { background: #f4f4f0; }
.mfvp-format button:focus-visible { outline: 2px solid var(--mfvp-teal-text); outline-offset: 2px; }
.mfvp-brand-fallback { color: inherit; font-weight: 700; display: inline-block; }

.mfvp-field input,
.mfvp-field select,
.mfvp-field textarea,
.mfvp-extra input,
.mfvp-extra select,
.mfvp-preview-switch select {
  width: 100%;
  padding: .65rem .7rem;
  border: 1px solid var(--mfvp-line);
  border-radius: .5rem;
  font: inherit;
  background: #fff;
}

.mfvp-field input[readonly] {
  background: #ecece8;
  color: #444;
}

.mfvp-field input::placeholder,
.mfvp-field textarea::placeholder {
  color: var(--mfvp-muted);
  opacity: 1;
}

.mfvp-radio,
.mfvp-check {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  margin: .35rem 0;
}

.mfvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.mfvp-btn {
  appearance: none;
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: .32rem .7rem;
  background: var(--mfvp-yellow);
  color: var(--mfvp-ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.mfvp-btn--ghost {
  background: transparent;
  border: 1px solid var(--mfvp-line);
  color: var(--mfvp-ink);
}

.mfvp-banner {
  padding: .75rem .9rem;
  border-radius: .6rem;
  background: #e8f2e6;
  margin: 0 0 1rem;
}

.mfvp-banner--err { background: #f6e4e4; color: var(--mfvp-err); }

.mfvp-state { font-weight: 700; margin: 0 0 1rem; }
.mfvp-state--submitted { color: #6b5208; }
.mfvp-state--approved { color: #1e5b24; }
.mfvp-state--asked { color: var(--mfvp-err); }

.mfvp-day {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--mfvp-blue);
}

.mfvp-day li {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: .8rem;
  padding: 0 0 1.1rem .9rem;
}

.mfvp-day time { font-weight: 800; }
.mfvp-day span { display: block; color: var(--mfvp-muted); }

.mfvp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mfvp-list { list-style: none; margin: 0; padding: 0; }
.mfvp-list li {
  display: grid;
  gap: .2rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--mfvp-line);
}
.mfvp-list a { text-decoration: none; color: inherit; display: grid; gap: .2rem; }
.mfvp-list span { color: var(--mfvp-muted); }
/* Knöpfe in Listen (Zugänge, Vereine): nebeneinander, auf schmalen Bildschirmen umbrechend */
.mfvp-list-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
/* Ressort → Gesendet: Liste, Filter, Leseansicht wie in einem Mailprogramm */
.mfvp-sent-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin: 0 0 1.25rem; }
.mfvp-sent-filter .mfvp-field { margin: 0; min-width: 12rem; flex: 1 1 12rem; }
.mfvp-sent-filter .mfvp-btn { flex: 0 0 auto; }
.mfvp-sent-head { margin: 0 0 1rem; }
.mfvp-mailhead.mfvp-sent-head .mfvp-mailhead-row { grid-template-columns: 5.6rem 1fr; }
.mfvp-mailhead.mfvp-sent-head dd { display: block; }
.mfvp-sent-body {
  padding: 1rem 1.1rem;
  border: 1px solid var(--mfvp-line);
  border-radius: .5rem;
  background: #fff;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.mfvp-sent-fail { color: var(--mfvp-err); font-weight: 600; }
/* Ressort → Vereine: Gastverein / noch nicht öffentlich */
.mfvp-list .mfvp-club-badge {
  justify-self: start;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: #f1efe6;
  font-size: .85rem;
}

.mfvp-dl { display: grid; gap: .7rem; }
.mfvp-dl div { display: grid; gap: .15rem; }
.mfvp-dl dt { color: var(--mfvp-muted); font-size: .9rem; }
.mfvp-dl dd { margin: 0; font-weight: 700; }

.mfvp-empty { color: var(--mfvp-muted); }

.mfvp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 0 1.2rem;
}

.mfvp-table-wrap {
  overflow-x: auto;
  margin: 0 0 2rem;
}

.mfvp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.mfvp-table th,
.mfvp-table td {
  text-align: left;
  padding: .7rem .55rem;
  border-bottom: 1px solid var(--mfvp-line);
  vertical-align: top;
}

.mfvp-table th {
  color: var(--mfvp-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.mfvp-table a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.mfvp-table td span {
  display: block;
  margin-top: .2rem;
  color: var(--mfvp-muted);
  font-size: .9rem;
  font-weight: 500;
}

.mfvp-mail {
  margin-top: 2.4rem;
  padding-top: .4rem;
}

.mfvp-mail h2 { margin: 0 0 .5rem; }

.mfvp-extra {
  display: grid;
  grid-template-columns: 6rem 1fr 1fr;
  gap: .5rem;
  margin-bottom: .5rem;
}

.mfvp-extra--form {
  grid-template-columns: 1.4fr .9fr 1.2fr auto;
  align-items: center;
}

.mfvp-previewbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .7rem 1rem;
  background: var(--mfvp-blue);
  color: #fff;
}

.mfvp-previewbar button {
  background: var(--mfvp-yellow);
  border: 0;
  color: var(--mfvp-ink);
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  padding: .22rem .58rem;
  border-radius: 999px;
  cursor: pointer;
}

.mfvp-quiet { margin-top: 1.2rem; color: var(--mfvp-muted); }
.mfvp-answer { background: #eef4ea; padding: .7rem; border-radius: .4rem; }
.mfvp-count { font-weight: 800; font-size: 1.4rem; color: var(--mfvp-blue); }

.mfvp-textgroup {
  margin: 0 0 2rem;
  padding-top: .4rem;
}

.mfvp-textgroup h2 {
  margin: 0 0 .8rem;
  scroll-margin-top: 1.2rem;
}

.mfvp-dock {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 70;
  background: #111211;
  color: #fff;
  justify-content: space-around;
  padding: .55rem .3rem calc(.55rem + env(safe-area-inset-bottom));
}

.mfvp-dock a,
.mfvp-dock-more {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  padding: .35rem .45rem;
  cursor: pointer;
}

.mfvp-dock a.is-on,
.mfvp-dock-more[aria-expanded="true"] {
  color: var(--mfvp-yellow);
}

/* --- 1.3.0: Zwischenspeichern, Eingaben-Erhalt, Vorausfüllen --- */

/* Hauptschaltflächen gut erreichbar (ca. 44–48px). */
.mfvp-btn {
  min-height: 2.9rem;
  padding: .55rem 1.15rem;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Pflicht- und Optional-Kennzeichnung. */
.mfvp-req { color: var(--mfvp-err); font-weight: 800; }
.mfvp-optional { color: var(--mfvp-muted); font-weight: 500; font-size: .85em; }

/* Feldbezogene Fehler. */
.mfvp-err { color: var(--mfvp-err); font-weight: 600; }
.mfvp-field input[aria-invalid="true"],
.mfvp-field select[aria-invalid="true"],
.mfvp-field textarea[aria-invalid="true"],
.mfvp-set[aria-invalid="true"] {
  border-color: var(--mfvp-err);
  box-shadow: 0 0 0 2px rgba(138, 31, 31, .15);
}

/* Fehlerübersicht oben am Formular. */
.mfvp-errsum {
  background: #f6e4e4;
  border: 1px solid var(--mfvp-err);
  border-radius: .7rem;
  padding: .85rem 1rem;
  margin: 0 0 1.3rem;
  color: var(--mfvp-err);
}
.mfvp-errsum ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.mfvp-errsum a { color: var(--mfvp-err); }
.mfvp-errsum:focus { outline: 2px solid var(--mfvp-err); outline-offset: 3px; }

/* Speicherhinweis und Zeitpunkt. */
.mfvp-save-hint { margin: 1rem 0 .2rem; }
.mfvp-saved { color: var(--mfvp-teal-text); font-weight: 600; margin: .1rem 0 .6rem; }
.mfvp-check-hint { margin: -.2rem 0 1rem; }

/* Angefangene Anmeldung fortsetzen. */
.mfvp-resume {
  background: var(--mfvp-card);
  border: 1px solid var(--mfvp-line);
  border-left: 4px solid var(--mfvp-yellow);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin: 0 0 1.6rem;
  box-shadow: 0 10px 28px rgba(13, 33, 49, .06);
}

/* Vereinsfoto-Vorschau. */
.mfvp-photo { gap: .45rem; }
.mfvp-photo-prev {
  display: block;
  max-width: min(100%, 340px);
  height: auto;
  margin: .3rem 0;
  border: 1px solid var(--mfvp-line);
  border-radius: 12px;
}
.mfvp-ok { color: var(--mfvp-teal-text); font-weight: 700; margin: .2rem 0 0; }
.mfvp-replace { display: grid; gap: .3rem; margin: .3rem 0 0; }
.mfvp-label--sub { font-size: .92rem; }

/* Angenommen klar sichtbar und kontraststark (dunkleres Grün). */
.mfvp-state--approved { color: #246b2a; }

@media (max-width: 800px) {
  .mfvp-app { grid-template-columns: 1fr; }
  .mfvp-nav {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(20.5rem, 88vw);
    z-index: 60;
    transform: translateX(-105%);
    transition: transform .22s ease;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    overflow: auto;
  }
  .mfvp-nav-open .mfvp-nav { transform: none; }
  .mfvp-nav-close {
    display: inline-flex;
    align-items: center;
    margin: .15rem 0 0;
    padding: .22rem .5rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .88);
    font: inherit;
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
  }
  .mfvp-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0 0 calc(3.5rem + env(safe-area-inset-bottom));
    z-index: 50;
    border: 0;
    padding: 0;
    background: rgba(12, 18, 22, .46);
    cursor: pointer;
  }
  .mfvp-nav-open .mfvp-nav-backdrop {
    display: block;
  }
  .mfvp-nav-open { overflow: hidden; }
  .mfvp-dock { display: flex; }
  .mfvp-credit--page { display: block; }
  .mfvp-extra,
  .mfvp-extra--form { grid-template-columns: 1fr; }
  .mfvp-day li { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .mfvp-previewbar { flex-direction: column; align-items: stretch; }
}

/* Vereinsfoto: ganzes Foto mit Ausschnittrahmen und 16:9-Vorschau wie auf der Website */
.mfvp-photo-tool { display: grid; gap: .45rem; margin: .4rem 0 .2rem; }
.mfvp-photo-tool[hidden] { display: none; }
.mfvp-photo-views { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.mfvp-photo-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  cursor: crosshair;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--mfvp-line);
  background: var(--mfvp-paper);
}
.mfvp-photo-stage:focus-visible { outline: 3px solid var(--mfvp-focus); outline-offset: 2px; }
.mfvp-photo-stage img { display: block; max-width: 100%; max-height: 340px; width: auto; height: auto; }
.mfvp-photo-crop {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.mfvp-photo-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--mfvp-yellow);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
  pointer-events: none;
}
.mfvp-photo-169 {
  width: min(100%, 300px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--mfvp-line);
  background: var(--mfvp-paper);
}
.mfvp-photo-169 img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mfvp-photo-msg { margin: .2rem 0 0; font-size: .92rem; color: var(--mfvp-teal-text); }
.mfvp-photo-msg:empty { display: none; }
.mfvp-photo-msg.mfvp-err { color: var(--mfvp-err); }
@media (max-width: 640px) {
  .mfvp-photo-stage img { max-height: 260px; }
  .mfvp-photo-169 { width: 100%; }
}.mfvp-photo-169--ressort { display: block; }

/* Prüfseite und Ergebnis */
.mfvp-review { display: grid; gap: 14px; margin-top: 8px; }
.mfvp-review > h2 { margin: 0; }
.mfvp-review-section {
  background: var(--mfvp-card);
  border: 1px solid var(--mfvp-line);
  border-radius: 14px;
  padding: 14px 18px;
}
.mfvp-review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.mfvp-review-head h3 { margin: 0; font-size: 1.02rem; }
.mfvp-review-edit { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.mfvp-review .mfvp-dl { margin: 0; }
.mfvp-review-photo { display: block; margin: 4px 0 10px; }
.mfvp-review-form { margin-top: 4px; }
.mfvp-confirm { font-weight: 700; }
.mfvp-confirmed {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(45, 140, 119, .1);
  color: var(--mfvp-teal-text);
  font-weight: 700;
}

/* --- 1.3.10: Übersicht, Navigation, Bedienung, Status, Foto, Druck --- */

/* Nur für Screenreader sichtbar. */
.mfvp-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sichtbarer Fokus: dunkelblau auf hellem Grund, gelb auf den blauen und schwarzen Flächen. */
.mfvp-body :focus-visible {
  outline: 3px solid var(--mfvp-focus);
  outline-offset: 2px;
}
.mfvp-nav :focus-visible,
.mfvp-dock :focus-visible,
.mfvp-previewbar :focus-visible,
.mfvp-brand--on-blue :focus-visible,
.mfvp-plan-top :focus-visible {
  outline-color: var(--mfvp-yellow);
}
.mfvp-main:focus { outline: none; }

.mfvp-skip {
  position: absolute;
  left: .5rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: var(--mfvp-focus);
  font-weight: 700;
}
.mfvp-skip:focus { top: .5rem; }

/* Kein seitliches Überlaufen, auch bei langen Adressen. */
.mfvp-main { min-width: 0; overflow-wrap: break-word; }
.mfvp-wrap a { overflow-wrap: anywhere; }

/* Bedienelemente um 44–48 px. */
.mfvp-nav > a:not(.mfvp-brand):not(.mfvp-nav-pill):not(.mfvp-nav-photo) {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .45rem .75rem;
  font-size: .95rem;
  border-radius: 12px;
}
.mfvp-nav > a.is-on {
  font-weight: 700;
  box-shadow: inset 4px 0 0 var(--mfvp-yellow);
}
.mfvp-nav-pill,
a.mfvp-nav-pill,
button.mfvp-nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-size: .85rem;
}
/* Ressort-Bereich: Pillen kleiner und ruhiger, aber weiterhin gelb und gut sichtbar. */
.mfvp-body--ressort .mfvp-nav-pills { gap: .3rem; margin-top: .9rem; }
.mfvp-body--ressort .mfvp-nav-pill,
.mfvp-body--ressort a.mfvp-nav-pill,
.mfvp-body--ressort button.mfvp-nav-pill {
  min-height: 2rem;
  padding: .15rem .7rem;
  font-size: .78rem;
  font-weight: 600;
}
/* Auf Touch-Geräten bleiben sie gut antippbar. */
@media (pointer: coarse) {
  .mfvp-body--ressort .mfvp-nav-pill,
  .mfvp-body--ressort a.mfvp-nav-pill,
  .mfvp-body--ressort button.mfvp-nav-pill { min-height: 2.5rem; }
}
.mfvp-radio,
.mfvp-check {
  min-height: 2.75rem;
  margin: 0;
  padding: .45rem 0;
  cursor: pointer;
}
.mfvp-radio input,
.mfvp-check input {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: .15rem 0 0;
  accent-color: var(--mfvp-blue);
}
.mfvp-field input,
.mfvp-field select,
.mfvp-field textarea { min-height: 2.75rem; }
.mfvp-field input[type="checkbox"],
.mfvp-field input[type="radio"] {
  width: 1.25rem;
  min-height: 0;
  padding: 0;
}
.mfvp-field--check { gap: .15rem; }
.mfvp-set legend { font-weight: 700; padding: 0; }
.mfvp-review-edit {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 .25rem;
}

/* Zwischenspeichern (zweitrangig) und Weitergehen (Hauptschaltfläche) klar unterscheidbar. */
.mfvp-btn:hover { background: #ffd54a; }
.mfvp-btn--ghost {
  background: #fff;
  border: 2px solid var(--mfvp-blue);
  color: var(--mfvp-blue);
}
.mfvp-btn--ghost:hover { background: #eef5fb; }
.mfvp-btn[aria-disabled="true"] { opacity: .75; cursor: progress; }
.mfvp-form-end { margin-top: .4rem; }

/* Formularabschnitte, nummeriert. */
.mfvp-form--sections { counter-reset: mfvp-sec; }
.mfvp-sec {
  margin: 0 0 1.4rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--mfvp-line);
}
.mfvp-sec:last-of-type { border-bottom: 0; padding-bottom: 0; }
.mfvp-sec-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem .55rem;
  margin: 0 0 .9rem;
  font-size: 1.15rem;
  font-weight: 800;
  scroll-margin-top: 1rem;
}
.mfvp-form--sections .mfvp-sec-title::before {
  counter-increment: mfvp-sec;
  content: counter(mfvp-sec);
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--mfvp-blue);
  color: #fff;
  font-size: .85rem;
}
.mfvp-sec-title .mfvp-optional { font-size: .8em; }
[id^="f-"] { scroll-margin-top: 1.5rem; }

/* Status immer als Text, Farbe und Zeichen nur zusätzlich. Kontrast jeweils über 4,5:1. */
.mfvp-status { margin: 0 0 1.2rem; }
.mfvp-status-head { margin: 0 0 .35rem; }
.mfvp-status-text { margin: 0 0 .35rem; }
.mfvp-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  background: #f0f0ec;
  color: #3d4650;
}
.mfvp-badge-icon { font-weight: 800; }
.mfvp-badge--draft { background: #fff4cc; color: #6b4e00; }
.mfvp-badge--asked,
.mfvp-badge--expired { background: #fbe3e3; color: var(--mfvp-err); }
.mfvp-badge--submitted { background: #e2eef8; color: #0a4a7a; }
.mfvp-badge--approved { background: #e1f1df; color: #1e5b24; }
.mfvp-status-meta {
  list-style: none;
  margin: .2rem 0 0;
  padding: 0;
  color: var(--mfvp-muted);
  font-size: .92rem;
}
.mfvp-status-meta li + li { margin-top: .1rem; }
.mfvp-late { color: var(--mfvp-err); font-weight: 700; }
.mfvp-reply {
  margin: .5rem 0;
  padding: .65rem .85rem;
  border-left: 4px solid var(--mfvp-blue);
  border-radius: 0 10px 10px 0;
  background: #eef5fb;
}
.mfvp-reply p { margin: .2rem 0 0; }
.mfvp-status--asked .mfvp-reply,
.mfvp-next--asked .mfvp-reply {
  border-left-color: var(--mfvp-err);
  background: #fdf3f3;
}

/* Übersicht */
.mfvp-club-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .8rem;
  margin: .2rem 0 0;
}
.mfvp-club-name { font-size: 1.15rem; }
.mfvp-next { border-left: 5px solid var(--mfvp-yellow); }
.mfvp-next--asked,
.mfvp-next--expired { border-left-color: var(--mfvp-err); }
.mfvp-next--submitted { border-left-color: var(--mfvp-blue); }
.mfvp-next--done { border-left-color: #1e5b24; }
.mfvp-next .mfvp-status-meta { margin: 0 0 .8rem; }
.mfvp-overview { margin: 0 0 2rem; }
.mfvp-overview > h2 { margin: 0 0 .8rem; }
.mfvp-tasks {
  display: grid;
  gap: .8rem;
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0;
}
.mfvp-task {
  padding: .9rem 1rem;
  background: var(--mfvp-card);
  border: 1px solid var(--mfvp-line);
  border-radius: 16px;
}
.mfvp-task-title { margin: 0 0 .45rem; font-size: 1.05rem; }
.mfvp-task-title a { color: inherit; text-decoration: none; }
.mfvp-task-title a:hover { text-decoration: underline; }
.mfvp-task .mfvp-status { margin: 0 0 .6rem; }
.mfvp-task .mfvp-status:last-child { margin-bottom: 0; }

/* Ergebnis nach dem Einreichen */
.mfvp-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.mfvp-result-head h2 { margin: 0; }
.mfvp-result-time { margin: 0; font-weight: 700; }
.mfvp-result-next { margin: 0; }

/* Login: Zugang über das Ressort */
.mfvp-access {
  margin: 1.2rem 0 0;
  padding: .9rem 1rem;
  background: var(--mfvp-card);
  border: 1px solid var(--mfvp-line);
  border-radius: 14px;
}
.mfvp-access h2 { margin: 0 0 .3rem; font-size: 1rem; }
.mfvp-access p { margin: 0 0 .4rem; }
.mfvp-access p:last-child { margin-bottom: 0; }

/* Zugang anfragen: zugeklappt wie ein Link, aufgeklappt ein kurzes Formular */
.mfvp-access-request summary {
  display: inline-block;
  min-height: 44px;
  padding: .55rem 0;
  color: var(--mfvp-blue);
  cursor: pointer;
}
.mfvp-access-request[open] summary { margin-bottom: .2rem; }
.mfvp-access-request form { display: grid; gap: .2rem; margin-top: .4rem; }
.mfvp-access-request .mfvp-hint { margin: 0 0 .4rem; }
.mfvp-access-request .mfvp-btn { justify-self: start; margin-top: .4rem; }
/* Unsichtbares Feld gegen Spam-Bots, auch für Screenreader verborgen */
.mfvp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Nicht übernommene Angaben (gleiche Einreichung mit anderem Inhalt) */
.mfvp-unsaved {
  padding: 14px 18px;
  border: 1px solid #b58a00;
  border-left: 5px solid #b58a00;
  border-radius: 14px;
  background: #fff8e1;
}
.mfvp-unsaved h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.mfvp-unsaved p { margin: 0 0 .7rem; }

/* Vereinsfoto: gespeichert und neu ausgewählt klar getrennt */
.mfvp-photo-specs {
  margin: 0 0 .3rem;
  padding-left: 1.1rem;
  color: var(--mfvp-muted);
  font-size: .92rem;
}
.mfvp-photo-card {
  padding: .7rem .85rem;
  border: 1px solid var(--mfvp-line);
  border-left: 4px solid var(--mfvp-teal);
  border-radius: 12px;
  background: #fbfbf8;
}
.mfvp-photo-card--new {
  border-left-color: var(--mfvp-yellow);
  background: #fffbea;
}
.mfvp-photo-card.is-old { border-left-color: #9aa3ab; }
.mfvp-photo-card-title { margin: 0; font-weight: 700; }
.mfvp-photo-card .mfvp-hint { margin: .2rem 0 0; }
.mfvp-photo-file { margin: .15rem 0 0; font-size: .92rem; overflow-wrap: anywhere; }
.mfvp-photo-alert {
  padding: .7rem .85rem;
  border: 1px solid var(--mfvp-err);
  border-radius: 12px;
  background: #f6e4e4;
  color: var(--mfvp-err);
}
.mfvp-photo-alert p { margin: 0 0 .3rem; }
.mfvp-photo-alert p:last-child { margin-bottom: 0; }
.mfvp-replace { position: relative; justify-items: start; }
.mfvp-photo .mfvp-file {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.mfvp-file-btn { cursor: pointer; }
.mfvp-file:focus-visible + .mfvp-file-btn {
  outline: 3px solid var(--mfvp-focus);
  outline-offset: 2px;
}

@media (max-width: 800px) {
  /* Geschlossenes Menü ist ausgeblendet und nicht fokussierbar. */
  .mfvp-nav {
    visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  .mfvp-nav-open .mfvp-nav {
    visibility: visible;
    transition: transform .22s ease, visibility 0s;
  }
  .mfvp-nav-close {
    min-height: 2.75rem;
    padding: .35rem .9rem;
    font-size: .9rem;
  }
  .mfvp-dock {
    gap: .15rem;
    padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom));
  }
  .mfvp-dock a,
  .mfvp-dock-more {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .3rem .2rem;
    font-size: .8rem;
    line-height: 1.15;
    text-align: center;
    border-radius: 10px;
  }
  .mfvp-dock a.is-on { box-shadow: inset 0 -3px 0 var(--mfvp-yellow); }
  /* Zwischenspeichern und Weitergehen bleiben am unteren Rand erreichbar. */
  .mfvp-form > .mfvp-actions {
    position: sticky;
    bottom: calc(3.5rem + env(safe-area-inset-bottom));
    z-index: 5;
    margin: 1rem -1.15rem -1.1rem;
    padding: .7rem 1.15rem;
    background: var(--mfvp-card);
    border-top: 1px solid var(--mfvp-line);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 -6px 16px rgba(13, 33, 49, .06);
  }
  .mfvp-form > .mfvp-actions .mfvp-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: .7rem;
    padding-right: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mfvp-nav,
  .mfvp-nav-open .mfvp-nav { transition: none; }
}

/* Drucken: nur die Zusammenfassung, ohne Navigation und Schaltflächen. */
@media print {
  .mfvp-nav,
  .mfvp-dock,
  .mfvp-nav-backdrop,
  .mfvp-previewbar,
  .mfvp-skip,
  .mfvp-banner,
  .mfvp-credit,
  .mfvp-actions,
  .mfvp-review-edit,
  .mfvp-btn { display: none !important; }
  .mfvp-body { background: #fff; font-size: 11pt; }
  .mfvp-app { display: block; }
  .mfvp-main { max-width: none; padding: 0; }
  .mfvp-review-section { break-inside: avoid; border-color: #999; }
  .mfvp-badge { border-color: #333; }
}
/* Ansprechpersonen aus dem Ressort (Übersicht und Seite «Fragen») */
.mfvp-contacts {
  margin: 0 0 2rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--mfvp-card);
  border: 1px solid var(--mfvp-line);
  border-radius: 14px;
}
.mfvp-contacts h2 { margin: 0 0 .9rem; }
.mfvp-contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.4rem;
}
.mfvp-contact { display: flex; align-items: center; gap: .9rem; }
.mfvp-contact-photo {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mfvp-paper);
  border: 2px solid var(--mfvp-yellow);
}
.mfvp-contact-initials,
.mfvp-contact-chip-photo.mfvp-contact-initials {
  display: inline-grid;
  place-items: center;
  color: var(--mfvp-blue);
  font-weight: 800;
}
.mfvp-contact-text { display: grid; gap: .1rem; min-width: 0; }
.mfvp-contact-text span { color: var(--mfvp-muted); }
.mfvp-contact-icons { display: flex; gap: .5rem; margin-top: .35rem; }
.mfvp-contact-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--mfvp-blue);
  color: var(--mfvp-blue);
}
.mfvp-contact-icon:hover,
.mfvp-contact-icon:focus-visible { background: var(--mfvp-blue); color: #fff; }

/* Seite «Fragen»: Empfänger wie im Kopf eines Mails (an / cc) */
.mfvp-mailhead {
  margin: .9rem 0 0;
  padding: .3rem 1rem;
  background: var(--mfvp-card);
  border: 1px solid var(--mfvp-line);
  border-radius: 12px;
}
.mfvp-mailhead-row {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: center;
  gap: .6rem;
  padding: .55rem 0;
}
.mfvp-mailhead-row + .mfvp-mailhead-row { border-top: 1px solid var(--mfvp-line); }
.mfvp-mailhead dt { margin: 0; color: var(--mfvp-muted); font-weight: 600; }
.mfvp-mailhead dd { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.mfvp-contact-chip { display: inline-flex; align-items: center; gap: .55rem; }
.mfvp-contact-chip-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mfvp-paper);
  font-size: .8rem;
}
/* Setup: Einträge der Ansprechpersonen */
.mfvp-contact-slot { padding: .8rem 0 .4rem; border-top: 1px solid var(--mfvp-line); }
.mfvp-contact-slot h3 { margin: 0 0 .5rem; font-size: 1rem; }
.mfvp-contact-slot .mfvp-contact-photo { width: 64px; height: 64px; }

/* Ansprechpersonen: sauberer Umbruch auf schmalen Bildschirmen */
.mfvp-contacts h2 { overflow-wrap: normal; word-break: normal; hyphens: auto; }
@media (max-width: 640px) {
  .mfvp-contact-photo { width: 60px; height: 60px; }
  .mfvp-mailhead-row { grid-template-columns: 2.2rem 1fr; }
  .mfvp-chip-text { display: grid; }
  .mfvp-chip-sep { display: none; }
  .mfvp-chip-role { color: var(--mfvp-muted); }
}

/* Vereinsfoto im Menü ist ein Link zur Übersicht */
.mfvp-nav-photo:hover img { opacity: .9; }
.mfvp-nav-photo:focus-visible { outline: 3px solid var(--mfvp-yellow); outline-offset: 3px; }
