/* Smartphone-Option; außerhalb dieses Breakpoints keine Theme-Änderungen. */
.mobile-theme-toggle, .mobile-theme-toolbar, .mobile-theme-footer, .mobile-theme-menu-item { display: none; }
@media (max-width: 767px) {
  .mobile-theme-menu-item { display: block; }
  .mobile-theme-toolbar { display: flex; justify-content: flex-end; padding: 12px 16px; background: #fffaf2; }
  .mobile-theme-footer { display: flex; justify-content: center; padding: 0 20px 24px; }
  .mobile-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d1b477;
    border-radius: 999px;
    background: #fff4da;
    color: #332b20;
    font: 500 13px/1.4 Poppins, Arial, sans-serif;
    cursor: pointer;
  }
  .mobile-theme-menu-item .mobile-theme-toggle { margin: 10px 15px 16px; }
  .mobile-theme-switch { position: relative; width: 30px; height: 18px; flex: 0 0 30px; border-radius: 99px; background: #bfb6a6; }
  .mobile-theme-switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
  .mobile-theme-toggle[aria-pressed="true"] .mobile-theme-switch { background: #f3a00a; }
  .mobile-theme-toggle[aria-pressed="true"] .mobile-theme-switch::before { transform: translateX(12px); background: #232323; }
  .mobile-theme-toggle:focus-visible { outline: 3px solid #f3a00a; outline-offset: 3px; }

  html[data-mobile-theme="dark"] {
    color-scheme: dark;
    --dm-bg: #181818;
    --dm-card: #242424;
    --dm-raised: #2e2e2e;
    --dm-text: #f5efe4;
    --dm-muted: #c5bdae;
    --dm-line: #454545;
    --dm-accent: #ffb737;
    --legacy-ink: #f5efe4;
    --modern-ink: #f5efe4;
    --modern-muted: #c5bdae;
    --modern-line: #454545;
    --paper: #181818;
    --ink: #f5efe4;
    --muted: #c5bdae;
    --line: #454545;
    --white: #242424;
    background: var(--dm-bg);
  }
  html[data-mobile-theme="dark"] body {
    background: var(--dm-bg) !important;
    color: var(--dm-text) !important;
  }
  html[data-mobile-theme="dark"] :is(h1,h2,h3,h4,h5,h6,dt,strong,label,legend):not(.bpg-footer *, .delivery-overview *, .bpg-hero *) { color: var(--dm-text) !important; }
  html[data-mobile-theme="dark"] :is(p,dd,li,address,small):not(.bpg-footer *, .delivery-overview *, .bpg-hero *) { color: var(--dm-muted); }
  html[data-mobile-theme="dark"] a:not(.bpg-footer *, .delivery-overview *, .bpg-hero *) { color: var(--dm-accent); }
  html[data-mobile-theme="dark"] :is(.bg-gray,.bg-white,.about-area,.bpg-services,.bpg-about,.error-page-area,#popular.highlights-section,#catering,.order-success-details,.order-success-page) {
    background-color: var(--dm-bg) !important;
    color: var(--dm-text);
  }
  html[data-mobile-theme="dark"] :is(.highlight-card,.bpg-service-card,.about-profile-copy,.catering-card,.catering-planning,.bpg-gallery-note,.order-success-card,.order-success-contact,.opening-hours .item,.contact-area .contact-box .form-box,form) {
    background: var(--dm-card) !important;
    border-color: var(--dm-line) !important;
    color: var(--dm-text);
  }
  html[data-mobile-theme="dark"] :is(.highlight-body p,.catering-card p,.catering-planning p,.about-story p,.site-heading p,.order-success-card p,.order-success-contact p,.contact-email h5,.contact-email2 p,.error-box p,.error-box li) { color: var(--dm-muted) !important; }
  html[data-mobile-theme="dark"] :is(.highlight-kicker,.highlights-script,.catering-script,.order-success-eyebrow) { color: var(--dm-accent) !important; }
  html[data-mobile-theme="dark"] :is(.highlight-badge,.catering-card-tag,.menu-category-anchor,.mobile-menu-tools,.nice-select,.nice-select .list,.order-success-reference) {
    background: var(--dm-raised) !important;
    color: var(--dm-text) !important;
    border-color: var(--dm-line) !important;
  }
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .pf-item > .item { background: var(--dm-card); border-color: var(--dm-line); box-shadow: none; }
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid :is(.info h4,.info p,.menu-category-anchor h3,.menu-category-anchor p) { color: var(--dm-text); }
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .menu-category-anchor { background: var(--dm-raised); }
  html[data-mobile-theme="dark"] :is(.mobile-category-bar button,.mobile-menu-search) { color: var(--dm-muted); background: transparent; }
  html[data-mobile-theme="dark"] .mobile-category-bar button.active { background: #f3a00a; color: #232323; }
  html[data-mobile-theme="dark"] #order-status-banner { background: var(--dm-card) !important; border-color: var(--dm-line) !important; color: var(--dm-text); box-shadow: none; }
  html[data-mobile-theme="dark"] #order-status-banner :is(p,.delivery-countdown-field) { color: var(--dm-text); }
  html[data-mobile-theme="dark"] #order-status-banner :is(.delivery-countdown-label,.delivery-countdown-field::after) { color: var(--dm-accent); }
  html[data-mobile-theme="dark"] #order-status-banner .delivery-opening-countdown { border-color: var(--dm-line); }

  /* Warenkorb, Optionen und Suche bleiben ohne helle Flächen konsistent. */
  html[data-mobile-theme="dark"] :is(#modernCart,.modern-option-card,#menu-search-dialog,.modern-cart-summary,.modern-cart-actions) { background: var(--dm-card) !important; color: var(--dm-text); border-color: var(--dm-line); }
  html[data-mobile-theme="dark"] :is(#modernCart .modern-cart-header,#modernOptionModal .modern-option-header,#menu-search-dialog .menu-search-header) { background: var(--dm-raised); color: var(--dm-text); }
  html[data-mobile-theme="dark"] :is(#modernCartTitle,#modernOptionTitle,#menu-search-title) { color: var(--dm-text) !important; }
  html[data-mobile-theme="dark"] :is(.modern-cart-item,.modern-option-footer,.modern-cart-header,.menu-search-result) { border-color: var(--dm-line) !important; }
  html[data-mobile-theme="dark"] :is(.modern-cart-options,.modern-option-item,.menu-search-result,.menu-search-result small,.modern-option-empty,.modern-eyebrow,.cart-note) { color: var(--dm-muted) !important; }
  html[data-mobile-theme="dark"] #modernOptionBody .modern-option-item { background: transparent; border-color: var(--dm-line); }
  html[data-mobile-theme="dark"] #modernOptionBody .modern-option-item:has(input:checked) { background: #42351c; border-color: #a77b28; }
  html[data-mobile-theme="dark"] :is(.modern-icon,.qty-btn,.modern-suggestion,.modern-cart-suggestions) { background: var(--dm-raised) !important; color: var(--dm-text) !important; border-color: var(--dm-line) !important; box-shadow: none !important; }
  html[data-mobile-theme="dark"] :is(.modern-minimum p,.modern-option-total,.modern-cart-summary .summary-line,.modern-suggestion > span) { color: var(--dm-text) !important; }
  html[data-mobile-theme="dark"] .modern-minimum-track { background: var(--dm-line) !important; }
  html[data-mobile-theme="dark"] :is(#modernDeliveryStatus,#liefer-message,#error-message,#alert-message) { color: #ffaaa0 !important; }
  html[data-mobile-theme="dark"] :is(#success-message,.modern-minimum.is-reached p) { color: #a4d9a3 !important; }

  /* Kasse und Formulare: Eingaben, Autofill, Tabellen und Zusammenfassung. */
  html[data-mobile-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),textarea,select,.form-control,#menu-search-input) {
    background: var(--dm-bg) !important;
    color: var(--dm-text) !important;
    border-color: #77705e !important;
    caret-color: var(--dm-accent);
  }
  html[data-mobile-theme="dark"] input::placeholder, html[data-mobile-theme="dark"] textarea::placeholder { color: #a9a192 !important; opacity: 1; }
  html[data-mobile-theme="dark"] input:-webkit-autofill { -webkit-text-fill-color: var(--dm-text); box-shadow: 0 0 0 1000px var(--dm-raised) inset !important; }
  html[data-mobile-theme="dark"] :is(input[type="checkbox"],input[type="radio"]) { accent-color: #f3a00a; }
  html[data-mobile-theme="dark"] .contact-area .contact-box .form-box .korb1.checkout-cart { background: var(--dm-card); border-color: var(--dm-line); }
  html[data-mobile-theme="dark"] .contact-area .contact-box .form-box .korb1.checkout-cart :is(.checkout-cart-totals,.checkout-total,.checkout-service-fee) { background: transparent; color: var(--dm-text); border-color: var(--dm-line); }
  html[data-mobile-theme="dark"] .contact-area .contact-box .form-box .korb1.checkout-cart :is(.cart-item-heading,.cart-extra,.checkout-service-fee strong,.checkout-cart-edit-link) { color: var(--dm-muted); }
  html[data-mobile-theme="dark"] .contact-area .contact-box .form-box .korb1.checkout-cart :is(li,.checkout-cart-heading) { border-color: var(--dm-line); }
  html[data-mobile-theme="dark"] .contact-area .contact-box .form-box :is(h1,h5,label,.contact-email2 p) { color: var(--dm-text) !important; }
  html[data-mobile-theme="dark"] :is(table,td,th) { border-color: var(--dm-line); color: var(--dm-text); }
  html[data-mobile-theme="dark"] :is(.order-card,.admin-card,.admin-panel,.filter-button,#output) { background: var(--dm-card); color: var(--dm-text); border-color: var(--dm-line); }
  html[data-mobile-theme="dark"] .mobile-theme-toolbar { background: var(--dm-bg); }
  html[data-mobile-theme="dark"] .mobile-theme-toggle { background: var(--dm-raised); color: var(--dm-text); border-color: var(--dm-line); }
  html[data-mobile-theme="dark"] .wavesshape { display: none; }
  html[data-mobile-theme="dark"] #preloader { background-color: var(--dm-bg) !important; }

  /* Flächen mit höherer Komponentenspezifität sowie ausgewählte Optionen. */
  html[data-mobile-theme="dark"] #modernOptionModal .modern-option-footer { background: var(--dm-card); }
  html[data-mobile-theme="dark"] #modernOptionBody .modern-option-item:has(input:checked) { box-shadow: -8px 0 #42351c, 8px 0 #42351c; }
  html[data-mobile-theme="dark"] #modernOptionModal .modern-option-qty { color: var(--dm-text); }
  html[data-mobile-theme="dark"] :is(.mobile-category-bar,#navbar-menu,#navbar-menu ul.nav,.navbar-collapse) { background: var(--dm-raised) !important; border-color: var(--dm-line) !important; }
  html[data-mobile-theme="dark"] #startseite nav.navbar.bootsnav #navbar-menu ul.nav > li > a { color: var(--dm-text) !important; }
  html[data-mobile-theme="dark"] #startseite nav.navbar.bootsnav #navbar-menu ul.nav > li.active > a { color: var(--dm-accent) !important; }
  html[data-mobile-theme="dark"] #catering .catering-inclusions li { background: var(--dm-raised); border-color: var(--dm-line); color: var(--dm-text); }
  html[data-mobile-theme="dark"] :is(#catering .catering-price,#catering .catering-occasion-list,#galerie .bpg-gallery-heading p) { color: var(--dm-muted); }
  html[data-mobile-theme="dark"] :is(#catering .catering-price strong,#portfolio-grid .thumb h5) { color: var(--dm-accent) !important; }
  html[data-mobile-theme="dark"] :is(.admin-shell,.admin-main,.order-filters button,.status-panel,#order-table tbody tr,.admin-footer-actions) { background: var(--dm-card); color: var(--dm-text); border-color: var(--dm-line); }
  html[data-mobile-theme="dark"] .order-filters button[aria-pressed="true"] { background: #f3a00a; color: #232323; }
  html[data-mobile-theme="dark"] #orders-sound-toggle[aria-pressed="true"] { background: #2b4431; color: #c8ebc7; }
  html[data-mobile-theme="dark"] .btn-secondary { background: var(--dm-raised) !important; color: var(--dm-text) !important; }
  html[data-mobile-theme="dark"] #output { background: var(--dm-raised) !important; }

  html[data-mobile-theme="dark"] .contact-area .checkout-cart .checkout-cart-edit-link {
    background: var(--dm-raised);
    color: var(--dm-text);
    border-color: var(--dm-line);
  }
  html[data-mobile-theme="dark"] .mobile-menu-tools .mobile-menu-search {
    background: var(--dm-card);
    color: var(--dm-accent);
  }

  html[data-mobile-theme="dark"] #startseite nav.navbar.bootsnav #navbar-menu ul.nav > li > a:hover,
  html[data-mobile-theme="dark"] #startseite nav.navbar.bootsnav #navbar-menu ul.nav > li > a:focus,
  html[data-mobile-theme="dark"] #startseite nav.navbar.bootsnav #navbar-menu ul.nav > li.active > a {
    background: var(--dm-card) !important;
    color: var(--dm-accent) !important;
  }
  html[data-mobile-theme="dark"] body[data-mobile-admin] :is(.container,.control-container,#order-table tbody tr,td,th) {
    background: var(--dm-card) !important;
    color: var(--dm-text);
    border-color: var(--dm-line);
  }

  /* Markenorange bleibt als Handlungsfarbe erhalten. */
  html[data-mobile-theme="dark"] :is(.btn,.catering-card-link,#modernOptionConfirm,#modernCheckout,#back-to-top .wk) {
    color: #232323 !important;
  }
  html[data-mobile-theme="dark"] :is(#modernOptionConfirm,#modernCheckout,.catering-card-link,#back-to-top .wk) { background: #f3a00a !important; }
  html[data-mobile-theme="dark"] :is(.btn,.catering-card-link,#modernOptionConfirm,#modernCheckout,#back-to-top .wk) :is(strong,span,i) { color: inherit !important; }
  html[data-mobile-theme="dark"] :is(.highlight-link,.highlights-menu-link) { color: var(--dm-accent) !important; }
  html[data-mobile-theme="dark"] #back-to-top .modern-cart-badge { color: #fff !important; }
  html[data-mobile-theme="dark"] #popular .highlight-featured .highlight-link { color: #232323 !important; }
  html[data-mobile-theme="dark"] :is(#modernCartTotal,#modernOptionTotal) { color: var(--dm-text) !important; }
  html[data-mobile-theme="dark"] .modern-icon svg { color: var(--dm-accent); }
  html[data-mobile-theme="dark"] #modernCart #modernContinueShopping { color: var(--dm-text) !important; background: var(--dm-raised) !important; border-color: var(--dm-line) !important; }
  html[data-mobile-theme="dark"] #modernCart .modern-cart-summary .btn { color: #232323 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-theme-switch::before { transition: none; }
}

/* Lesbare Markenakzente und vollständige Servicekarten im Smartphone-Darkmode. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #überuns .about-story h3,
  html[data-mobile-theme="dark"] #überuns .about-story a,
  html[data-mobile-theme="dark"] #überuns .about-story a:hover,
  html[data-mobile-theme="dark"] #überuns .about-story a:focus {
    color: #f3a00a !important;
  }
  html[data-mobile-theme="dark"] #popular .highlight-compact .highlight-link {
    padding: 11px 16px;
    border: 1px solid #a5782f;
    border-radius: 8px;
    background: var(--dm-raised);
    color: #f3a00a !important;
  }
  html[data-mobile-theme="dark"] #popular .highlight-compact .highlight-link:hover {
    background: #363636;
    color: #ffc365 !important;
  }
  html[data-mobile-theme="dark"] #popular .highlights-footer p { color: var(--dm-muted); }
  html[data-mobile-theme="dark"] #popular .highlights-menu-link { color: #f3a00a !important; }
  html[data-mobile-theme="dark"] #services .bpg-service-body h3 { color: #fff !important; }
  html[data-mobile-theme="dark"] #services .bpg-service-body p { color: var(--dm-text); }
  html[data-mobile-theme="dark"] #services .bpg-service-link {
    color: var(--dm-accent);
    border-color: var(--dm-line);
  }
  html[data-mobile-theme="dark"] #services .bpg-service-card:is(:hover,:focus-visible) .bpg-service-link {
    color: #ffc365;
    border-color: var(--dm-line);
    text-decoration: none;
  }
  html[data-mobile-theme="dark"] #überuns .about-profile-copy > p,
  html[data-mobile-theme="dark"] #überuns .about-contact-links small { color: var(--dm-muted); }
  html[data-mobile-theme="dark"] #überuns .about-contact-links,
  html[data-mobile-theme="dark"] #überuns .about-contact-links a { border-color: var(--dm-line); }
  html[data-mobile-theme="dark"] #überuns .opening-hours,
  html[data-mobile-theme="dark"] #überuns .opening-hours::before { background: #232323; }
  html[data-mobile-theme="dark"] #überuns .opening-hours::after { background: #232323; }
  html[data-mobile-theme="dark"] #überuns .opening-hours .item { background: #232323 !important; }
  html[data-mobile-theme="dark"] #überuns .opening-hours :is(h2,li,li span,li div) { color: #f3a00a !important; }
  html[data-mobile-theme="dark"] #überuns .opening-hours .item li { border-color: #232323; }
  html[data-mobile-theme="dark"] #catering .catering-heading p { color: #d8d0c2; }
}

/* Einheitliche Flächen und klare Kontraste der mobilen Inhaltsbereiche. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #preloader { background-image: url('../img/image00065.568b69646d16.webp') !important; }
  html[data-mobile-theme="dark"] #preloader .bpg-loading-spinner { border-color: #f3a00a40; border-top-color: #f3a00a; }
  html[data-mobile-theme="dark"] .site-heading > :is(h1, .delivery-section-title) { color: #f3a00a !important; }
  html[data-mobile-theme="dark"] #catering .catering-card-link {
    padding: 14px 18px; border: 1px solid #f3a00a; border-radius: 12px;
    min-height: 48px; background: #f3a00a !important; color: #232323 !important;
    transition: background .2s ease, border-color .2s ease;
  }
  html[data-mobile-theme="dark"] #catering .catering-card-link:hover { background: #ffb737 !important; border-color: #ffb737; }
  html[data-mobile-theme="dark"] #catering .catering-phone small { color: #30251f !important; }
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .thumb h5 { background: var(--dm-card) !important; }
  html[data-mobile-theme="dark"] #galerie.bpg-gallery { background: var(--dm-bg); }
  html[data-mobile-theme="dark"] #galerie .bpg-gallery-heading p { color: var(--dm-muted); }
  html[data-mobile-theme="dark"] #galerie .bpg-gallery-eyebrow { color: #f3a00a; }
}

/* Kontrastreiche Bedienelemente ohne helle Hover-Schatten. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #back-to-top .wk #modernCartBadge {
    background: #232323 !important;
    color: #fff !important;
  }
  html[data-mobile-theme="dark"] #modernCart #modernCartClose,
  html[data-mobile-theme="dark"] #modernOptionModal #modernOptionCancel {
    display: grid; place-items: center; flex: 0 0 44px;
    width: 44px; height: 44px; min-width: 44px; max-width: 44px;
    min-height: 44px; max-height: 44px; padding: 0; margin: 0;
    border: 0 !important; border-radius: 50%;
    background: #232323 !important; color: #f3a00a !important;
    box-shadow: none !important;
  }
  html[data-mobile-theme="dark"] #modernCart .qty-btn,
  html[data-mobile-theme="dark"] #modernOptionModal .qty-btn {
    background: #181818 !important; color: #ffb737 !important;
    border: 1px solid #76603b !important; border-radius: 12px;
    box-shadow: none !important;
  }
  html[data-mobile-theme="dark"] #modernCart .qty-btn:hover,
  html[data-mobile-theme="dark"] #modernOptionModal .qty-btn:hover { background: #363636 !important; }
  html[data-mobile-theme="dark"] #modernOptionModal #modernOptionConfirm,
  html[data-mobile-theme="dark"] #modernOptionModal #modernOptionConfirm:hover,
  html[data-mobile-theme="dark"] #modernOptionModal #modernOptionConfirm:active,
  html[data-mobile-theme="dark"] #modernOptionModal #modernOptionConfirm:disabled {
    box-shadow: none !important; filter: none; transform: none;
  }
  html[data-mobile-theme="dark"] #modernCart .modern-cart-suggestions {
    background: #303030 !important; border-color: #535353 !important;
  }
  html[data-mobile-theme="dark"] #modernCart .modern-suggestion {
    background: #292929 !important; border-color: #535353 !important;
  }
}

/* Der kompakte Schalter sitzt unabhängig vom geöffneten Navigationsmenü im Header. */
@media (max-width: 767px) {
  .navbar-header { position: relative; }
  .mobile-theme-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .navbar-header .mobile-theme-header {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    z-index: 3; margin: 0; background: #302c24; border-color: #9d722b; color: #ffbc4d;
  }
  .mobile-theme-header svg { flex-shrink: 0; }
  html[data-mobile-theme="dark"] .navbar-header .mobile-theme-header { background: #f3a00a; color: #232323; }
}

/* Dunkle Bestellbuttons mit klar erkennbaren orangefarbenen Akzenten. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .add-to-cart-text,
  html[data-mobile-theme="dark"] #modernOptionModal #modernOptionConfirm,
  html[data-mobile-theme="dark"] #back-to-top .wk {
    background: #242424 !important;
    color: #ffb737 !important;
    border: 1px solid #a5782f !important;
    box-shadow: none !important;
  }
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .add-to-cart-text:hover,
  html[data-mobile-theme="dark"] #modernOptionModal #modernOptionConfirm:hover,
  html[data-mobile-theme="dark"] #back-to-top .wk:hover { background: #303030 !important; }
  html[data-mobile-theme="dark"] #back-to-top .wk #modernCartBadge {
    background: #ffb737 !important; color: #232323 !important;
  }
  html[data-mobile-theme="dark"] #modernOptionModal.is-saving #modernOptionConfirm::before {
    border-color: #ffb73740; border-top-color: #ffb737;
  }
}


/* PayPal rendert helle Markenbuttons; der Zwischenraum bleibt transparent. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #paypal-button-container,
  html[data-mobile-theme="dark"] #paypal-button-container iframe {
    color-scheme: light; background: transparent !important;
  }
}

/* Artikelpreise haben im Shop eine eigene Textfarbe und brauchen einen Theme-Kontrast. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #modernCart .modern-cart-item-header > span {
    color: var(--dm-text);
  }
}

/* Speisekartenpreise verwenden dieselbe helle Schrift wie die Artikelnamen. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .thumb h5 {
    color: var(--dm-text) !important;
  }
}

/* Gleiche erhöhte Preisposition ohne Umrandung in beiden Farbmodi. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .item > .thumb {
    top: var(--menu-card-padding);
  }
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .thumb h5 {
    border: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Catering-Anfragen folgen den dunklen Aktionsbuttons. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #catering .catering-card .catering-card-link {
    background: #242424 !important;
    color: #ffb737 !important;
    border: 1px solid #a5782f;
  }
  html[data-mobile-theme="dark"] #catering .catering-card .catering-card-link:hover,
  html[data-mobile-theme="dark"] #catering .catering-card .catering-card-link:focus-visible {
    background: #303030 !important;
    border-color: #ffb737;
  }
}

/* Timer-Einheiten und Trenner verwenden dieselbe Akzentfarbe wie die Beschriftung. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #order-status-banner .delivery-countdown-field::before,
  html[data-mobile-theme="dark"] #order-status-banner .delivery-countdown-field::after {
    color: #dfbf8c;
  }
}

@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #order-status-banner .delivery-countdown-label { color: #f5efe4; }
}

/* Beschrifteter Darstellungsschalter statt eines mit Öffnungszeiten verwechselbaren Mondes. */
@media (max-width: 767px) {
  .navbar-header .mobile-theme-header {
    width: 72px; height: 44px; padding: 5px 6px;
    flex-direction: column; justify-content: center; gap: 4px;
    border-radius: 10px;
  }
  .mobile-theme-label { font: 500 10px/1.1 Poppins, Arial, sans-serif; }
  .mobile-theme-header .mobile-theme-switch { width: 26px; height: 14px; flex: 0 0 14px; }
  .mobile-theme-header .mobile-theme-switch::before { width: 10px; height: 10px; top: 2px; left: 2px; }
  .mobile-theme-header[aria-pressed="true"] .mobile-theme-switch::before { transform: translateX(12px); }
  html[data-mobile-theme="dark"] .navbar-header .mobile-theme-header {
    background: #302c24; color: #ffbc4d;
  }
  .mobile-theme-toolbar .mobile-theme-toggle { width: auto; padding: 8px 12px; gap: 8px; }
}

/* Kompakte Hell-/Dunkel-Auswahl mit eindeutig markierter aktiver Darstellung. */
@media (max-width: 767px) {
  .navbar-header .mobile-theme-header {
    width: 76px; height: 44px; padding: 3px;
    flex-direction: column; gap: 1px; border-radius: 10px;
    background: #302c24; color: #d5ccbc;
  }
  .mobile-theme-choice {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 17px; padding: 2px 4px; border-radius: 6px;
    font: 500 10px/1.1 Poppins, Arial, sans-serif;
    transition: color .2s ease, background-color .2s ease;
  }
  .mobile-theme-toggle[aria-pressed="false"] .mobile-theme-light,
  .mobile-theme-toggle[aria-pressed="true"] .mobile-theme-dark { background: #ffbc4d; color: #232323; }
  .mobile-theme-toolbar .mobile-theme-toggle { flex-direction: row; width: 130px; }
}

/* Design-Auswahl öffnet sich als kleine, eigenständige Fläche unter dem Header. */
.mobile-theme-options { display: none; }
@media (max-width: 767px) {
  .navbar-header .mobile-theme-header {
    width: 72px; height: 44px; flex-direction: row; gap: 5px; padding: 5px;
    background: #302c24; color: #ffbc4d;
  }
  .theme-design-icon { font: 22px/1 Arial, sans-serif; }
  .mobile-theme-label { font-size: 10px; }
  .mobile-theme-toolbar { position: relative; }
  .mobile-theme-options:not([hidden]) {
    display: grid; gap: 4px; position: absolute; top: calc(100% + 8px); right: 15px;
    z-index: 1100; min-width: 155px; padding: 6px; border: 1px solid #d8c9b0;
    border-radius: 12px; background: #fffcf7; box-shadow: 0 8px 24px #0003;
    animation: theme-options-in .16s ease-out;
  }
  .mobile-theme-options button {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px;
    background: transparent; color: #29231b; font: 500 14px/1.4 Poppins, Arial, sans-serif;
  }
  .mobile-theme-options button[aria-checked="true"] { background: #f3a00a22; }
  .theme-check { visibility: hidden; color: #92600b; }
  [aria-checked="true"] .theme-check { visibility: visible; }
  .mobile-theme-options button:focus-visible { outline: 2px solid #f3a00a; outline-offset: -2px; }
  html[data-mobile-theme="dark"] .mobile-theme-options { background: #232323; border-color: #75603b; }
  html[data-mobile-theme="dark"] .mobile-theme-options button { color: #f5efe4; }
  html[data-mobile-theme="dark"] .theme-check { color: #ffbc4d; }
}
@keyframes theme-options-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .mobile-theme-options { animation: none !important; } }

/* Kompakter Headerbutton mit ausreichend großer Touchfläche. */
@media (max-width: 767px) {
  .navbar-header .mobile-theme-header {
    width: 52px; height: 44px; padding: 4px;
    flex-direction: column; gap: 1px; border-radius: 10px;
  }
  .mobile-theme-header .theme-design-icon { font-size: 17px; line-height: 18px; }
  .mobile-theme-header .mobile-theme-label { font-size: 9px; line-height: 11px; }
}

/* Öffnen und Schließen teilen denselben ruhigen Übergang. */
@media (max-width: 767px) {
  .mobile-theme-options:not([hidden]) {
    animation: none; opacity: 0; transform: translateY(-5px) scale(.98);
    transform-origin: top right; pointer-events: none;
    transition: opacity .18s ease, transform .18s cubic-bezier(.22,.61,.36,1);
  }
  .mobile-theme-options.is-open:not([hidden]) {
    opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
  }
}
@media (prefers-reduced-motion: reduce) { .mobile-theme-options { transition: none !important; } }

/* Die Auswahl schließt bündig an den Header an. */
@media (max-width: 767px) {
  .navbar-header .mobile-theme-options:not([hidden]) {
    top: 100%; right: 15px;
    width: 148px; min-width: 0; max-width: calc(100vw - 30px);
    margin: 0; padding: 6px;
    border-top: 0; border-radius: 0 0 12px 12px;
    transform-origin: top center;
  }
}

/* Schmale Auswahl bündig am rechten Rand des mobilen Headers. */
@media (max-width: 767px) {
  .navbar-header .mobile-theme-options:not([hidden]) {
    right: 0; width: 120px; padding: 4px;
    border-right: 0; border-radius: 0 0 0 10px;
  }
  .mobile-theme-options button { min-height: 38px; padding: 7px 10px; gap: 12px; font-size: 13px; }
}

@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #startseite nav.navbar.bootsnav {
    background: #232323 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .add-to-cart-text.has-cart-quantity,
  html[data-mobile-theme="dark"] #lieferservice #portfolio-grid .add-to-cart-text.has-cart-quantity:hover {
    background: #f3a00a !important;
    color: #232323 !important;
    border-color: #f3a00a !important;
  }
}

/* Neutrale dunkle Flächen trennen Inhalt und Abschlussbereiche. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #modernCart .modern-cart-summary,
  html[data-mobile-theme="dark"] #modernCart .modern-cart-actions,
  html[data-mobile-theme="dark"] #modernOptionModal .modern-option-footer {
    background: var(--dm-bg) !important;
  }
}

/* Menüköpfe verwenden dieselbe gedeckte Fläche wie die Kategorienleiste. */
@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #modernCart .modern-cart-header,
  html[data-mobile-theme="dark"] #modernOptionModal .modern-option-header,
  html[data-mobile-theme="dark"] #menu-search-dialog .menu-search-header {
    background: var(--dm-raised) !important;
    color: var(--dm-text) !important;
    border-color: var(--dm-line) !important;
  }
  html[data-mobile-theme="dark"] #modernCart #modernCartTitle,
  html[data-mobile-theme="dark"] #modernOptionModal .modern-option-header :is(#modernOptionTitle,.modern-eyebrow),
  html[data-mobile-theme="dark"] #menu-search-dialog #menu-search-title { color: var(--dm-text) !important; }
}

@media (max-width: 767px) {
  html[data-mobile-theme="dark"] #modernOptionModal .modern-option-header .modern-option-description {
    background: var(--dm-card);
    color: var(--dm-text) !important;
    border-color: var(--dm-line);
  }
}
