/* V63 Handy: Leiste unten, Auswahlfenster, schlanker Kopf */
.mfc-bnav, .mfc-sheet { display: none; }
.mfc-header .mfc-kopfname { display: none; }

@media (max-width: 781px) {
	html { scroll-padding-bottom: 80px; }
	body { padding-bottom: 68px; }

	.mfc-bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; background: #fff; border-top: 1px solid #d9e2ee; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); align-items: flex-end; justify-content: space-around; }
	.mfc-bnav__i { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border: 0; background: none; color: #0a3f7f; font: inherit; font-size: .7rem; line-height: 1.1; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.mfc-bnav__i .mfc-ico { width: 24px; height: 24px; }
	.mfc-bnav__i.is-aktiv, .mfc-bnav__i.ist-offen { font-weight: 700; }
	.mfc-bnav__i.is-aktiv .mfc-ico, .mfc-bnav__i.ist-offen .mfc-ico { stroke-width: 2.4; }
	.mfc-bnav__plus { flex: 0 0 48px; width: 48px; height: 48px; margin: -20px 8px 2px; border-radius: 50%; border: 3px solid #fff; background: #0a3f7f; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; box-sizing: border-box; box-shadow: 0 3px 10px rgba(10, 63, 127, .35); transition: transform .2s; text-decoration: none; }
	.mfc-bnav__plus svg { width: 24px; height: 24px; display: block; }
	.mfc-bnav__plus.ist-offen { transform: rotate(45deg); }

	.mfc-sheet { position: fixed; inset: 0 0 64px 0; z-index: 99980; background: rgba(6, 14, 28, .55); align-items: flex-end; }
	.mfc-sheet:target, .mfc-sheet.is-offen { display: flex; }
	.mfc-sheet__box { width: 100%; max-height: 82vh; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 18px 18px 0 0; padding: .4rem 1rem 1.2rem; }
	.mfc-sheet__kopf { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; font-weight: 700; color: #0a3f7f; font-size: 1.05rem; padding: .8rem .2rem .4rem; }
	.mfc-sheet__kopf span { flex: 1; }
	.mfc-sheet__login { font-size: .9rem; font-weight: 500; color: #0a3f7f; text-decoration: none; border: 1px solid #b9c7d9; border-radius: 999px; padding: .3rem .85rem; margin-right: .4rem; }
	.mfc-sheet__zu { font-size: 1.8rem; line-height: 1; color: #0a3f7f; text-decoration: none; padding: 0 .4rem; }
	.mfc-sheet__gruppe { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #5a6b82; margin: 1rem .2rem .2rem; }
	.mfc-sheet__z { display: flex; align-items: center; gap: .8rem; padding: .7rem .2rem; border-bottom: 1px solid #e6ebf2; color: #0a3f7f; text-decoration: none; font-size: 1.05rem; font-weight: 600; }
	.mfc-sheet__z .mfc-ico { width: 24px; height: 24px; flex: none; }
	.mfc-sheet__z--text { font-weight: 500; }
	.mfc-sheet__z--knopf { justify-content: center; background: #0a3f7f; color: #fff; border: 0; border-radius: 10px; margin: .4rem 0 .2rem; padding: .85rem; }
	.mfc-sheet__z--login { margin-top: 1rem; border-bottom: 0; font-size: .95rem; color: #5a6b82; }
	.mfc-sheet__hinweis { font-size: .85rem; color: #5a6b82; margin: .9rem .2rem 0; }
	html.mfc-sheet-offen { overflow: hidden; }

	/* Kopf schlank: Logo klein, Menüleiste oben weg (die Leiste unten ersetzt sie) */
	.mfc-header { padding-top: .35rem !important; padding-bottom: .35rem !important; }
	.mfc-header .wp-block-navigation { display: none !important; }
	.mfc-header .wp-block-site-logo img { width: 64px !important; filter: none; }
	.mfc-header .wp-block-site-title, .mfc-header .wp-block-site-tagline { display: none !important; }
	.mfc-header .mfc-kopfname { display: block; margin: 0 0 0 .2rem; padding-left: .8rem; border-left: 1px solid #b9c7d9; line-height: 1.3; }
	.mfc-header .mfc-kopfname span { display: block; font-size: 1rem; font-weight: 500; color: #0a3f7f; }
	.mfc-header .mfc-kopfname small { display: block; font-size: .8rem; color: #5a6b82; }
	.home .mfc-header .wp-block-site-logo { margin-bottom: 0; }

	/* Vorstand: WordPress-Leiste oben stört am Handy */
	body.admin-bar #wpadminbar { display: none !important; }
	html.wp-toolbar, html:has(body.admin-bar) { margin-top: 0 !important; }
	body.admin-bar .wp-site-blocks { min-height: 100vh; min-height: 100dvh; }
}

/* Formulare des Vorstands am Handy: mittig, kleiner, ohne Rand links */
@media (max-width: 781px) {
	#wpcontent { padding-left: 0 !important; }
	#wpbody { padding-top: 0 !important; }
	#wpbody-content { overflow-x: hidden; }
	.mfc-w { margin: 10px auto !important; padding: 0 10px; box-sizing: border-box; max-width: 100%; }
	.mfc-karte { padding: 16px 14px 20px; border-radius: 14px; }
	.mfc-kopf { gap: 10px; }
	.mfc-kopf img { width: 44px; }
	.mfc-kopf h1 { font-size: 20px; }
	.mfc-kopf p { font-size: 13px; }
	.mfc-w h2.mfc-schritt { font-size: 15px; margin: 20px 0 6px; }
	.mfc-w .mfc-nr { width: 24px; height: 24px; font-size: 12px; }
	.mfc-w textarea { min-height: 150px; }
	.mfc-drop { padding: 18px 10px; font-size: 15px; }
	.mfc-btn { font-size: 16px; padding: 14px; margin-top: 22px; }
	.mfc-hinweis { font-size: 12px; }
}

/* Listen (Beiträge, Termine) am Handy: jede Zeile wird eine kleine Karte, nichts läuft mehr aus dem Bild */
@media (max-width: 781px) {
	.mfc-w table.widefat, .mfc-w table.widefat tbody { display: block; width: 100%; }
	.mfc-w table.widefat tr { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding: .7rem .8rem; border-bottom: 1px solid #e3e9f1; }
	.mfc-w table.widefat td { display: block; padding: 0 !important; border: 0 !important; width: auto !important; max-width: 100%; box-sizing: border-box; }
	.mfc-w table.widefat td[style*="width:64px"] { flex: 0 0 56px; }
	.mfc-w table.widefat td[style*="width:64px"] + td { flex: 1 1 calc(100% - 70px); min-width: 0; overflow-wrap: anywhere; }
	.mfc-w table.widefat td:last-child { flex: 1 1 100%; text-align: left !important; white-space: normal !important; }
	.mfc-w table.widefat tr:has(td[style*="width:64px"]) td:nth-last-child(2) { margin-left: 66px; flex: 1 1 calc(100% - 70px); }
	.mfc-w table.widefat tr:has(td[style*="width:64px"]) td:last-child { margin-left: 66px; flex: 1 1 calc(100% - 70px); }
	.mfc-w .button, .mfc-w .button-primary { font-size: 15px; padding: .45rem .9rem; line-height: 1.3; height: auto; }
}

/* V70: Startseite am Handy – mehr Luft zwischen „Alle Beiträge“ und den Beitragskarten */
@media (max-width: 781px) {
	.wp-block-query:has(.mfc-post-card) { margin-top: 3.6rem !important; }
	.wp-block-query:has(.mfc-post-card) .mfc-post-card { margin-top: 0; }
}
