/* ==================================================================
   E-Bike Vision B2B-Shop – Basis-Stylesheet (Design-Tokens)
   Farbwelt/Fonts gemäß DESIGN-TOKENS.md. Wird in M2 ausgebaut.
   ================================================================== */
:root {
  --color-primary:        #50AA32;
  --color-primary-hover:  #3E8C28;
  --color-secondary:      #e31e25;
  --color-price:          #f50000;

  --color-bg:             #ffffff;
  --color-footer-bg:      #323232;
  --color-footer-text:    #ffffff;
  --color-text:           #444444;
  --color-muted:          #777777;
  --color-border:         #e5e5e5;
  --color-border-strong:  #999999;

  --font-head: "Kanit", Helvetica, Arial, sans-serif;
  --font-body: "Nunito", system-ui, Arial, sans-serif;
  --container-max: 1240px;
  --radius: 0;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
}

* { box-sizing: border-box; }

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

body { margin: 0; }

h1, h2 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-brand { font-family: var(--font-head); font-weight: 600; font-size: 20px; text-transform: uppercase; color: #000; }
.site-nav a { margin-left: var(--space-4); text-transform: uppercase; font-family: var(--font-head); color: #000; }
.site-nav a:hover { color: var(--color-primary); text-decoration: none; }

/* Main */
.site-main { padding: var(--space-5) var(--space-4); min-height: 50vh; }

/* Hero */
.hero { max-width: 720px; }
.hero__lead { font-size: 18px; }
.hero__note { color: var(--color-muted); }

/* Buttons
   16.11.2026: Inhalt immer mittig – waagerecht und senkrecht, auch bei voller Breite, in Rastern/Tabellen
   und bei mehrzeiligem Text. Vorher inline-block ohne text-align: Links (a.btn) übernahmen „links“ vom
   Elternelement, und mit min-height 44 px saß der Text oben statt in der Mitte. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; border-color: var(--color-border-strong); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }

/* Preis */
.price { color: var(--color-price); font-weight: 700; }
.price--hidden { color: var(--color-muted); font-weight: 400; font-style: italic; }

/* Footer */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); margin-top: var(--space-5); }
.site-footer__inner { padding: var(--space-5) var(--space-4); }
.site-footer a { color: #fff; }

/* Meldungen */
.alert { padding: 12px 16px; margin-bottom: var(--space-3); border: 1px solid; }
.alert--danger { border-color: #d0021b; background: #fdecea; color: #7a1a12; }
.alert--success { border-color: var(--color-primary); background: #eef7ea; color: #2f6a1e; }

/* ---- Header / Navigation (M2) ---- */
.site-header__top { display: flex; align-items: center; gap: var(--space-4); height: 64px; }
.site-search { display: flex; flex: 1; max-width: 420px; }
.site-search input { flex: 1; height: 38px; padding: 0 12px; border: 1px solid var(--color-border-strong); }
.site-search button { height: 38px; padding: 0 16px; background: var(--color-primary); color: #fff; border: 0; cursor: pointer; font-family: var(--font-head); text-transform: uppercase; }
.site-account { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; font-size: 14px; }
.site-account__hello { color: var(--color-muted); }
.site-account__logout { display: inline; margin: 0; }
.site-account__logout button { padding: 0; color: var(--color-primary); background: transparent; border: 0; font: inherit; cursor: pointer; }
.site-account__logout button:hover { text-decoration: underline; }
.locale-switch { display: inline-flex; margin: 0; }
.locale-switch select { min-width: 58px; padding: 5px 7px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; font: inherit; }
.cart-link { font-weight: 700; }
.site-nav { background: #fff; border-bottom: 1px solid var(--color-border); }
.site-nav .container { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: inline-block; padding: 12px 16px; font-family: var(--font-head); text-transform: uppercase; font-size: 15px; color: #000; }
.site-nav a:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

.breadcrumb { background: #fff; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.breadcrumb .container { padding-top: 8px; padding-bottom: 8px; }
.breadcrumb__sep { color: var(--color-muted); margin: 0 4px; }

/* ---- 2-Spalten-Layout ---- */
.layout-2col { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-5); }
.sidebar__title { font-size: 18px; }
.nav-tree { list-style: none; margin: 0; padding: 0; }
.nav-tree .nav-tree { margin-left: 12px; }
.nav-tree a { display: block; padding: 6px 8px; color: #000; border-left: 2px solid transparent; }
.nav-tree a:hover { color: var(--color-primary); text-decoration: none; }
.nav-tree a.is-active { color: var(--color-primary); border-left-color: var(--color-primary); font-weight: 700; }

/* ---- Toolbar / Pagination ---- */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: var(--space-3) 0; border-bottom: 1px solid var(--color-border); padding-bottom: 8px; }
.toolbar__sort a { margin-left: 12px; }
.toolbar__sort a.is-active, .pagination a.is-active { font-weight: 700; color: var(--color-primary); }
.pagination { display: flex; gap: 6px; margin-top: var(--space-4); }
.pagination a { padding: 6px 12px; border: 1px solid var(--color-border); }

/* ---- Produkt-Grid / Card ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); }
.product-card { border: 1px solid var(--color-border); padding: var(--space-3); display: flex; flex-direction: column; }
.product-card__media { display: flex; align-items: center; justify-content: center; height: 180px; background: #fff; }
.product-card__media img { max-height: 180px; max-width: 100%; mix-blend-mode: multiply; }
.product-card__placeholder { color: var(--color-border-strong); font-family: var(--font-head); text-transform: uppercase; font-size: 14px; }
.product-card__placeholder--lg { display: flex; align-items: center; justify-content: center; height: 320px; font-size: 22px; }
.product-card__title { font-size: 15px; line-height: 1.3; margin: 8px 0 4px; }
.product-card__no { color: var(--color-muted); font-size: 13px; margin: 0 0 8px; }
.product-card__price { margin: auto 0 10px; min-height: 26px; }

/* ---- Preis ---- */
.price { color: var(--color-price); font-weight: 700; font-size: 18px; }
.price__note { color: var(--color-muted); font-size: 12px; display: block; }
.price--hidden { color: var(--color-muted); font-style: italic; }

/* ---- Kacheln (Home) ---- */
.tiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); }
.tile { display: flex; align-items: center; justify-content: center; min-height: 96px; border: 1px solid var(--color-border); background: var(--color-primary); color: #fff; text-align: center; }
.tile:hover { background: var(--color-primary-hover); color: #fff; text-decoration: none; }
.tile__title { font-family: var(--font-head); text-transform: uppercase; }

/* ---- Produktdetail (Grundlagen; Produktseite siehe „Produktseite“ weiter unten) ---- */
.dg-hint { background: #fff6e5; border: 1px solid #f5a623; padding: 8px 12px; font-size: 14px; }
.tech-data { width: 100%; border-collapse: collapse; }
.tech-data th, .tech-data td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--color-border); }
.tech-data th { width: 40%; background: #fafafa; }
.accessory-list, .downloads { padding-left: 18px; }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.muted { color: var(--color-muted); }
.prose { max-width: 70ch; }

@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; }
  .site-header__top { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
}

/* ---- Formulare / Auth / Konto (M3) ---- */
.auth-box { max-width: 460px; margin: 0 auto; }
.auth-box--wide { max-width: 860px; }
.form label { display: block; margin-bottom: 12px; }
.form input, .form select, .form textarea { display: block; width: 100%; min-height: 38px; padding: 6px 10px; border: 1px solid var(--color-border-strong); margin-top: 4px; }
.form input[type=checkbox] { display: inline-block; width: auto; min-height: auto; margin-top: 0; }
.form .checkbox { display: flex; gap: 8px; align-items: baseline; }
.form--grid fieldset { border: 1px solid var(--color-border); padding: 12px 16px; margin-bottom: 16px; }
.form--grid legend { font-family: var(--font-head); text-transform: uppercase; font-size: 14px; padding: 0 6px; }
.field-error { display: block; color: #d0021b; font-size: 13px; margin-top: 4px; }
.form__actions { margin-top: 8px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.card { border: 1px solid var(--color-border); padding: var(--space-4); margin-bottom: var(--space-4); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--color-border); }
.address { border: 1px solid var(--color-border); padding: 10px; margin-bottom: 10px; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }

/* ---- Warenkorb / Checkout (M5) ---- */
.cart-table .qty-input { width: 80px; height: 34px; padding: 0 8px; border: 1px solid var(--color-border-strong); }
.cart-actions { margin: 12px 0; }
.cart-summary { max-width: 420px; margin-left: auto; }
.cart-summary .row, .checkout__summary .row { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-total { border-top: 2px solid var(--color-text); margin-top: 8px; padding-top: 8px; font-size: 18px; }
.checkout__grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-4); align-items: start; }
.checkout__summary { position: sticky; top: 16px; }
.checkout__summary hr { border: 0; border-top: 1px solid var(--color-border); margin: 8px 0; }
@media (max-width: 900px) { .checkout__grid { grid-template-columns: 1fr; } }

/* ==================================================================
   Visuelle Angleichung an den bisherigen E-Bike-Vision-Webshop.
   Die Gestaltung bleibt eigenständig umgesetzt; Logo, Schriften und
   Produktmotive stammen aus dem vorhandenen Shop-Assetbestand.
   ================================================================== */
@font-face {
  font-family: "Kanit";
  src: url("/assets/fonts/Kanit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("/assets/fonts/Kanit-SemiBold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #50aa32;
  --color-primary-hover: #3e8c28;
  --color-bg: #fff;
  --color-footer-bg: #323232;
  --color-text: #444;
  --color-muted: #777;
  --color-border: #e5e5e5;
  --color-border-strong: #bbb;
  --font-head: "Kanit", Helvetica, Arial, sans-serif;
  --font-body: "Nunito", Arial, sans-serif;
  --container-max: 1130px;
  --content-gap: clamp(22px, 2.4vw, 30px);
  --card-padding: clamp(20px, 2.4vw, 30px);
  --page-padding: clamp(22px, 3vw, 36px);
}

html { font: 400 16px/1.4 var(--font-body); background: var(--color-footer-bg); }
body { min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; background: var(--color-footer-bg); overflow-x: hidden; }
h1, h2 { color: #404040; font-family: var(--font-head); font-weight: 600; font-size: 32px; line-height: 1.08; margin: 0 0 22px; }
h3, h4, h5, h6 { font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 18px; }
a:hover { text-decoration: none; }
.container { width: min(calc(100% - 30px), var(--container-max)); max-width: none; margin-inline: auto; padding: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Kopfbereich wie im Live-Shop */
.site-utility { height: 40px; flex: 0 0 40px; background: #323232; color: #fff; }
.site-utility__inner { height: 40px; display: flex; align-items: center; justify-content: space-between; }
.site-search { position: relative; display: block; flex: none; width: 120px; max-width: none; }
.site-search::before { content: "\2315"; position: absolute; left: 9px; top: 3px; z-index: 1; color: #aaa; font: 21px/24px Arial,sans-serif; transform: rotate(-20deg); pointer-events: none; }
.site-search input { position: relative; display: block; width: 120px; height: 30px; padding: 0 8px 0 29px; border: 1px solid #777; border-radius: 0; background: transparent; color: #fff; font: inherit; outline: 0; }
.site-search input::placeholder { color: #aaa; opacity: 1; }
.site-search input:focus { width: 220px; border-color: #aaa; background: #2b2b2b; }
.locale-switch { margin-left: auto; }
.locale-switch select { height: 28px; padding: 2px 24px 2px 8px; border: 1px solid #666; border-radius: 0; background: #323232; color: #eee; font: 13px var(--font-body); }

.site-header { position: sticky; top: 0; z-index: 100; flex: 0 0 70px; height: 70px; border: 0; background: #fff; box-shadow: none; }
.site-header__inner { position: relative; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.site-brand { display: block; width: 200px; height: 48px; flex: 0 0 auto; color: transparent; }
.site-brand img { display: block; width: 200px; height: 48px; object-fit: contain; }
.site-nav { position: static; display: flex; align-items: center; gap: 0; margin-left: auto; border: 0; background: #fff; }
.site-nav > a,
.site-nav__dropdown > button,
.site-account__logout button { min-height: 40px; margin: 0; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: #fff; color: #000; font: 600 16px/40px var(--font-head); text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.site-nav > a:hover,
.site-nav > a.is-active,
.site-nav__dropdown:hover > button,
.site-nav__dropdown:focus-within > button,
.site-nav__dropdown.is-active > button,
.site-account__logout button:hover { background: var(--color-primary); color: #fff; }
.site-account__logout { display: contents; }
.site-nav__dropdown { position: relative; }
.site-nav__dropdown > button span { margin-left: 4px; font-family: Arial,sans-serif; font-size: 13px; }
.site-nav__dropdown-panel { position: absolute; top: 40px; right: 0; z-index: 120; width: 400px; padding: 15px; border: 1px solid #eee; background: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.13); opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.site-nav__dropdown:hover .site-nav__dropdown-panel,
.site-nav__dropdown:focus-within .site-nav__dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-toggle { display: none; }

/* Breadcrumb und Seitenraster */
.breadcrumb { flex: 0 0 auto; border: 0; background: #fff; color: var(--color-primary); font-size: 16px; }
.breadcrumb .container { padding-top: 12px; padding-bottom: 2px; }
.breadcrumb__sep { margin: 0 9px; color: #777; }
.site-main { width: 100%; flex: 1 0 auto; min-height: 430px; padding: 45px 0 64px; background: #fff; }
.site-main.container {
  width: min(calc(100% - 30px), var(--container-max));
  padding-right: var(--page-padding);
  padding-left: var(--page-padding);
}
.site-main--home { min-height: 0; padding: 0; }

/* Startseite */
.home-hero { width: 100%; margin: 0; overflow: hidden; background: #fff; text-align: center; }
.home-hero img { display: block; width: 100%; max-width: 1920px; height: auto; margin: 0 auto; }
.home-copy { padding-top: 68px; padding-bottom: 55px; text-align: center; }
.home-copy h1, .home-copy h2 { margin-top: 0; margin-bottom: 48px; font-size: 32px; text-transform: uppercase; }
.home-copy p { margin-right: auto; margin-left: auto; max-width: 1080px; }
.home-copy hr { height: 1px; margin: 52px 0 66px; border: 0; background: #ddd; }
.home-copy .btn { margin-top: 8px; }

/* Footer */
.site-footer { flex: 0 0 auto; margin: 0; background: #323232; color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px; padding: 45px 0 70px; }
.site-footer__col, .site-footer__links { min-width: 0; }
.site-footer p { margin: 0 0 18px; }
.site-footer h3 { margin: 0 0 12px; color: #fff; font-size: 20px; }
.site-footer a { color: var(--color-primary); }
.site-footer a:hover { color: #72c758; }
.site-footer__links { display: flex; flex-direction: column; align-items: flex-start; }

/* Navigation und Kategorien */
.layout-2col { display: grid; grid-template-columns: 255px minmax(0,1fr); gap: 30px; }
.layout-2col, .layout-2col > .content { min-width: 0; }
.sidebar { margin-right: -1px; padding-right: 10px; border-right: 1px solid var(--color-border); }
.nav-tree { margin: 0; padding: 0; list-style: none; }
.nav-tree .nav-tree { display: none; margin: 0 0 15px; padding: 5px 0; border-bottom: 1px solid #eee; background: rgba(200,200,200,.10); }
.nav-tree .branch-open > .nav-tree { display: block; }
.nav-tree a { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 7px 15px; border: 0; color: #111; line-height: 1.35; }
.nav-tree a:hover, .nav-tree a.is-active { background: var(--color-primary); color: #fff; }
.nav-tree a span { font: 22px/1 Arial,sans-serif; transition: transform .15s ease; }
.nav-tree .branch-open > a span { transform: rotate(-90deg); }
.nav-tree .nav-tree a { padding-left: 15px; }
.site-nav__dropdown-panel .nav-tree .nav-tree { display: block; margin: 0 12px 10px; }
.site-nav__dropdown-panel .nav-tree > li > a { font-weight: 700; }
.site-nav__dropdown-panel .nav-tree .nav-tree a { min-height: 30px; padding-top: 4px; padding-bottom: 4px; font-weight: 400; }

.content > h1 { margin-top: 0; }
.category-intro { margin-bottom: 25px; }
.toolbar { min-height: 42px; margin: 0 0 46px; padding: 5px 15px; border: 0; background: #eee; }
.toolbar__sort { display: flex; align-items: center; gap: 9px; }
.toolbar__sort select { width: 130px; height: 32px; padding: 3px 8px; border: 1px solid #ccc; background: #fff; color: #444; font: inherit; }
.sort-icon { font-size: 11px; line-height: 1; font-weight: 700; }
.view-switch { width: 28px; padding: 3px; color: #333; text-align: center; font-size: 22px; line-height: 1; }
.view-switch:hover, .view-switch.is-active { color: var(--color-primary); }
.toolbar__search { position: relative; }
.toolbar__search::before { content: "\2315"; position: absolute; left: 5px; top: 2px; color: #aaa; transform: rotate(-20deg); }
.toolbar__search input { width: 120px; height: 30px; padding: 4px 8px 4px 26px; border: 0; background: transparent; font: inherit; outline: 0; }

.product-results--list { display: flex; flex-direction: column; gap: 34px; }
.product-row { min-height: 160px; padding: 12px 14px; background: #f8f8f8; color: #999; }
.product-row__number { margin: 0; padding: 0 0 8px; border-bottom: 1px solid #e7e7e7; color: #999; font: 400 13px/1.2 var(--font-body); }
.product-row__body { display: grid; grid-template-columns: 130px minmax(0,1fr) auto; gap: 22px; align-items: center; min-height: 116px; }
.product-row__media { display: flex; width: 130px; height: 105px; align-items: center; justify-content: center; }
.product-row__media img { max-width: 100%; max-height: 92px; mix-blend-mode: multiply; }
.product-row__copy { min-width: 0; align-self: start; padding-top: 13px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; }
.product-row__copy p { margin-bottom: 8px; }
.product-row__copy .price { font-size: 15px; }
.product-row__more { align-self: end; margin-bottom: 4px; }
.product-results--grid, .product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.product-card { min-width: 0; border: 1px solid var(--color-border); padding: 18px; background: #fff; }
.product-card__title { margin: 10px 0 5px; font: 700 16px/1.35 var(--font-body); text-transform: none; }
.product-card__title a { color: #444; }
.product-card__media { height: 190px; }
.product-card__media img { max-height: 180px; }
.product-card .btn { align-self: flex-start; }
.pagination { justify-content: center; margin-top: 38px; padding-top: 20px; border-top: 1px solid #ddd; }
.pagination a { border: 0; }

/* Zubehör-Karten */
.accessory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.accessory-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 112px; overflow: hidden; border: 1px solid var(--color-border); background: #fafafa; color: var(--color-text); transition: border-color .15s ease, box-shadow .15s ease; }
.accessory-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 14px rgba(0,0,0,.08); color: var(--color-text); }
.accessory-card__media { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 8px; border-right: 1px solid var(--color-border); background: #fff; }
.accessory-card__media img { display: block; width: 100%; height: 94px; object-fit: contain; mix-blend-mode: multiply; }
.accessory-card__placeholder { color: #b7b7b7; font-size: 11px; font-weight: 700; text-align: center; text-transform: uppercase; }
.accessory-card__copy { display: flex; min-width: 0; padding: 14px; flex-direction: column; justify-content: center; gap: 5px; }
.accessory-card__copy small { color: var(--color-muted); font-size: 12px; }
.accessory-card__copy strong { color: #404040; font-size: 15px; line-height: 1.35; }
.tech-data th { background: #eee; }

/* Formulare, Login, Warenkorb und Konto */
.btn { min-height: 36px; padding: 7px 16px; border: 0; border-radius: 0; font: 400 16px/22px var(--font-body); text-transform: none; }
.btn--ghost, .btn--soft { border: 0; background: #eee; color: #444; }
.btn--ghost:hover, .btn--soft:hover { background: var(--color-primary); color: #fff; }
.btn--sm { min-height: 29px; padding: 4px 11px; font-size: 12px; }
.auth-box, .auth-box--wide, .auth-login { width: 100%; max-width: none; margin: 0; }
.auth-login > p { padding-bottom: 4px; border-bottom: 1px solid #ddd; }
.form--horizontal label { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 15px; align-items: center; margin-bottom: 6px; }
.form--horizontal label > span { margin: 0; }
.form--horizontal input { margin: 0; }
.form__actions--offset { display: grid; grid-template-columns: repeat(2,minmax(0,230px)); gap: 5px; margin: 20px 0 0 215px; }
.form--horizontal__hint { margin: 0 0 12px 215px; }
.registration-callout { margin-top: 80px; }
.registration-callout > p:first-of-type { padding-bottom: 6px; border-bottom: 1px solid #ddd; }
.form input, .form select, .form textarea, .checkout select, .checkout input, .checkout textarea { border-color: #ccc; border-radius: 0; }
.form--grid fieldset { margin-bottom: 22px; border-color: #ddd; background: #fff; }
.form--grid legend { color: #444; font-family: var(--font-body); font-size: 18px; font-weight: 700; text-transform: none; }
.card { padding: var(--card-padding); border-color: #e3e3e3; border-radius: 0; background: #fafafa; box-shadow: none; }
.table thead { background: #f2f2f2; }
.table th { font-weight: 700; }
.cart-summary { background: #f4f4f4; }
.search-page { display: flex; max-width: 700px; margin-bottom: 30px; }
.search-page input { flex: 1; min-width: 0; height: 38px; border: 1px solid #ccc; padding: 6px 10px; font: inherit; }
.alert { border-width: 0 0 0 4px; }

/* Ruhiger Abstandsrhythmus für Shop, Warenkorb, Kasse und Kundenkonto */
.site-main > h1 { margin-bottom: 30px; }
.content > h1 { margin-bottom: 28px; }
.card > h2 { margin-bottom: 20px; font-size: 26px; }
.card > :last-child { margin-bottom: 0; }
.form label { margin-bottom: 15px; }
.form input, .form select, .form textarea { min-height: 42px; padding: 8px 11px; }
.form textarea { min-height: 96px; resize: vertical; }
.form__actions { margin-top: 18px; }
.form--grid fieldset { margin-bottom: 24px; padding: 20px 22px 22px; }
.form--grid fieldset > :last-child { margin-bottom: 0; }
.field-hint { display: block; margin-top: 5px; color: var(--color-muted); font-size: 13px; }

.account-grid { gap: var(--content-gap); align-items: start; }
.account-grid > .card { margin-bottom: 0; }
.account-grid .card > form + h2 { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--color-border); }
.address { margin-bottom: 22px; padding: 16px; background: #fff; }
.address form { margin-top: 12px; }
.account-grid + .card { margin-top: var(--content-gap); }

.cart-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--color-border); }
.cart-table th, .cart-table td { padding: 13px 12px; vertical-align: middle; }
.cart-table th:first-child, .cart-table td:first-child { padding-left: 16px; }
.cart-table th:last-child, .cart-table td:last-child { padding-right: 16px; }
.cart-actions { margin: 16px 0 28px; }
.cart-summary { max-width: 440px; padding: 26px 30px 28px; }
.cart-summary .row, .checkout__summary .row { gap: 20px; padding: 6px 0; }
.cart-summary .btn { margin-top: 18px; }
.cart-total { margin-top: 10px; padding-top: 12px !important; }

.checkout__grid { grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr); gap: var(--content-gap); }
.checkout__main { display: grid; gap: 20px; min-width: 0; }
.checkout__main > .card, .checkout__summary { margin-bottom: 0; }
.checkout__main > .card > label:not(.checkbox) { display: block; margin-top: 16px; }
.checkout select,
.checkout input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.checkout textarea { display: block; width: 100%; min-height: 42px; margin-top: 7px; padding: 8px 11px; border: 1px solid #ccc; background: #fff; font: inherit; }
.checkout textarea { min-height: 100px; resize: vertical; }
.checkout .checkbox { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; line-height: 1.45; }
.checkout .checkbox input { width: 17px; height: 17px; margin: 3px 0 0; flex: 0 0 17px; }
.checkout__summary { position: sticky; top: 90px; }
.checkout__summary .row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; }
.checkout__summary hr { margin: 12px 0; }
.checkout__summary .cart-total { font-size: 19px; }
.checkout__summary .checkbox { margin-top: 18px; }
.checkout__summary > .btn { width: 100%; margin-top: 8px; padding-top: 10px; padding-bottom: 10px; font-weight: 700; }

@media (max-width: 900px) {
  h1, h2 { font-size: clamp(26px,8vw,32px); }
  .site-utility__inner { width: calc(100% - 30px); }
  .site-search input:focus { width: 180px; }
  .locale-switch select { padding-right: 8px; }
  .site-header__inner { justify-content: center; }
  .site-brand { width: 140px; height: 40px; }
  .site-brand img { width: 140px; height: 34px; }
  .mobile-menu-toggle { position: absolute; left: 0; display: flex; width: 42px; height: 42px; padding: 11px 9px; flex-direction: column; justify-content: center; gap: 5px; border: 0; background: #fff; cursor: pointer; }
  .mobile-menu-toggle > span:not(.sr-only) { display: block; width: 19px; height: 2px; background: #333; }
  .site-nav { position: absolute; top: 70px; left: -15px; right: -15px; z-index: 150; display: none; max-height: calc(100vh - 110px); margin: 0; padding: 10px 15px 18px; flex-direction: column; align-items: stretch; overflow-y: auto; border-top: 1px solid #eee; box-shadow: 0 8px 16px rgba(0,0,0,.15); }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .site-nav__dropdown > button, .site-account__logout button { width: 100%; justify-content: flex-start; padding: 0 14px; }
  .site-nav__dropdown-panel { position: static; display: none; width: 100%; padding: 5px 10px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .site-nav__dropdown:focus-within .site-nav__dropdown-panel { display: block; }
  .breadcrumb .container { padding-top: 10px; white-space: nowrap; overflow-x: auto; }
  .site-main { padding-top: 35px; padding-bottom: 45px; }
  .site-main.container { width: calc(100% - 40px); }
  .site-main--home { padding: 0; }
  .home-copy { padding-top: 58px; padding-bottom: 45px; }
  .home-copy h1, .home-copy h2 { margin-bottom: 36px; }
  .home-copy hr { margin: 44px 0 52px; }
  .layout-2col { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { margin: 0; padding: 0; border: 0; }
  .sidebar > .nav-tree { display: flex; gap: 8px; padding-bottom: 5px; overflow-x: auto; }
  .sidebar > .nav-tree > li { flex: 0 0 auto; }
  .sidebar > .nav-tree > li > a { background: #eee; white-space: nowrap; }
  .sidebar .nav-tree .nav-tree { display: none; }
  .toolbar { margin-bottom: 28px; }
  .product-results--grid, .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-grid, .checkout__grid { grid-template-columns: 1fr; }
  .checkout__summary { position: static; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 20px; padding: 38px 0 50px; }
  .form--horizontal label { grid-template-columns: 1fr; gap: 4px; }
  .form__actions--offset, .form--horizontal__hint { margin-left: 0; }
  .registration-callout { margin-top: 58px; }
  .table { min-width: 680px; }
  .table-wrap, .cart-table { display: block; width: 100%; overflow-x: auto; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 30px); }
  .home-hero img { width: 100%; max-width: none; }
  .home-copy { width: calc(100% - 44px); overflow-wrap: anywhere; }
  .home-copy h1, .home-copy h2 { font-size: 28px; }
  .home-copy p { width: 100%; max-width: 100%; }
  .site-main.container { width: calc(100% - 30px); padding: 30px 18px 42px; }
  .site-main > h1 { margin-bottom: 24px; }
  .card { padding: 20px; }
  .card > h2 { margin-bottom: 18px; font-size: 24px; }
  .form--grid fieldset { padding: 17px 16px 19px; }
  .account-grid { gap: 18px; }
  .account-grid .card > form + h2 { margin-top: 30px; padding-top: 24px; }
  .account-grid + .card { margin-top: 18px; }
  .cart-table-wrap { overflow: visible; border: 0; }
  .cart-table { min-width: 0; border: 0; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { position: relative; padding: 15px 18px; border: 1px solid var(--color-border); background: #fafafa; }
  .cart-table td, .cart-table th:first-child, .cart-table td:first-child, .cart-table th:last-child, .cart-table td:last-child { padding: 6px 0; border: 0; }
  .cart-table td:not(:first-child):not(.cart-table__remove) { display: grid; grid-template-columns: minmax(112px, .8fr) 1fr; gap: 12px; align-items: center; }
  .cart-table td:not(:first-child):not(.cart-table__remove)::before { content: attr(data-label); color: var(--color-muted); font-size: 13px; }
  .cart-table td:first-child { padding-right: 36px; font-weight: 700; }
  .cart-table td:first-child .muted { font-weight: 400; }
  .cart-table__remove { position: absolute; top: 12px; right: 12px; width: auto !important; }
  .cart-table .qty-input { width: 88px; }
  .cart-actions { margin: 14px 0 24px; }
  .cart-summary { width: 100%; max-width: none; padding: 22px 20px 24px; }
  .checkout__grid { gap: 20px; }
  .checkout__main { gap: 16px; }
  .checkout select { font-size: 15px; }
  .checkout__summary .row { gap: 14px; }
  .checkout__summary > .btn { font-size: 15px; }
  .accessory-grid { grid-template-columns: 1fr; }
  .accessory-card { grid-template-columns: 78px minmax(0, 1fr); min-height: 96px; }
  .accessory-card__media img { height: 78px; }
  .toolbar { align-items: center; }
  .toolbar__search { display: none; }
  .product-results--grid, .product-grid { grid-template-columns: 1fr; }
  .product-row { min-height: 0; }
  .product-row__body { width: 100%; max-width: 100%; grid-template-columns: 90px minmax(0,1fr); gap: 12px; padding-top: 8px; }
  .product-row__media { width: 90px; height: 90px; }
  .product-row__media img { max-height: 80px; }
  .product-row__copy { width: 100%; max-width: calc(100vw - 152px); padding-top: 3px; white-space: normal; word-break: break-word; }
  .product-row__more { grid-column: 2; justify-self: start; }
  .form__actions--offset { grid-template-columns: 1fr; }
  .site-footer__inner { width: calc(100% - 44px); }
}

/* Verfügbarkeitsampel (Batterie) und Preiszeile */
.stock-indicator { display: inline-flex; align-items: center; gap: 8px; color: #555; font-size: 14px; font-weight: 700; line-height: 1.2; vertical-align: middle; }
.stock-battery { flex: 0 0 auto; display: block; }
.stock-indicator--green .stock-battery { color: #3e9a24; }
.stock-indicator--yellow .stock-battery { color: #d99a00; }
.stock-indicator--red .stock-battery { color: #d0021b; }
.stock-indicator--green .stock-indicator__label { color: #2f7a1b; }
.stock-indicator--yellow .stock-indicator__label { color: #8a6200; }
.stock-indicator--red .stock-indicator__label { color: #a8141f; }
.stock-indicator--text { padding: 3px 9px; border-left: 3px solid #d99a00; background: #fff8e6; color: #6b4d00; font-weight: 700; }
.stock-indicator--compact { gap: 0; }
.not-orderable { margin: 14px 0; color: #a8141f; font-weight: 700; }
.product-card__stock, .product-row__stock { margin: 0 0 10px; }
.product-row__stock .stock-indicator { font-size: 13px; }

.price-line { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; color: #555; font-size: 13px; line-height: 1.35; }
.price-line .price { font-size: 16px; }
.price-line__qty { white-space: nowrap; }
.price-line__sep { color: #999; }
.price-line__tax { color: var(--color-muted); }
.price-line--lg { font-size: 16px; }
.price-line--lg .price { font-size: 26px; }
.cart-row--stock-problem td { background: #fff3f3; }

/* Kundenkonto: Bestelldetail */
.order-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.order-totals { max-width: 440px; margin: 18px 0 20px auto; }
.order-totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #777; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; }
.note { margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid var(--color-border-strong); background: #fff; }

/* Rabattcode im Warenkorb und in den Summen */
.cart-discount { margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid #ddd; scroll-margin-top: 100px; }
.cart-discount__form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.cart-discount__field { display: flex; gap: 6px; }
.cart-discount__field input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #ccc; background: #fff; font: inherit; text-transform: uppercase; letter-spacing: .04em; }
.cart-discount__field input::placeholder { text-transform: none; letter-spacing: 0; }
.cart-discount__field .btn, .cart-summary .cart-discount__field .btn { flex: 0 0 auto; min-height: 40px; margin-top: 0; }
.cart-discount__applied { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-left: 4px solid var(--color-primary); background: #eef7ea; }
.cart-discount__applied strong { letter-spacing: .04em; }
.cart-discount__applied form, .cart-discount__problem form { margin: 0 0 0 auto; }
.cart-discount__badge { color: #2f6a1e; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.cart-discount__problem { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; padding: 10px 12px; border-left: 4px solid #d0021b; background: #fdecea; color: #7a1a12; font-size: 14px; }
.cart-discount__note { margin: 8px 0 0; color: var(--color-muted); font-size: 13px; line-height: 1.4; }
.cart-discount__remove { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.cart-discount-row span:first-child { display: flex; flex-direction: column; }
.cart-discount-row__amount { color: #2f7a1b; font-weight: 700; white-space: nowrap; }
.cart-discount-row__label { display: block; color: var(--color-muted); font-size: 12px; }
.cart-discount-row__change { font-size: 12px; }

/* ==================================================================
   Produktseite: Galerie + Kaufbereich, Abschnittsnavigation, Variantentabelle,
   Beschreibung, Kompatibilität/Eigenschaften, technische Daten, Downloads, Zubehör.
   ================================================================== */
.pdp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: start; margin-bottom: 44px; }

.pdp-gallery { min-width: 0; }
.pdp-gallery__main { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 22px; border: 1px solid var(--color-border); background: #fff; cursor: zoom-in; }
.pdp-gallery__main img { display: block; width: auto; max-width: 100%; max-height: 440px; object-fit: contain; mix-blend-mode: multiply; }
.pdp-gallery__main:focus-visible, .pdp-gallery__thumb:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.pdp-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.pdp-gallery__thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 5px; border: 1px solid var(--color-border); background: #fff; }
.pdp-gallery__thumb:hover { border-color: var(--color-border-strong); }
.pdp-gallery__thumb.is-active { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.pdp-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-gallery__hint { margin: 8px 0 0; font-size: 13px; }
.pdp-gallery .product-card__placeholder--lg { border: 1px solid var(--color-border); }

.pdp-buy { min-width: 0; }
.pdp-eyebrow { margin: 0 0 8px; color: var(--color-muted); font-size: 14px; }
.pdp-title { margin: 0 0 10px; font-size: 30px; line-height: 1.12; overflow-wrap: anywhere; }
.pdp-subtitle { margin: 0 0 14px; color: var(--color-primary); font: 600 18px/1.3 var(--font-head); }
.pdp-lead { margin: 0 0 18px; font-size: 17px; line-height: 1.5; }
.pdp-facts { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 0 20px; border: 1px solid var(--color-border); background: var(--color-border); }
.pdp-facts > div { flex: 1 1 118px; padding: 10px 12px; background: #fafafa; }
.pdp-facts dt { color: var(--color-muted); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.pdp-facts dd { margin: 2px 0 0; color: #333; font-weight: 700; }
.pdp-notice { margin: 0 0 18px; padding: 10px 14px; border-left: 4px solid #d99a00; background: #fff8e6; color: #5c4300; font-size: 14px; line-height: 1.45; }
.pdp-buy .dg-hint { margin: 0 0 18px; }
.pdp-price { margin: 4px 0 0; padding: 18px 0 12px; border-top: 1px solid var(--color-border); }
.pdp-stock { margin: 0 0 16px; }
.pdp-buy .alert { margin: 0 0 14px; }
.pdp-login { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 8px 0 0; }
.pdp-more { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--color-border); }
.pdp-product-link { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--color-border-strong); background: #fff; color: #444; font-size: 14px; line-height: 1.3; transition: border-color .15s ease, color .15s ease; }
.pdp-product-link:hover, .pdp-product-link:focus-visible { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.pdp-product-link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.pdp-product-link__icon { font-size: 15px; line-height: 1; }

.add-to-cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; }
.add-to-cart__label { flex: 0 0 100%; margin-bottom: -4px; color: var(--color-muted); font-size: 13px; }
.add-to-cart input[type="number"] { width: 96px; height: 44px; padding: 0 10px; border: 1px solid #ccc; background: #fff; font: inherit; }
.add-to-cart .btn { min-height: 44px; padding: 10px 22px; font-weight: 700; }
.add-to-cart--compact { flex-wrap: nowrap; align-items: center; gap: 6px; }
.add-to-cart--compact input[type="number"] { width: 70px; height: 32px; padding: 0 6px; }
.add-to-cart--compact .btn { min-height: 32px; padding: 5px 12px; font-size: 13px; white-space: nowrap; }

.pdp-nav { position: sticky; top: 70px; z-index: 20; display: flex; margin: 0 0 36px; overflow-x: auto; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: #fff; scrollbar-width: thin; }
.pdp-nav a { flex: 0 0 auto; padding: 12px 18px 9px; border-bottom: 3px solid transparent; color: #444; font: 600 15px/1.3 var(--font-head); text-transform: uppercase; white-space: nowrap; }
.pdp-nav a:hover, .pdp-nav a:focus-visible { border-bottom-color: var(--color-primary); color: var(--color-primary); }

.pdp-section { margin: 0 0 48px; scroll-margin-top: 136px; }
.pdp-section h2 { margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); font-size: 24px; }

.pdp-variants { overflow-x: auto; }
.pdp-variants__table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.pdp-variants__table th { padding: 10px 12px; background: #f2f2f2; font-weight: 700; text-align: left; white-space: nowrap; }
.pdp-variants__table td { padding: 10px 12px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.pdp-variants__table .num { text-align: right; white-space: nowrap; }
.pdp-variants__table .price { font-size: 15px; }
.pdp-variants__table tr.is-current td { background: #eef7ea; }
.pdp-variants__table .stock-indicator { font-size: 13px; white-space: nowrap; }
.pdp-variants__table .not-orderable { margin: 0; font-size: 13px; white-space: nowrap; }
.pdp-variants__current { display: inline-block; margin-left: 6px; padding: 1px 7px; background: var(--color-primary); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; vertical-align: 1px; }
.pdp-variants__action { width: 1%; white-space: nowrap; }
.pdp-variants__note { margin: 10px 0 0; font-size: 13px; }

.pdp-prose { max-width: 78ch; line-height: 1.6; }
.pdp-prose img { max-width: 100%; height: auto; }
.pdp-prose ul, .pdp-prose ol { padding-left: 22px; }
/* Hervorgehobener Textkasten aus dem Beschreibungs-Editor (wie „infobox red“ auf e-bike-vision.de) */
.text-highlight { margin: 20px 0; padding: 18px 24px; border: 2px solid #ab2e29; border-radius: 20px; color: #333; font-weight: 700; line-height: 1.5; }
.text-highlight > :first-child { margin-top: 0; }
.text-highlight > :last-child { margin-bottom: 0; }

.pdp-band { padding: clamp(20px, 3vw, 32px); background: #f6f6f6; }
.pdp-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.pdp-band h2 { margin-bottom: 14px; font-size: 22px; }
.pdp-list { margin: 0; padding: 0; list-style: none; }
.pdp-list > li { position: relative; padding: 7px 0 7px 26px; border-bottom: 1px solid #e3e3e3; line-height: 1.45; }
.pdp-list > li:last-child { border-bottom: 0; }
.pdp-list > li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 11px; height: 6px; border-bottom: 2px solid var(--color-primary); border-left: 2px solid var(--color-primary); transform: rotate(-45deg); }
.pdp-list ul { margin: 4px 0 0; padding-left: 18px; color: #555; font-size: 14px; list-style: disc; }
.pdp-list ul li { padding: 1px 0; }

.pdp-section .tech-data { max-width: 860px; }

.pdp-downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pdp-downloads li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--color-border); background: #fafafa; }
.pdp-downloads .muted { flex: 0 0 auto; font-size: 12px; white-space: nowrap; }
.pdp-downloads .pdp-file, .pdp-downloads .pdp-link { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.pdp-downloads .pdp-file::before { content: "\2193"; margin-right: 7px; }
.pdp-downloads .pdp-link::before { content: "\2197"; margin-right: 7px; }

.accessory-card__price { color: #555; font-size: 13px; }
.accessory-card__price .price { font-size: 15px; }
.accessory-card__copy .stock-indicator { font-size: 12px; }

.lightbox { width: min(96vw, 1100px); max-width: none; max-height: 94vh; padding: 28px 68px; border: 0; background: #fff; overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 20, 20, .82); }
.lightbox__image { display: block; max-width: 100%; max-height: calc(94vh - 56px); object-fit: contain; }
.lightbox__close-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.lightbox__close, .lightbox__nav { border: 0; background: #eee; color: #333; line-height: 1; cursor: pointer; }
.lightbox__close { width: 40px; height: 40px; font-size: 28px; }
.lightbox__nav { position: absolute; top: 50%; width: 46px; height: 66px; font-size: 38px; transform: translateY(-50%); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox__close:hover, .lightbox__nav:hover, .lightbox__close:focus-visible, .lightbox__nav:focus-visible { background: var(--color-primary); color: #fff; }

/* Hinweisfenster beim In-den-Warenkorb-Legen (Dialog und Ersatzseite) */
.cart-hint { width: min(94vw, 660px); max-width: none; max-height: 92vh; padding: 0; border: 0; background: #fff; color: var(--color-text); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); overflow-y: auto; }
.cart-hint::backdrop { background: rgba(20, 20, 20, .6); }
.cart-hint__form { padding: 24px 26px 22px; }
.cart-hint__form--page { max-width: 720px; padding: 0; }
.cart-hint__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.cart-hint__title { margin: 0; font-size: 24px; }
.cart-hint__form--page .cart-hint__title { font-size: 30px; }
.cart-hint__close { flex: 0 0 auto; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; background: #eee; color: #333; font-size: 24px; line-height: 1; cursor: pointer; }
.cart-hint__close:hover, .cart-hint__close:focus-visible { background: var(--color-primary); color: #fff; }
.cart-hint__article { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 16px; font-size: 14px; }
.cart-hint__text { margin: 0 0 18px; padding: 12px 16px; border-left: 4px solid var(--color-primary); background: #eef7ea; color: #2f4a26; font-size: 16px; line-height: 1.5; }
.cart-hint__items { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.cart-hint__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--color-border); background: #fafafa; }
.cart-hint__item:has(input[type="checkbox"]:checked) { border-color: var(--color-primary); background: #f4faf1; }
.cart-hint__item.is-disabled { opacity: .7; }
.cart-hint__pick { display: grid; grid-template-columns: auto 64px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; cursor: pointer; }
.cart-hint__item.is-disabled .cart-hint__pick { cursor: default; }
.cart-hint__pick input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--color-primary); }
.cart-hint__media { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid var(--color-border); background: #fff; }
.cart-hint__media img { max-width: 58px; max-height: 58px; object-fit: contain; mix-blend-mode: multiply; }
.cart-hint__copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.cart-hint__copy small { color: var(--color-muted); font-size: 12px; }
.cart-hint__copy strong { color: #404040; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.cart-hint__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; }
.cart-hint__meta .price { font-size: 15px; }
.cart-hint__meta .stock-indicator { font-size: 12px; }
.cart-hint__qty { display: flex; flex-direction: column; gap: 3px; margin: 0; color: var(--color-muted); font-size: 12px; }
.cart-hint__qty input { width: 76px; height: 36px; padding: 0 8px; border: 1px solid #ccc; background: #fff; font: inherit; }
.cart-hint__unavailable { color: #a8141f; font-size: 13px; font-weight: 700; }
.cart-hint__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.cart-hint__actions .btn { min-height: 42px; padding: 9px 18px; font-weight: 700; }
.cart-hint__actions .btn:disabled { opacity: .45; cursor: not-allowed; }
.cart-hint__cancel { margin-left: auto; padding: 6px 0; border: 0; background: none; color: var(--color-muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.cart-hint__cancel:hover { color: var(--color-text); }

@media (max-width: 900px) {
  .pdp-hero { grid-template-columns: 1fr; margin-bottom: 36px; }
  .pdp-gallery__main { min-height: 260px; }
  .pdp-gallery__main img { max-height: 360px; }
  .pdp-title { font-size: 26px; }
}

@media (max-width: 600px) {
  .pdp-gallery__main { min-height: 220px; padding: 14px; }
  .pdp-gallery__thumbs { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
  .pdp-nav { margin-bottom: 28px; }
  .pdp-nav a { padding: 10px 13px 8px; font-size: 14px; }
  .pdp-section { margin-bottom: 38px; scroll-margin-top: 124px; }
  .pdp-section h2 { font-size: 22px; }
  .text-highlight { padding: 14px 16px; border-radius: 14px; }
  .pdp-variants { overflow: visible; }
  .pdp-variants__table { min-width: 0; }
  .pdp-variants__table thead { display: none; }
  .pdp-variants__table, .pdp-variants__table tbody, .pdp-variants__table tr, .pdp-variants__table td { display: block; width: 100%; }
  .pdp-variants__table tr { margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--color-border); background: #fafafa; }
  .pdp-variants__table tr.is-current { border-color: var(--color-primary); }
  .pdp-variants__table td, .pdp-variants__table td.num, .pdp-variants__table tr.is-current td { display: grid; grid-template-columns: minmax(104px, .8fr) 1fr; gap: 10px; align-items: center; padding: 5px 0; border: 0; background: transparent; text-align: left; }
  .pdp-variants__table td[data-label]::before { content: attr(data-label); color: var(--color-muted); font-size: 13px; }
  .pdp-variants__table td.pdp-variants__action, .pdp-variants__table tr.is-current td.pdp-variants__action { display: block; width: 100%; padding-top: 10px; }
  .pdp-band__grid { grid-template-columns: 1fr; }
  .pdp-downloads { grid-template-columns: 1fr; }
  .add-to-cart .btn, .add-to-cart--compact .btn { flex: 1 1 auto; }
  .cart-hint__form { padding: 18px 16px 16px; }
  .cart-hint__title { font-size: 21px; }
  .cart-hint__item { grid-template-columns: 1fr; }
  .cart-hint__pick { grid-template-columns: auto 52px minmax(0, 1fr); gap: 10px; }
  .cart-hint__media { width: 52px; height: 52px; }
  .cart-hint__media img { max-width: 46px; max-height: 46px; }
  .cart-hint__qty { flex-direction: row; align-items: center; gap: 10px; padding-left: 30px; }
  .cart-hint__actions .btn { flex: 1 1 100%; }
  .cart-hint__cancel { margin: 0 auto; }
  .lightbox { width: 100vw; max-height: 100vh; padding: 56px 10px 16px; }
  .lightbox__image { max-height: calc(100vh - 90px); }
  .lightbox__nav { width: 38px; height: 54px; background: rgba(238, 238, 238, .92); font-size: 32px; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
}

@media print {
  .no-print { display: none !important; }
  body { display: block; background: #fff; }
  .pdp-nav, .add-to-cart, .pdp-gallery__thumbs, .pdp-gallery__hint, .lightbox { display: none !important; }
  .pdp-hero { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   Nachbesserung 01.11.2026 (Max Hößbacher): Mobilansicht + UI-Grundlagen
   - Kein waagerechtes Scrollen mehr: Ursache war die Rasterspalte „1fr“ (= minmax(auto, 1fr)) im
     Kategorie-Layout; die nicht umbrechenden Kategorie-Pillen machten die Spalte ~610 px breit.
   - Keine farbigen Einzelkanten (Hinweise/Banner/Rabatt/Lager): Rahmen ringsum + leichte Tönung.
   - Tippflächen mind. 44 px, Eingabeschrift 16 px (iOS zoomt sonst), Reiter/Pillen umbrechen statt abschneiden.
   ========================================================================== */

/* Hinweise, Banner, Notizen: Rahmen ringsum statt Kante links */
.alert { border-width: 1px; border-style: solid; border-radius: 8px; }
.note { border: 1px solid var(--color-border); border-radius: 8px; }
.stock-indicator--text { border: 1px solid #e9cf9a; border-radius: 6px; }
.cart-discount__applied { border: 1px solid #b9dcaf; border-radius: 8px; }
.cart-discount__problem { border: 1px solid #e9b3b0; border-radius: 8px; }
.pdp-notice { border: 1px solid #e9cf9a; border-radius: 8px; }
.cart-hint__text { border: 1px solid #b9dcaf; border-radius: 8px; }
.pdp-nav a { border-bottom: 0; border-radius: 6px; }
.pdp-nav a:hover, .pdp-nav a:focus-visible { background: #eef7ea; }

/* Eingaben: 16 px Schrift überall (verhindert Zoom auf iOS) */
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea,
.checkout input:not([type=checkbox]):not([type=radio]), .checkout select, .checkout textarea { min-height: 48px; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--color-primary); }

/* Buttons mit echter Tippfläche */
.btn { min-height: 44px; }
.btn--sm { min-height: 40px; font-size: 14px; }

@media (max-width: 900px) {
  /* Ursache des Überlaufs: Spalte darf schmaler als ihr Inhalt werden */
  .layout-2col { grid-template-columns: minmax(0, 1fr); }
  .layout-2col > * { min-width: 0; }

  /* Kopfzeile: Suche + Sprache mit 44 px Tippfläche, Suche nutzt die freie Breite */
  .site-utility__inner { gap: 8px; }
  .site-search { flex: 1 1 auto; width: auto; min-width: 0; }
  .site-search input, .site-search input:focus { width: 100%; height: 44px; }
  .site-search::before { top: 10px; }
  .locale-switch select { height: 44px; min-width: 64px; }
  .mobile-menu-toggle { width: 44px; height: 44px; }

  /* Brotkrümel umbrechen statt abschneiden */
  .breadcrumb .container { white-space: normal; overflow-x: visible; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Kategorie-Pillen umbrechen statt seitlich herauslaufen */
  .sidebar > .nav-tree { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
  .sidebar > .nav-tree > li { flex: 0 1 auto; min-width: 0; }
  .sidebar > .nav-tree > li > a { min-height: 44px; white-space: normal; }

  /* Sortier-/Ansichtsleiste */
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar a, .toolbar button, .toolbar select { min-height: 44px; min-width: 44px; }

  /* Produktseite: Reiter umbrechen statt abschneiden (nicht mehr klebend, sonst zu hoch) */
  .pdp-nav { position: static; flex-wrap: wrap; overflow-x: visible; gap: 4px; padding: 4px 0; }
  .pdp-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; white-space: normal; }

  /* Fußzeile: Links mit Tippfläche */
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 900px) {
  .locale-switch select, .checkout select { font-size: 16px; }
  .btn--sm, .product-row .btn, .product-card .btn { min-height: 44px; }
  .search-page input, .cart-discount__field input { height: 48px; }
  .cart-table .qty-input { min-height: 44px; }
  .cart-table__remove .btn, .cart-table__remove button { min-width: 44px; min-height: 44px; }
  .pdp-product-link, .pdp-downloads .pdp-file, .pdp-downloads .pdp-link { display: inline-flex; align-items: center; min-height: 44px; }
  .site-brand { min-height: 44px; display: inline-flex; align-items: center; }
  .checkout input[type=radio], .checkout input[type=checkbox], .form input[type=checkbox] { width: 22px; height: 22px; }
}
@media (max-width: 900px) {
  .checkout select,
  .checkout input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) { min-height: 48px; }
  .checkout .checkbox { min-height: 44px; align-items: center; }
  .checkout .checkbox input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; }
  .pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}
@media (max-width: 600px) {
  /* Inhalt mobil volle Breite (vorher dunkle Streifen links/rechts neben dem weißen Inhalt) */
  .site-main.container { width: 100%; padding: 28px 16px 40px; }
  .sidebar > .nav-tree > li > a { gap: 8px; }
}
/* ==========================================================================
   Freigabe 01.11.2026: Button-/Link-Kontrast und einheitliche Untermenü-Pfeile
   Markengrün #50aa32 hatte mit weißer Schrift nur 2,9 : 1 → Aktionsgrün #347a21 (5,3 : 1),
   Hover #2a6419 (7,2 : 1), gedrückt #21501a, deaktiviert #c9dcc1 mit Text #1d1b20 (11,8 : 1).
   Markengrün bleibt im Logo (Bild) und als --color-brand für Deko.
   ========================================================================== */
:root {
  --color-brand: #50aa32;
  --color-primary: #347a21;
  --color-primary-hover: #2a6419;
  --color-primary-active: #21501a;
}
.btn--primary:active, .site-search button:active { background: var(--color-primary-active); }
.btn--primary:disabled, .btn--primary[disabled], .btn--primary[aria-disabled="true"] { background: #c9dcc1; color: #1d1b20; cursor: not-allowed; }
/* Fußzeile ist dunkel (#323232): dort helles Grün für Links (6,3 : 1) */
.site-footer a { color: #7bc863; }
.site-footer a:hover { color: #a5dc92; }
/* Untermenü-Pfeil überall nach unten (vorher je nach Zustand links bzw. unten) */
.nav-tree a span, .nav-tree .branch-open > a span { display: inline-block; margin-left: 8px; transform: rotate(-90deg); }
/* Bestätigungsdialog aus admin.js (auch im Kundenkonto: „Adresse löschen“) */
.confirm-dialog { width: min(100% - 32px, 440px); padding: 0; border: 0; border-radius: 12px; color: var(--color-text); box-shadow: 0 2px 4px rgb(29 27 32 / .06), 0 16px 40px rgb(29 27 32 / .12); }
.confirm-dialog::backdrop { background: rgb(29 27 32 / .45); }
.confirm-dialog__body { padding: 24px; }
.confirm-dialog__body h2 { margin: 0 0 8px; font-size: 20px; }
.confirm-dialog__body p { margin: 0; color: #5f5f5f; }
.confirm-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; background: #f7f7f7; }
.btn--danger-solid { background: #b3261e; color: #fff; }
.btn--danger-solid:hover, .btn--danger-solid:active { background: #8c1d18; color: #fff; }
@media (max-width: 600px) { .confirm-dialog__actions { flex-direction: column-reverse; } .confirm-dialog__actions .btn { width: 100%; } }
/* Startseite: im Backend hochgeladenes Willkommensbild (16.11.2026) */
.home-hero picture { display: block; }

/* ---- Besprechung 16.11.2026: Kasse, Versandhinweise, Cookie-Banner, Hinweisfenster ---- */
.is-js-hidden { display: none !important; }
.is-updating { opacity: .6; transition: opacity .15s; }
@media (prefers-reduced-motion: reduce) { .is-updating { transition: none; } }
.checkout-ship { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkout-ship__panel { margin: 8px 0 16px 28px; display: grid; gap: 4px; }
.checkout-ship__panel[hidden] { display: none; }
.checkout-ship__panel label { margin-top: 8px; font-weight: 600; }
.checkout-ship__panel .checkbox { font-weight: 400; }
.checkout-ship__panel input:not([type=checkbox]):not([type=radio]), .checkout-ship__panel select { width: 100%; min-height: 44px; font-size: 16px; }
.checkout-ship__panel .checkbox { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.checkout-ship__panel .checkbox input { width: 20px; height: 20px; margin: 0; flex: none; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-direct { margin: 8px 0 4px 28px; }
.checkout-direct[hidden] { display: none; }
@media (max-width: 600px) { .checkout-direct { margin-left: 0; } }
.checkout-direct .field-hint { display: block; }
.shipping-note { margin: 6px 0 10px; font-size: 13px; line-height: 1.45; color: var(--color-muted); }
.shipping-note--rule { margin-top: 12px; }
.btn--block { width: 100%; }
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.order-actions form { margin: 0; }
.link-button { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; text-align: left; }
.site-footer__links .link-button { color: #7bc863; text-decoration: none; padding: 4px 0; font-size: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer__links .link-button:hover { color: #a5dc92; }
.site-footer__links .link-button:hover, .site-footer__links .link-button:focus-visible { text-decoration: underline; }
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 720px; margin: 0 auto; background: #fff; color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 2px 4px rgb(68 68 68 / .06), 0 16px 40px rgb(68 68 68 / .12); }
.consent-banner[hidden] { display: none; }
.consent-banner__inner { padding: 20px 24px; }
.consent-banner__title { margin: 0 0 8px; font-size: 20px; }
.consent-banner p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.consent-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.consent-banner__actions .btn { min-width: 140px; }
@media (max-width: 600px) { .consent-banner__actions .btn { flex: 1 1 100%; } .form-row-2 { grid-template-columns: 1fr; } .checkout-ship__panel { margin-left: 0; } }
.site-notice { max-width: 560px; width: calc(100% - 32px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 2px 4px rgb(68 68 68 / .06), 0 16px 40px rgb(68 68 68 / .12); }
.site-notice::backdrop { background: rgb(0 0 0 / .45); }
.site-notice__inner { padding: 24px; }
.site-notice__inner h2 { margin: 0 0 12px; }
.site-notice__inner p { margin: 0 0 20px; line-height: 1.55; }

/* UVP klar getrennt vom Händlerpreis (16.11.2026) */
.price-label { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--color-muted); }
.price-uvp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 4px; font-size: 13px; line-height: 1.4; color: #555; }
.price-uvp__label { font-weight: 700; }
.price-uvp__amount { font-weight: 700; color: #333; }
.price-uvp__note { color: var(--color-muted); }
.price-uvp--lg { margin-top: 10px; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 8px; background: #f6f6f6; font-size: 14px; }

/* Hinweise in Warenkorb/Kasse: USt-Behandlung (16.11.2026) und Lagerbestand – Symbol + Text, Fläche leicht getönt */
.checkout-notice { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border: 1px solid; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.checkout-notice__icon { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; }
.checkout-notice--ok { border-color: #8cc57a; background: #eef7ea; color: #2f6a1e; }
.checkout-notice--ok .checkout-notice__icon { background: #2f6a1e; }
.checkout-notice--warning { border-color: #e0a94a; background: #fff6e5; color: #6b4300; }
.checkout-notice--warning .checkout-notice__icon { background: #8a5a00; }
.checkout-notice--info { border-color: #b9c6d6; background: #f1f5fa; color: #23384f; }
.checkout-notice--info .checkout-notice__icon { background: #23384f; font-style: italic; font-family: Georgia, serif; }
