/* ==========================================================================
   Unterseiten – gleiche Gestaltung wie die Startseite.
   Alles haengt an .layout_content: Das gibt es auf der Startseite nicht, und
   der Checkout laedt diese Datei gar nicht. Bewusst ausserhalb der min-Bundles.
   ========================================================================== */
.layout_content {
  --s-primary: #1a89da;
  --s-primary-strong: #1476c4; /* Primaerfarbe, dunkel genug fuer weisse Schrift (4,5:1) */
  --s-deep: #195097;
  --s-ink: rgb(15, 23, 36);
  --s-muted: #5b6878;
  --s-tint: #f3f5f8;
  --s-border: #e1e6ed;
  --s-ease: cubic-bezier(.2, .8, .2, 1);
  --button1_background: var(--s-primary-strong);
  --button1_border: var(--s-primary-strong);
  --button2_background: var(--s-primary-strong);
  --button2_border: var(--s-primary-strong);
  margin: 0;
  padding: 0 0 clamp(48px, 6vw, 88px);
  background: var(--s-tint);
}

/* --------------------------------------------------------------------------
   Kopfbereich
   -------------------------------------------------------------------------- */
.layout_content .breadcrumb {
  margin-bottom: 0;
  padding: 16px 0 12px;
  border: 0;
  font-size: 13px;
  color: var(--s-muted);
}
.layout_content .breadcrumb a,
.layout_content .breadcrumb a:link,
.layout_content .breadcrumb a:visited { color: var(--s-muted); border: 0; }
.layout_content .breadcrumb a:hover { color: var(--s-deep); }

.layout_wrap .layout_content h1,
.layout_wrap .layout_content h1.subline {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--s-ink);
}
.layout_content .subline {
  margin-top: 0;
  border-color: var(--s-border);
  font-weight: 800;
  color: var(--s-ink);
}

/* --------------------------------------------------------------------------
   Flaechen
   -------------------------------------------------------------------------- */
.layout_content .contentbox,
.layout_content .flex_content_col_1 > .content_site,
.layout_content .flex_content_col_2 .content_box,
.layout_content .subcats_menu_box,
.layout_content .cat_description,
.layout_content .pd_cols_row {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--s-border);
}
.layout_content .contentbox,
.layout_content .flex_content_col_1 > .content_site,
.layout_content .flex_content_col_2 .content_box,
.layout_content .cat_description { padding: clamp(16px, 2.4vw, 32px); }

.layout_content .flex_column_row { align-items: stretch; }
.layout_content .flex_2column_item > form,
.layout_content .flex_2column_item > .contentbox { height: 100%; }
.layout_content .flex_2column_item > form > .contentbox { height: 100%; }

/* Rechtstexte bleiben in einer gut lesbaren Zeilenlaenge */
.layout_content .shopcontent > .content_site { max-width: 72ch; }
.layout_content .flex_content_col_2 .content_box { margin-bottom: 16px; }
.layout_content .flex_content_col_2 .content_box_header { font-weight: 800; color: var(--s-ink); }

/* --------------------------------------------------------------------------
   Formulare und Buttons
   -------------------------------------------------------------------------- */
.layout_content input[type=text],
.layout_content input[type=password],
.layout_content input[type=email],
.layout_content input[type=tel],
.layout_content select,
.layout_content textarea {
  background-color: #fff;
  border-color: #cfd6df;
  border-radius: 10px;
  color: var(--s-ink);
}
.layout_content input[type=text]:hover,
.layout_content input[type=password]:hover,
.layout_content input[type=email]:hover,
.layout_content input[type=tel]:hover,
.layout_content select:hover,
.layout_content textarea:hover { background-color: #fff; border-color: #9fb0c2; }
.layout_content input[type=text]:focus,
.layout_content input[type=password]:focus,
.layout_content input[type=email]:focus,
.layout_content input[type=tel]:focus,
.layout_content select:focus,
.layout_content textarea:focus {
  background-color: #fff;
  border-color: var(--s-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(26, 137, 218, .22);
}
.layout_content .cssButton {
  border-radius: 10px;
  transition: background-color .2s ease, border-color .2s ease, transform .3s var(--s-ease);
}
.layout_content a:active > .cssButton,
.layout_content button:active > .cssButton { transform: scale(.98); }

/* Die Mengenanzeige auf Karten ist nur Anzeige, kein Eingabefeld */
.layout_content .quantity-input,
.layout_content .quantity-input:hover,
.layout_content .quantity-input:focus {
  background-color: var(--s-tint);
  border-color: var(--s-border);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Produktkarten
   -------------------------------------------------------------------------- */
.layout_content .listingcontainer:has(.listingbox),
.layout_content .listingcontainer_full:has(.listingbox) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  border: 0;
}
@media (min-width: 720px) {
  .layout_content .listingcontainer:has(.listingbox),
  .layout_content .listingcontainer_full:has(.listingbox) {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}
.layout_content .listingcontainer .listingbox,
.layout_content .listingcontainer_full .listingbox,
.layout_content .flex_listing_products .listingcontainer_full .listingbox {
  position: relative;
  width: auto;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--s-border);
  transition: transform .4s var(--s-ease), box-shadow .3s ease, opacity .6s ease;
}
.layout_content .listingcontainer .listingbox:hover,
.layout_content .listingcontainer .listingbox:focus-within,
.layout_content .listingcontainer_full .listingbox:hover,
.layout_content .listingcontainer_full .listingbox:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px var(--s-primary), 0 16px 32px rgba(15, 23, 36, .12);
}
.layout_content .listingbox.site-pre { opacity: 0; transform: translateY(24px); }

.layout_content .listingbox .lb_inner {
  position: relative;
  height: 100%;
  padding: 12px 12px 16px;
}
.layout_content .lb_image { flex: none; }
.layout_content .listingbox .prod_image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--s-tint);
}
.layout_content .listingbox .prod_image a { position: absolute; inset: 0; display: block; }
.layout_content .listingbox .prod_image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 8%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .6s var(--s-ease);
}
.layout_content .listingbox:hover .prod_image img { transform: scale(1.06); }

/* Artikel ohne Bild: Der Shop liefert dann einen leeren Container */
.layout_content .listingbox .prod_image:empty::after,
.layout_content .pd_col_1:empty::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block; /* .cf::after setzt sonst display: table */
  width: 100%;
  height: 100%;
  opacity: .28;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%235b6878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='4' width='20' height='40' rx='4'/%3E%3Cpath d='M21 9h6M22 39h4'/%3E%3C/svg%3E") center / 34% auto no-repeat;
}

.layout_content .listingbox .lb_title h2 {
  height: auto;
  min-height: 0;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.layout_content .listingbox .lb_title h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--s-ink);
}
/* Die ganze Karte fuehrt zum Produkt, Bedienelemente liegen darueber */
.layout_content .listingbox .lb_title h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.layout_content .listingbox .lb_buttons,
.layout_content .listingbox .buy-button,
.layout_content .listingbox .add_cart,
.layout_content .listingbox .lb_shipping a,
.layout_content .listingbox .lb_tax a { position: relative; z-index: 3; }
.layout_content .listingbox .lb_new_flag { z-index: 2; }

/* Preis und Lagerhinweis stehen auf gleicher Hoehe */
.layout_content .listingbox .lb_quality_placeholder { display: none; }
.layout_content .listingbox .lb_shipping { margin-top: auto; padding-top: 12px; }
.layout_content .listingbox .lb_shipping:empty { padding-top: 0; }
.layout_content .listingbox .lb_buttons { flex: none; padding: 8px 0 4px; }
.layout_content .listingbox .quantity-controls { margin-bottom: 4px; }
.layout_content .listingbox .lb_tax { margin-bottom: 4px; line-height: 1.3; }

/* Wie auf der Startseite: kurzer Preis-Hinweis, keine wirkungslosen Mengen-Buttons */
.layout_content .no_price { font-size: 0; }
.layout_content .no_price::before {
  content: "Preis nach Anmeldung";
  font-size: 13px;
  color: var(--s-muted);
}
/* Reparaturen: .lb_buttons enthaelt den Link "Reparatur buchen" (kein .add_cart) und bleibt sichtbar */

.layout_content .lr_soldout { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: #dc2626; }
.layout_content .listingbox .lb_soldout { font-size: 13px; font-weight: 700; }
.layout_content .pd_soldout { font-weight: 700; }

/* Slider, z. B. „Zuletzt angesehen“ */
.layout_content .splide_size1 {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--s-border);
  border-radius: 14px;
}
.layout_content .box_products_head .title { font-size: 20px; color: var(--s-ink); }

/* Die Pfeile sitzen auf Bildhoehe und verdecken keine Produkttitel */
.layout_content .splide_size1 .splide__arrow { top: 96px; }

/* Listenansicht */
.layout_content .listingcontainer:has(.listingrow),
.layout_content .listingcontainer_full:has(.listingrow) { display: grid; gap: 12px; border: 0; }
.layout_content .listingrow {
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--s-border);
  transition: box-shadow .3s ease;
}
.layout_content .listingrow:hover,
.layout_content .listingrow:focus-within { box-shadow: 0 0 0 1px var(--s-primary), 0 12px 24px rgba(15, 23, 36, .1); }
.layout_content .listingrow .prod_image { position: relative; overflow: hidden; border-radius: 10px; }
.layout_content .listingrow .prod_image:empty { min-height: 120px; background: var(--s-tint); }
.layout_content .listingrow .prod_image:empty::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%235b6878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='4' width='20' height='40' rx='4'/%3E%3Cpath d='M21 9h6M22 39h4'/%3E%3C/svg%3E") center / auto 60% no-repeat;
}
/* Das Shop-Skript schreibt „Kaufen“ in den Button, der sonst nur Platz fuer ein Symbol hat */
.layout_content .listingrow .add_cart .cssButton { width: auto; padding-inline: 16px; }

/* --------------------------------------------------------------------------
   Kategorien
   -------------------------------------------------------------------------- */
.layout_content .sub_categories_listing { margin-top: 24px; border: 0; }
.layout_content .subcats_row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 16px;
  margin: 0;
  border: 0;
}
@media (max-width: 599px) {
  .layout_content .subcats_row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.layout_content .subcats_item {
  width: auto;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--s-border);
  transition: transform .35s var(--s-ease), box-shadow .35s ease;
}
.layout_content .subcats_item:hover,
.layout_content .subcats_item:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px #b9d9f3, 0 18px 36px -18px rgba(25, 80, 151, .35);
}
.layout_content .subcats_item a { display: block; height: 100%; color: var(--s-ink); text-decoration: none; }
.layout_content .subcats_item a:focus-visible { outline: 2px solid var(--s-primary); outline-offset: -2px; border-radius: 16px; }
.layout_content .subcats_item_inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
}

/* Bildflaeche: heller Grund; multiply laesst weisse Bildhintergruende verschwinden */
.layout_content .subcats_image { margin: 0; padding: 0; }
.layout_content .subcats_image_inner {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 62%, #e3f1fc 0, rgba(227, 241, 252, 0) 68%),
    #f3f6fa;
  border-radius: 12px;
}
.layout_content .subcats_image_inner::before { display: none; }
.layout_content .subcats_image_inner img {
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .5s var(--s-ease);
}
.layout_content .subcats_item:hover .subcats_image_inner img { transform: scale(1.06) translateY(-2px); }

/* Fusszeile: Name + runder Pfeil-Button, der nie umbricht */
.layout_content .subcats_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  padding: 12px 6px 4px 8px;
}
.layout_content .subcats_title > span {
  max-height: none;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--s-ink);
  -webkit-line-clamp: 2;
  hyphens: manual;
}
.layout_content .subcats_title span::after { content: none; }
.layout_content .subcats_title::after {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef4fa;
  color: var(--s-deep);
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 13px;
  content: "\f061";
  transition: background .25s ease, color .25s ease, transform .3s var(--s-ease);
}
.layout_content .subcats_item:hover .subcats_title::after,
.layout_content .subcats_item:focus-within .subcats_title::after {
  background: var(--s-primary-strong);
  color: #fff;
  transform: translateX(2px);
}
.layout_content .subcats_item a:hover .subcats_title > span { color: var(--s-deep); }
@media (max-width: 599px) {
  .layout_content .subcats_title { padding: 10px 2px 2px 4px; }
  .layout_content .subcats_title > span { font-size: 14px; }
  .layout_content .subcats_title::after { width: 28px; height: 28px; font-size: 12px; }
}

/* Seitenleiste */
.layout_content .flex_listing_cols { gap: 8px; }
.layout_content .subcats_menu_box {
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 16px 8px;
  overscroll-behavior: contain;
}
.layout_content .subcats_menu_box .subline {
  margin: 0 0 8px !important; /* gegen .mt_40 */
  padding: 0 10px 12px;
  font-size: 16px;
}
.layout_content ul.subcats_menu { padding: 0; }
.layout_content ul.subcats_menu ul { padding-left: 12px; }
.layout_content ul.subcats_menu li > a {
  padding: 8px 28px 8px 10px;
  border: 0;
  border-radius: 8px;
  color: #3d4956;
  transition: background-color .15s ease, color .15s ease;
}
.layout_content ul.subcats_menu li > a:hover { background: var(--s-tint); color: var(--s-deep); }
.layout_content ul.subcats_menu li.has_sub_cats > a .sub_cats_arrow { top: 8px; right: 10px; }
.layout_content ul.subcats_menu li.Selected > a {
  background: rgba(26, 137, 218, .12);
  font-weight: 700;
  color: var(--s-deep);
}
.layout_content ul.subcats_menu li.Selected li:not(.Selected) > a { font-weight: 400; color: #3d4956; }

/* Sortieren und Seitenwahl */
.layout_content .filter_pagination_bar { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Produktseite
   -------------------------------------------------------------------------- */
.layout_content .pd_cols_row { margin-top: 0; padding: clamp(16px, 2.4vw, 32px); }
.layout_content #product_info { margin-top: 0; padding-top: 0; }
.layout_content .pd_title h1 { font-size: clamp(22px, 2.4vw, 32px); }
.layout_content .pd_col_1:empty {
  position: relative;
  min-height: clamp(240px, 34vw, 460px);
  border-radius: 12px;
  background: var(--s-tint);
}
.layout_content .pd_price .standard_price,
.layout_content .pd_price .special_price { font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; color: var(--s-ink); }

.layout_content .content_full_colored { background: transparent; }
.layout_content .pd_tabs { margin-top: 24px; margin-bottom: 24px; }
.layout_content .resp-tabs-list { border: 0; }
.layout_content .resp-tabs-list li {
  border: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--s-muted);
  transition: color .2s ease;
}
.layout_content .resp-tabs-list li.resp-tab-active {
  background: #fff;
  box-shadow: 0 -2px 0 var(--s-primary) inset;
  color: var(--s-deep);
}
.layout_content .resp-tabs-container {
  background: #fff;
  border: 0;
  border-radius: 0 14px 14px;
  box-shadow: 0 0 0 1px var(--s-border);
}
.layout_content .pd_description_content h2 { font-size: 18px; font-weight: 800; color: var(--s-ink); }

/* Technische Daten als Tabelle */
.layout_content .pd_description_content dl {
  display: grid;
  grid-template-columns: minmax(120px, 240px) minmax(0, 1fr);
  max-width: 820px;
  margin: 12px 0 0;
}
.layout_content .pd_description_content dt,
.layout_content .pd_description_content dd {
  margin: 0;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--s-border);
  font-size: 14px;
  line-height: 1.4;
}
.layout_content .pd_description_content dt { font-weight: 600; color: var(--s-muted); }
.layout_content .pd_description_content dd { color: var(--s-ink); }

/* Bildergalerie */
.layout_content .pd_image_big_inner,
.layout_content .pd_image_small_inner { overflow: hidden; border-color: var(--s-border); border-radius: 12px; }

/* --------------------------------------------------------------------------
   Warenkorb
   -------------------------------------------------------------------------- */
.layout_content .ordercontainer_details,
.layout_content .ordercontainer_total_inner {
  padding: clamp(12px, 2vw, 24px);
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--s-border);
}
@media (min-width: 985px) {
  .layout_content .ordercontainer_total { padding-left: 16px; }
}
.layout_content .orderflex_row_header { color: var(--s-muted); }
.layout_content .of_productname { font-weight: 700; color: var(--s-ink); }
.layout_content .ordersum_heading { font-weight: 800; color: var(--s-ink); }

/* --------------------------------------------------------------------------
   Reduzierte Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .layout_content .listingbox,
  .layout_content .subcats_item,
  .layout_content .prod_image img,
  .layout_content .cssButton { transition: none; }
  .layout_content .listingbox:hover .prod_image img,
  .layout_content .listingcontainer .listingbox:hover,
  .layout_content .listingcontainer_full .listingbox:hover,
  .layout_content .subcats_item:hover { transform: none; }
}

/* Seitenleiste der Inhaltsseiten beginnt auf Hoehe des Inhalts */
@media (min-width: 985px) {
  .layout_content .flex_content_col_2 { margin-top: 0; padding-top: 0; }
  .layout_content .flex_content_col_2 .content_box:first-child { margin-top: 0; }
}


/* ==========================================================================
   Farben fuer den Kopfbereich. Gleiche Werte wie in landing.css, damit der
   Header auf Startseite und Unterseiten identisch aussieht.
   ========================================================================== */
:root {
  --hz-blue: #1a89da;
  --hz-blue-deep: #195097;
  --hz-on-blue: #d3ecff;
  --hz-sky: #6cc0f5;
  --hz-band: linear-gradient(90deg, var(--hz-blue-deep) 0, #1869b3 48%, var(--hz-blue) 82%);
}
/* Verlauf bei jeder Breite: gleicher Verlauf wie der Hero (home.css --hm-band), sonst entsteht eine Kante */
.layout_wrap .layout_header { background: var(--hz-band); }

/* ==========================================================================
   Kopfbereich (alle Seiten ausser Checkout): schwebende Glas-Karte
   Ab 985 px bilden Header (oben) und Kategorie-Leiste (unten) gemeinsam eine
   abgerundete, halbtransparente Karte ueber dem Blauverlauf. Darunter bleibt
   der Kopf schlank mit runden Glas-Symbolen.
   Hinweis: .layout_categories_inner darf kein position/transform bekommen,
   sonst richtet sich das Mega-Menue nicht mehr an der ganzen Leiste aus.
   ========================================================================== */
.layout_wrap {
  --hz-card-gutter: 20px;
  --hz-card-max: 1400px;
  --hz-card-bg: rgba(255, 255, 255, .085);
  --hz-card-line: rgba(255, 255, 255, .16);
  --hz-card-gap: 20px;
}

/* Header-Symbole (Variablen aus stylesheet.css) */
.layout_wrap .layout_header {
  --header_menuitems_bg: rgba(255, 255, 255, .12);
  --header_menuitems_border: rgba(255, 255, 255, .2);
  --header_menuitems_color: #fff;
  --header_menuitems_bg_hover: #fff;
  --header_menuitems_border_hover: #fff;
  --header_menuitems_color_hover: var(--hz-blue-deep);
  --count_cart_wishlist_bg: #fff;
  --count_cart_wishlist_color: var(--hz-blue-deep);
}

/* Kategorie-Menue (Variablen aus nav.css; .layout_wrap davor, weil nav.css
   nach landing.css geladen wird) */
.layout_wrap .layout_categories {
  --nav-bg: var(--hz-blue);
  --nav-border: transparent;
  --nav-text: rgba(255, 255, 255, .9);
  --nav-icon: var(--hz-sky);
  --nav-glider: #fff;
  --nav-glider-line: #fff;
  --nav-hover-text: var(--hz-blue-deep);
  position: relative;
  /* Ueber der Hero-Suche (z-index 10), damit das Mega-Menue sie verdeckt */
  z-index: 20;
}
.layout_wrap .layout_categories { --nav-bg: var(--hz-band); }

@media (min-width: 985px) {
  /* Karte, oberer Teil */
  .layout_wrap .layout_header { padding: 16px var(--hz-card-gutter) 0; }
  .layout_wrap .layout_header_inner {
    max-width: var(--hz-card-max);
    padding: 14px 14px 14px 22px;
    border: 1px solid var(--hz-card-line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: var(--hz-card-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  }

  /* Karte, unterer Teil */
  .layout_wrap .layout_categories { padding: 0 var(--hz-card-gutter) var(--hz-card-gap); }
  .layout_wrap .layout_categories_inner {
    max-width: var(--hz-card-max);
    margin: 0 auto;
    padding: 0 10px;
    border: 1px solid var(--hz-card-line);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: var(--hz-card-bg);
    box-shadow: 0 24px 44px -28px rgba(3, 14, 34, .8);
  }
  /* Feine Trennlinie zwischen Kopfzeile und Kategorien, mit Luft zum Rand */
  .layout_wrap .layout_categories .menu_items {
    padding: 7px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .layout_wrap .layout_categories .menu_items > li > a,
  .layout_wrap .layout_categories .menu_items > li > span.nolink,
  .layout_wrap .layout_categories .menu_items > li > button {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    letter-spacing: .01em;
  }
  .layout_wrap .layout_categories .nav-glider {
    border-radius: 10px;
    box-shadow: 0 6px 16px -8px rgba(3, 14, 34, .55);
  }
  .layout_wrap .menu_items > li:hover > a::before,
  .layout_wrap .menu_items > li:hover > span.nolink::before,
  .layout_wrap .menu_items > li:hover > button::before,
  .layout_wrap .menu_items > li:focus-within > a::before,
  .layout_wrap .menu_items > li:focus-within > span.nolink::before,
  .layout_wrap .menu_items > li:focus-within > button::before { color: var(--hz-blue); }

  /* Mega-Menue: so breit wie die Karte, mit kleinem Abstand darunter */
  .layout_wrap .layout_categories .mega_menu {
    top: calc(100% - var(--hz-card-gap) + 8px);
    left: max(var(--hz-card-gutter), calc((100% - var(--hz-card-max)) / 2));
    right: max(var(--hz-card-gutter), calc((100% - var(--hz-card-max)) / 2));
    width: auto;
    border-radius: 16px;
  }
  .layout_wrap .layout_categories .mega_menu > ul { margin: 0 auto; }
  /* Unsichtbare Bruecke ueber den Spalt, damit das Panel beim Hinfahren offen bleibt */
  .layout_wrap .layout_categories .mega_menu::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 18px;
    border: 0;
    background: none;
  }
}

/* Aktionen mit Beschriftung (Text kommt aus dem title-Attribut der Links) */
@media (min-width: 1100px) {
  .layout_wrap .col_account,
  .layout_wrap .col_wishlist,
  .layout_wrap .col_cart,
  .layout_wrap .col_menu { width: auto; padding-left: 8px; }
  .layout_wrap #account_short,
  .layout_wrap #wishlist_short,
  .layout_wrap #cart_short { width: auto; }

  .layout_wrap #account_short > a,
  .layout_wrap #wishlist_short > a,
  .layout_wrap #cart_short > a {
    display: flex;
    align-items: center;
    width: auto;
    padding: 0 16px 0 4px;
    border-radius: 12px;
    text-decoration: none;
  }
  .layout_wrap #account_short > a::after,
  .layout_wrap #wishlist_short > a::after,
  .layout_wrap #cart_short > a::after {
    content: attr(title);
    order: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
  .layout_wrap #menu_short > div { border-radius: 12px; }

  /* Warenkorb als Hauptaktion: weiss, Anzahl als Pille im Button */
  .layout_wrap #cart_short > a {
    background: #fff;
    border-color: #fff;
    color: var(--hz-blue-deep);
    box-shadow: 0 8px 20px -10px rgba(3, 14, 34, .6);
  }
  .layout_wrap #cart_short > a:hover {
    background: var(--hz-on-blue);
    border-color: var(--hz-on-blue);
  }
  .layout_wrap #cart_short .count,
  .layout_wrap #wishlist_short .count {
    position: static;
    order: 2;
    margin-left: 8px;
    padding: 4px 7px;
    border-radius: 999px;
  }
  .layout_wrap #cart_short .count {
    background: var(--hz-blue-deep);
    color: #fff;
  }
}


/* Suche im Header der Unterseiten: kompakte Fassung der Hero-Suche
   (gleiche Form wie auf der Startseite). Unter 920 px bleibt das Overlay. */
@media (min-width: 920px) {
  .layout_wrap .col_search #search { max-width: 560px; height: auto; }
  .layout_wrap .col_search .search_inner {
    align-items: center;
    height: auto;
    padding: 4px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 26px -12px rgba(3, 14, 34, .6);
    transition: box-shadow .3s ease;
  }
  .layout_wrap .col_search .search_inner:focus-within {
    box-shadow: 0 0 0 3px var(--hz-on-blue), 0 10px 26px -12px rgba(3, 14, 34, .6);
  }
  .layout_wrap .col_search .search_inner .search_cat {
    height: 36px;
    background: #f3f5f8;
    border: 0;
    border-radius: 8px;
  }
  .layout_wrap .col_search .search_inner .search_cat::after { display: none; }
  .layout_wrap .col_search .search_inner .search_cat .SumoSelect > .CaptionCont,
  .layout_wrap .col_search .search_inner .search_cat .SumoSelect:hover > .CaptionCont,
  .layout_wrap .col_search .search_inner .search_cat .SumoSelect:focus > .CaptionCont,
  .layout_wrap .col_search .search_inner .search_cat .SumoSelect.open > .CaptionCont,
  .layout_wrap .col_search .search_inner .search_cat select {
    height: 36px;
    padding: 7px 10px;
    background: transparent;
    border-radius: 8px;
    color: #0f1724;
  }
  .layout_wrap .col_search .search_inner input[type=text],
  .layout_wrap .col_search .search_inner input[type=text]:hover,
  .layout_wrap .col_search .search_inner input[type=text]:focus,
  .layout_wrap .col_search .search_inner.search_cat_mode input[type=text],
  .layout_wrap .col_search .search_inner.search_cat_mode input[type=text]:hover,
  .layout_wrap .col_search .search_inner.search_cat_mode input[type=text]:focus {
    height: 36px;
    padding: 0 34px 0 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    font-size: 15px;
    color: #0f1724;
  }
  .layout_wrap .col_search .search_input ::placeholder { color: #5f6c7a; opacity: 1; }
  .layout_wrap .col_search .search_inner .search_help { right: 54px; }
  .layout_wrap .col_search .search_inner .search_button { flex: none; width: 44px; }
  .layout_wrap .col_search .search_inner .search_button .cssButton {
    width: 100%;
    height: 36px;
    min-height: 36px;
    background: linear-gradient(180deg, #2a98e8, #1476c4);
    border: 0;
    border-radius: 8px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px -4px rgba(20, 118, 196, .6);
    transition: filter .2s ease, box-shadow .2s ease;
  }
  .layout_wrap .col_search .search_inner .search_button .cssButton:hover {
    filter: brightness(1.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -4px rgba(20, 118, 196, .7);
  }
}

/* ==========================================================================
   Mega-Menue mit Kategorie-Bild (linke Spalte, Markup aus
   source/inc/xtc_show_category.inc.php -> xtc_mega_menu_aside)
   ========================================================================== */
#mobile_menu .mega_aside { display: none; }

@media (min-width: 985px) {
  .layout_wrap .layout_categories .mega_menu {
    display: flex;
    align-items: stretch;
    padding: 0;
    /* kein overflow:hidden – sonst wird die Hover-Bruecke (::before) abgeschnitten */
  }
  .layout_wrap .layout_categories .mega_menu > ul {
    flex: 1;
    min-width: 0;
    max-width: none;
    padding: 20px 20px 24px;
  }

  .mega_aside {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 24px 24px;
    background: #f3f5f8;
    border-right: 1px solid #e1e6ed;
    border-radius: 16px 0 0 16px;
    color: #0f1724;
    text-decoration: none;
  }
  /* Spezifischer als ".mega_menu a" (grau) aus stylesheet.css / nav.css */
  .layout_wrap .layout_categories .mega_menu a.mega_aside,
  .layout_wrap .layout_categories .mega_menu a.mega_aside:hover { color: #0f1724; text-decoration: none; }
  .mega_aside__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-transform: capitalize;
  }

  /* Bildflaeche: heller Kreis hinter dem Motiv wie in der Vorlage */
  .mega_aside__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    max-width: 200px;
    width: 100%;
    background: radial-gradient(circle at 50% 50%, #dcefff 0 58%, transparent calc(58% + 1px));
  }
  .mega_aside__media img {
    position: absolute;
    inset: 6%;
    width: 88%;
    height: 88%;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(15, 23, 36, .18));
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  }
  .mega_aside:hover .mega_aside__media img { transform: scale(1.05) translateY(-2px); }

  /* Ohne Bilddatei: grosses Kategorie-Symbol (gleiche Zuordnung wie in nav.css) */
  .mega_aside:not(.has-image) .mega_aside__media::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 76px;
    line-height: 1;
    color: #1a89da;
    content: "\f02b";
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  }
  .mega_aside:not(.has-image):hover .mega_aside__media::before { transform: scale(1.06) rotate(-4deg); }
  .mega_aside[title="Smartphone" i] .mega_aside__media::before { content: "\f3cd"; }
  .mega_aside[title="Notebook" i] .mega_aside__media::before { content: "\f109"; }
  .mega_aside[title="zubehör" i] .mega_aside__media::before { content: "\f1e6"; }
  .mega_aside[title="Tablet" i] .mega_aside__media::before { content: "\f3fa"; }
  .mega_aside[title="Smartwatch" i] .mega_aside__media::before { content: "\f2f2"; }
  .mega_aside[title="Konsolen" i] .mega_aside__media::before { content: "\f11b"; }
  .mega_aside[title="Werkzeuge" i] .mega_aside__media::before { content: "\f7d9"; }

  .mega_aside__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #195097;
  }
  .mega_aside__cta::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f178";
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  }
  .mega_aside:hover .mega_aside__cta::after { transform: translateX(5px); }

  /* "Alles anzeigen aus ..." oben rechts als Ueberschrift wie "Alle in Elektronik" */
  .layout_wrap .layout_categories .mega_menu > ul > li.overview { margin: -5px -5px 8px; }
  .layout_wrap .layout_categories .mega_menu > ul > li.overview > a {
    padding: 4px 15px 14px;
    font-size: 17px;
    line-height: 22px;
    font-weight: 800;
    color: #0f1724;
    border-bottom: 1px solid #e1e6ed;
  }
  .layout_wrap .layout_categories .mega_menu > ul > li.overview > a:hover { color: #195097; }
  .layout_wrap .layout_categories .mega_menu > ul > li.overview .fa-solid { display: none; }
}

/* --------------------------------------------------------------------------
   Markenlogos vor den Unterkategorien (Ebene 2) und Foto der Hauptkategorie
   -------------------------------------------------------------------------- */
#mobile_menu .mega_logo { display: none; }

@media (min-width: 985px) {
  .layout_wrap .layout_categories .mega_menu > ul > li.has-logo > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 10px;
  }
  /* Weisse Kachel: Logos mit und ohne weissen Hintergrund wirken gleich */
  .mega_logo {
    flex: none;
    display: block;
    box-sizing: border-box;
    width: 72px;
    height: 52px;
    padding: 7px 9px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
  }
  /* Feste Flaeche statt max-height in %: Prozent loest sich hier nicht auf,
     grosse Logos (z. B. Apple) ragten sonst aus der Kachel */
  .mega_logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .layout_wrap .layout_categories .mega_menu > ul > li.has-logo > a:hover .mega_logo {
    border-color: #b9d9f3;
    box-shadow: 0 6px 14px -8px rgba(25, 80, 151, .45);
    transform: translateY(-1px);
  }

  /* Hauptkategorie mit Foto: abgerundete Bildkarte statt Kreis */
  .mega_aside.has-image .mega_aside__media {
    aspect-ratio: 4 / 3;
    max-width: none;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: 14px;
    box-shadow: 0 12px 24px -16px rgba(15, 23, 36, .35);
  }
  .mega_aside.has-image .mega_aside__media img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
  }
  .mega_aside.has-image:hover .mega_aside__media img { transform: scale(1.04); }
}

/* --------------------------------------------------------------------------
   Aktive Kategorie in der Leiste (li.active1 / .Selected / .activeparent1 aus PHP)
   nav.css faerbt sie wie Hover (dunkelblau) – ohne weisse Pille unlesbar.
   Aktiv = Glas-Pille + weisse Schrift + kurzer Indikator; Hover bleibt weiss.
   -------------------------------------------------------------------------- */
@media (min-width: 985px) {
  .layout_wrap .layout_categories .menu_items > li:is(.active1, .Selected, .activeparent1) > a,
  .layout_wrap .layout_categories .menu_items > li:is(.active1, .Selected, .activeparent1) > span.nolink {
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  }
  .layout_wrap .layout_categories .menu_items > li:is(.active1, .Selected, .activeparent1):not(:hover):not(:focus-within) > a,
  .layout_wrap .layout_categories .menu_items > li:is(.active1, .Selected, .activeparent1):not(:hover):not(:focus-within) > span.nolink {
    color: #fff;
  }
  /* Kurzer, mittiger Indikator statt breitem Unterstrich */
  .layout_wrap .layout_categories .menu_items > li:is(.active1, .Selected, .activeparent1) > a::after,
  .layout_wrap .layout_categories .menu_items > li:is(.active1, .Selected, .activeparent1) > span.nolink::after {
    content: "";
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 3px;
    width: 18px;
    height: 3px;
    margin-left: -9px;
    border-radius: 3px;
    background: var(--hz-sky);
    box-shadow: 0 0 10px rgba(108, 192, 245, .8);
    transition: width .25s ease, margin-left .25s ease, opacity .2s ease;
  }
  /* Beim Hover liegt die weisse Pille darueber: Indikator ausblenden */
  .layout_wrap .layout_categories .menu_items > li:is(.active1, .Selected, .activeparent1):is(:hover, :focus-within) > a::after,
  .layout_wrap .layout_categories .menu_items > li:is(.active1, .Selected, .activeparent1):is(:hover, :focus-within) > span.nolink::after {
    opacity: 0;
  }
}

/* ==========================================================================
   Kategorie-Kopf (module/categorie_listing/categorie_listing.html)
   Text links, Bild rechts; lange Beschreibungen eingeklappt (site.js)
   ========================================================================== */
.layout_content .cat_hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin: 8px 0 0;
  padding: clamp(20px, 3vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(26, 137, 218, .10), transparent 70%),
    #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--s-border), 0 18px 40px -30px rgba(15, 23, 36, .35);
}
@media (min-width: 900px) {
  .layout_content .cat_hero.has-image { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}

.layout_content .cat_hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--s-primary-strong);
}
.layout_content .cat_hero__eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.layout_content .cat_hero h1 {
  margin: 0 0 14px;
  padding: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.layout_content .cat_hero:not(.has-text) h1 { margin-bottom: 0; }

.layout_content .cat_hero .cat_description_text {
  display: block; /* stylesheet.css setzt inline-block -> "Weiterlesen" rutschte daneben */
  max-width: 68ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: #3d4956;
}
.layout_content .cat_hero .cat_description_text > :first-child { margin-top: 0; }
.layout_content .cat_hero .cat_description_text > :last-child { margin-bottom: 0; }
.layout_content .cat_hero .cat_description_text h2,
.layout_content .cat_hero .cat_description_text h3 { font-size: 17px; margin: 18px 0 6px; }
/* Inline-Styles aus dem Editor (Schriftgroessen, Fonts) neutralisieren */
.layout_content .cat_hero .cat_description_text span[style] { font: inherit !important; line-height: inherit !important; }

/* Eingeklappt: vier Zeilen + weicher Verlauf, Knopf "Weiterlesen" aus site.js */
.layout_content .cat_hero .cat_description_text.is-collapsible {
  position: relative;
  max-height: calc(1.7em * 4);
  overflow: hidden;
  transition: max-height .45s var(--s-ease);
}
.layout_content .cat_hero .cat_description_text.is-collapsible::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3.2em;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  transition: opacity .3s ease;
}
.layout_content .cat_hero .cat_description_text.is-open::after { opacity: 0; }
.layout_content .cat_hero__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--s-deep);
  cursor: pointer;
}
.layout_content .cat_hero__more::after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: "\f078";
  font-size: 11px;
  transition: transform .3s var(--s-ease);
}
.layout_content .cat_hero__more[aria-expanded="true"]::after { transform: rotate(180deg); }
.layout_content .cat_hero__more:hover { color: var(--s-primary-strong); }
.layout_content .cat_hero__more:focus-visible { outline: 2px solid var(--s-primary); outline-offset: 4px; border-radius: 4px; }

/* Bild: abgerundete Karte auf hellblauem Grund */
.layout_content .cat_hero__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #fff; /* Viele Kategoriebilder haben weissen Grund */
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--s-border);
}
.layout_content .cat_hero__media picture { display: contents; }
.layout_content .cat_hero__media img {
  /* absolut statt height:100% – Prozenthoehen loesen sich im Grid nicht auf */
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain; /* nicht zuschneiden: Collagen und Logos bleiben ganz */
  margin: 0;
  transition: transform .6s var(--s-ease);
}
.layout_content .cat_hero:hover .cat_hero__media img { transform: scale(1.03); }

/* Nur Bild, keine Beschreibung: kompakte Leiste statt hoher Karte */
@media (min-width: 900px) {
  .layout_content .cat_hero.has-image:not(.has-text) {
    grid-template-columns: minmax(0, 1fr) 260px;
    padding-block: clamp(16px, 2vw, 24px);
  }
  .layout_content .cat_hero.has-image:not(.has-text) .cat_hero__media { aspect-ratio: 4 / 3; }
  .layout_content .cat_hero.has-image:not(.has-text) .cat_hero__media img {
    inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  }
}

/* Herstellerseite: Logo kleiner und mit Luft */
.layout_content .cat_hero.is-logo .cat_hero__media { aspect-ratio: 2 / 1; }
.layout_content .cat_hero.is-logo .cat_hero__media img { inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); }

/* Mobil: Bild als flaches Banner oben, Text darunter */
@media (max-width: 899px) {
  .layout_content .cat_hero.has-image .cat_hero__media { order: -1; aspect-ratio: 16 / 7; }
}
@media (prefers-reduced-motion: reduce) {
  .layout_content .cat_hero .cat_description_text.is-collapsible,
  .layout_content .cat_hero__media img { transition: none; }
}

/* ==========================================================================
   Produktseite – Kaufbox, Bestand, Info-Chips, Beschreibung
   (module/product_info/product_info_v1_tabs.html)
   ========================================================================== */
.layout_content .pd_title h1 { margin-bottom: 12px; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }

/* Art.-Nr. / EAN als kompakte Chips */
.layout_content .pd_heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.layout_content .pd_heading > .pd_title { flex: 1 0 100%; }
.layout_content .pd_heading_inforow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--s-tint);
  box-shadow: inset 0 0 0 1px var(--s-border);
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--s-ink);
}
.layout_content .pd_heading_inforow strong { font-weight: 600; color: var(--s-muted); }

/* Kaufbox: Preis, Bestand, Menge, Warenkorb auf einer Flaeche */
.layout_content .pd_buybox {
  margin-top: 20px;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 16px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(26, 137, 218, .08), transparent 70%),
    #f7f9fc;
  box-shadow: inset 0 0 0 1px var(--s-border);
}
.layout_content .pd_buybox .pd_price { margin: 0; line-height: 1.1; }
.layout_content .pd_buybox #pd_puprice { line-height: 1.1; }
.layout_content .pd_price .standard_price,
.layout_content .pd_price .special_price { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -.02em; }
.layout_content .pd_buybox .pd_tax {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--s-muted);
}
.layout_content .pd_buybox .pd_tax a { color: var(--s-muted); text-decoration: underline; text-underline-offset: 2px; }

.layout_content .pd_stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.layout_content .pd_stock_dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.layout_content .pd_stock.is-low { background: #fff4e5; color: #b45309; }
.layout_content .pd_stock.is-in { background: #e8f7ee; color: #15803d; }
.layout_content .pd_stock.is-low .pd_stock_dot { animation: pd-pulse 1.8s ease-in-out infinite; }
@keyframes pd-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent); } }

.layout_content .pd_buybox .pd_addtobasket {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--s-border);
}
.layout_content .pd_buybox .pd_addtobasket_row { gap: 10px; align-items: stretch; }
.layout_content .pd_buybox .pd_addtobasket_input input {
  height: 48px;
  border-radius: 12px;
  border-color: var(--s-border);
  background: #fff;
  font-weight: 700;
  text-align: center;
}
.layout_content .pd_buybox .pd_addtobasket_cart .cssButton,
.layout_content .pd_buybox .pd_addtobasket_wish .cssButton {
  min-height: 48px;
  border-radius: 12px;
}
.layout_content .pd_buybox .pd_addtobasket_cart .cssButton {
  background: linear-gradient(180deg, #2a98e8, #1476c4);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -10px rgba(20, 118, 196, .8);
  transition: filter .2s ease, box-shadow .2s ease;
}
.layout_content .pd_buybox .pd_addtobasket_cart .cssButton:hover {
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 22px -10px rgba(20, 118, 196, .9);
}
.layout_content .pd_buybox .pd_addtobasket_wish .cssButton {
  background: #fff;
  border: 1px solid var(--s-border);
  color: var(--s-deep);
}
.layout_content .pd_buybox .pd_addtobasket_wish .cssButton:hover { border-color: #b9d9f3; background: #eef6fd; }
.layout_content .pd_buybox .pd_soldout {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fdecec;
  color: #b91c1c;
  letter-spacing: .06em;
}

/* Bildergalerie: ruhige Flaeche */
.layout_content .pd_image_big_inner { background: #fff; box-shadow: inset 0 0 0 1px var(--s-border); border: 0; }
.layout_content .pd_image_small_inner { border: 0; box-shadow: inset 0 0 0 1px var(--s-border); transition: box-shadow .2s ease; }
.layout_content .pd_image_small_inner:hover { box-shadow: inset 0 0 0 2px #b9d9f3; }

/* Beschreibung: kleinere Luecke, bei nur einem Reiter keine Reiterleiste */
/* .my_50 setzt den Abstand mit !important */
.layout_content .product_info_v1_tabs .content_full_colored.my_50 { margin: 24px 0 32px !important; }
.layout_content .product_info_v1_tabs .pd_tabs.my_50 { margin: 0 !important; }
/* Nur ein Rahmen: der Container. Der Reiter-Inhalt hatte eigenen Rand + Innenabstand */
.layout_content .resp-tabs-container .resp-tab-content { padding: 0; border: 0; }
.layout_content .pd_tabs:has(.resp-tabs-list > li:only-child) .resp-tabs-list { display: none; }
.layout_content .pd_tabs:has(.resp-tabs-list > li:only-child) .resp-tabs-container { border-radius: 16px; }
.layout_content .pd_tabs:has(.resp-tabs-list > li:only-child) h2.resp-accordion { display: none; }
.layout_content .resp-tabs-container { padding: clamp(16px, 2.4vw, 32px); }
.layout_content .pd_description_content > h2:first-child { margin-top: 0; }

/* Technische Daten: zweispaltig ueber die volle Breite */
.layout_content .pd_description_content dl { max-width: none; }
@media (min-width: 1100px) {
  .layout_content .pd_description_content dl {
    grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) minmax(130px, 190px) minmax(0, 1fr);
    column-gap: 0;
  }
  .layout_content .pd_description_content dd { padding-right: 32px; }
}
.layout_content .pd_description_content dt,
.layout_content .pd_description_content dd { padding-top: 11px; padding-bottom: 11px; }
@media (prefers-reduced-motion: reduce) {
  .layout_content .pd_stock.is-low .pd_stock_dot { animation: none; }
}

/* ==========================================================================
   Warenkorb (module/shopping_cart.html + module/order_details.html)
   ========================================================================== */
/* Artikelzeilen */
.layout_content .shopping_cart .orderflex_row_header {
  padding-bottom: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.layout_content .shopping_cart .orderflex_row:not(.orderflex_row_header) {
  padding: 18px 0;
  border-color: #eef1f5;
}
.layout_content .shopping_cart .of_col_img .prod_image {
  overflow: hidden;
  background: #f3f6fa;
  border-radius: 12px;
}
.layout_content .shopping_cart .of_col_img .prod_image img { mix-blend-mode: multiply; }
.layout_content .shopping_cart .of_productname { font-size: 15px; line-height: 1.35; }
.layout_content .shopping_cart .of_productname a { color: var(--s-ink); }
.layout_content .shopping_cart .of_productname a:hover { color: var(--s-deep); }
.layout_content .shopping_cart .of_infoline { font-size: 12.5px; color: var(--s-muted); }
.layout_content .shopping_cart .of_infoline strong { font-weight: 600; }

.layout_content .shopping_cart .of_action { display: flex; gap: 16px; margin-top: 10px; }
.layout_content .shopping_cart .of_action a,
.layout_content .shopping_cart .of_action button {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--s-muted);
  transition: color .2s ease;
}
.layout_content .shopping_cart .of_wishlist a:hover { color: var(--s-deep); }
.layout_content .shopping_cart .of_delete a:hover,
.layout_content .shopping_cart .of_delete button:hover { color: #b91c1c; }

/* Menge + Aktualisieren als eine Einheit */
.layout_content .shopping_cart .of_col_qty_inner { display: inline-flex; align-items: stretch; }
.layout_content .shopping_cart .of_quantity_field input {
  width: 56px;
  height: 42px;
  margin: 0;
  border: 1px solid var(--s-border);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  font-weight: 700;
  text-align: center;
}
.layout_content .shopping_cart .of_quantity_field input:focus { border-color: var(--s-primary); outline: 0; box-shadow: inset 0 0 0 1px var(--s-primary); }
.layout_content .shopping_cart .of_quantity_update { margin: 0; }
.layout_content .shopping_cart .of_quantity_update .cssButton {
  width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  border: 1px solid var(--s-border);
  border-radius: 0 10px 10px 0;
  background: #f3f6fa;
  color: var(--s-deep);
  box-shadow: none;
  transition: background .2s ease, color .2s ease;
}
.layout_content .shopping_cart .of_quantity_update .cssButton:hover { background: var(--s-primary-strong); border-color: var(--s-primary-strong); color: #fff; }
.layout_content .shopping_cart .of_col_total_inner { font-size: 16px; font-weight: 800; color: var(--s-ink); }
.layout_content .shopping_cart .of_col_total_singleprice { font-size: 12px; font-weight: 400; color: var(--s-muted); }

/* Zusammenfassung */
.layout_content .shopping_cart .ordersum {
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
}
.layout_content .shopping_cart .ordersum_heading {
  padding: 0 0 14px;
  border: 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--s-ink);
}
.layout_content .shopping_cart .ordertotal_row {
  padding: 9px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 14px;
  color: #3d4956;
}
.layout_content .shopping_cart .ordertotal_row .ot_width_2 strong { font-weight: 700; color: var(--s-ink); }
.layout_content .shopping_cart .ordertotal_row.ot_total {
  margin-top: 6px;
  padding: 14px 0 16px;
  border-bottom: 0;
  font-size: 15px;
  color: var(--s-ink);
}
.layout_content .shopping_cart .ordertotal_row.ot_total .ot_width_2 strong { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }

/* Versand: Land-Auswahl + Optionen als getoente Zeilen */
.layout_content .shopping_cart .ordertotal_row.ot_select { margin-top: 10px; border-bottom: 0; gap: 10px; }
.layout_content .shopping_cart .ordertotal_row.ot_select select { height: 38px; border-radius: 10px; border-color: var(--s-border); }
.layout_content .shopping_cart .ordertotal_row.ot_shipping:not(.ot_select) {
  margin: 6px 0 0;
  padding: 10px 12px;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: #f5f8fb;
  font-size: 12.5px;
  line-height: 1.45;
  color: #4a5666;
}
.layout_content .shopping_cart .ordertotal_row.ot_shipping .ot_width_2 { font-weight: 700; color: var(--s-ink); white-space: nowrap; }

/* Gutschein */
.layout_content .shopping_cart .ordercontainer_total_inner input[type="text"] { height: 44px; border-radius: 10px; border-color: var(--s-border); }
.layout_content .shopping_cart .ordercontainer_total_inner .cssButton { border-radius: 10px; }

/* Zur Kasse */
.layout_content .shopping_cart .button_row .br_btn_0 .cssButton { width: 100%; min-height: 52px; border-radius: 12px; }
.layout_content .shopping_cart .button_row .br_btn_0:first-child .cssButton {
  background: linear-gradient(180deg, #2a98e8, #1476c4);
  border: 0;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 22px -12px rgba(20, 118, 196, .9);
  transition: filter .2s ease;
}
.layout_content .shopping_cart .button_row .br_btn_0:first-child .cssButton:hover { filter: brightness(1.06); }
.layout_content .shopping_cart .br_btn_alternate { margin: 10px 0; color: var(--s-muted); }
/* Summe = letzte Zeile der Summen-Schleife (vor den Versandoptionen bzw. letzte Zeile) */
.layout_content .shopping_cart .ordertotal_row:not(.ot_shipping):has(+ .ot_shipping),
.layout_content .shopping_cart .ordertotal_block > .ordertotal_row:not(.ot_shipping):last-child {
  margin-top: 4px;
  padding: 14px 0 16px;
  border-bottom: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--s-ink);
}
.layout_content .shopping_cart .ordertotal_row:not(.ot_shipping):has(+ .ot_shipping) .ot_width_2 strong,
.layout_content .shopping_cart .ordertotal_block > .ordertotal_row:not(.ot_shipping):last-child .ot_width_2 strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.layout_content .shopping_cart .ordertotal_row.ot_select { padding-top: 14px; border-top: 1px solid #eef1f5; }

/* Gutschein-Kasten */
.layout_content .shopping_cart .giftbox {
  margin: 4px 0 18px;
  padding: 12px;
  background: #f5f8fb;
  border: 0;
  border-radius: 12px;
}
.layout_content .shopping_cart .giftbox .gift_item_row,
.layout_content .shopping_cart .giftbox [class^="field_item"] { padding: 0; }
.layout_content .shopping_cart .giftbox label { font-size: 12.5px; font-weight: 600; color: #4a5666; }
.layout_content .shopping_cart .giftbox input[type="text"] { background: #fff; }

/* ==========================================================================
   Produktlisten / Suche: schlanker Kopf + ruhigere Produktkarten
   ========================================================================== */
.layout_content .cat_hero.is-plain {
  margin-bottom: 20px;
  padding-block: clamp(18px, 2.2vw, 28px);
}
.layout_content .cat_hero.is-plain h1 { margin: 0; }

/* Status als einzeiliger Chip mit fester Hoehe -> Preise stehen buendig */
.layout_content .listingbox .lb_shipping {
  min-height: 38px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--s-muted);
}
.layout_content .listingbox .lb_stock_hint,
.layout_content .listingbox .lb_soldout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.layout_content .listingbox .lb_stock_hint::before,
.layout_content .listingbox .lb_soldout::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.layout_content .listingbox .lb_stock_hint { background: #fff4e5; color: #b45309; }
.layout_content .listingbox .lb_soldout { background: #fdecec; color: #b91c1c; letter-spacing: .04em; }

.layout_content .listingbox .lb_price { margin-top: 8px; }
.layout_content .listingbox .lb_price .standard_price,
.layout_content .listingbox .lb_price .special_price { font-size: 18px; font-weight: 900; letter-spacing: -.01em; color: var(--s-ink); }
.layout_content .listingbox .lb_tax { font-size: 11px; color: var(--s-muted); }
.layout_content .listingbox .lb_tax a { color: var(--s-muted); }

/* Mengenwaehler als helles Segment */
.layout_content .listingbox .lb_buttons { padding: 10px 0 8px; text-align: left; }
.layout_content .listingbox .quantity-controls {
  display: flex;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--s-border);
  border-radius: 10px;
  background: #fff;
}
.layout_content .listingbox .quantity-controls a { flex: none; display: block; }
.layout_content .listingbox .quantity-controls .cssButton {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f3f6fa;
  color: var(--s-deep);
  font-size: 16px;
  font-weight: 700;
  box-shadow: none;
  transition: background .2s ease, color .2s ease;
}
.layout_content .listingbox .quantity-controls .cssButton:hover { background: var(--s-primary-strong); color: #fff; }
.layout_content .listingbox .quantity-controls .quantity-input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 38px;
  margin: 0;
  border: 0;
  border-inline: 1px solid var(--s-border);
  border-radius: 0;
  font-weight: 700;
  text-align: center;
}

/* Kaufen */
.layout_content .listingbox .add_cart .cssButton {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a98e8, #1476c4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 16px -10px rgba(20, 118, 196, .8);
  transition: filter .2s ease;
}
.layout_content .listingbox .add_cart .cssButton:hover { filter: brightness(1.06); }
/* Inline-<style> in product_box.html setzt ".lb_quality + .lb_shipping { margin-top: 4px }"
   und steht im DOM nach site.css – hoehere Spezifitaet, damit Preis + Buttons unten buendig sind */
.layout_content .listingbox .lb_inner > .lb_quality + .lb_shipping,
.layout_content .listingbox .lb_inner > .lb_shipping { margin-top: auto; }

/* ==========================================================================
   Reparatur-Formular "Angaben zu deinem Geraet" (module/includes/rp_repair_form.html)
   ========================================================================== */
.fa-mobile-screen-button::before { content: "\f3cd"; }
.fa-lock-open::before { content: "\f3c1"; }
.fa-hashtag::before { content: "\f292"; }
.fa-key::before { content: "\f084"; }
.fa-braille::before { content: "\f2a1"; }
.fa-ellipsis::before { content: "\f141"; }
.fa-pen::before { content: "\f304"; }
.fa-lightbulb::before { content: "\f0eb"; }
.fa-rotate-left::before { content: "\f2ea"; }
.fa-circle-exclamation::before { content: "\f06a"; }
.fa-circle-info::before { content: "\f05a"; }
.fa-screwdriver-wrench::before { content: "\f7d9"; }
.fa-shield-halved::before { content: "\f3ed"; }

.rpf {
  --rpf-blue: #1a89da;
  --rpf-ink: #0f1724;
  --rpf-muted: #5b6878;
  --rpf-line: #e1e6ed;
  margin: 18px 0 16px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--rpf-line), 0 18px 40px -30px rgba(15, 23, 36, .45);
  text-align: left;
  scroll-margin-top: 110px;
}
.rpf__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rpf__head strong { display: block; font-size: 17px; font-weight: 800; color: var(--rpf-ink); }
.rpf__head small { font-size: 13px; color: var(--rpf-muted); }
.rpf__badge { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(180deg, #2a98e8, #1476c4); color: #fff; font-size: 18px; }
.rpf__alert { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; font-weight: 600; }
.rpf__group { margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--rpf-line); min-width: 0; }
.rpf__group + .rpf__group { margin-top: 14px; }
.rpf__group legend, .rpf__label { display: block; float: none; width: auto; margin: 0 0 10px; padding: 0; font-size: 14px; font-weight: 800; color: var(--rpf-ink); }
.rpf__opt { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--rpf-muted); }
.rpf__req { margin-left: 4px; padding: 2px 7px; border-radius: 99px; background: #e8f4fd; font-size: 11px; font-weight: 800; color: #195097; vertical-align: 1px; }
.rpf__picked { font-weight: 600; color: var(--rpf-muted); }
.rpf__input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1.5px solid var(--rpf-line);
  border-radius: 12px;
  background: #fff;
  color: var(--rpf-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rpf__input:focus { outline: 0; border-color: var(--rpf-blue); box-shadow: 0 0 0 4px rgba(26, 137, 218, .15); }
textarea.rpf__input { min-height: 88px; resize: vertical; line-height: 1.5; }
.rpf__input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; }
.rpf__hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--rpf-muted); }
.rpf__hint i { color: #f5b301; }
.rpf__err { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #dc2626; }
.rpf__group.has-error .rpf__input { border-color: #fca5a5; }

/* Farben als Farbkreise */
.rpf-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.rpf-color { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.rpf-color input { position: absolute; opacity: 0; pointer-events: none; }
.rpf-color__dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c, #fff);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 36, .18), 0 0 0 3px #fff, 0 0 0 4px transparent;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}
.rpf-color:hover .rpf-color__dot { transform: scale(1.08); }
.rpf-color input:checked + .rpf-color__dot { box-shadow: inset 0 0 0 1px rgba(15, 23, 36, .18), 0 0 0 3px #fff, 0 0 0 5px var(--rpf-blue); transform: scale(1.06); }
.rpf-color input:focus-visible + .rpf-color__dot { outline: 2px solid var(--rpf-blue); outline-offset: 5px; }
.rpf-color--other .rpf-color__dot { background: conic-gradient(#f3d34a, #d23b3b, #8a6bd1, #2f6fd6, #3f8f5a, #f3d34a); color: #fff; font-size: 13px; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.rpf-color__label { font-size: 13.5px; font-weight: 600; color: var(--rpf-ink); }

/* Sperrart als Segment-Auswahl */
.rpf-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 6px; }
.rpf-seg__opt { position: relative; margin: 0; cursor: pointer; }
.rpf-seg__opt input { position: absolute; inset: 0; opacity: 0; }
.rpf-seg__opt span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  background: #f3f5f8;
  box-shadow: inset 0 0 0 1.5px transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--rpf-ink);
  text-align: center;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}
.rpf-seg__opt span i { font-size: 16px; color: var(--rpf-muted); transition: color .2s ease; }
.rpf-seg__opt:hover span { background: #e8f4fd; }
.rpf-seg__opt input:checked + span { background: #e8f4fd; box-shadow: inset 0 0 0 1.5px var(--rpf-blue); color: #195097; }
.rpf-seg__opt input:checked + span i { color: var(--rpf-blue); }
.rpf-seg__opt input:focus-visible + span { outline: 2px solid var(--rpf-blue); outline-offset: 2px; }

/* Felder je nach Auswahl einblenden */
.rpf__reveal { display: none; margin-top: 12px; }
.rpf:has([name="rp[color]"][value="other"]:checked) [data-when="color-other"],
.rpf:has([name="rp[lock_type]"][value="none"]:checked) [data-when="lock-none"],
.rpf:has([name="rp[lock_type]"][value="pin"]:checked) [data-when="lock-pin"],
.rpf:has([name="rp[lock_type]"][value="password"]:checked) [data-when="lock-password"],
.rpf:has([name="rp[lock_type]"][value="pattern"]:checked) [data-when="lock-pattern"],
.rpf:has([name="rp[lock_type]"][value="other"]:checked) [data-when="lock-other"] { display: block; animation: rpf-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rpf-in { from { opacity: 0; transform: translateY(-6px); } }
.rpf__note { margin: 0; font-size: 14px; color: #128c4a; }
.rpf__privacy { margin: 12px 0 0; font-size: 12.5px; color: var(--rpf-muted); }
.rpf__privacy i { color: var(--rpf-blue); }
.rpf__incart { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #e8f4fd; font-size: 13.5px; color: #195097; }

/* Entsperrmuster */
.rpf-pattern { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rpf-pattern__pad {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 216px;
  aspect-ratio: 1;
  flex: none;
  border-radius: 22px;
  background: radial-gradient(120% 80% at 50% 0%, #1d3557, #0f1724);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 36px -20px rgba(15, 23, 36, .7);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}
.rpf-pattern__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rpf-pattern__path { fill: none; stroke: #6cc0f5; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.rpf-pattern__live { fill: none; stroke: rgba(108, 192, 245, .55); stroke-width: 6; stroke-linecap: round; }
.rpf-pattern.is-error .rpf-pattern__path { stroke: #f87171; }
.rpf-pattern__dot {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: inherit;
}
.rpf-pattern__dot span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5b6878;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s ease, box-shadow .2s ease;
}
.rpf-pattern__dot b {
  position: absolute;
  font-size: 12px;
  font-weight: 800;
  color: #0f1724;
  pointer-events: none;
}
.rpf-pattern__dot.is-on span { transform: scale(1.75); background: #fff; box-shadow: 0 0 0 4px rgba(108, 192, 245, .35), 0 0 18px rgba(108, 192, 245, .8); }
.rpf-pattern__dot.is-first span { background: #3ee08a; }
.rpf-pattern__dot:focus-visible { outline: 2px solid #6cc0f5; outline-offset: -8px; border-radius: 50%; }
.rpf-pattern__side { flex: 1 1 160px; min-width: 0; }
.rpf-pattern__status { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--rpf-muted); }
.rpf-pattern.is-ok .rpf-pattern__status { color: #128c4a; font-weight: 600; }
.rpf-pattern.is-error .rpf-pattern__status { color: #dc2626; font-weight: 600; }
.rpf-pattern__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 0;
  border-radius: 99px;
  background: #f3f5f8;
  color: var(--rpf-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.rpf-pattern__reset:hover { background: #e8f4fd; }

/* "Reparatur buchen" in Listen und Suchvorschlaegen */
:is(a, button).rp-book {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a98e8, #1476c4);
  box-shadow: 0 10px 22px -12px rgba(20, 118, 196, .8);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
:is(a, button).rp-book:hover, :is(a, button).rp-book:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(20, 118, 196, .9); }
:is(a, button).rp-book--sm { display: inline-flex; width: auto; min-height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.lr_buttons :is(a, button).rp-book { width: auto; display: inline-flex; }

/* Warenkorb: Geraeteangaben je Position */
.rp-cartinfo { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: #f3f5f8; font-size: 13px; }
.rp-cartinfo ul { display: grid; gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; }
.rp-cartinfo li span { display: inline-block; min-width: 64px; font-weight: 700; color: #5b6878; }
.rp-cartinfo__dot { display: inline-block; width: 11px; height: 11px; margin-right: 5px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(15, 23, 36, .2); vertical-align: -1px; }
.rp-cartinfo a { font-weight: 700; color: #195097; }
a.rp-cartinfo--missing { display: inline-flex; align-items: center; gap: 6px; background: #fef2f2; color: #b91c1c; font-weight: 700; }
a.rp-cartinfo--missing:hover { color: #991b1b; }

@media (prefers-reduced-motion: reduce) {
  .rpf__reveal, .rpf-color__dot, .rpf-pattern__dot span, :is(a, button).rp-book { animation: none !important; transition: none; }
}
.listingbox :is(a, button).rp-book { gap: 6px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
@media (max-width: 400px) { .listingbox :is(a, button).rp-book { font-size: 13px; } .listingbox :is(a, button).rp-book i { display: none; } }

/* Formular entschlackt: ohne Trennlinien, Info-Button statt Tipp-Zeile, gleich grosse Sperr-Kacheln */
.rpf { padding: 18px 18px 16px; }
.rpf__head { margin-bottom: 18px; }
.rpf__head small i { margin-right: 3px; font-size: 11px; color: #1a89da; }
.rpf__group { padding-top: 0; border-top: 0; }
.rpf__group + .rpf__group { margin-top: 18px; }
.rpf__labelrow { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.rpf__labelrow .rpf__label { margin: 0; }
.rpf__info {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8a97a8;
  font-size: 15px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.rpf__info:hover, .rpf__info[aria-expanded="true"] { color: #1a89da; background: #e8f4fd; }
.rpf__tip {
  margin: -2px 0 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #e8f4fd;
  font-size: 13px;
  line-height: 1.5;
  color: #195097;
  animation: rpf-in .3s cubic-bezier(.2, .8, .2, 1);
}
.rpf__tip[hidden] { display: none; }
.rpf-seg { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rpf-seg__opt { display: flex; }
.rpf-seg__opt span {
  flex: 1;
  justify-content: center;
  min-height: 62px;
  padding: 8px 4px;
  font-size: 12.5px;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .rpf-seg__opt span { font-size: 11.5px; min-height: 56px; }
}

/* PIN-Ziffernfeld (wie Sperrbildschirm, passend zum Muster-Feld) */
.fa-delete-left::before { content: "\f55a"; }
.rpf-pin { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rpf-pin__pad {
  width: 216px;
  flex: none;
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: radial-gradient(120% 80% at 50% 0%, #1d3557, #0f1724);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 36px -20px rgba(15, 23, 36, .7);
}
.rpf .rpf-pin input.rpf-pin__display[type="text"],
.rpf .rpf-pin input.rpf-pin__display[type="text"]:focus {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0 0 12px;
  padding: 0 6px;
  border: 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font: 700 22px/40px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .3em;
  text-align: center;
}
input.rpf-pin__display::placeholder { color: #5b6878; letter-spacing: .1em; font-size: 15px; }
.rpf .rpf-pin input.rpf-pin__display[type="text"]:focus { outline: 0; border-bottom-color: #6cc0f5; }
.rpf .rpf-pin.is-ok input.rpf-pin__display[type="text"] { border-bottom-color: #3ee08a; }
.rpf-pin__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; justify-items: center; }
.rpf-pin__keys button {
  display: grid;
  place-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: 600 21px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rpf-pin__keys button small { margin-top: 2px; font-size: 8px; font-weight: 700; letter-spacing: .12em; color: #8a97a8; }
.rpf-pin__keys button:hover { background: rgba(255, 255, 255, .18); }
.rpf-pin__keys button:active, .rpf-pin__keys button.is-hit { animation: rpf-key .25s ease; }
@keyframes rpf-key { 40% { background: rgba(108, 192, 245, .55); transform: scale(.92); } }
.rpf-pin__keys button:focus-visible { outline: 2px solid #6cc0f5; outline-offset: 2px; }
.rpf-pin__keys .rpf-pin__del { background: transparent; font-size: 19px; color: #c4d6e8; }
.rpf-pin__status { flex: 1 1 140px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--rpf-muted); }
.rpf-pin.is-ok .rpf-pin__status { color: #128c4a; font-weight: 600; }

/* Ziffernfeld und Muster kompakt in Handygroesse, mittig, Status darunter */
.rpf-pin, .rpf-pattern { flex-direction: column; align-items: center; gap: 10px; }
.rpf-pin__pad { width: min(100%, 264px); padding: 14px 18px 16px; }
.rpf-pin__keys { gap: 8px 14px; }
.rpf-pin__keys button { width: 100%; max-width: 58px; height: auto; aspect-ratio: 1; font-size: 20px; }
.rpf-pin__status { flex: none; text-align: center; }
.rpf-pattern__pad { width: min(100%, 236px); aspect-ratio: 1; }
.rpf-pattern__lines path { vector-effect: non-scaling-stroke; }
.rpf-pattern__side { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; text-align: center; }
.rpf-pattern__status { flex: none; margin: 0; }

/* Ziffernfeld und Muster im hellen Look (passend zum Formular) */
.rpf-pin__pad,
.rpf-pattern__pad {
  background: linear-gradient(180deg, #f5f9fd, #eaf2fa);
  box-shadow: inset 0 0 0 1px #dbe6f1;
}
/* PIN */
.rpf .rpf-pin input.rpf-pin__display[type="text"],
.rpf .rpf-pin input.rpf-pin__display[type="text"]:focus {
  border-bottom: 2px solid #c9d8e8;
  color: var(--rpf-ink);
}
.rpf .rpf-pin input.rpf-pin__display[type="text"]:focus { border-bottom-color: var(--rpf-blue); }
.rpf .rpf-pin.is-ok input.rpf-pin__display[type="text"] { border-bottom-color: #1fae5b; }
input.rpf-pin__display::placeholder { color: #9aa8b8; }
.rpf-pin__keys button {
  background: #fff;
  color: var(--rpf-ink);
  box-shadow: 0 1px 0 rgba(15, 23, 36, .06), 0 6px 14px -8px rgba(25, 80, 151, .35), inset 0 0 0 1px #e1e9f2;
}
.rpf-pin__keys button small { color: #8a97a8; }
.rpf-pin__keys button:hover { background: #f3f8fd; box-shadow: 0 1px 0 rgba(15, 23, 36, .06), 0 8px 18px -8px rgba(25, 80, 151, .45), inset 0 0 0 1px #cfe2f4; }
@keyframes rpf-key { 40% { background: #1a89da; color: #fff; transform: scale(.92); } }
.rpf-pin__keys .rpf-pin__del { background: transparent; box-shadow: none; color: #5b6878; }
.rpf-pin__keys .rpf-pin__del:hover { background: rgba(26, 137, 218, .08); box-shadow: none; color: var(--rpf-blue); }
.rpf-pin__keys button:focus-visible { outline-color: var(--rpf-blue); }
/* Muster */
.rpf-pattern__path { stroke: #1a89da; opacity: .85; }
.rpf-pattern__live { stroke: rgba(26, 137, 218, .35); }
.rpf-pattern__dot span { background: #c3cfdc; }
.rpf-pattern__dot.is-on span { background: linear-gradient(180deg, #2a98e8, #1476c4); box-shadow: 0 0 0 5px rgba(26, 137, 218, .16), 0 6px 14px -4px rgba(20, 118, 196, .6); }
.rpf-pattern__dot.is-first span { background: linear-gradient(180deg, #3fc97b, #1fae5b); box-shadow: 0 0 0 5px rgba(31, 174, 91, .16), 0 6px 14px -4px rgba(31, 174, 91, .6); }
.rpf-pattern__dot b { color: #fff; }
.rpf-pattern__dot:focus-visible { outline-color: var(--rpf-blue); }

/* Eigene Reparatur-Symbole statt Produktfotos in Listen */
.prod_image.rp-prodico > a,
.prod_image.rp-prodico > a:link,
.prod_image.rp-prodico > a:visited {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #f1f8fe, #e3f0fb);
  box-shadow: inset 0 0 0 1px #d6e8f7;
  color: #1869b3;
}
.prod_image.rp-prodico .rp-ico { width: 44%; max-width: 104px; height: auto; aspect-ratio: 1; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.listingbox:hover .rp-prodico .rp-ico, .listingrow:hover .rp-prodico .rp-ico { transform: scale(1.07) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { .prod_image.rp-prodico .rp-ico { transition: none; } }
.prod_image.rp-prodico--mini > a, .prod_image.rp-prodico--mini > a:link { border-radius: 10px; }
.prod_image.rp-prodico--mini .rp-ico { width: 64%; }
