@charset "UTF-8";
@layer normalize,base,components,utilities;
@layer components {
  html,
  body,
  input,
  button,
  select,
  textarea {
    font-size: clamp(12px, 1.7vw, 24px);
  }
  body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.35;
    padding: 0;
    margin: 6px;
    background: var(--color-bg);
    color: var(--color-text);
  }
  header {
    margin-bottom: 2rem;
  }
  h1 {
    font-size: 2rem;
    margin: 0.5rem 0;
    font-weight: 600;
    text-align: center;
  }
  form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  input[type="text"] {
    width: 17rem;
    font-size: inherit;
  }
  input[type="number"] {
    padding: 0;
    width: 4rem;
    font-size: inherit;
  }
  button {
    padding: 8px 12px;
  }
  .delete {
    background-color: var(--color-danger);
    color: var(--color-bg);
    border: none;
  }
  .delete:hover {
    background-color: var(--color-danger-border);
  }
  .hidden {
    display: none;
  }
  .filter-drawer {
    position: fixed;
    right: calc(-1 * min(22rem, 90vw));
    width: min(22rem, 90vw);
    top: 0;
    height: 100dvh;
    background: var(--color-bg);
    transition: right 0.25s ease-out, box-shadow 0.25s ease-out;
    z-index: 950;
    display: flex;
    align-items: stretch;
  }
  .filter-drawer:hover,
  .filter-drawer.is-open {
    right: 0;
    box-shadow: 0 0 20px var(--color-shadow);
    z-index: 999;
  }
  .filter-drawer__handle {
    position: fixed;
    right: 1rem;
    top: 1rem;
    height: 2rem;
    width: 2rem;
    background: var(--color-accent);
    border: 0;
    border-radius: 0.5rem;
    z-index: 2;
    padding: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--color-shadow);
  }
  .filter-drawer__content {
    padding: 1.2rem 1rem;
    overflow-y: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    z-index: 5;
    background-color: var(--color-bg);
  }
  .filter-drawer__content h2 {
    margin: 0;
  }
  .filter-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 auto;
    justify-content: start;
  }
  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .filter-group__title {
    font-weight: 700;
  }
  .filter-group__summary {
    font-size: 0.9rem;
    color: var(--color-text-muted);
  }
  .filter-group > label,
  .filter-group > span {
    font-weight: 600;
  }
  .filter-select {
    position: relative;
  }
  .filter-select__check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .filter-select__trigger {
    width: 100%;
    text-align: left;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 0.35rem 0.5rem;
    border-radius: 0.4rem;
    cursor: pointer;
    display: block;
  }
  .filter-select__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.4rem;
    box-shadow: 0 6px 15px var(--color-shadow);
    padding: 0.5rem;
    max-height: 16rem;
    overflow: auto;
    z-index: 10;
    display: none;
    gap: 0.35rem;
  }
  .filter-select__check:checked ~ .filter-select__list {
    display: grid;
  }
  .filter-select__heading {
    font-weight: 700;
    padding: 0.1rem 0;
    border-bottom: 1px solid var(--color-border-soft);
  }
  .filter-select__search {
    margin: 0.35rem 0;
  }
  .filter-search-input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.35rem;
    font-size: 0.9rem;
  }
  .filter-select__selected {
    font-size: 0.9rem;
    color: var(--color-success);
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    border-radius: 0.35rem;
    padding: 0.35rem 0.5rem;
  }
  .filter-select__list label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
  }
  .filter-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
  }
  .filter-reset {
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.6rem;
    border-radius: 0.35rem;
    background: var(--color-surface);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .filter-reset.is-active {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
    color: var(--color-danger);
    box-shadow: 0 0 0 2px var(--color-shadow);
    font-weight: 700;
  }
  .filter-summary {
    margin: 0.5rem auto 1rem;
    max-width: 60rem;
    padding: 0.4rem 0.6rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
  }
  .filter-summary__title {
    font-weight: 700;
  }
  .filter-summary__tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  .filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    border-radius: 999px;
    font-size: 0.9rem;
    gap: 0.35rem;
    text-decoration: none;
    color: inherit;
  }
  .filter-tag__remove {
    font-weight: 700;
    cursor: pointer;
  }
  .filter-tag:hover {
    background: var(--color-success-bg);
    border-color: var(--color-success-border);
  }
  #startScanner {
    height: fit-content;
    width: auto;
    padding: 0.2rem;
    cursor: pointer;
    background-color: var(--color-accent);
  }
  #startScanner img {
    height: auto;
    width: 3rem;
    margin: auto;
  }
  #startScanner span {
    display: none;
  }
  .meta {
    color: var(--color-text-muted);
    margin-top: 4px;
  }
  .pager {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .pager a {
    padding: 4px 8px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
  }
  .pager .disabled {
    opacity: 0.5;
    pointer-events: none;
  }
  .btn {
    display: flex;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 0.3rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 0.3rem;
    width: fit-content;
    height: auto;
    align-content: center;
    align-items: center;
    justify-content: center;
  }
  .btn:hover {
    filter: saturate(2) brightness(1.05) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  }
  .btn,
  span {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -ms-touch-action: none;
    touch-action: none;
    outline: none;
  }
  */ .btn-primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-bg);
  }
  .btn-primary:hover {
    filter: brightness(1.15);
  }
  @keyframes pulse-bg {
    0% {
      background-color: var(--color-highlight-soft);
    }
    100% {
      background-color: var(--color-highlight-strong);
    }
  }
  #videocon {
    position: fixed;
    display: none;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100dvh;
    background-color: var(--color-surface-strong);
    z-index: 999;
    padding: 1vmin;
  }
  #videocon > label {
    padding: 1rem;
    background-color: var(--color-bg);
    border-radius: 0.5rem;
    text-align: center;
  }
  #videocon > input[type="checkbox"] {
    display: none;
  }
  #videocon > input[type="checkbox"]:checked + label {
    animation: pulse-bg 1s infinite alternate;
  }
  #videocon > input[type="checkbox"]:checked ~ #batchstatus {
    visibility: visible;
  }
  video {
    border: 2px solid var(--color-text);
    border-radius: 8px;
    margin: 20px auto;
    width: auto;
    height: auto;
    height: auto;
    max-height: 30vh;
  }
  #result {
    display: none;
    font-size: 1.2rem;
    margin-top: 10px;
  }
  #batchstatus {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg);
    padding: 8px;
    overflow-y: auto;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    max-height: 35vh;
  }
  #batchstatus .batch-status__item {
    padding: 4px 0;
    border-bottom: 1px solid var(--color-border-soft);
  }
  #batchstatus .batch-status__item:last-child {
    border-bottom: none;
  }
  #batchstatus .batch-status__item--added {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-left: 3px solid var(--color-success);
  }
  #batchstatus .batch-status__item--exists {
    background: color-mix(in srgb, var(--color-success-bg) 70%, transparent);
    color: color-mix(in srgb, var(--color-success) 70%, transparent);
    border-left: 3px solid color-mix(in srgb, var(--color-success) 70%, transparent);
  }
  #batchstatus .batch-status__item--warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border-left: 3px solid var(--color-warning);
  }
  #batchstatus .batch-status__item--error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border-left: 3px solid var(--color-danger);
  }
  #batchstatus .batch-status__item--info {
    background: var(--color-info-bg);
    color: var(--color-info);
    border-left: 3px solid var(--color-primary);
  }
  #searchButton {
    margin: 0;
    border: none;
    background: none;
    height: 2.4rem;
    width: 2.8rem;
    cursor: pointer;
    background-color: var(--color-accent);
  }
  .show {
    z-index: 999;
    display: grid !important;
    grid-template-rows: 2rem 1fr 1fr 3rem;
    grid-template-columns: 100vw;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  .js-brand {
    text-decoration: underline dotted;
    cursor: help;
  }
  .brand-tooltip {
    position: fixed;
    z-index: 9999;
    display: none;
    max-width: 360px;
    background: var(--color-popover-bg);
    color: var(--color-popover-color);
    padding: 8px 10px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    font-size: 0.9em;
    line-height: 1.3;
  }
  .brand-tooltip-name {
    font-weight: 600;
    margin-bottom: 3px;
  }
  .brand-tooltip-address {
    white-space: pre-line;
    opacity: 0.9;
    margin-bottom: 4px;
  }
  .brand-tooltip-link {
    color: var(--color-primary);
    text-decoration: underline;
    word-break: break-all;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
  }
  table th,
  table td {
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid var(--color-border-strong);
    vertical-align: initial;
  }
  table thead tr th {
    position: sticky;
    top: 0;
    left: 0;
    background: var(--color-bg);
    z-index: 1;
  }
  tbody tr:nth-of-type(even) {
    background-color: var(--color-surface-muted);
  }
  table thead tr th {
    width: fit-content;
  }
  table thead tr th:nth-of-type(1) {
    width: 3rem;
  }
  table thead tr th:nth-of-type(2) {
    width: min(calc(100vw - 30rem), 20rem);
  }
  table thead tr th:nth-of-type(3) {
    width: 3rem;
  }
  table thead tr th:nth-of-type(4) {
    width: 2.5rem;
  }
  table thead tr th:nth-of-type(5) {
    width: 3rem;
  }
  table thead tr th:nth-of-type(6) {
    width: 2rem;
  }
  table thead tr th:nth-of-type(7) {
    width: 4rem;
  }
  table thead tr th:nth-of-type(8) {
    width: 4rem;
  }
  table thead tr th:nth-of-type(9),
  table thead tr th:nth-of-type(10),
  table thead tr th:nth-of-type(11) {
    width: 3rem;
  }
  table thead tr th:nth-of-type(12),
  table thead tr th:nth-of-type(13),
  table thead tr th:nth-of-type(14) {
    width: 2.5rem;
  }
  .product-image {
    text-align: center;
  }
.product-thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 100%;
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	background: var(--color-surface);
	padding: 0rem;
	cursor: zoom-in;
}
  .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.35rem;
  }
  .product-thumb:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
  .image-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
  }
  .image-modal[hidden] {
    display: none;
  }
  .image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    -webkit-backdrop-filter: blur(0.05rem);
    backdrop-filter: blur(0.05rem);
  }
  body.is-modal-open {
    overflow: hidden;
  }
  .image-modal__figure {
    position: relative;
    max-width: min(90vw, 38rem);
    margin: 0;
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 0.75rem;
    box-shadow: 0 1.5rem 3rem var(--color-shadow);
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
  }
  .image-modal__picture {
    display: block;
    width: 100%;
  }
.image-modal__img {
	/* width: 100%; */
	height: auto;
	border-radius: 0.5rem;
	display: block;
	background: var(--color-surface-strong);
	max-height: 63vh;
	aspect-ratio: 1 !important;
	margin: auto;
}
  .image-modal__caption {
    display: grid;
    gap: 0.4rem;
  }
  .image-modal__title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
  }
  .image-modal__meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
  }
  .image-modal__link {
    color: var(--color-primary);
    text-decoration: underline;
    font-size: 0.85rem;
    word-break: break-all;
  }
  .image-modal__metrics {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
  }
  .image-modal__divider {
    opacity: 0.6;
  }
  .image-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .image-modal__close:hover {
    background: var(--color-surface-strong);
    box-shadow: 0 0 0.3rem var(--color-border);
    font-weight: 700;
  }
  .image-modal__close:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
  table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  table td p {
    margin: 0;
    padding: 0;
  }
  table .wrap {
    white-space: normal;
    overflow-wrap: anywhere;
    overflow-wrap: break-word;
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }
  table .num {
    text-align: right;
  }
  table {
    display: table;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .gebinde {
    text-align: right;
  }
  .card {
    display: none;
  }
  .toggle {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
    gap: 0.5rem;
    cursor: pointer;
    font-family: system-ui, sans-serif;
  }
  .toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .toggle__slider {
    position: relative;
    font-size: 1rem;
    width: calc(5rem + 4px);
    height: calc(1rem + 4px);
    padding: 1rem 4rem;
    border-radius: 999px;
    background: var(--color-border);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .toggle__slider::before {
    content: "";
    background-image: url(svg/apfel.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    filter: grayscale(1) brightness(0.8) drop-shadow(0 0 1px var(--color-shadow)) opacity(1);
    transform: translateY(-0.1rem) scale(1.3);
  }
  .toggle input[type="checkbox"]:checked + .toggle__slider {
    background: var(--color-accent);
  }
  .toggle input[type="checkbox"]:checked + .toggle__slider::before {
    transform: translateX(6.5rem) translateY(-0.1rem) scale(1.3);
    filter: grayscale(0) drop-shadow(0 0 1px var(--color-shadow)) opacity(1);
  }
  .toggle input[type="checkbox"]:focus-visible + .toggle__slider {
    outline: 2px solid var(--color-success);
    outline-offset: 2px;
  }
  @media (max-width: 640px) {
    .rwd-table {
      border-collapse: separate;
      border-spacing: 0;
      width: 100%;
    }
    .rwd-table thead {
      display: none;
    }
    .rwd-table tbody {
      display: grid;
      gap: 0.75rem;
      padding: 0.15rem;
      border-radius: 0.5rem;
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
      background: var(--color-surface-muted);
    }
    .rwd-table tbody tr {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      background: color-mix(in srgb, var(--color-bg) 53%, transparent);
      align-items: stretch;
      margin-bottom: 0;
      box-shadow: 0 0 3px var(--color-bg);
      border: none;
    }
    .rwd-table tbody tr td[hidden] {
      display: none !important;
    }
    .rwd-table tbody tr td {
      display: inline;
      border: 1px solid var(--color-border-strong);
      padding: 0.5rem;
      box-sizing: border-box;
      display: grid;
      grid-auto-rows: auto;
      gap: 0.25rem;
      align-content: center;
      justify-items: start;
      height: 100%;
    }
    .rwd-table tbody tr td::before {
      display: block;
      content: attr(data-label);
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--color-text-muted);
      line-height: 1.2;
    }
    .rwd-table tbody tr td:nth-of-type(1) {
      display: inline;
      grid-column: 1 / -1;
      order: -2;
      text-align: center;
      justify-items: center;
      width: 100%;
      height: 5em;
    }
    .rwd-table tbody tr td:nth-of-type(2) {
      display: inline;
      grid-column: 1 / -1;
      order: -1;
      font-weight: 700;
      text-align: center;
      justify-items: center;
      width: 100%;
    }
    .rwd-table tbody tr td.product-image::before {
      display: none;
    }
    .rwd-table tfoot th {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
    }
  }
  .floating-cart {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    z-index: 990;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .floating-cart--hidden {
    display: none;
  }
  .floating-cart:hover,
  .floating-cart:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }
  .floating-cart__icon {
    font-size: 1.5rem;
  }
  .floating-cart__badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--color-danger);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
  }
  mark.search-highlight {
    display: inline;
    background: #b7b7b74f;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
  }
}
