/* MD Food Order – Header & Footer im hellen App-Stil (gegen Theme-Stile abgeschirmt). */

/* ===================== Reset im eigenen Bereich ===================== */
:is(#mdfo-hd, #mdfo-ft), :is(#mdfo-hd, #mdfo-ft) * { box-sizing: border-box; }
:is(#mdfo-hd, #mdfo-ft) { font-family: var(--mdfo-font); color: var(--mdfo-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.4; letter-spacing: normal; text-transform: none; }
:is(#mdfo-hd, #mdfo-ft) :is(ul, ol, li) { list-style: none; margin: 0; padding: 0; }
:is(#mdfo-hd, #mdfo-ft) li::before, :is(#mdfo-hd, #mdfo-ft) li::after { content: none !important; }
:is(#mdfo-hd, #mdfo-ft) a { text-decoration: none; color: inherit; box-shadow: none; transition: color .15s, background-color .15s, box-shadow .2s, transform .15s; }
:is(#mdfo-hd, #mdfo-ft) :is(h2, p) { margin: 0; padding: 0; font-family: var(--mdfo-font); text-transform: none; letter-spacing: normal; }
:is(#mdfo-hd, #mdfo-ft) button { font: inherit; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; min-height: 0; line-height: 1; box-shadow: none; }
:is(#mdfo-hd, #mdfo-ft) :is(a, button):focus-visible { outline: 3px solid color-mix(in srgb, var(--mdfo-primary) 35%, transparent); outline-offset: 2px; }
:is(#mdfo-hd, #mdfo-ft) [hidden] { display: none !important; }
:is(#mdfo-hd, #mdfo-ft) img { max-width: 100%; height: auto; border: 0; box-shadow: none; }
.mdfo-hd__i { width: 20px; height: 20px; flex: none; }

/* ===================== Header ===================== */
#mdfo-hd { position: relative; z-index: 9990; width: 100%; }
body.mdfo-header-sticky #mdfo-hd { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { body.admin-bar.mdfo-header-sticky #mdfo-hd { top: 0; } }
#mdfo-hd .mdfo-hd__bar {
	position: relative; z-index: 2;
	background: rgba(255,255,255,.86); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
#mdfo-hd .mdfo-hd__inner { display: flex; align-items: center; gap: 18px; max-width: 1280px; height: 76px; margin: 0 auto; padding: 0 24px; transition: height .3s var(--mdfo-ease); }
#mdfo-hd.is-condensed .mdfo-hd__inner { height: 64px; }
#mdfo-hd .mdfo-hd__logo { display: flex; align-items: center; flex: none; height: 100%; padding: 6px 0; }
#mdfo-hd .mdfo-hd__logo img { display: block; width: auto; height: 100%; max-height: 60px; max-width: 170px; object-fit: contain; transition: max-height .3s var(--mdfo-ease); }
#mdfo-hd.is-condensed .mdfo-hd__logo img { max-height: 48px; }
#mdfo-hd .mdfo-hd__brand-text { font-family: var(--mdfo-font-h); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--mdfo-primary); }

/* Menü (Desktop) */
#mdfo-hd .mdfo-hd__nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
#mdfo-hd .mdfo-hd__menu { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
#mdfo-hd .mdfo-hd__menu a { display: block; padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; color: #3A3A3C; }
#mdfo-hd .mdfo-hd__menu a:hover { background: var(--mdfo-surface); color: var(--mdfo-text); }
#mdfo-hd .mdfo-hd__menu :is(.current-menu-item, .current_page_item, .current-menu-ancestor) > a { background: color-mix(in srgb, var(--mdfo-primary) 10%, #fff); color: var(--mdfo-primary); }

/* Aktionen rechts */
#mdfo-hd .mdfo-hd__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
#mdfo-hd .mdfo-hd__call {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; color: #fff; font-weight: 650; font-size: 15px; white-space: nowrap;
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 82%, #fff), var(--mdfo-primary) 55%, var(--mdfo-primary-dark));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 var(--mdfo-primary-dark), 0 8px 18px color-mix(in srgb, var(--mdfo-primary) 32%, transparent);
}
#mdfo-hd .mdfo-hd__call:hover { color: #fff; filter: brightness(1.06); }
#mdfo-hd .mdfo-hd__call:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 var(--mdfo-primary-dark), 0 3px 8px color-mix(in srgb, var(--mdfo-primary) 30%, transparent); }
#mdfo-hd .mdfo-hd__icon {
	position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #1D1D1F;
	background: linear-gradient(180deg, #fff, #F3F3F6);
	box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
}
#mdfo-hd .mdfo-hd__icon:hover { color: var(--mdfo-primary); }
#mdfo-hd .mdfo-hd__icon:active { transform: translateY(1px); }
#mdfo-hd .mdfo-hd__icon[aria-expanded="true"] { color: var(--mdfo-primary); box-shadow: inset 0 1px 2px rgba(0,0,0,.06), 0 0 0 1.5px var(--mdfo-primary); }
#mdfo-hd .mdfo-hd__badge {
	position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center;
	font-size: 11.5px; font-weight: 750; color: #fff; background: var(--mdfo-primary); box-shadow: 0 0 0 2px #fff;
}
#mdfo-hd .mdfo-hd__cart.is-bump { animation: mdfo-hd-bump .45s var(--mdfo-ease); }
@keyframes mdfo-hd-bump { 30% { transform: scale(1.15); } 60% { transform: scale(.95); } }
#mdfo-hd .mdfo-hd__avatar {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 15px; letter-spacing: .02em;
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 80%, #fff), var(--mdfo-primary));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 2px #fff, 0 4px 12px color-mix(in srgb, var(--mdfo-primary) 35%, transparent);
}
#mdfo-hd .mdfo-hd__avatar[aria-expanded="true"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--mdfo-primary) 35%, transparent); }

/* Konto-Dropdown */
#mdfo-hd .mdfo-hd__acc { position: relative; }
#mdfo-hd .mdfo-hd__drop {
	position: absolute; right: 0; top: calc(100% + 12px); width: 280px; padding: 8px; border-radius: 20px; background: #fff;
	box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 48px rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.06);
	transform-origin: top right; transform: translateY(-6px) scale(.96); opacity: 0; transition: transform .18s var(--mdfo-ease), opacity .18s;
}
#mdfo-hd .mdfo-hd__drop.is-open { transform: none; opacity: 1; }
#mdfo-hd .mdfo-hd__drop-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(0,0,0,.06); }
#mdfo-hd .mdfo-hd__drop-head span { display: flex; flex-direction: column; min-width: 0; }
#mdfo-hd .mdfo-hd__drop-head strong { font-size: 15px; font-weight: 650; }
#mdfo-hd .mdfo-hd__drop-head small { font-size: 12.5px; color: var(--mdfo-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mdfo-hd .mdfo-hd__drop-head--guest { flex-direction: column; align-items: flex-start; gap: 4px; }
#mdfo-hd .mdfo-hd__drop-head--guest small { white-space: normal; line-height: 1.4; }
#mdfo-hd .mdfo-hd__drop-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid !important; place-items: center; color: #fff; font-weight: 750; background: var(--mdfo-primary); }
#mdfo-hd .mdfo-hd__drop a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 15px; font-weight: 550; color: #1D1D1F; }
#mdfo-hd .mdfo-hd__drop a .mdfo-hd__i { color: var(--mdfo-muted); }
#mdfo-hd .mdfo-hd__drop a:hover, #mdfo-hd .mdfo-hd__drop a:focus { background: var(--mdfo-surface); outline: none; }
#mdfo-hd .mdfo-hd__drop a.is-primary { margin: 4px 0; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 82%, #fff), var(--mdfo-primary) 55%, var(--mdfo-primary-dark)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 var(--mdfo-primary-dark); }
#mdfo-hd .mdfo-hd__drop a.is-primary .mdfo-hd__i { color: #fff; }
#mdfo-hd .mdfo-hd__drop a.is-primary:hover { filter: brightness(1.06); }
#mdfo-hd .mdfo-hd__drop a.is-danger { color: var(--mdfo-primary); }
#mdfo-hd .mdfo-hd__drop a.is-danger .mdfo-hd__i { color: var(--mdfo-primary); }

/* Mobiles Menü */
#mdfo-hd .mdfo-hd__burger { display: none; }
#mdfo-hd .mdfo-hd__mnav {
	position: absolute; left: 0; right: 0; top: 100%; padding: 8px 16px 18px; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
	box-shadow: 0 18px 30px rgba(0,0,0,.12); border-radius: 0 0 24px 24px;
	transform: translateY(-8px); opacity: 0; transition: transform .2s var(--mdfo-ease), opacity .2s;
}
#mdfo-hd .mdfo-hd__mnav.is-open { transform: none; opacity: 1; }
#mdfo-hd .mdfo-hd__mmenu a { display: block; padding: 14px 6px; font-size: 18px; font-weight: 650; border-bottom: 1px solid rgba(0,0,0,.06); }
#mdfo-hd .mdfo-hd__mmenu :is(.current-menu-item, .current_page_item) > a { color: var(--mdfo-primary); }
#mdfo-hd .mdfo-hd__mcall { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; height: 52px; border-radius: 16px; color: #fff; font-weight: 650; background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 82%, #fff), var(--mdfo-primary) 55%, var(--mdfo-primary-dark)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 var(--mdfo-primary-dark); }

/* Kategorie-Leiste */
#mdfo-hd .mdfo-hd__cats { position: relative; z-index: 1; background: rgba(255,255,255,.92); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 24px -14px rgba(0,0,0,.18); }
#mdfo-hd .mdfo-hd__catlist {
	display: flex; gap: 6px; max-width: 1280px; margin: 0 auto; padding: 10px 24px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
/* Verlauf nur an der Seite, an der es weitergeht */
#mdfo-hd .mdfo-hd__cats.can-r:not(.can-l) .mdfo-hd__catlist { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent 100%); }
#mdfo-hd .mdfo-hd__cats.can-l:not(.can-r) .mdfo-hd__catlist { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px); mask-image: linear-gradient(90deg, transparent 0, #000 36px); }
#mdfo-hd .mdfo-hd__cats.can-l.can-r .mdfo-hd__catlist { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); }
#mdfo-hd .mdfo-hd__catlist::-webkit-scrollbar { display: none; }
#mdfo-hd .mdfo-hd__catlist { gap: 10px; }
#mdfo-hd .mdfo-hd__catlist li { flex: none; scroll-snap-align: center; }
/* Kategorie-Karte: Bild oben, Name unten – abgerundetes Rechteck */
#mdfo-hd .mdfo-hd__cat {
	display: flex; flex-direction: column; width: 104px; padding: 4px; border-radius: 16px; background: #fff; overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04), 0 8px 18px rgba(0,0,0,.08);
	transition: transform .25s var(--mdfo-ease), box-shadow .25s, width .3s var(--mdfo-ease);
}
#mdfo-hd .mdfo-hd__cat-img {
	display: block; width: 100%; height: 66px; border-radius: 12px; overflow: hidden; background: var(--mdfo-surface);
	transition: height .3s var(--mdfo-ease), opacity .25s;
}
#mdfo-hd .mdfo-hd__cat-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--mdfo-ease); }
#mdfo-hd .mdfo-hd__cat-name {
	display: block; padding: 7px 4px 5px; text-align: center; font-family: var(--mdfo-font-h); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: var(--mdfo-h-transform);
	color: #1D1D1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 0 0 12px 12px; transition: color .2s, background-color .2s;
}
#mdfo-hd .mdfo-hd__cat:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 10px rgba(0,0,0,.06), 0 16px 30px rgba(0,0,0,.14); }
#mdfo-hd .mdfo-hd__cat:hover .mdfo-hd__cat-img img { transform: scale(1.07); }
#mdfo-hd .mdfo-hd__cat.is-active { box-shadow: 0 0 0 2px var(--mdfo-primary), 0 10px 22px color-mix(in srgb, var(--mdfo-primary) 28%, transparent); }
#mdfo-hd .mdfo-hd__cat.is-active .mdfo-hd__cat-name { color: #fff; background: var(--mdfo-primary); margin: 0 -4px -4px; padding: 11px 8px 9px; border-radius: 0; }
/* verdichtet: nur die Namen als kleine Karten */
#mdfo-hd.is-condensed .mdfo-hd__catlist { padding-top: 8px; padding-bottom: 8px; gap: 8px; }
#mdfo-hd.is-condensed .mdfo-hd__cat { width: auto; min-width: 84px; padding: 0; border-radius: 12px; }
#mdfo-hd.is-condensed .mdfo-hd__cat-img { height: 0; opacity: 0; }
#mdfo-hd.is-condensed .mdfo-hd__cat-name { padding: 9px 14px; font-size: 13.5px; border-radius: 12px; }
#mdfo-hd.is-condensed .mdfo-hd__cat.is-active .mdfo-hd__cat-name { margin: 0; padding: 9px 14px; border-radius: 12px; }
#mdfo-hd.is-condensed .mdfo-hd__cat:hover { transform: none; }
/* Pfeile (Desktop, wenn mehr Kategorien als Platz) */
#mdfo-hd .mdfo-hd__scroll {
	position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; display: none; place-items: center; color: #1D1D1F;
	background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 16px rgba(0,0,0,.14);
}
#mdfo-hd .mdfo-hd__scroll .mdfo-hd__i { width: 18px; height: 18px; }
#mdfo-hd .mdfo-hd__scroll--l { left: 8px; }
#mdfo-hd .mdfo-hd__scroll--l .mdfo-hd__i { transform: rotate(180deg); }
#mdfo-hd .mdfo-hd__scroll--r { right: 8px; }
@media (hover: hover) and (min-width: 768px) {
	#mdfo-hd .mdfo-hd__cats.can-l .mdfo-hd__scroll--l, #mdfo-hd .mdfo-hd__cats.can-r .mdfo-hd__scroll--r { display: grid; }
}

/* Handy */
@media (max-width: 900px) {
	#mdfo-hd .mdfo-hd__nav { display: none; }
	#mdfo-hd .mdfo-hd__burger { display: grid; }
	#mdfo-hd .mdfo-hd__call { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
	#mdfo-hd .mdfo-hd__call span { display: none; }
}
@media (max-width: 600px) {
	#mdfo-hd .mdfo-hd__inner { height: 64px; padding: 0 14px; gap: 10px; }
	#mdfo-hd.is-condensed .mdfo-hd__inner { height: 58px; }
	#mdfo-hd .mdfo-hd__logo img { max-height: 48px; max-width: 120px; }
	#mdfo-hd.is-condensed .mdfo-hd__logo img { max-height: 42px; }
	#mdfo-hd .mdfo-hd__actions { gap: 8px; }
	#mdfo-hd :is(.mdfo-hd__icon, .mdfo-hd__avatar, .mdfo-hd__call) { width: 42px; height: 42px; }
	body.mdfo-sc-on #mdfo-hd .mdfo-hd__cart { display: none; } /* am Handy gibt es den schwebenden Warenkorb-Button */
	#mdfo-hd .mdfo-hd__brand-text { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; display: block; }
	#mdfo-hd .mdfo-hd__logo { min-width: 0; flex: 0 1 auto; }
	#mdfo-hd .mdfo-hd__drop { position: fixed; left: 12px; right: 12px; top: calc(var(--mdfo-hd-top, 64px) + 8px); width: auto; transform-origin: top center; }
	#mdfo-hd .mdfo-hd__catlist { padding: 8px 12px 10px; gap: 8px; }
	#mdfo-hd .mdfo-hd__cat { width: 88px; padding: 3px; border-radius: 14px; }
	#mdfo-hd .mdfo-hd__cat-img { height: 54px; border-radius: 11px; }
	#mdfo-hd .mdfo-hd__cat-name { font-size: 12px; padding: 6px 2px 4px; }
	#mdfo-hd .mdfo-hd__cat.is-active .mdfo-hd__cat-name { margin: 0 -3px -3px; padding: 9px 6px 7px; }
	#mdfo-hd.is-condensed .mdfo-hd__cat { min-width: 72px; }
	#mdfo-hd.is-condensed .mdfo-hd__cat-name { font-size: 13px; padding: 8px 12px; }
}

/* ===================== Footer ===================== */
#mdfo-ft { position: relative; margin-top: 72px; background: #F5F5F7; color: #3A3A3C; font-size: 15px; clear: both; }
#mdfo-ft .mdfo-ft__cta { padding: 0 24px; transform: translateY(-36px); margin-bottom: -36px; }
#mdfo-ft .mdfo-ft__cta-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1232px; margin: 0 auto; padding: 26px 30px; border-radius: 26px; color: #fff;
	background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--mdfo-primary) 75%, #fff) 0%, var(--mdfo-primary) 45%, var(--mdfo-primary-dark) 100%);
	box-shadow: 0 18px 40px color-mix(in srgb, var(--mdfo-primary) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}
#mdfo-ft .mdfo-ft__cta-inner > div { display: flex; flex-direction: column; gap: 4px; }
#mdfo-ft .mdfo-ft__cta-inner strong { font-family: var(--mdfo-font-h); font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; text-transform: var(--mdfo-h-transform); }
#mdfo-ft .mdfo-ft__cta-inner span { font-size: 15px; opacity: .9; }
#mdfo-ft .mdfo-ft__btn {
	flex: none; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 700; color: var(--mdfo-primary);
	background: linear-gradient(180deg, #fff, #F2F2F5); box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(0,0,0,.18), 0 10px 22px rgba(0,0,0,.18); transition: transform .12s, filter .15s;
}
#mdfo-ft .mdfo-ft__btn:hover { filter: brightness(1.03); }
#mdfo-ft .mdfo-ft__btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.18), 0 4px 10px rgba(0,0,0,.15); }
#mdfo-ft .mdfo-ft__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.25fr 1.25fr; gap: 40px; max-width: 1280px; margin: 0 auto; padding: 56px 24px 40px; }
#mdfo-ft .mdfo-ft__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
#mdfo-ft .mdfo-hd__logo { height: 72px; padding: 0; }
#mdfo-ft .mdfo-hd__logo img { height: 100%; max-height: 72px; width: auto; max-width: 180px; object-fit: contain; }
#mdfo-ft .mdfo-hd__brand-text { font-weight: 800; font-size: 24px; color: var(--mdfo-primary); }
#mdfo-ft .mdfo-ft__brand p { max-width: 320px; color: var(--mdfo-muted); line-height: 1.55; }
#mdfo-ft .mdfo-ft__social { display: flex; gap: 10px; }
#mdfo-ft .mdfo-ft__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #1D1D1F; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.07); }
#mdfo-ft .mdfo-ft__social a:hover { color: #fff; background: var(--mdfo-primary); transform: translateY(-2px); }
#mdfo-ft .mdfo-ft__social svg { width: 20px; height: 20px; }
#mdfo-ft .mdfo-ft__h { margin: 0 0 14px; font-family: var(--mdfo-font); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1D1D1F; }
#mdfo-ft .mdfo-ft__links { display: flex; flex-direction: column; gap: 9px; }
#mdfo-ft .mdfo-ft__links a { color: #515154; }
#mdfo-ft .mdfo-ft__links a:hover { color: var(--mdfo-primary); }
#mdfo-ft .mdfo-ft__contact { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
#mdfo-ft .mdfo-ft__contact li { display: flex; gap: 10px; align-items: flex-start; }
#mdfo-ft .mdfo-ft__contact .mdfo-hd__i { width: 18px; height: 18px; margin-top: 2px; color: var(--mdfo-primary); }
#mdfo-ft .mdfo-ft__contact a:hover { color: var(--mdfo-primary); }
#mdfo-ft .mdfo-ft__hours { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; border: 0; font-size: 14px; background: none; }
#mdfo-ft .mdfo-ft__hours :is(th, td) { padding: 5px 8px; border: 0; background: none; text-align: left; font-weight: 500; color: #515154; }
#mdfo-ft .mdfo-ft__hours th { padding-left: 0; width: 42%; font-weight: 600; color: #1D1D1F; }
#mdfo-ft .mdfo-ft__hours tr.is-today :is(th, td) { color: var(--mdfo-primary); font-weight: 700; }
#mdfo-ft .mdfo-ft__small { margin-top: 8px; font-size: 13px; color: var(--mdfo-muted); }
#mdfo-ft .mdfo-ft__bottom { border-top: 1px solid rgba(0,0,0,.07); }
#mdfo-ft .mdfo-ft__bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 18px 24px 22px; font-size: 13px; color: var(--mdfo-muted); }
@media (max-width: 1000px) { #mdfo-ft .mdfo-ft__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
	#mdfo-ft { margin-top: 64px; }
	#mdfo-ft .mdfo-ft__cta { padding: 0 14px; }
	#mdfo-ft .mdfo-ft__cta-inner { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 20px; border-radius: 22px; }
	#mdfo-ft .mdfo-ft__cta-inner strong { font-size: 22px; }
	#mdfo-ft .mdfo-ft__btn { width: 100%; }
	#mdfo-ft .mdfo-ft__inner { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 40px 18px 28px; }
	#mdfo-ft .mdfo-ft__brand { grid-column: 1 / -1; }
	#mdfo-ft .mdfo-ft__inner > .mdfo-ft__col:nth-child(3), #mdfo-ft .mdfo-ft__inner > .mdfo-ft__col:nth-child(4) { grid-column: 1 / -1; }
	#mdfo-ft .mdfo-ft__bottom-inner { flex-direction: column; align-items: center; text-align: center; padding-bottom: calc(110px + env(safe-area-inset-bottom)); } /* Platz für schwebende Buttons */
}
@media (prefers-reduced-motion: reduce) {
	#mdfo-hd *, #mdfo-ft * { transition: none !important; animation: none !important; }
}

/* Feinschliff gegen Theme-Stile */
#mdfo-ft :is(li, a, td, th, span, p) { line-height: 1.45; }
#mdfo-ft .mdfo-ft__brand .mdfo-hd__logo { margin-bottom: 0; }
#mdfo-hd .mdfo-hd__mnav { background: #fff; }
#mdfo-hd.nav-open .mdfo-hd__cats { visibility: hidden; }
#mdfo-hd :is(li, a, span) { line-height: 1.3; }
/* Scroll-nach-oben-Knopf des Themes nicht unter die schwebenden Buttons legen */
body.mdfo-layout #scroll_up { bottom: calc(96px + var(--mdfo-bottom-offset, 0px)) !important; }
@media (max-width: 600px) { body.mdfo-layout #scroll_up { display: none !important; } }
#mdfo-ft .mdfo-hd__logo:has(.mdfo-hd__brand-text) { height: auto; }

/* ===================== Header-Farbe (Einstellung „Header-Farbe“, Standard #383838) ===================== */
#mdfo-hd .mdfo-hd__bar, #mdfo-hd .mdfo-hd__cats { background: var(--mdfo-hd-bg, #383838); backdrop-filter: none; -webkit-backdrop-filter: none; }
#mdfo-hd .mdfo-hd__bar { box-shadow: 0 1px 0 var(--mdfo-hd-line, rgba(255,255,255,.1)); }
#mdfo-hd .mdfo-hd__cats { box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); }
#mdfo-hd .mdfo-hd__brand-text { color: var(--mdfo-hd-fg, #fff); }
#mdfo-hd .mdfo-hd__menu a { color: var(--mdfo-hd-fg2, rgba(255,255,255,.72)); }
#mdfo-hd .mdfo-hd__menu a:hover { color: var(--mdfo-hd-fg, #fff); background: var(--mdfo-hd-chip, rgba(255,255,255,.1)); }
#mdfo-hd .mdfo-hd__menu :is(.current-menu-item, .current_page_item, .current-menu-ancestor) > a { color: #fff; background: var(--mdfo-primary); }
#mdfo-hd .mdfo-hd__icon { color: var(--mdfo-hd-fg, #fff); background: var(--mdfo-hd-chip, rgba(255,255,255,.1)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(255,255,255,.08), 0 2px 0 rgba(0,0,0,.25); }
#mdfo-hd .mdfo-hd__icon:hover { color: var(--mdfo-hd-fg, #fff); background: rgba(255,255,255,.18); }
#mdfo-hd .mdfo-hd__icon[aria-expanded="true"] { color: #fff; background: var(--mdfo-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 0 var(--mdfo-primary-dark); }
#mdfo-hd .mdfo-hd__badge { box-shadow: 0 0 0 2px var(--mdfo-hd-bg, #383838); }
#mdfo-hd .mdfo-hd__avatar { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 2px rgba(255,255,255,.85), 0 4px 12px rgba(0,0,0,.3); }
#mdfo-hd .mdfo-hd__mnav { background: var(--mdfo-hd-bg, #383838); box-shadow: 0 18px 30px rgba(0,0,0,.35); }
#mdfo-hd .mdfo-hd__mmenu a { color: var(--mdfo-hd-fg, #fff); border-bottom-color: var(--mdfo-hd-line, rgba(255,255,255,.1)); }
#mdfo-hd .mdfo-hd__mmenu :is(.current-menu-item, .current_page_item) > a { color: #fff; }

/* ===================== Kategorie-Kacheln: 15 % größer, Bild unbeschnitten, roter Hover ===================== */
#mdfo-hd .mdfo-hd__cat { width: 120px; box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 8px 18px rgba(0,0,0,.25); transition: transform .25s var(--mdfo-ease), box-shadow .25s, background-color .2s, width .3s var(--mdfo-ease); }
#mdfo-hd .mdfo-hd__cat-img { height: 76px; }
#mdfo-hd .mdfo-hd__cat-img img { object-fit: cover; object-position: center; transform: none !important; }
#mdfo-hd .mdfo-hd__cat-name { font-size: 14px; }
#mdfo-hd .mdfo-hd__cat:hover, #mdfo-hd .mdfo-hd__cat:focus-visible { background: var(--mdfo-primary-dark); transform: translateY(-3px); box-shadow: 0 0 0 1px var(--mdfo-primary-dark), 0 14px 28px color-mix(in srgb, var(--mdfo-primary-dark) 45%, transparent); }
#mdfo-hd .mdfo-hd__cat:hover .mdfo-hd__cat-name, #mdfo-hd .mdfo-hd__cat:focus-visible .mdfo-hd__cat-name { color: #fff; }
#mdfo-hd .mdfo-hd__cat.is-active { box-shadow: 0 0 0 2px var(--mdfo-primary), 0 10px 24px rgba(0,0,0,.35); }
#mdfo-hd .mdfo-hd__cat.is-active:hover { background: var(--mdfo-primary-dark); }
#mdfo-hd.is-condensed .mdfo-hd__cat { width: auto; }
#mdfo-hd.is-condensed .mdfo-hd__cat:hover .mdfo-hd__cat-name { background: var(--mdfo-primary-dark); color: #fff; }
#mdfo-hd .mdfo-hd__scroll { color: #1D1D1F; }
@media (max-width: 600px) {
	#mdfo-hd .mdfo-hd__cat { width: 101px; }
	#mdfo-hd .mdfo-hd__cat-img { height: 62px; }
	#mdfo-hd .mdfo-hd__cat-name { font-size: 13px; }
	#mdfo-hd.is-condensed .mdfo-hd__cat { width: auto; }
}

/* ===================== Footer: ohne Speisekarten-Spalte ===================== */
#mdfo-ft .mdfo-ft__inner { grid-template-columns: 1.4fr 1.2fr 1.2fr; }
@media (max-width: 1000px) { #mdfo-ft .mdfo-ft__inner { grid-template-columns: 1fr 1fr; } #mdfo-ft .mdfo-ft__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { #mdfo-ft .mdfo-ft__inner { grid-template-columns: 1fr; } #mdfo-ft .mdfo-ft__inner > .mdfo-ft__col { grid-column: 1 / -1; } }
#mdfo-hd .mdfo-hd__cat.is-active { background: var(--mdfo-primary); }

/* ===================== Speisekarte-Übersicht [mdfo_speisekarte] ===================== */
.mdfo-menu { max-width: 1240px; margin: 0 auto; padding: 40px 0 56px; font-family: var(--mdfo-font); color: var(--mdfo-text); }
.mdfo-menu * { box-sizing: border-box; }
.mdfo-menu__head { text-align: center; margin: 0 0 30px; }
.mdfo-menu .mdfo-menu__title { margin: 0 0 8px !important; padding: 0 !important; font-family: var(--mdfo-font-h) !important; font-size: clamp(32px, 5vw, 52px) !important; line-height: 1.05 !important; font-weight: 800; letter-spacing: -.02em; color: var(--mdfo-text) !important; text-transform: var(--mdfo-h-transform); }
.mdfo-menu__sub { margin: 0 !important; font-size: 17px; line-height: 1.45 !important; color: var(--mdfo-muted); }
.mdfo-menu__grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.mdfo-menu__item { margin: 0 !important; padding: 0 !important; list-style: none !important; animation: mdfo-menu-in .55s var(--mdfo-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.mdfo-menu__item::before { display: none !important; }
.mdfo-menu__item[hidden] { display: none !important; }
@keyframes mdfo-menu-in { from { opacity: 0; transform: translateY(16px); } }
.mdfo-menu__card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 24px; background: #fff; text-decoration: none !important; color: var(--mdfo-text) !important; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04), 0 12px 30px rgba(0,0,0,.08); transition: transform .3s var(--mdfo-ease), box-shadow .3s, background-color .2s; }
.mdfo-menu__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mdfo-surface); }
.mdfo-menu__img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; transition: transform .6s var(--mdfo-ease); }
.mdfo-menu__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; }
.mdfo-menu__name { font-family: var(--mdfo-font-h); font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; text-transform: var(--mdfo-h-transform); }
.mdfo-menu__meta { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--mdfo-muted); white-space: nowrap; }
.mdfo-menu__go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--mdfo-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 var(--mdfo-primary-dark); transition: transform .25s var(--mdfo-ease); }
.mdfo-menu__go .mdfo-hd__i { width: 18px; height: 18px; }
.mdfo-menu__card:hover { transform: translateY(-5px); background: var(--mdfo-primary-dark); box-shadow: 0 16px 40px color-mix(in srgb, var(--mdfo-primary-dark) 35%, transparent); }
.mdfo-menu__card:hover .mdfo-menu__name, .mdfo-menu__card:hover .mdfo-menu__meta { color: #fff; }
.mdfo-menu__card:hover .mdfo-menu__go { background: #fff; color: var(--mdfo-primary); transform: translateX(3px); }
.mdfo-menu__card:hover .mdfo-menu__img img { transform: scale(1.04); }
@media (max-width: 600px) {
	.mdfo-menu { padding: 26px 0 40px; }
	.mdfo-menu__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.mdfo-menu__card { border-radius: 18px; }
	.mdfo-menu__body { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 12px 14px; }
	.mdfo-menu__name { font-size: 17px; }
	.mdfo-menu__go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mdfo-menu__item { animation: none; } }

/* Endlos-Karussell: Pfeile immer zeigen, kein Einrasten (sonst ruckelt der Sprung) */
#mdfo-hd .mdfo-hd__cats.is-loop .mdfo-hd__catlist { scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); }
@media (hover: hover) and (min-width: 768px) { #mdfo-hd .mdfo-hd__cats.is-loop .mdfo-hd__scroll { display: grid; } }
