/* ===== Local Inter (self-hosted) ===== */
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-v20-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-v20-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-v20-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ===== /Local Inter ===== */
/* ===== Global Font (zentral) ===== */
html,
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

:root {
  /* Hauptfarben */
  --ep-yellow: #F4C300;
  --ep-yellow-soft: #FFF3BF;
  --ep-yellow-hover: #FFEE99;

  /* Textfarben */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-on-yellow: #000000;

  /* Hintergrund & Border */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;

  /* Akzentfarben (z.B. für Status oder Links) */
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --danger: #ef4444;

  /* Radien & Schatten */
  --radius: 0.5rem;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

  /* Größen */
  --ctrl-size: clamp(30px, 5vw, 34px);
}

/* =========================
   FAVORITEN LISTEN MODAL
   ========================= */

#favListSelectionContainer {
  max-height: 55vh;
  overflow-y: auto;
  padding: 12px 16px 0px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fav-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease;
  box-sizing: border-box;
  width: 100%;
}

.fav-list-item:hover {
  background: #f8fafc;
  border-color: var(--border);
}

.fav-list-item.selected {
  background: #fff;
  border-color: #F4C300;
}

.fav-list-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  /* ✅ verhindert “zusammenschieben” */
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  /* ✅ etwas dunkler als var(--border) */
  background: #ffffff;
  /* ✅ leerer Zustand bleibt sichtbar */
  display: inline-flex;
  /* ✅ stabil */
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.fav-list-item.selected .fav-list-checkbox {
  background: #F4C300;
  border-color: #F4C300;
  color: #111827;
}

.fav-list-name {
  font-weight: 600;
}

/* =========================
   FAVORITENLISTEN MODAL (Offers) – eigener Wrapper
   ========================= */

.favModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 24px);
  z-index: 9999;
}

.favModalOverlay.open {
  display: flex;
}

.favModal {
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.favModalHeader {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.favModalHeaderRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Container im Modal soll volle Breite haben */
#favListSelectionContainer {
  max-height: 55vh;
  overflow-y: auto;
  padding: 12px 16px 0px 16px;
}

/* iOS: Pagination darf NICHT blau sein */
.pagination,
.pagination .pinfo {
  color: var(--text-main);
}

.pagination .pbtn {
  color: var(--text-main);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.pagination .pbtn:visited {
  color: var(--text-main);
}

.pagination .pbtn.active {
  color: #000;
  /* oder var(--text-main) */
}

/* iOS: Buttons niemals blau */
button,
button:visited,
button:active,
button:focus {
  color: var(--text-main);
  -webkit-appearance: none;
  appearance: none;
}

/* Falls es Links sind */
a,
a:visited {
  color: var(--text-main);
}

/* Readonly-Gastzugang 10001: Preise und Warenkorb-Funktionen ausblenden */
body.is-readonly .price,
body.is-readonly .packRight,
body.is-readonly .packPrice,
body.is-readonly .btnCart,
body.is-readonly .qty,
body.is-readonly .qtyRowTg,
body.is-readonly .qty-ctrl,
body.is-readonly .qty-row,
body.is-readonly .por-btn,
body.is-readonly .por-list-btn,
body.is-readonly .delivery-wrap,
body.is-readonly .fav-star,
body.is-readonly #cartCount,
body.is-readonly a[href="/cart"],
body.is-readonly a[href="/favorites"],
body.is-readonly #menuOrders,
body.is-readonly #menuAccount,
body.is-readonly .modalBtns,
body.is-readonly #mFavBtn,
body.is-readonly .btn-danger,
body.is-readonly .footer-actions,
body.is-readonly .list-tabs,
body.is-readonly .btn-add-list,
body.is-readonly .sum-row,
body.is-readonly .order-note,
body.is-readonly #submitOrderBtn,
body.is-readonly #offersActionBar,
body.is-readonly button[onclick="clearCart()"],
body.is-readonly .btn-primary:not([href="/"]) {
  display: none !important;
}

/* =========================
   GLOBAL FOOTER (Shop & Legal)
   ========================= */
footer {
  background: #0f172a !important;
  color: #94a3b8;
  padding: 80px 20px 40px;
  margin-top: 80px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  text-align: left;
}

.footer-col h5 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 24px 0;
  font-family: "Outfit", sans-serif;
}

.footer-col p {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #94a3b8;
}

.footer-col a,
.footer-col a:visited {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--ep-yellow);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.bottom-bar {
  max-width: 1200px;
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Fix for Fav Selection Modal */
.fav-selection-modal {
  min-width: min(400px, 95%) !important;
  width: min(400px, 95%) !important;
}
#favListSelectionContainer {
  padding-bottom: 30px !important;
  max-height: 55vh;
  overflow-y: auto;
  padding-bottom: 40px !important;
  max-height: 55vh;
  overflow-y: auto;
}

/* Preis-anfragen Button in Listen (shop_index.html, offers.html) */
.por-list-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: #f3f4f6;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-main, #0f172a);
  cursor: pointer;
  transition: all 0.2s;
}

.por-list-btn:hover:not(:disabled) {
  background: #e5e7eb;
}

.por-list-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.por-list-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.por-list-btn .por-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #64748b);
}

.card-actions .por-list-btn {
  margin-left: auto;
}

.por-list-btn.por-added, .por-btn.por-added {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #10b981 !important;
  
}


/* View Transitions */
@view-transition {
  navigation: auto;
}
header {
  view-transition-name: main-header;
}

/* =====================================================================
   KOMFORT-MODUS (Normal / Groß / Extra Groß) & ANSICHTS-UMSCHALTER
   ===================================================================== */

/* Header Aa / A+ Button & Popover */
.comfort-btn {
  min-width: 38px;
  justify-content: center;
  font-weight: 800 !important;
}
.comfort-btn.comfort-active {
  background: var(--ep-yellow-soft, #fff3bf) !important;
  border-color: var(--ep-yellow, #f4c300) !important;
  color: #000 !important;
}

.comfort-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 14px;
  display: none;
  z-index: 1200;
}
.comfort-popover.open {
  display: block;
}
@media (max-width: 600px) {
  .comfort-popover {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}

.comfort-pop-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted, #64748b);
  margin-bottom: 6px;
}

.comfort-seg-group {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
}

.comfort-seg-btn {
  flex: 1 1 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 8px 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main, #1e293b);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.comfort-seg-btn:hover {
  background: rgba(255, 255, 255, 0.65);
}
.comfort-seg-btn.active {
  background: var(--ep-yellow, #f4c300);
  border-color: #eab308;
  color: #000 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.comfort-seg-btn .c-icon {
  font-weight: 900;
  line-height: 1;
}

.burger-comfort-box {
  padding: 6px 8px;
}
.burger-comfort-box .comfort-seg-btn {
  flex-direction: row;
  padding: 7px 6px;
  font-size: 13px;
}

/* Shop Toolbar (direkt über dem Artikelkatalog) */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 14px 0;
}
.shop-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}
.toolbar-seg {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.toolbar-seg-btn {
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #64748b) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.toolbar-seg-btn:hover {
  background: #f8fafc;
  color: var(--text-main, #1e293b) !important;
}
.toolbar-seg-btn.active {
  background: var(--ep-yellow, #f4c300);
  color: #000000 !important;
  font-weight: 800;
}
@media (max-width: 820px) {
  .comfort-view-only-desktop,
  .shop-toolbar-controls {
    display: none !important;
  }
  .comfort-hdr-wrap {
    display: inline-flex !important;
  }
  .shop-toolbar {
    margin: 0 !important;
  }
  .comfort-popover {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .top-actions {
    gap: 5px !important;
  }
  #customDeliveryLabel,
  html[data-comfort="large"] #customDeliveryLabel,
  html[data-comfort="xlarge"] #customDeliveryLabel {
    font-size: 12.5px !important;
    padding: 0 8px !important;
  }
  html[data-comfort="large"] .top-actions .icon-btn,
  html[data-comfort="xlarge"] .top-actions .icon-btn {
    padding: 0 7px !important;
  }
}

/* =====================================================================
   ZEILEN- / LISTEN-ANSICHT IM SHOP (html[data-view="list"])
   ===================================================================== */
@media (min-width: 821px) {
  html[data-view="list"] .shop-toolbar {
    max-width: 1320px;
    margin: 4px auto 14px auto;
  }
  html[data-view="list"] #grid {
    grid-template-columns: 1fr !important;
    max-width: 1320px;
    margin: 0 auto;
    gap: 12px !important;
  }
  html[data-view="list"] #grid .card {
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 14px 20px !important;
  }
  html[data-view="list"] #grid .card-top {
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 0 !important;
  }
  html[data-view="list"] #grid .card .fav-star {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 28px !important;
    height: 28px !important;
    margin-left: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
  }
  html[data-view="list"] #grid .card .fav-star img {
    position: static !important;
    transform: none !important;
  }
  html[data-view="list"] #grid .card-actions {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    width: auto !important;
  }
  html[data-view="list"] #grid .actionsRight {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
  }
  html[data-view="list"] #grid .qtyWrapper {
    width: min(460px, 100%) !important;
  }
  html[data-view="list"] #grid .packRow {
    grid-template-columns: minmax(95px, 1fr) minmax(115px, auto) auto !important;
    column-gap: 16px !important;
  }
}

@media (max-width: 820px) {
  html[data-view="list"] #grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  html[data-view="list"] #grid .card {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  html[data-view="list"] #grid .card .img {
    flex: 0 0 60px !important;
    width: 60px !important;
    height: 60px !important;
  }
}

/* =====================================================================
   STUFE 1: KOMFORT-MODUS "GROSS" (html[data-comfort="large"])
   ===================================================================== */
html[data-comfort="large"] {
  --ctrl-size: clamp(38px, 6vw, 42px);
  --text-muted: #475569;
}

/* Automatisch breitere Kacheln (weniger Spalten pro Reihe) */
@media (min-width: 1400px) {
  html[data-comfort="large"]:not([data-view="list"]) #grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
  }
}
@media (min-width: 860px) and (max-width: 1399px) {
  html[data-comfort="large"]:not([data-view="list"]) #grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
}
@media (max-width: 859px) {
  html[data-comfort="large"]:not([data-view="list"]) #grid {
    grid-template-columns: 1fr !important;
  }
}

/* Header, Suche & Navigation in "Groß" */
html[data-comfort="large"] .search select,
html[data-comfort="large"] .search input,
html[data-comfort="large"] .search button,
html[data-comfort="large"] .ag-select-trigger,
html[data-comfort="large"] .icon-btn,
html[data-comfort="large"] .delivery-wrap,
html[data-comfort="large"] .burger {
  height: 42px !important;
}
html[data-comfort="large"] .search input {
  font-size: 17px !important;
}
html[data-comfort="large"] .search select,
html[data-comfort="large"] .ag-select-trigger,
html[data-comfort="large"] #customDeliveryLabel {
  font-size: 15px !important;
}
html[data-comfort="large"] .ag-dropdown-item {
  font-size: 16px !important;
  padding: 11px 14px !important;
}
html[data-comfort="large"] .subnav a {
  font-size: 15px !important;
  padding: 13px 16px !important;
}
html[data-comfort="large"] .menu a {
  font-size: 17px !important;
  padding: 12px 14px !important;
}
html[data-comfort="large"] .toolbar-seg-btn {
  font-size: 15px !important;
  padding: 8px 13px !important;
}

/* Artikel-Karten & Zeilen (Shop + Angebote) in "Groß" */
html[data-comfort="large"] #grid .card,
html[data-comfort="large"] #offersWrap .card {
  padding: clamp(14px, 2.2vw, 20px) !important;
  gap: 12px !important;
}
html[data-comfort="large"] #grid .card .img,
html[data-comfort="large"] #offersWrap .card .img {
  flex: 0 0 94px !important;
  width: 94px !important;
  height: 94px !important;
}
html[data-comfort="large"] #grid .card .nr,
html[data-comfort="large"] #offersWrap .card .nr {
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
html[data-comfort="large"] #grid .card .name,
html[data-comfort="large"] #offersWrap .card .name {
  font-size: clamp(17px, 2.8vw, 18.5px) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
html[data-comfort="large"] #grid .card .ext,
html[data-comfort="large"] #offersWrap .card .ext,
html[data-comfort="large"] .availability-note,
html[data-comfort="large"] .cutoff-note {
  font-size: 14px !important;
}
html[data-comfort="large"] .packLeft .main {
  font-size: 14.5px !important;
}
html[data-comfort="large"] .packLeft .sub {
  font-size: 13px !important;
  opacity: 0.95 !important;
}
html[data-comfort="large"] .packRight .main {
  font-size: 18.5px !important;
}
html[data-comfort="large"] .packRight .sub {
  font-size: 13px !important;
  opacity: 0.95 !important;
}
html[data-comfort="large"] .qty button {
  width: 40px !important;
  height: 40px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}
html[data-comfort="large"] .qty input,
html[data-comfort="large"] .qtyRowTg .qty input {
  width: 48px !important;
  height: 40px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}
html[data-comfort="large"] .btnCart {
  width: 42px !important;
  height: 42px !important;
}
html[data-comfort="large"] .por-list-btn {
  height: 42px !important;
  font-size: 16px !important;
  padding: 0 18px !important;
}
@media (min-width: 821px) {
  html[data-comfort="large"][data-view="list"] #grid .qtyWrapper {
    width: min(540px, 100%) !important;
  }
}

/* Merkliste, Warenkorb & Bestellungen in "Groß" */
html[data-comfort="large"] .wrap {
  max-width: 1260px !important;
}
html[data-comfort="large"] .art-name {
  font-size: 18px !important;
}
html[data-comfort="large"] .art-nr {
  font-size: 14px !important;
}
html[data-comfort="large"] .cell-row {
  min-height: 46px !important;
  height: auto !important;
  padding: 3px 0 !important;
}
html[data-comfort="large"] .cell-row .main,
html[data-comfort="large"] .packPrice .main,
html[data-comfort="large"] .qty-label .main {
  font-size: 17px !important;
}
html[data-comfort="large"] .cell-row .sub,
html[data-comfort="large"] .packPrice .sub,
html[data-comfort="large"] .qty-label .sub {
  font-size: 13px !important;
}
html[data-comfort="large"] .qty-ctrl button {
  width: 38px !important;
  height: 38px !important;
  font-size: 19px !important;
}
html[data-comfort="large"] .qty-ctrl input {
  width: 48px !important;
  font-size: 17px !important;
}
html[data-comfort="large"] .list-tab {
  font-size: 16px !important;
  padding: 12px 22px !important;
}
html[data-comfort="large"] .pagination .pbtn {
  padding: 10px 15px !important;
  font-size: 16px !important;
}
html[data-comfort="large"] .btn-primary,
html[data-comfort="large"] .btn-accent {
  font-size: 16.5px !important;
  padding: 13px 24px !important;
}

/* Artikel-Modal in "Groß" */
html[data-comfort="large"] .modal {
  width: min(1080px, 100%) !important;
}
html[data-comfort="large"] .mName {
  font-size: 22px !important;
}
html[data-comfort="large"] .mNr {
  font-size: 14.5px !important;
}
html[data-comfort="large"] #mLong {
  font-size: 16.5px !important;
  line-height: 1.55 !important;
}


/* =====================================================================
   STUFE 2: KOMFORT-MODUS "EXTRA GROSS" (html[data-comfort="xlarge"])
   ===================================================================== */
html[data-comfort="xlarge"] {
  --ctrl-size: clamp(44px, 7vw, 48px);
  --text-muted: #334155;
}

/* Automatisch deutlich breitere Kacheln (2 Spalten auf Desktop, 3 auf Ultra-Wide) */
@media (min-width: 1750px) {
  html[data-comfort="xlarge"]:not([data-view="list"]) #grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }
}
@media (min-width: 1020px) and (max-width: 1749px) {
  html[data-comfort="xlarge"]:not([data-view="list"]) #grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 22px !important;
  }
}
@media (max-width: 1019px) {
  html[data-comfort="xlarge"]:not([data-view="list"]) #grid {
    grid-template-columns: 1fr !important;
  }
}

/* Header, Suche & Navigation in "Extra Groß" */
html[data-comfort="xlarge"] .search select,
html[data-comfort="xlarge"] .search input,
html[data-comfort="xlarge"] .search button,
html[data-comfort="xlarge"] .ag-select-trigger,
html[data-comfort="xlarge"] .icon-btn,
html[data-comfort="xlarge"] .delivery-wrap,
html[data-comfort="xlarge"] .burger {
  height: 46px !important;
}
html[data-comfort="xlarge"] .search input {
  font-size: 19px !important;
}
html[data-comfort="xlarge"] .search select,
html[data-comfort="xlarge"] .ag-select-trigger,
html[data-comfort="xlarge"] #customDeliveryLabel {
  font-size: 16px !important;
}
html[data-comfort="xlarge"] .ag-dropdown-item {
  font-size: 18px !important;
  padding: 13px 16px !important;
}
html[data-comfort="xlarge"] .subnav a {
  font-size: 16.5px !important;
  padding: 14px 18px !important;
}
html[data-comfort="xlarge"] .menu a {
  font-size: 18.5px !important;
  padding: 13px 16px !important;
}
html[data-comfort="xlarge"] .toolbar-seg-btn {
  font-size: 16.5px !important;
  padding: 9px 15px !important;
}

/* Artikel-Karten & Zeilen (Shop + Angebote) in "Extra Groß" */
html[data-comfort="xlarge"] #grid .card,
html[data-comfort="xlarge"] #offersWrap .card {
  padding: clamp(16px, 2.5vw, 24px) !important;
  gap: 14px !important;
  border-width: 1.5px !important;
}
html[data-comfort="xlarge"] #grid .card .img,
html[data-comfort="xlarge"] #offersWrap .card .img {
  flex: 0 0 106px !important;
  width: 106px !important;
  height: 106px !important;
}
@media (max-width: 600px) {
  html[data-comfort="xlarge"] #grid .card .img,
  html[data-comfort="xlarge"] #offersWrap .card .img {
    flex: 0 0 82px !important;
    width: 82px !important;
    height: 82px !important;
  }
}
html[data-comfort="xlarge"] #grid .card .nr,
html[data-comfort="xlarge"] #offersWrap .card .nr {
  font-size: 15px !important;
  font-weight: 800 !important;
}
html[data-comfort="xlarge"] #grid .card .name,
html[data-comfort="xlarge"] #offersWrap .card .name {
  font-size: clamp(19px, 3.2vw, 21.5px) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}
html[data-comfort="xlarge"] #grid .card .ext,
html[data-comfort="xlarge"] #offersWrap .card .ext,
html[data-comfort="xlarge"] .availability-note,
html[data-comfort="xlarge"] .cutoff-note {
  font-size: 15.5px !important;
}
html[data-comfort="xlarge"] .packLeft .main {
  font-size: 16.5px !important;
}
html[data-comfort="xlarge"] .packLeft .sub {
  font-size: 14.5px !important;
  opacity: 1 !important;
}
html[data-comfort="xlarge"] .packRight .main {
  font-size: 21px !important;
}
html[data-comfort="xlarge"] .packRight .sub {
  font-size: 14.5px !important;
  opacity: 1 !important;
}
html[data-comfort="xlarge"] .qty button {
  width: 46px !important;
  height: 46px !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}
html[data-comfort="xlarge"] .qty input,
html[data-comfort="xlarge"] .qtyRowTg .qty input {
  width: 56px !important;
  height: 46px !important;
  font-size: 19.5px !important;
  font-weight: 800 !important;
}
html[data-comfort="xlarge"] .btnCart {
  width: 48px !important;
  height: 48px !important;
}
html[data-comfort="xlarge"] .por-list-btn {
  height: 48px !important;
  font-size: 18px !important;
  padding: 0 22px !important;
}
@media (min-width: 821px) {
  html[data-comfort="xlarge"][data-view="list"] #grid .qtyWrapper {
    width: min(620px, 100%) !important;
  }
}

/* Smartphone-Schutz bei großen Schriften (damit nichts gequetscht wird) */
@media (max-width: 520px) {
  html[data-comfort="large"] .packLeft .main,
  html[data-comfort="xlarge"] .packLeft .main {
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  html[data-comfort="xlarge"] .packRow {
    grid-template-columns: 1fr auto !important;
    row-gap: 8px !important;
    padding: 6px 0 !important;
  }
  html[data-comfort="xlarge"] .packRow .qtyRowTg {
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
  }
  html[data-comfort="xlarge"] .packRow .qtyRowTg .qty {
    width: 100% !important;
    justify-content: space-between !important;
  }
  html[data-comfort="xlarge"] .packRow .qtyRowTg .qty input {
    flex: 1 1 auto !important;
  }
}

/* Merkliste, Warenkorb & Bestellungen in "Extra Groß" */
html[data-comfort="xlarge"] .wrap {
  max-width: 1380px !important;
}
html[data-comfort="xlarge"] .art-name {
  font-size: 20.5px !important;
}
html[data-comfort="xlarge"] .art-nr {
  font-size: 15.5px !important;
}
html[data-comfort="xlarge"] .cell-row {
  min-height: 54px !important;
  height: auto !important;
  padding: 4px 0 !important;
}
html[data-comfort="xlarge"] .cell-row .main,
html[data-comfort="xlarge"] .packPrice .main,
html[data-comfort="xlarge"] .qty-label .main {
  font-size: 19.5px !important;
}
html[data-comfort="xlarge"] .cell-row .sub,
html[data-comfort="xlarge"] .packPrice .sub,
html[data-comfort="xlarge"] .qty-label .sub {
  font-size: 14.5px !important;
}
html[data-comfort="xlarge"] .qty-ctrl button {
  width: 44px !important;
  height: 44px !important;
  font-size: 22px !important;
}
html[data-comfort="xlarge"] .qty-ctrl input {
  width: 56px !important;
  font-size: 19px !important;
}
html[data-comfort="large"] .btn-danger {
  width: 38px !important;
  height: 38px !important;
  font-size: 17px !important;
}
html[data-comfort="xlarge"] .btn-danger {
  width: 40px !important;
  height: 40px !important;
  font-size: 18px !important;
}
@media (max-width: 600px) {
  html[data-comfort="xlarge"] .cell-row.mobile-unit span,
  html[data-comfort="xlarge"] .cell-row.mobile-price span {
    font-size: 16.5px !important;
  }
  html[data-comfort="xlarge"] .cell-row.mobile-unit .sub,
  html[data-comfort="xlarge"] .cell-row.mobile-price .sub {
    font-size: 12.5px !important;
  }
  html[data-comfort="xlarge"] .cell-row.mobile-qty .qty button,
  html[data-comfort="xlarge"] .qty-row .qty-ctrl button {
    width: 38px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
  html[data-comfort="xlarge"] .cell-row.mobile-qty .qty input,
  html[data-comfort="xlarge"] .qty-row .qty-ctrl input {
    width: 44px !important;
    height: 40px !important;
    font-size: 17.5px !important;
  }
}
html[data-comfort="xlarge"] .list-tab {
  font-size: 18px !important;
  padding: 14px 26px !important;
}
html[data-comfort="xlarge"] .pagination .pbtn {
  padding: 12px 18px !important;
  font-size: 18px !important;
}
html[data-comfort="xlarge"] .btn-primary,
html[data-comfort="xlarge"] .btn-accent {
  font-size: 18.5px !important;
  padding: 15px 28px !important;
}

/* Artikel-Modal in "Extra Groß" */
html[data-comfort="xlarge"] .modal {
  width: min(1180px, 100%) !important;
}
html[data-comfort="xlarge"] .mName,
html[data-comfort="xlarge"] #articleModalOverlay .mName {
  font-size: 25px !important;
}
html[data-comfort="xlarge"] .mNr,
html[data-comfort="xlarge"] #articleModalOverlay .mNr {
  font-size: 16px !important;
}
html[data-comfort="xlarge"] #mLong {
  font-size: 18.5px !important;
  line-height: 1.6 !important;
}
html[data-comfort="xlarge"] #articleModalOverlay .packLeft .main {
  font-size: 16.5px !important;
}
html[data-comfort="xlarge"] #articleModalOverlay .packLeft .sub {
  font-size: 14.5px !important;
}
html[data-comfort="xlarge"] #articleModalOverlay .packRight .main {
  font-size: 21px !important;
}
html[data-comfort="xlarge"] #articleModalOverlay .packRight .sub {
  font-size: 14.5px !important;
}
html[data-comfort="xlarge"] #articleModalOverlay .btnCart {
  width: 48px !important;
  height: 48px !important;
}
html[data-comfort="xlarge"] #hdrArtGroupSel,
html[data-comfort="xlarge"] .ag-select-trigger {
  font-size: 15px !important;
}
html[data-comfort="large"] #articleModalOverlay .packLeft .main {
  font-size: 14.5px !important;
}
html[data-comfort="large"] #articleModalOverlay .packLeft .sub {
  font-size: 13px !important;
}
html[data-comfort="large"] #articleModalOverlay .packRight .main {
  font-size: 18.5px !important;
}
html[data-comfort="large"] #articleModalOverlay .packRight .sub {
  font-size: 13px !important;
}
html[data-comfort="large"] #articleModalOverlay .btnCart {
  width: 42px !important;
  height: 42px !important;
}
html[data-comfort="large"] #hdrArtGroupSel,
html[data-comfort="large"] .ag-select-trigger {
  font-size: 14px !important;
}





/* ===== Cross-Browser & Mobile-Kompatibilität (iOS Safari, Firefox, Edge) ===== */
button,
.qty button,
.qty-ctrl button,
.packRow button,
.pagination .pbtn {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

input[type="number"],
.qty input,
.qty-ctrl input {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button,
.qty-ctrl input::-webkit-outer-spin-button,
.qty-ctrl input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* iOS Safari: Automatisches Heranzoomen bei Fokus auf Eingabefelder (< 16px) verhindern */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
      font-size: 16px !important;
    }
  }
}
