/* ==========================================================================
   format-X GmbH - Webshop im Design-System "v2" (shop.css)
   Wird NUR von views/shop_layout_top.php eingebunden (body.fxp-shop) - bewusst NICHT site.css, weil dessen
   globale .card/.btn/.badge/.stats/h1-h3-Regeln das bestehende Shop-CSS (inline in shop_layout_top.php und shop.php)
   ueberschreiben wuerden. Hier: Tokens (:root, ueberschreiben die Shop-Variablen), Kopf/Fuss/Nav (aus site.css
   uebernommen, auf body.fxp-shop gekapselt), Hero mit Header-Motiv "Shop", Karten/Produktraster, Reveal/Tilt/Karussell.
   Die Header-Motiv-Regeln (.hero__motif .mt-*) kommen aus site-pages.css (global, nur Motiv-Selektoren).
   Rein Darstellung: kein Formular, kein Feldname, keine Aktion wird hier beruehrt.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
/* Selektor-Staerke bewusst (0,2,0) wie die Hell/Dunkel-Bloecke im Inline-CSS von shop_layout_top.php, damit diese Datei
   (steht danach) sie in jedem Fall ueberstimmt. */
:root {
  /* Theme-unabhaengige Tokens: muessen in JEDEM Theme-Zustand gelten (auch data-theme="dark"). */
  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ui-font: var(--font);
  --radius: 18px; --radius-sm: 12px;
  --gutter: 20px; --maxw: 1160px; --header-h: 64px;
}
:root:not([data-theme="dark"]) {
  --ink: #14140F; --paper: #F3F4F0; --signal: #A3CCAB; --deep: #053D38;
  --bg: #F6F7F3; --bg-soft: #ECEEE7; --bg-alt: #ECEEE7; --surface: #FFFFFF; --surface-hover: #F1F3EC;
  --text: #14140F; --muted: #565A4E; --muted-soft: #8A8E80; --border: #D6D9CE;
  --link: #2D6A5E; --accent: #053D38; --focus: #2D6A5E;
  --btn-bg: #053D38; --btn-fg: #F3F4F0;
  --primary: #053D38; --primary-dark: #0a5a52; --primary-soft: rgba(5, 61, 56, .1);
  --header-bg: rgba(246, 247, 243, .86); --topbar-bg: rgba(246, 247, 243, .86);
  --shop-shadow: 0 10px 30px rgba(20, 20, 15, .08);
  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ui-font: var(--font);
  --radius: 18px; --radius-sm: 12px;
  --gutter: 20px; --maxw: 1160px; --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14140F; --bg-soft: #181914; --bg-alt: #181914; --surface: #1C1D18; --surface-hover: #24261F;
    --text: #F3F4F0; --muted: #A7AB9F; --muted-soft: #7C8073; --border: #2C2E26;
    --link: #A3CCAB; --accent: #A3CCAB; --focus: #A3CCAB;
    --btn-bg: #A3CCAB; --btn-fg: #14140F;
    --primary: #34675C; --primary-dark: #2a5249; --primary-soft: rgba(163, 204, 171, .14);
    --header-bg: rgba(20, 20, 15, .86); --topbar-bg: rgba(20, 20, 15, .86);
    --shop-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #14140F; --bg-soft: #181914; --bg-alt: #181914; --surface: #1C1D18; --surface-hover: #24261F;
  --text: #F3F4F0; --muted: #A7AB9F; --muted-soft: #7C8073; --border: #2C2E26;
  --link: #A3CCAB; --accent: #A3CCAB; --focus: #A3CCAB;
  --btn-bg: #A3CCAB; --btn-fg: #14140F;
  --primary: #34675C; --primary-dark: #2a5249; --primary-soft: rgba(163, 204, 171, .14);
  --header-bg: rgba(20, 20, 15, .86); --topbar-bg: rgba(20, 20, 15, .86);
  --shop-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* 2. BASIS ----------------------------------------------------------------- */
html { scroll-padding-top: calc(var(--header-h) + 12px); scroll-behavior: smooth; }
body.fxp-shop { font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: clip; line-height: 1.55; }
body.fxp-shop h1, body.fxp-shop h2, body.fxp-shop h3 { letter-spacing: -.02em; text-wrap: balance; }
body.fxp-shop a { text-underline-offset: .18em; }
body.fxp-shop :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
body.fxp-shop .skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; }
body.fxp-shop .skip-link:focus { top: 12px; }
body.fxp-shop .container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
body.fxp-shop .icon { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
body.fxp-shop .eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1em; }
body.fxp-shop .eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* 3. KOPF / NAVIGATION (wie site.css 4a, gekapselt) ------------------------- */
body.fxp-shop .site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); }
body.fxp-shop .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
body.fxp-shop .site-header__inner { height: 100%; display: flex; align-items: center; gap: 12px; }
body.fxp-shop .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.1rem; margin-right: auto; }
body.fxp-shop .brand:hover { color: var(--text); }
body.fxp-shop .brand svg.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--accent); }
body.fxp-shop .icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
body.fxp-shop .icon-btn:hover { background: var(--surface); }
body.fxp-shop .site-header .icon-btn .icon { width: 1.4rem; height: 1.4rem; }
body.fxp-shop select.lang-switch { width: auto; height: 44px; padding: 0 10px; margin: 0; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; max-width: 7.5rem; flex-shrink: 0; box-shadow: none; }
body.fxp-shop select.lang-switch:hover { background: var(--surface); }
body.fxp-shop select.lang-switch option { color: initial; }
body.fxp-shop .nav { display: flex; flex-direction: column; gap: 4px; padding: 16px var(--gutter); }
body.fxp-shop .nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 10px; }
body.fxp-shop .nav a:hover { background: var(--bg-alt); color: var(--text); }
body.fxp-shop .nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
body.fxp-shop .nav .btn { margin-top: 8px; background: var(--btn-bg); color: var(--btn-fg); text-align: center; justify-content: center; border-radius: 999px; padding: 12px 22px; }
body.fxp-shop .nav .btn:hover { background: var(--btn-bg); color: var(--btn-fg); }
body.fxp-shop .nav-toggle { display: none; }
body.fxp-shop .nav-backdrop { display: none; }
.js body.fxp-shop .nav-toggle { display: inline-grid; }
.js body.fxp-shop .nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); padding-top: calc(var(--header-h) + 8px);
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shop-shadow);
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; touch-action: pan-y; z-index: 60; overflow-y: auto;
}
.js body.fxp-shop .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 55; }
.nav-open body.fxp-shop .nav { transform: none; visibility: visible; }
.nav-open body.fxp-shop .nav-backdrop { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }
.nav-open body.fxp-shop .site-header__inner > :not(.nav) { position: relative; z-index: 70; }
body.fxp-shop .nav-more { position: relative; }
body.fxp-shop .nav-more > summary { list-style: none; cursor: pointer; font-weight: 600; padding: 12px 14px; border-radius: 10px; color: var(--text); }
body.fxp-shop .nav-more > summary::-webkit-details-marker { display: none; }
body.fxp-shop .nav-more > summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
body.fxp-shop .nav-more > summary:hover { background: var(--bg-alt); }
body.fxp-shop .nav-more[open] > summary { color: var(--accent); }
body.fxp-shop .nav-more__list { display: flex; flex-direction: column; gap: 2px; padding: 0 0 0 10px; }
body.fxp-shop .nav-more__list a { padding: 10px 14px; }
@media (min-width: 960px) {
  body.fxp-shop .nav-toggle, .js body.fxp-shop .nav-toggle { display: none; }
  .js body.fxp-shop .nav, body.fxp-shop .nav { position: static; flex-direction: row; align-items: center; gap: 2px; width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; transform: none; visibility: visible; overflow: visible; }
  body.fxp-shop .nav a { padding: 8px 12px; font-size: .95rem; }
  body.fxp-shop .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  body.fxp-shop .nav .btn { margin: 0 0 0 8px; padding: 9px 16px; }
  .js body.fxp-shop .nav-backdrop { display: none; }
  body.fxp-shop .brand { margin-right: 0; }
  body.fxp-shop .site-header__inner { justify-content: space-between; }
  body.fxp-shop .site-header__inner .nav { margin-left: auto; }
  body.fxp-shop .nav-more > summary { padding: 8px 12px; font-size: .95rem; }
  body.fxp-shop .nav-more__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shop-shadow); }
}

/* 4. HERO mit Header-Motiv "Shop" -------------------------------------------- */
body.fxp-shop .page-hero { position: relative; isolation: isolate; overflow: hidden; background: #14140F; color: #F3F4F0; padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4.5vw, 52px); }
body.fxp-shop .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20,20,15,.82) 0%, rgba(20,20,15,.45) 55%, rgba(20,20,15,.15) 100%); pointer-events: none; }
body.fxp-shop .page-hero .eyebrow { color: #A3CCAB; }
body.fxp-shop .page-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -.035em; line-height: 1.08; margin: 0 0 .35em; color: #F3F4F0; }
body.fxp-shop .page-hero h1 em { font-style: normal; color: #A3CCAB; }
body.fxp-shop .page-hero p.lead { font-size: clamp(1.02rem, 2.4vw, 1.25rem); color: #D9DBD2; max-width: 36rem; margin: 0; }
body.fxp-shop .page-hero__inner { position: relative; }
body.fxp-shop .page-hero--compact { padding-block: clamp(22px, 3.5vw, 36px); }
body.fxp-shop .page-hero--compact h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0; }
body.fxp-shop .page-hero--compact .eyebrow { margin-bottom: .5em; }
body.fxp-shop .hero__motif .mt-tag { transform-box: fill-box; transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  body.fxp-shop .hero__motif .mt-tag { animation: shop-swing 6s ease-in-out infinite alternate; }
  body.fxp-shop .hero__motif .mt-bag { animation: mt-hover 7s ease-in-out infinite alternate; }
}
@keyframes shop-swing { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

/* Inhalt: der Shop-Rahmen (.content) behaelt seine Breite, bekommt nur etwas mehr Luft */
body.fxp-shop main#inhalt > .content { padding-top: clamp(20px, 3vw, 32px); padding-bottom: clamp(40px, 6vw, 80px); }

/* 5. SHOP-BEDIENELEMENTE (nur Optik, Klassen aus shop.php unveraendert) ------ */
body.fxp-shop .card { background: var(--surface); border-color: var(--border); border-radius: var(--radius); box-shadow: none; }
body.fxp-shop .btn, body.fxp-shop .shop-cta { background: var(--btn-bg); color: var(--btn-fg) !important; border-radius: 999px; box-shadow: none; font-weight: 700; }
body.fxp-shop .btn:hover, body.fxp-shop .shop-cta:hover { background: var(--btn-bg); color: var(--btn-fg) !important; filter: brightness(1.08); box-shadow: var(--shop-shadow); transform: translateY(-1px); }
body.fxp-shop .btn.secondary, body.fxp-shop .shop-cta-outline { background: transparent; color: var(--text) !important; border: 1px solid var(--border); border-radius: 999px; filter: none; }
body.fxp-shop .btn.secondary:hover, body.fxp-shop .shop-cta-outline:hover { background: var(--surface); border-color: var(--accent); box-shadow: none; transform: none; filter: none; }
body.fxp-shop .btn.danger { background: var(--red); color: #fff !important; }
body.fxp-shop input, body.fxp-shop select, body.fxp-shop textarea { border-radius: 12px; background: var(--surface); }
body.fxp-shop input:focus, body.fxp-shop select:focus, body.fxp-shop textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--primary-soft); }
body.fxp-shop a:hover { color: var(--accent); }
body.fxp-shop .shop-account-bar { justify-content: flex-end; border-bottom: 0; padding-bottom: 0; }
body.fxp-shop .shop-account-bar a:hover { color: var(--accent); }
body.fxp-shop .shop-cart-link { background: var(--surface); border-radius: 999px; box-shadow: none; color: var(--text) !important; }
body.fxp-shop .shop-cart-link:hover { border-color: var(--accent); box-shadow: none; }
body.fxp-shop .shop-cart-count { background: var(--btn-bg); color: var(--btn-fg); }
body.fxp-shop .shop-mode-tabs { gap: .4rem; padding: 4px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; width: fit-content; max-width: 100%; }
body.fxp-shop .shop-mode-tab { border: 0; background: transparent; box-shadow: none; color: var(--muted) !important; padding: .5rem 1.2rem; }
body.fxp-shop .shop-mode-tab:hover { color: var(--text) !important; }
body.fxp-shop .shop-mode-tab.active { background: var(--btn-bg); color: var(--btn-fg) !important; }
body.fxp-shop .shop-cat-card { top: calc(var(--header-h) + 16px); }
body.fxp-shop .shop-cat-link { border-radius: 10px; }
body.fxp-shop .shop-cat-link:hover { background: var(--bg-alt); }
body.fxp-shop .shop-cat-link.active { background: var(--btn-bg); color: var(--btn-fg) !important; }
body.fxp-shop .shop-cat-link.active .shop-cat-n { color: var(--btn-fg); background: rgba(127, 127, 127, .25); }
body.fxp-shop .shop-crumb a:hover, body.fxp-shop a.shop-product-title-link:hover { color: var(--accent); }
body.fxp-shop .shop-payment-option:has(input:checked) { border-color: var(--accent); background: var(--primary-soft); }
body.fxp-shop .shop-gallery-thumb.active { border-color: var(--accent); outline-color: var(--accent); }
body.fxp-shop .flash { border-radius: 12px; box-shadow: none; }

/* Katalog-Raster: die Spalten stehen als Inline-Style in shop.php ("220px 1fr") - !important noetig, damit (a) das
   Highlights-Karussell die Spalte nicht aufweitet (minmax(0,1fr)) und (b) die vorhandene Mobil-Regel
   (.shop-catalog-grid einspaltig, im Inline-CSS von shop.php) gegen den Inline-Style ueberhaupt greift. */
body.fxp-shop .shop-catalog-grid { grid-template-columns: 220px minmax(0, 1fr) !important; }
body.fxp-shop .shop-catalog-grid > * { min-width: 0; }
@media (max-width: 700px) { body.fxp-shop .shop-catalog-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* Produktkarten (Raster) */
body.fxp-shop .shop-product-grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
body.fxp-shop .shop-product-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: none; transition: border-color .2s, box-shadow .25s; }
body.fxp-shop .shop-product-card:hover { transform: none; border-color: var(--accent); box-shadow: var(--shop-shadow); }
body.fxp-shop .shop-product-media { background: linear-gradient(145deg, var(--bg-alt), var(--surface)); }
body.fxp-shop .shop-product-media-empty { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(163, 204, 171, .08) 14px 15px); color: var(--accent); opacity: .7; }
body.fxp-shop .shop-product-cat { color: var(--accent); letter-spacing: .1em; }
body.fxp-shop .shop-product-price { letter-spacing: -.02em; }
body.fxp-shop .shop-badge { border-radius: 999px; letter-spacing: .08em; }

/* Reveal (Klasse is-in setzt site.js; ohne JS bleibt alles sichtbar) */
.js body.fxp-shop [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .25s; }
.js body.fxp-shop [data-reveal].is-in { opacity: 1; transform: none; }
body.fxp-shop [data-reveal-delay="1"] { transition-delay: .08s !important; }
body.fxp-shop [data-reveal-delay="2"] { transition-delay: .16s !important; }
body.fxp-shop [data-reveal-delay="3"] { transition-delay: .24s !important; }
body.fxp-shop [data-reveal-delay="4"] { transition-delay: .32s !important; }

/* Tilt (site.js setzt --rx/--ry/--mx/--my) */
body.fxp-shop [data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, border-color .2s; will-change: transform; }
body.fxp-shop [data-tilt].is-tilting { transition: transform .06s linear, border-color .2s; }
body.fxp-shop [data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(163, 204, 171, .22), transparent 60%); }
body.fxp-shop [data-tilt].is-tilting::after { opacity: 1; }

/* 6. HIGHLIGHT-KARUSSELL (Wisch-Karten, nur Anzeige + Link zur Produktseite) -- */
body.fxp-shop .shop-highlights { margin: 0 0 1.6rem; }
body.fxp-shop .shop-highlights__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: .6rem; }
body.fxp-shop .shop-highlights__head h2 { font-size: clamp(1.15rem, 3vw, 1.5rem); margin: 0; }
body.fxp-shop .shop-highlights__hint { font-size: .8rem; color: var(--muted); }
body.fxp-shop .carousel { position: relative; }
body.fxp-shop .carousel__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 10px 2px 14px; margin: -10px -2px 0; cursor: grab; position: relative; }
body.fxp-shop .carousel__track::-webkit-scrollbar { display: none; }
body.fxp-shop .carousel__slide { flex: 0 0 min(72%, 250px); scroll-snap-align: start; display: flex; }
body.fxp-shop .carousel__slide > * { flex: 1; }
body.fxp-shop .carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; -webkit-user-select: none; scroll-behavior: auto; }
body.fxp-shop .carousel__track.is-dragging a { pointer-events: none; }
body.fxp-shop .carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
body.fxp-shop .carousel__dots { display: flex; gap: 4px; flex-wrap: wrap; }
body.fxp-shop .carousel__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
body.fxp-shop .carousel__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--border); transition: width .25s, background .25s; }
body.fxp-shop .carousel__dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }
body.fxp-shop .carousel__arrows { display: flex; gap: 8px; }
body.fxp-shop .carousel__arrows .icon-btn { width: 40px; height: 40px; }
body.fxp-shop .carousel__arrows .icon-btn[disabled] { opacity: .35; cursor: default; }
body.fxp-shop .shop-hl-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; }
body.fxp-shop .shop-hl-card:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
body.fxp-shop .shop-hl-card__media { aspect-ratio: 4 / 3; background: linear-gradient(145deg, var(--bg-alt), var(--surface)); overflow: hidden; }
body.fxp-shop .shop-hl-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.fxp-shop .shop-hl-card__body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
body.fxp-shop .shop-hl-card__cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
body.fxp-shop .shop-hl-card__title { font-weight: 700; line-height: 1.25; }
body.fxp-shop .shop-hl-card__price { font-weight: 800; letter-spacing: -.02em; }
body.fxp-shop .shop-hl-card__price small { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .7rem; margin-right: .2rem; }

/* 7. FUSS (wie site.css 4n) --------------------------------------------------- */
body.fxp-shop .site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: 48px 28px; font-size: .95rem; color: var(--text); }
body.fxp-shop .site-footer .muted { color: var(--muted); }
body.fxp-shop .footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
body.fxp-shop .footer-grid h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
body.fxp-shop .footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
body.fxp-shop .footer-grid a { color: var(--text); }
body.fxp-shop .footer-grid a:hover { color: var(--accent); }
body.fxp-shop .footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
body.fxp-shop .footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
body.fxp-shop .footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text); }
body.fxp-shop .footer-social a:hover { border-color: var(--accent); color: var(--accent); }

/* Support-Chat-Widget: Inline-Optik bleibt, nur CI-Verlauf in beiden Modi (weisse Schrift darauf) */
body.fxp-shop #shopSupportBubble { background: linear-gradient(150deg, #053D38, #34675C) !important; }
body.fxp-shop #shopSupportPanel > div:first-child { background: linear-gradient(120deg, #053D38, #34675C) !important; }

/* 8. TYPOGRAFIE / BEDIENELEMENTE AN DAS MARKETING-DESIGN ANGLEICHEN ----------------------------------------------
   Das alte ERP-Inline-CSS (shop_layout_top.php, shop.php) setzt Schrift/Groessen/Abstaende dicht und teils ohne font-family
   (Buttons fielen auf Arial zurueck). Hier ueberschrieben ueber hoehere Selektor-Staerke (body.fxp-shop ...), ohne dass
   Markup, Feldnamen oder Aktionen angefasst werden. Skala wie site.css: Fliesstext 17px/1.6, Buttons 16px/700 (Pille),
   Felder 16px, Eyebrow/Badges .72-.8rem Grossbuchstaben mit Sperrung, Ueberschriften -.02em/700/Zeilenhoehe 1.12-1.2. */
body.fxp-shop { font-size: 1.0625rem; line-height: 1.6; font-weight: 400; }
body.fxp-shop button, body.fxp-shop input, body.fxp-shop select, body.fxp-shop textarea { font-family: inherit; }
body.fxp-shop .content h1 { line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
body.fxp-shop .content h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 0 0 .6em; }
body.fxp-shop .content h3 { font-size: 1.15rem; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
body.fxp-shop .content p { line-height: 1.6; }
body.fxp-shop .content .muted { color: var(--muted); }
body.fxp-shop .content .card { padding: clamp(18px, 3vw, 24px); margin-bottom: 20px; }
body.fxp-shop .content .card > h2:first-child, body.fxp-shop .content .card > h3:first-child { margin-top: 0; }

/* Formulare */
body.fxp-shop .content form label { display: block; margin: 1rem 0 .35rem; font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.4; }
body.fxp-shop .content label.muted { color: var(--muted); }
body.fxp-shop .content input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]), body.fxp-shop .content select, body.fxp-shop .content textarea {
  font-size: 1rem; line-height: 1.4; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
body.fxp-shop .content textarea { line-height: 1.5; }
body.fxp-shop .content input::placeholder, body.fxp-shop .content textarea::placeholder { color: var(--muted-soft); opacity: 1; }

/* Buttons */
body.fxp-shop .content .btn, body.fxp-shop .content .shop-cta, body.fxp-shop .content .shop-cta-outline, body.fxp-shop .content .shop-mode-tab {
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; padding: 12px 22px; border-radius: 999px; letter-spacing: 0; }
body.fxp-shop .content .btn.small { padding: 8px 14px; font-size: .9rem; border-radius: 999px; }
body.fxp-shop .content .shop-cta.large { font-size: 1.0625rem; padding: 14px 26px; }
body.fxp-shop .content .btn.secondary, body.fxp-shop .content .shop-cta-outline { border: 2px solid var(--border); padding: 10px 20px; }
body.fxp-shop .content .shop-mode-tab { padding: 8px 20px; font-size: .95rem; }
body.fxp-shop .content .shop-cart-link { font-size: .95rem; padding: 8px 16px 8px 12px; }
body.fxp-shop .content .shop-cart-count { font-size: .75rem; }
body.fxp-shop .content .shop-topbar-actions, body.fxp-shop .content .shop-account-bar { font-size: .95rem; }

/* Tabellen */
body.fxp-shop .content table { background: transparent; }
body.fxp-shop .content th, body.fxp-shop .content td { font-size: .95rem; line-height: 1.5; padding: 12px 14px; border-bottom-color: var(--border); }
body.fxp-shop .content th { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body.fxp-shop .content tbody tr:hover td { background: var(--bg-alt); }

/* Badges / Eyebrow-Stil */
body.fxp-shop .content .badge { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; line-height: 1.4; }
body.fxp-shop .content .shop-badge { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; }
body.fxp-shop .content .flash { font-size: 1rem; padding: 14px 18px; font-weight: 500; }

/* Katalog */
body.fxp-shop .content .shop-cat-title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
body.fxp-shop .content .shop-cat-link { font-size: .98rem; padding: 9px 12px; }
body.fxp-shop .content .shop-cat-link .shop-cat-n { font-size: .8rem; }
body.fxp-shop .content .shop-result-count { font-size: .95rem; color: var(--muted); }
body.fxp-shop .content .shop-highlights__hint { font-size: .85rem; }
body.fxp-shop .content .shop-product-cat, body.fxp-shop .content .shop-hl-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
body.fxp-shop .content .shop-product-title, body.fxp-shop .content .shop-product-title-link { font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
body.fxp-shop .content .shop-product-desc { font-size: .95rem; line-height: 1.5; color: var(--muted); }
body.fxp-shop .content .shop-product-price { font-size: 1.3rem; font-weight: 800; }
body.fxp-shop .content .shop-product-price .shop-price-from { font-size: .75rem; }
body.fxp-shop .content .shop-hl-card__title { font-size: 1.05rem; line-height: 1.25; }
body.fxp-shop .content .shop-hl-card__price { font-size: 1.1rem; }
body.fxp-shop .content .shop-crumb, body.fxp-shop .content .shop-crumb-sep, body.fxp-shop .content .shop-crumb-current { font-size: .92rem; }
body.fxp-shop .content .shop-dim-label { font-size: .8rem; }
body.fxp-shop .content .shop-qty-field button { font-size: 1.1rem; }

/* Produktseite */
body.fxp-shop .content .shop-detail-title { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin: 0 0 .3em; }
body.fxp-shop .content .shop-detail-sku { font-size: .9rem; color: var(--muted); }
body.fxp-shop .content .shop-detail-price { font-size: clamp(1.7rem, 3.5vw, 2.1rem); letter-spacing: -.03em; font-weight: 800; }
body.fxp-shop .content .shop-detail-tax-note { font-size: .9rem; color: var(--muted); }
body.fxp-shop .content .shop-detail-desc { font-size: 1.0625rem; line-height: 1.6; }
body.fxp-shop .content .shop-availability { font-size: .95rem; }
body.fxp-shop .content .shop-trust-row, body.fxp-shop .content .shop-secure-note { font-size: .9rem; }

/* Warenkorb / Kasse / Konto */
body.fxp-shop .content .shop-cart-item-name { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
body.fxp-shop .content .shop-cart-item-variant { font-size: .9rem; color: var(--muted); }
body.fxp-shop .content .shop-summary-row { font-size: 1rem; }
body.fxp-shop .content .shop-summary-row.total { font-size: 1.2rem; font-weight: 800; }
body.fxp-shop .content .shop-checkout-grid h3 { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8em; }
body.fxp-shop .content .shop-payment-label { font-size: 1.02rem; font-weight: 700; }
body.fxp-shop .content .shop-payment-hint { font-size: .88rem; color: var(--muted); }
body.fxp-shop .content .shop-order-summary-line { font-size: .98rem; }
body.fxp-shop .content .shop-auth-title { font-size: clamp(1.4rem, 3.5vw, 1.8rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
body.fxp-shop .content .shop-auth-sub { font-size: 1rem; color: var(--muted); }

/* "Mehr"-Menue: geschlossen = Liste nicht sichtbar (auch wenn display:flex der Liste sonst durchschlaegt) */
body.fxp-shop .nav-more:not([open]) > .nav-more__list { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js body.fxp-shop [data-reveal] { opacity: 1; transform: none; transition: none; }
  body.fxp-shop [data-tilt] { transform: none !important; }
  body.fxp-shop .btn:hover, body.fxp-shop .shop-cta:hover { transform: none; }
}
@media (max-width: 560px) {
  body.fxp-shop .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.fxp-shop .shop-product-body { padding: .7rem .75rem .8rem; }
  body.fxp-shop .shop-add-row { flex-wrap: wrap; }
}
@media (max-width: 639px) {
  body.fxp-shop .shop-account-bar { justify-content: center; }
}
