/* MD Food Order – Side Cart. Heller Apple-Stil, CI-Farben aus den Kern-Variablen (--mdfo-*). */
html.mdfo-sc-lock, html.mdfo-sc-lock body { overflow: hidden !important; }

/* ---------- Abschirmung gegen Theme-Stile ---------- */
#mdfo-sc, #mdfo-sc * { box-sizing: border-box; }
#mdfo-sc { font-family: var(--mdfo-font); color: var(--mdfo-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.35; font-size: 15px; letter-spacing: normal; text-transform: none; }
#mdfo-sc :is(button, input, a) { margin: 0; font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; min-width: 0; max-width: 100%; -webkit-tap-highlight-color: transparent; }
#mdfo-sc button { background: none; border: 0; border-radius: 0; color: inherit; padding: 0; min-height: 0; width: auto; height: auto; line-height: inherit; cursor: pointer; box-shadow: none; text-decoration: none; }
#mdfo-sc button:focus { outline: none; }
#mdfo-sc :is(button, a, input):focus-visible { outline: 3px solid color-mix(in srgb, var(--mdfo-primary) 35%, transparent); outline-offset: 2px; }
#mdfo-sc :is(h2, h3, p, ul, li) { margin: 0; padding: 0; list-style: none; font-family: inherit; text-transform: none; letter-spacing: normal; }
#mdfo-sc a { color: inherit; text-decoration: none; box-shadow: none; }
#mdfo-sc img { max-width: 100%; height: auto; border: 0; box-shadow: none; }
#mdfo-sc [hidden] { display: none !important; }
#mdfo-sc .mdfo-sc-i { width: 20px; height: 20px; flex: none; display: block; }
#mdfo-sc .mdfo-sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Schwebender Button ---------- */
#mdfo-sc .mdfo-sc-fab {
	position: fixed; right: 16px; bottom: calc(16px + var(--mdfo-bottom-offset, 0px) + env(safe-area-inset-bottom) + var(--mdfo-sc-offset, 0px)); z-index: 99991;
	display: inline-flex; align-items: center; gap: 10px; height: 58px; min-width: 58px; padding: 0 9px; border-radius: 999px;
	color: #fff;
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 82%, #fff) 0%, var(--mdfo-primary) 55%, var(--mdfo-primary-dark) 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.18), 0 3px 0 var(--mdfo-primary-dark), 0 12px 28px color-mix(in srgb, var(--mdfo-primary) 40%, transparent), 0 2px 6px rgba(0,0,0,.12);
	transition: transform .2s var(--mdfo-ease), opacity .25s, bottom .25s var(--mdfo-ease), box-shadow .2s, filter .2s;
	animation: mdfo-sc-in .45s var(--mdfo-ease) both;
}
#mdfo-sc .mdfo-sc-fab.has-total { padding-right: 20px; }
#mdfo-sc .mdfo-sc-fab:hover { filter: brightness(1.05); transform: translateY(-2px); }
#mdfo-sc .mdfo-sc-fab:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 var(--mdfo-primary-dark), 0 4px 10px color-mix(in srgb, var(--mdfo-primary) 30%, transparent); }
#mdfo-sc .mdfo-sc-fab.is-empty { opacity: 0; transform: scale(.6) translateY(20px); pointer-events: none; }
#mdfo-sc .mdfo-sc-fab__ico { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
#mdfo-sc .mdfo-sc-fab__ico .mdfo-sc-i { width: 22px; height: 22px; }
#mdfo-sc .mdfo-sc-fab__badge {
	position: absolute; top: -5px; right: -6px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
	display: grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1; color: #3D2A00;
	background: linear-gradient(180deg, #FFD27A, var(--mdfo-accent)); box-shadow: 0 0 0 2px var(--mdfo-primary), 0 2px 4px rgba(0,0,0,.2);
}
#mdfo-sc .mdfo-sc-fab__total { font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
#mdfo-sc .mdfo-sc-fab__total:empty { display: none; }
#mdfo-sc .mdfo-sc-fab.is-bump { animation: mdfo-sc-bump .55s var(--mdfo-ease); }
#mdfo-sc .mdfo-sc-fab.is-bump .mdfo-sc-fab__badge { animation: mdfo-sc-pop .55s var(--mdfo-ease); }
@keyframes mdfo-sc-in { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes mdfo-sc-bump { 30% { transform: scale(1.12) rotate(-4deg); } 60% { transform: scale(.96) rotate(2deg); } }
@keyframes mdfo-sc-pop { 40% { transform: scale(1.45); } }
@media (max-width: 480px) {
	#mdfo-sc .mdfo-sc-fab.has-total { padding-right: 9px; }
	#mdfo-sc .mdfo-sc-fab__total { display: none; }
}
/* Bestell-Widget des Kerns links: auf dem Handy Platz für den Button lassen. */
body.mdfo-sc-fab-visible #mdfo-root .mdfo-widget--left { max-width: min(400px, calc(100vw - 32px - 70px)); }
body.woocommerce-cart #mdfo-sc .mdfo-sc-fab, body.woocommerce-checkout #mdfo-sc .mdfo-sc-fab { display: none; }

/* ---------- Drawer ---------- */
#mdfo-sc .mdfo-sc { position: fixed; inset: 0; z-index: 999980; }
#mdfo-sc .mdfo-sc-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s var(--mdfo-ease); }
#mdfo-sc .mdfo-sc.is-open .mdfo-sc-scrim { opacity: 1; }
#mdfo-sc .mdfo-sc-panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 440px;
	display: flex; flex-direction: column; background: var(--mdfo-surface);
	box-shadow: -20px 0 50px rgba(0,0,0,.18), -1px 0 0 rgba(0,0,0,.06);
	transform: translateX(104%); transition: transform .34s var(--mdfo-ease); outline: none;
	padding-bottom: env(safe-area-inset-bottom);
}
#mdfo-sc .mdfo-sc.is-open .mdfo-sc-panel { transform: translateX(0); }
@media (min-width: 600px) { #mdfo-sc .mdfo-sc-panel { top: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); border-radius: 26px; overflow: hidden; } }
#mdfo-sc .mdfo-sc-handle { display: none; }

#mdfo-sc .mdfo-sc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(16px + env(safe-area-inset-top)) 18px 12px 20px; background: var(--mdfo-surface); }
#mdfo-sc .mdfo-sc-head__title { font-family: var(--mdfo-font-h); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-transform: var(--mdfo-h-transform); color: var(--mdfo-text); }
#mdfo-sc .mdfo-sc-head__count { color: var(--mdfo-muted); font-weight: 600; font-size: .75em; }
#mdfo-sc .mdfo-sc-x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mdfo-text); box-shadow: var(--mdfo-elev-1), 0 0 0 1px rgba(0,0,0,.06); flex: none; transition: transform .15s; }
#mdfo-sc .mdfo-sc-x:active { transform: scale(.92); }
#mdfo-sc .mdfo-sc-x .mdfo-sc-i { width: 18px; height: 18px; }

/* Lieferart-Leiste */
#mdfo-sc .mdfo-sc-order { display: flex; align-items: center; gap: 12px; margin: 0 16px 12px; padding: 10px 12px; border-radius: 16px; background: #fff; text-align: left; box-shadow: var(--mdfo-elev-1), 0 0 0 1px rgba(0,0,0,.05); transition: box-shadow .2s; }
#mdfo-sc .mdfo-sc-order:hover { box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.06); }
#mdfo-sc .mdfo-sc-order__ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--mdfo-primary); background: color-mix(in srgb, var(--mdfo-primary) 10%, #fff); }
#mdfo-sc .mdfo-sc-order.is-warn .mdfo-sc-order__ico { color: #3D2A00; background: color-mix(in srgb, var(--mdfo-accent) 35%, #fff); }
#mdfo-sc .mdfo-sc-order__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#mdfo-sc .mdfo-sc-order__txt strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mdfo-sc .mdfo-sc-order__txt small { font-size: 12.5px; color: var(--mdfo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mdfo-sc .mdfo-sc-order__edit { display: inline-flex; align-items: center; gap: 2px; color: var(--mdfo-primary); font-size: 13px; font-weight: 600; flex: none; }
#mdfo-sc .mdfo-sc-order__edit .mdfo-sc-i { width: 15px; height: 15px; }

#mdfo-sc .mdfo-sc-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 2px 16px 16px; -webkit-overflow-scrolling: touch; }

/* Schwellen */
#mdfo-sc .mdfo-sc-goal { padding: 13px 14px 11px; margin-bottom: 12px; border-radius: 18px; background: #fff; box-shadow: var(--mdfo-elev-1), 0 0 0 1px rgba(0,0,0,.05); }
#mdfo-sc .mdfo-sc-goal__msg { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 11px; }
#mdfo-sc .mdfo-sc-goal__msg .mdfo-sc-i { width: 18px; height: 18px; color: var(--mdfo-accent); }
#mdfo-sc .mdfo-sc-goal.is-min .mdfo-sc-goal__msg .mdfo-sc-i { color: var(--mdfo-primary); }
#mdfo-sc .mdfo-sc-goal.is-done .mdfo-sc-goal__msg .mdfo-sc-i { color: var(--mdfo-ok); }
#mdfo-sc .mdfo-sc-goal__track { position: relative; height: 8px; margin: 0 7px; border-radius: 99px; background: rgba(0,0,0,.07); box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
#mdfo-sc .mdfo-sc-goal__fill { position: absolute; left: 0; top: 0; bottom: 0; display: block; border-radius: 99px; max-width: 100%;
	background: linear-gradient(90deg, var(--mdfo-primary), color-mix(in srgb, var(--mdfo-primary) 55%, var(--mdfo-accent)));
	box-shadow: 0 1px 4px color-mix(in srgb, var(--mdfo-primary) 35%, transparent); transition: width .6s var(--mdfo-ease); }
#mdfo-sc .mdfo-sc-goal.is-done .mdfo-sc-goal__fill { background: linear-gradient(90deg, var(--mdfo-ok), #34C27A); }
#mdfo-sc .mdfo-sc-goal__dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.14), 0 1px 3px rgba(0,0,0,.15); transition: background .3s, box-shadow .3s; }
#mdfo-sc .mdfo-sc-goal__dot.is-reached { background: var(--mdfo-ok); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.2); }
#mdfo-sc .mdfo-sc-goal__chips { display: flex; flex-wrap: nowrap; gap: 6px; margin: 12px -14px 0; padding: 0 14px 2px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); }
#mdfo-sc .mdfo-sc-goal__chips::-webkit-scrollbar { display: none; }
#mdfo-sc .mdfo-sc-chip { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--mdfo-muted); background: var(--mdfo-surface); }
#mdfo-sc .mdfo-sc-chip .mdfo-sc-i { width: 14px; height: 14px; }
#mdfo-sc .mdfo-sc-chip.is-reached { color: var(--mdfo-ok); background: color-mix(in srgb, var(--mdfo-ok) 12%, #fff); }

/* Positionen */
#mdfo-sc .mdfo-sc-list { display: flex; flex-direction: column; gap: 10px; }
#mdfo-sc .mdfo-sc-item { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--mdfo-elev-1), 0 0 0 1px rgba(0,0,0,.05); overflow: hidden; transition: opacity .25s, height .3s var(--mdfo-ease), padding .3s, margin .3s, transform .3s; animation: mdfo-sc-item-in .35s var(--mdfo-ease) both; }
@keyframes mdfo-sc-item-in { from { opacity: 0; transform: translateY(8px); } }
#mdfo-sc .mdfo-sc-item.is-busy .mdfo-sc-item__price { opacity: .45; }
#mdfo-sc .mdfo-sc-item.is-removing { opacity: 0; transform: translateX(30px); padding-top: 0; padding-bottom: 0; margin-top: -10px; }
#mdfo-sc .mdfo-sc-item__img { width: 72px; height: 72px; flex: none; border-radius: 14px; object-fit: cover; background: var(--mdfo-surface); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
#mdfo-sc .mdfo-sc-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#mdfo-sc .mdfo-sc-item__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
#mdfo-sc .mdfo-sc-item__name { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--mdfo-text); }
#mdfo-sc a.mdfo-sc-item__name:hover { color: var(--mdfo-primary); }
#mdfo-sc .mdfo-sc-item__price { font-weight: 700; font-size: 15px; white-space: nowrap; transition: opacity .2s; }
#mdfo-sc .mdfo-sc-item__lines { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; color: var(--mdfo-text); }
#mdfo-sc .mdfo-sc-item__lines li { overflow-wrap: anywhere; }
#mdfo-sc .mdfo-sc-item__k { color: var(--mdfo-muted); font-weight: 500; }
#mdfo-sc .mdfo-sc-item.is-menu .mdfo-sc-item__lines { padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--mdfo-primary) 22%, #fff); }
#mdfo-sc .mdfo-sc-more { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: var(--mdfo-primary); }
#mdfo-sc .mdfo-sc-item__row { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
#mdfo-sc .mdfo-sc-item__unit { font-size: 12.5px; color: var(--mdfo-muted); }
#mdfo-sc .mdfo-sc-item__single { font-weight: 600; font-size: 14px; }
#mdfo-sc .mdfo-sc-item__rm { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--mdfo-muted); transition: background .15s, color .15s; }
#mdfo-sc .mdfo-sc-item__rm:hover { background: color-mix(in srgb, var(--mdfo-primary) 9%, #fff); color: var(--mdfo-primary); }
#mdfo-sc .mdfo-sc-item__rm .mdfo-sc-i { width: 17px; height: 17px; }
#mdfo-sc .mdfo-sc-step { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px; background: var(--mdfo-surface); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
#mdfo-sc .mdfo-sc-step__btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mdfo-text); box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 2px 5px rgba(0,0,0,.09); transition: transform .12s; }
#mdfo-sc .mdfo-sc-step__btn:active { transform: scale(.9); }
#mdfo-sc .mdfo-sc-step__btn[disabled] { opacity: .35; cursor: default; }
#mdfo-sc .mdfo-sc-step__btn .mdfo-sc-i { width: 15px; height: 15px; }
#mdfo-sc .mdfo-sc-step__val { min-width: 26px; text-align: center; font-weight: 700; font-size: 15px; }

/* Leer */
#mdfo-sc .mdfo-sc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 20px; }
#mdfo-sc .mdfo-sc-empty__art { width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; color: var(--mdfo-primary); background: #fff; box-shadow: var(--mdfo-elev-2), 0 0 0 1px rgba(0,0,0,.04); margin-bottom: 8px; animation: mdfo-sc-float 3.2s ease-in-out infinite; }
#mdfo-sc .mdfo-sc-empty__art .mdfo-sc-i { width: 44px; height: 44px; stroke-width: 1.6; }
@keyframes mdfo-sc-float { 50% { transform: translateY(-6px) rotate(-3deg); } }
#mdfo-sc .mdfo-sc-empty h3 { font-family: var(--mdfo-font-h); font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-transform: var(--mdfo-h-transform); }
#mdfo-sc .mdfo-sc-empty p { color: var(--mdfo-muted); font-size: 14.5px; max-width: 280px; margin-bottom: 8px; }

/* Fuß */
#mdfo-sc .mdfo-sc-foot { display: flex; flex-direction: column; gap: 9px; padding: 12px 16px 14px; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.07), 0 -1px 0 rgba(0,0,0,.05); }
#mdfo-sc .mdfo-sc-coupon__toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--mdfo-primary); }
#mdfo-sc .mdfo-sc-coupon__toggle .mdfo-sc-i { width: 17px; height: 17px; }
#mdfo-sc .mdfo-sc-coupon__form { display: flex; gap: 8px; margin-top: 8px; }
#mdfo-sc .mdfo-sc-coupon__input { flex: 1; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; font-size: 16px; color: var(--mdfo-text); background: var(--mdfo-surface); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); text-transform: uppercase; width: 100%; }
#mdfo-sc .mdfo-sc-coupon__input:focus { outline: none; background: #fff; box-shadow: 0 0 0 1.5px var(--mdfo-primary), 0 0 0 5px color-mix(in srgb, var(--mdfo-primary) 14%, transparent); }
#mdfo-sc .mdfo-sc-coupon__rm { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; vertical-align: -4px; background: var(--mdfo-surface); }
#mdfo-sc .mdfo-sc-coupon__rm .mdfo-sc-i { width: 12px; height: 12px; }
#mdfo-sc .mdfo-sc-tots { display: flex; flex-direction: column; gap: 3px; }
#mdfo-sc .mdfo-sc-tot { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--mdfo-muted); }
#mdfo-sc .mdfo-sc-tot span:last-child { color: var(--mdfo-text); font-weight: 600; white-space: nowrap; }
#mdfo-sc .mdfo-sc-tot.is-free span:last-child, #mdfo-sc .mdfo-sc-tot.is-coupon span:last-child { color: var(--mdfo-ok); }
#mdfo-sc .mdfo-sc-tot.is-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--mdfo-line); font-size: 17px; color: var(--mdfo-text); font-weight: 700; }
#mdfo-sc .mdfo-sc-tot.is-total span:last-child { font-weight: 800; }
#mdfo-sc .mdfo-sc-why { font-size: 13px; color: var(--mdfo-primary); text-align: center; font-weight: 600; }
#mdfo-sc .mdfo-sc-link { align-self: center; padding: 4px 8px; font-size: 14.5px; font-weight: 600; color: var(--mdfo-muted); }
#mdfo-sc .mdfo-sc-link:hover { color: var(--mdfo-text); }

/* Buttons (3D wie im Kern) */
#mdfo-sc .mdfo-sc-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 16px;
	font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1; cursor: pointer; text-decoration: none; user-select: none;
	transition: transform .12s var(--mdfo-ease), box-shadow .18s, filter .18s;
}
#mdfo-sc .mdfo-sc-btn--block { width: 100%; justify-content: space-between; padding: 0 8px 0 22px; }
#mdfo-sc .mdfo-sc-btn--primary {
	color: #fff;
	background: linear-gradient(180deg, color-mix(in srgb, var(--mdfo-primary) 82%, #fff) 0%, var(--mdfo-primary) 55%, var(--mdfo-primary-dark) 100%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.18), 0 3px 0 var(--mdfo-primary-dark), 0 8px 18px color-mix(in srgb, var(--mdfo-primary) 38%, transparent);
	text-shadow: 0 1px 0 rgba(0,0,0,.18);
}
#mdfo-sc .mdfo-sc-btn--primary:hover { filter: brightness(1.05); color: #fff; }
#mdfo-sc .mdfo-sc-btn--primary:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(0,0,0,.18), 0 1px 0 var(--mdfo-primary-dark), 0 3px 8px color-mix(in srgb, var(--mdfo-primary) 30%, transparent); }
#mdfo-sc .mdfo-sc-btn--primary[disabled] { filter: grayscale(.65); opacity: .5; cursor: not-allowed; transform: none; }
#mdfo-sc .mdfo-sc-btn--block:not(:has(.mdfo-sc-btn__price)) { justify-content: center; padding: 0 22px; }
#mdfo-sc .mdfo-sc-btn__price { font-weight: 700; font-size: 16px; padding: 9px 12px; border-radius: 11px; background: rgba(0,0,0,.16); box-shadow: inset 0 1px 2px rgba(0,0,0,.15); text-shadow: none; }
#mdfo-sc .mdfo-sc-btn--ghost { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; color: var(--mdfo-text); background: linear-gradient(180deg, #fff, #F2F2F5); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0,0,0,.08), 0 2px 0 rgba(0,0,0,.07); }
#mdfo-sc .mdfo-sc-btn--ghost:active { transform: translateY(1px); }
#mdfo-sc .mdfo-sc-btn.is-loading { color: transparent; pointer-events: none; }
#mdfo-sc .mdfo-sc-btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0,0,0,.12); border-top-color: var(--mdfo-primary); animation: mdfo-sc-spin .7s linear infinite; }
@keyframes mdfo-sc-spin { to { transform: rotate(360deg); } }

/* Toast */
#mdfo-sc .mdfo-sc-toast { position: absolute; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 5; max-width: calc(100% - 32px); transform: translate(-50%, -20px); opacity: 0; padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(29,29,31,.92); box-shadow: var(--mdfo-elev-3); transition: transform .3s var(--mdfo-ease), opacity .3s; pointer-events: none; }
#mdfo-sc > .mdfo-sc-toast { position: fixed; z-index: 999999; }
#mdfo-sc .mdfo-sc-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
#mdfo-sc .mdfo-sc-toast.is-error { background: var(--mdfo-primary); }

/* Dunkles Design des Kerns */
.mdfo-theme-dark #mdfo-sc { --mdfo-surface: #1C1C1E; --mdfo-text: #F5F5F7; --mdfo-muted: #A1A1A6; }
.mdfo-theme-dark #mdfo-sc :is(.mdfo-sc-item, .mdfo-sc-goal, .mdfo-sc-order, .mdfo-sc-foot, .mdfo-sc-x, .mdfo-sc-step__btn, .mdfo-sc-empty__art) { background: #2C2C2E; }

@media (prefers-reduced-motion: reduce) {
	#mdfo-sc *, #mdfo-sc *::before, #mdfo-sc *::after { animation: none !important; transition: none !important; }
}
