/* Hand-written: fits the scoped catalogue (catalog.scoped.css) into the tellerfedern-mubea.de theme.
   Loaded after the scoped files, so equal-specificity rules here win. */

/* Site typography and brand blue (theme: Open Sans, #004996; catalogue: #004B95 — keep the site's). */
.dscat-app {
  --font-sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  position: relative;
  isolation: isolate;          /* the mosaic's z-index:-1 stays inside the wrapper */
  min-height: 60vh;
}

/* The cookie bar's own box at the end of <body> (build_embed.py moves it there): an empty wrapper,
   so no minimum height and no stacking context; the bar inside is fixed and keeps z-index 1000. */
.dscat-app.dscat-overlay { min-height: 0; position: static; isolation: auto; }

/* The mosaic was a full-viewport fixed layer behind a standalone page; here it fills only the wrapper. */
.dscat-app.bg-springs::before { position: absolute; }

/* Login and language live in the site's top bar since 2026-12-02 (theme: account block + EN | DE switch).
   The elements stay in the markup because app.js paints them; the other catalogue languages stay in the
   code, they are just not offered on this site. */
.dscat-app #account,
.dscat-app .langpicker { display: none; }

/* The Order button moved into the site header too (2026-12-02): app.js puts it into the theme's
   .dscat-basket-slot boxes and sets .dscat-basket-in-header; the catalogue bar (title + Order) is hidden.
   These rules are not scoped to .dscat-app because the slots are in the theme's header. */
.dscat-basket-in-header .dscat-app .appbar { display: none; }
.dscat-basket { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.dscat-basket__count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.top-bar .dscat-basket { color: #fff; padding: 12px 8px; font-size: 13px; }
/* The top bar is full (login, EN | DE, search): icon + count only; the label stays for screen readers. */
.top-bar .dscat-basket__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top-bar .dscat-basket:hover, .top-bar .dscat-basket:focus-visible { background: #fff; color: #004996; }
.top-bar .dscat-basket__count { background: rgba(255,255,255,.22); }
.top-bar .dscat-basket.has-items .dscat-basket__count { background: #fff; color: #004996; }
.top-bar .dscat-basket:hover .dscat-basket__count { background: #004996; color: #fff; }
.navbar .dscat-basket { color: #004996; background: #fff; border: 1px solid rgba(0,73,150,.35); border-radius: 4px; padding: 6px 10px; font-size: 14px; }
.navbar .dscat-basket__count { background: #e6eef7; }
.navbar .dscat-basket.has-items .dscat-basket__count { background: #004996; color: #fff; }
.dscat-basket.basket-pulse { animation: dscat-basket-pulse .5s ease; }
@keyframes dscat-basket-pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .dscat-basket.basket-pulse { animation: none; } }

/* The site header already carries the Mubea logo and main navigation. */
.dscat-app .appbar__logo,
.dscat-app .appbar__rule,
.dscat-app .appbar__nav { display: none; }

/* Phones: the toolbar title collides with the language/theme/account buttons (the C# page has the
   same overlap). The page heading right below repeats it, so the toolbar keeps only the tools. */
@media (max-width: 640px) {
  .dscat-app .appbar__brand { display: none; }
  .dscat-app .appbar__tools { margin-left: auto; }
}

/* Sticky catalogue toolbar sits below the WordPress admin bar for logged-in editors. */
body.admin-bar .dscat-app .appbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .dscat-app .appbar { top: 46px; } }

/* Bootstrap's .btn (theme) and the catalogue's .btn share a class name. The scoped catalogue rule
   sets most properties; neutralise the Bootstrap ones it does not set. */
.dscat-app .btn {
  vertical-align: middle;
  user-select: none;
  text-transform: none;
  letter-spacing: normal;
}

/* The site footer carries "Cookie-Einstellungen" on every page (consent.js routes it to this
   button), so the catalogue's own footer copy would be a duplicate. Hidden, not removed: it is
   the target the site link clicks. */
.dscat-app #cookieReopen { display: none; }

/* Theme links are underlined/blue globally; the catalogue styles its own. */
.dscat-app a:not(.btn) { text-decoration: none; }

/* mm | inch switch next to the Excel button (2026-12-02). */
.dscat-app .unitswitch { display: inline-flex; }
.dscat-app .unitswitch .btn { border-radius: 0; margin: 0; }
.dscat-app .unitswitch .btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.dscat-app .unitswitch .btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; margin-left: -1px; }
.dscat-app .unitswitch .btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* The theme's hero rule .banner { height: 400px; background-color: #000 } shares the class name with the
   catalogue's notices (basket warnings etc.): reset the height; plain notices without a colour variant stay
   transparent (2026-12-02). */
.dscat-app .banner { height: auto; }
.dscat-app .banner:not([class*="banner--"]) { background-color: transparent; }
